Plymouth - HerbFargus/Raspberry-Pi-Scripts GitHub Wiki

Installing Plymouth on Raspbian Jessie:

This assumes you are using raspbian lite. otherwise plymouth will already be installed.

sudo apt-get install plymouth plymouth-themes

Install Raspberry Pi Foundation Pixel splash

sudo apt-get install pix-plym-splash

Enable in /boot/cmdline.txt

add quiet splash plymouth.ignore-serial-consoles on the same line

and remove plymouth.enable=0 if you're using retropie

List Themes:

plymouth-set-default-theme --list

Set Default Theme:

sudo plymouth-set-default-theme yourtheme

Test Theme:

sudo plymouthd
sudo plymouth --show-splash
sudo plymouth quit 

If you want a little more debugging while testing:

sudo plymouthd --debug --debug-file=/tmp/plymouth-debug-out ; sudo plymouth --show-splash ; for ((I=0;I<10;I++)); do sleep 1 ; sudo plymouth --update=event$I ; done ;sudo  plymouth --quit

Adding a new theme

Add your new themes to:

/usr/share/plymouth/themes/

Using Plymouth on Ubuntu:

Installing Plymouth:

sudo apt-get install plymouth plymouth-themes plymouth-x11

Adding Custom Themes:

Add your new themes to:

/usr/share/plymouth/themes/

Install the New theme:

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/yourtheme/yourtheme.plymouth 500

Choose the New theme:

sudo update-alternatives --config default.plymouth

pick the number of the theme you want to choose

Initialise on Boot:

sudo update-initramfs -u

Preview Theme

Create Script: plymouth.sh

sudo chmod +x plymouth.sh sudo ./plymouth.sh

#!/bin/bash
 
## Preview Plymouth Splash ##
##      by _khAttAm_       ##
##    www.khattam.info     ##
##    License: GPL v3      ##
 
chk_root () {
 
  if [ ! $( id -u ) -eq 0 ]; then
    echo Must be run as root
    exit
  fi
 
}
 
chk_root
 
DURATION=$1
 
if [ $# -ne 1 ]; then
	DURATION=5
fi
 
plymouthd; plymouth --show-splash ; for ((I=0; I<$DURATION; I++)); do plymouth --update=test$I ; sleep 1; done; plymouth quit

[Outdated] Getting Plymouth to work on a fresh raspbian Wheezy image (3.18.11-v7+)

Get Plymouth

sudo apt-get install plymouth plymouth-drm

Fix Pango Issues

wget https://gist.githubusercontent.com/alanpullen/cdfeb71bd6d85edabf87/raw/5f44e180191e5b02ae8882743db2b8f1a04f9892/plymouth-pango-fix.sh
chmod +x plymouth-pango-fix.sh
./plymouth-pango-fix.sh

Create initramfs image

sudo update-initramfs -c -k $(uname -r)

Add Image to /boot/config.txt

sudo nano /boot/config.txt

initramfs initrd.img-3.18.11-v7+

Setup loading of fbtft modules

sudo nano /etc/initramfs-tools/scripts/init-top/spi

#!/bin/sh

modprobe spi_bcm2835

Make the script executable:

sudo chmod +x /etc/initramfs-tools/scripts/init-top/spi

List fbtft modules

sudo nano /etc/initramfs-tools/modules

spi_bcm2835
fbtft
fbtft_device name=hy28a verbose=0
fb_ili9320

Plymouth

Tell plymouth to use /dev/fb1:

echo "export FRAMEBUFFER=/dev/fb1" | sudo tee /etc/initramfs-tools/conf.d/fb1

List plymouth themes

$ plymouth-set-default-theme --list
details
fade-in
glow
joy
script
solar
spacefun
spinfinity
spinner
text

Set theme

sudo plymouth-set-default-theme joy

Update initramfs (add -v to get more info)

sudo update-initramfs -u

Add to /boot/cmdline.txt (all in one line)

fbcon=map:10 splash quiet plymouth.ignore-serial-consoles
Parameter                        | Description
---------------------------------|-----------------------------------------------
fbcon=map:10                     | Console: try /dev/fb1 first, then /dev/fb0
splash                           | Show splash
quiet                            | Don't show boot messages (errors will show)
plymouth.ignore-serial-consoles  |   

Reboot

Starting with a fresh RetroPie 3.7

Install Plymouth

sudo apt-get install plymouth plymouth-themes

Make initramfs

sudo update-initramfs -c -k $(uname -r)

Add Initramfs to config.txt

sudo nano /boot/config.txt
initramfs initrd.img-X.XX.XX+

Set theme

sudo plymouth-set-default-theme text

Update initramfs

sudo update-initramfs -u

Update commandline.txt

sudo nano /boot/cmdline.txt
fbcon=map:10 splash quiet plymouth.ignore-serial-consoles

TEST YOUR THEME: plymouthd

plymouth --show-splash

plymouth quit

plymouth-set-default-theme --list

Apply any Plymouth Changes: update-initramfs -u

Other Helpful Links:

http://raspberrypi.stackexchange.com/questions/37820/custom-splash-screen-on-raspbian-jessie

http://raspberrypi.stackexchange.com/questions/24900/plymouth-on-raspberry-pi