SnivyDroid
Posts: 6
Joined: Tue Oct 10, 2017 9:47 pm

How to make a splash screen last longer?

Thu Oct 12, 2017 12:25 pm

Ive gotten a splash screen to work on raspbian but it only lasts a couple seconds before it just switches back to the terminal with nothing happening because i cleaned the boot process.
How can i make the splash screen last through the rest of the boot process?

User avatar
topguy
Posts: 5569
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: How to make a splash screen last longer?

Thu Oct 12, 2017 2:04 pm

How did you make the splashscreen ?

SnivyDroid
Posts: 6
Joined: Tue Oct 10, 2017 9:47 pm

Re: How to make a splash screen last longer?

Thu Oct 12, 2017 9:58 pm

I first cleaned the boot process, so i edited my cmdline.txt file to look like this:

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty3 loglevel=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait logo.nologo quiet splash
Then I set up the splash screen this way first

Code: Select all

#! /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

:
its saved as /etc/init.d/asplashscreen
and to secure that it works, i also did this script too

Code: Select all

[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target

[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /opt/splash.png
StandardInput=tty
StandardOutput=tty

[Install]
WantedBy=sysinit.target
i saved it as /etc/systemd/system/splashscreen.service
Thats how i got the boot process to work.

User avatar
topguy
Posts: 5569
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: How to make a splash screen last longer?

Fri Oct 13, 2017 2:23 pm

First thing I would try is to spawn off the fbi process in the background and see what happens.

Code: Select all

    /usr/bin/fbi -T 1 -noverbose -a /etc/splash.png &
You might need find a way to kill this process later then in the boot.

SnivyDroid
Posts: 6
Joined: Tue Oct 10, 2017 9:47 pm

Re: How to make a splash screen last longer?

Fri Oct 13, 2017 10:53 pm

Nothing happens, it's just the same

SnivyDroid
Posts: 6
Joined: Tue Oct 10, 2017 9:47 pm

Re: How to make a splash screen last longer?

Fri Oct 13, 2017 11:12 pm

So I deleted splash screen.service because it actually did nothing. So what can I do with the asplashscreen script to make the splash last longer?

SnivyDroid
Posts: 6
Joined: Tue Oct 10, 2017 9:47 pm

Re: How to make a splash screen last longer?

Sun Oct 15, 2017 11:38 am

Bump I still don't know what to do

User avatar
topguy
Posts: 5569
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: How to make a splash screen last longer?

Sun Oct 15, 2017 3:59 pm

Debian has its own way of doing splash screens called Plymouth.

https://wiki.debian.org/plymouth
https://github.com/HerbFargus/Raspberry ... i/Plymouth

Maybe you have better luck with those.

PS!
Sending me PMs doesnt work, I'll answer if and when I feel have something to contribute.

Return to “Beginners”