Tweaking the boot animation: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Link to shutdown screen page.)
(Document the -z option, update the ppmto565 script.)
Line 1: Line 1:
The boot animation code lives in the <code>bootanim</code> rpm, and it uses the [http://www.math.ias.edu/doc/rhgb-0.14.1/HOW_IT_WORKS rhgb-client] hooks in the initscripts. There are 27 frames in the boot animation, fixed by the number of steps in the initscripts.
The boot animation code lives in the <code>bootanim</code> rpm, and it uses the [http://www.math.ias.edu/doc/rhgb-0.14.1/HOW_IT_WORKS rhgb-client] hooks in the initscripts. There are 26 frames in the boot animation, fixed by the number of steps in the initscripts.


The frames live in /usr/share/boot-anim/frame00.565 to /usr/share/boot-anim/frame26.565. They are in the raw framebuffer format. You can convert a PNG with the command:
The frames live in /usr/share/boot-anim/frame00.565 to /usr/share/boot-anim/frame25.565. They are in the raw framebuffer format. You can convert a PNG with the command:
pngtopnm frame00.png | ./ppmto565.py > frame00.565
pngtopnm frame00.png | ./ppmto565.py -z -o frame00.565
using the [http://dev.laptop.org/~cscott/ppmto565.py ppmto565.py script] and the <code>pngtopnm</code> tool in the netpbm-progs package:
using the [http://dev.laptop.org/~cscott/ppmto565.py ppmto565.py script] and the <code>pngtopnm</code> tool in the netpbm-progs package:
# yum install netpbm-progs
# yum install netpbm-progs

The 565 files are raw bitmap data and they look large, but they compress exceedingly well onto jffs2 if the images are simple.
If you are targetting a release prior to 8.2, you should omit the '-z' option. The resulting files are raw bitmap data and look large, but they compress well onto jffs2 if the images are simple.


The bootanim code lives in the [http://dev.laptop.org/git?p=users/cscott/act-gui act-gui] package in git on dev; talk to cscott if you want changes pulled upstream.
The bootanim code lives in the [http://dev.laptop.org/git?p=users/cscott/act-gui act-gui] package in git on dev; talk to cscott if you want changes pulled upstream.

Revision as of 18:30, 29 June 2008

The boot animation code lives in the bootanim rpm, and it uses the rhgb-client hooks in the initscripts. There are 26 frames in the boot animation, fixed by the number of steps in the initscripts.

The frames live in /usr/share/boot-anim/frame00.565 to /usr/share/boot-anim/frame25.565. They are in the raw framebuffer format. You can convert a PNG with the command:

pngtopnm frame00.png | ./ppmto565.py -z -o frame00.565

using the ppmto565.py script and the pngtopnm tool in the netpbm-progs package:

# yum install netpbm-progs

If you are targetting a release prior to 8.2, you should omit the '-z' option. The resulting files are raw bitmap data and look large, but they compress well onto jffs2 if the images are simple.

The bootanim code lives in the act-gui package in git on dev; talk to cscott if you want changes pulled upstream.

See also: Replacing the shutdown screen.