TS-4710 splash: Difference between revisions

From embeddedTS Manuals
(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...")
(No difference)

Revision as of 10:40, 19 June 2013

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.