TS-4710 splash

From embeddedTS Manuals
Revision as of 10:40, 19 June 2013 by Mark (talk | contribs) (Created page with "The default image does not include a splash screen, but the hooks are available to display a custom image very early in the startup. The Imagemagick utility can take a splash...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The default image does not include a splash screen, but the hooks are available to display a custom image very early in the startup. The Imagemagick utility can take a splash image and convert it to a PPM which is required by fbsplash.

convert splash.png splash.ppm

Some editors such as Gimp support outputting directly to a ppm file. The image resolution usually should match the screen, but otherwise it will be aligned to the upper left corner.

The initramfs contains a hook to run applications during startup by creating a script in /ts/ called "init". Place the splash.ppm in /ts/, and create a script called init with these contents:

#!/bin/sh

# the Debian root is at /mnt/root/
fbsplash -s /mnt/root/ts/splash.ppm -d /dev/fb0

Make sure the file also has execution permission:

chmod a+x /ts/init

During the next boot this will be executed and output the splash. If the system is configured to automatically boot to Debian it will display the splash screen until X11 is started.