Wednesday, February 11, 2015

Custom boot / splash screen - Raspberry Pi

Displaying an image during boot instead of the default command line scrolling text - custom boot/splash screen on Raspberry Pi

This is based on the guide here. 
This solution works but there are a few seconds of text shown before the boot image appears.
To hide it edit /boot/cmdline.txt

and change to:

console=tty3

add 
logo.nologo
to see booting use alt+f3
Install fbi

sudo apt-get install fbi
Copy the splashscreen image to be used
Copy your custom splash image into: /etc/ and name it "splash.png".
Presumably the resolution to use is 1920x1080px.
Create A Script

sudo nano
 
Paste the following into the text editor:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:      
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO


do_start () {

    /usr/bin/fbi -T 1 -noverbose -a /etc/splash.png    
    exit 0
}

case "$1" in
  start|"")
    do_start
    ;;
  restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
  stop)
    # No-op
    ;;
  status)
    exit 0
    ;;
  *)
    echo "Usage: asplashscreen [start|stop]" >&2
    exit 3
    ;;
esac

:


Exit and save the file as: /etc/init.d/asplashscreen

(using a name starting with 'a' will ensure it runs first)
Finally make the script executable and install it for init mode:

sudo chmod a+x /etc/init.d/asplashscreen
sudo insserv /etc/init.d/asplashscreen

sudo reboot 
 

Getting Out Of Black Screen

If you get a black screen at the end of booting (if you've not setup auto running the GUI etc) use CTRL + ALT + F2 to get the command prompt
 
 
found at http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen 

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status