beandip408
Posts: 12
Joined: Wed Aug 02, 2017 4:48 am

Custom Splash Screen

Sun Nov 12, 2017 2:22 am

I followed this guide https://yingtongli.me/blog/2016/12/21/splash.html to create a custom splash screen and for the most part it works. My image loads for about one second and then i get the "Welcome to the Raspberry Pi Desktop Powered by Raspbian". is there a way to get rid of this screen on boot and show my image instead?

User avatar
DougieLawson
Posts: 42142
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Custom Splash Screen

Sun Nov 12, 2017 2:46 am

Try changing the image at: /usr/share/plymouth/themes/pix/splash.png
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

klricks
Posts: 8340
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: Custom Splash Screen

Sun Nov 12, 2017 2:47 am

The splash.png image is located at:
/usr/share/plymouth/themes/pix/

You can rename or delete the default image (splash.png) then copy your image to /usr/share/plymouth/themes/pix/ and then rename your image as splash.png

Note that your image is likely to be overwritten on a future update(s).

Since the splash screen is only displayed for a couple of seconds you might want to change the wallpaper image to your own image as well.
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.

beandip408
Posts: 12
Joined: Wed Aug 02, 2017 4:48 am

Re: Custom Splash Screen

Sun Nov 12, 2017 2:58 am

perfect. just what i was looking for. Thanks!

derykmarl
Posts: 9
Joined: Wed Dec 13, 2017 3:33 pm

Re: Custom Splash Screen

Fri Dec 15, 2017 9:13 am

Rather than overwrite the existing splash screen, which might be overwritten with the original again when there are updates, I think it best to create a new theme and switch Plymouth to using that. AFAIK, updates don't tend to delete anything in /usr/share (only overwrite) and not mess with changed files in /etc unless you ask them to. The themes are in /usr/share/plymouth/themes and are chosen in /etc/plymouth/plymouthd.conf - it's fairly self explanatory therefore how to create a new theme and use that.

In our case I need to be able to quickly set up a new Pi at any time so after creating the 1024x768 PNG and uploading it to some webspace (you could also use imgur) I have this script in my notes that I paste into Putty to quickly do all the changes. You'd just have to update the URL of the image, or transfer it across some other way.

Code: Select all

cd /usr/share/plymouth/themes
sudo cp -a pix mytheme
cd mytheme
sudo mv pix.plymouth mytheme.plymouth
sudo mv pix.script mytheme.script
sudo rm splash.png
sudo wget http://example.com/images/splash.png
sudo sed -i 's/pix/mytheme/g; s/Raspberry Pi/My/g' mytheme.plymouth
sudo sed -i 's/pix/mytheme/g' /etc/plymouth/plymouthd.conf
Basically you're just creating a new theme directory for "mytheme" based on the default "pix" theme, renaming the various files to match, changing the description from "Raspberry Pi Desktop Splash" to "My Desktop Splash" and updating the conf file to use it.

redroom
Posts: 4
Joined: Thu Apr 05, 2018 6:56 pm

Re: Custom Splash Screen

Thu Apr 05, 2018 7:04 pm

Hello,

I'm using the latest Rasbian x86.
I changed /usr/share/plymouth/themes/pix/splash.png with another 1024x768 png image but it does not change the startup splash screen at all.
Did I miss something ?

Thanks in advance for your help !

hilliardcole
Posts: 1
Joined: Fri Apr 06, 2018 5:02 pm

Re: Custom Splash Screen

Fri Apr 06, 2018 5:04 pm

I am having the same issue where the new splash image does not load at all. its the same size, file format, and almost identical file size. Did they change something with Raspbian Stretch on the RPi 3B+?

tvjon
Posts: 832
Joined: Mon Jan 07, 2013 9:11 am

Re: Custom Splash Screen

Sat Apr 07, 2018 5:40 pm

I find it easier to leave the original, & just copy png's to the folder, as per screenshot.

Next edit

pix.script

to activate the png required, commenting out any others, as in the other screenshot.

It doesn't matter what size png (within reason) as it will be scaled as can be seen by reading the rest of the file.

It works fine on a 3b+ so no changes required there.
Attachments
pix.script2.png
pix.script2.png (30.26 KiB) Viewed 65431 times
pix.script.png
pix.script.png (51.79 KiB) Viewed 65431 times

redroom
Posts: 4
Joined: Thu Apr 05, 2018 6:56 pm

Re: Custom Splash Screen

Tue Apr 10, 2018 6:00 am

Thank you, but did you try that on the latest Debian Stretch ?
I just tried, and I get the same result as before. I still got the "Welcome to raspberry pi desktop" splash screen, not my new image.

tvjon
Posts: 832
Joined: Mon Jan 07, 2013 9:11 am

Re: Custom Splash Screen

Tue Apr 10, 2018 7:41 am

redroom wrote:
Thu Apr 05, 2018 7:04 pm
..
I'm using the latest Rasbian x86.
...
I'm using it on various RPi boards, the latest which reports:


pi@s3:~ $ cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"


pi@s3:~ $ uname -a

Linux s3 4.14.33-v7+ #1108 SMP Mon Apr 9 17:42:29 BST 2018 armv7l GNU/Linux


pi@s3:~ $ vcgencmd version

Apr 9 2018 17:50:55
Copyright (c) 2012 Broadcom
version fd11c813c25906736dafc419898c082356d535cf (clean) (release)
pi@s3:~ $

redroom
Posts: 4
Joined: Thu Apr 05, 2018 6:56 pm

Re: Custom Splash Screen

Tue Apr 10, 2018 12:53 pm

Thanks,
Well I have the same version.
I searched for any other splash.png or similar size file on the system, and nothing... /usr/share/plymouth/themes/pix/splash.png seems to be the source.
It seems the splash screen is compiled in plymouth or something like that. Is there something else to perform after changing the image or editing the conf file ?
I thought my png was not in the right format (alpha channel or dpi...) so I just installed gimp, opened the /usr/share/plymouth/themes/pix/splash.png, painted over it, saved the image.
splash.png
splash.png (39.66 KiB) Viewed 65179 times
on reboot I still have the clean 'Welcome to pi desktop image' :(
I don't understand how it's working on your system and not mine...

uched41
Posts: 1
Joined: Wed Apr 11, 2018 12:35 pm

Re: Custom Splash Screen

Wed Apr 11, 2018 12:45 pm

hello guys the problem is that your splash display is disabled in your cmdline.txt file in the boot directory. open the cmdline file
sudo nano /boot/cmdline.txt

change 'console=tty1' to 'console=tty3,

and then add this line to the end, make sure everything is on the same line and the commands are seperated by space

splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global_cursor_default=0

redroom
Posts: 4
Joined: Thu Apr 05, 2018 6:56 pm

Re: Custom Splash Screen

Wed Apr 11, 2018 8:06 pm

Hello ! And thank you for your suggestion.
I had no cmdline.txt in my /boot directory.
I created one based on a pi filesystem containing :

Code: Select all

dwc_otg.lpm_enable=0 console=tty3 root=/dev/sda1 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global_cursor_default=0
It still didn't take into account my new png file.

Then I integrated it to /etc/default/grub :

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global_cursor_default=0"
I ran update-grub
I checked that it was really in the boot options upon restart.
I still get that damn raspberry on my splash screen !

klricks
Posts: 8340
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: Custom Splash Screen

Wed Apr 11, 2018 9:47 pm

redroom wrote:
Wed Apr 11, 2018 8:06 pm
..
I still get that damn raspberry on my splash screen !
You and other posters here are very confused....
The OP asked about Raspbian on a RASBERRY PI.
You are asking about the Raspbery Pi Desktop OS for PC and MAC. (Debian x86)
They are different OS.
There is a sub forum for Debian x86 where you should be asking... viewforum.php?f=116
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.

Return to “Raspberry Pi OS”