Project

General

Profile

How to activate splash screen

Added by Andri Haryono about 7 years ago

Hi everyone,

I found psplash in the root file system and currently able to modify the screen.
However, I can't activate it in the boot process. Can you please provide some hint how to do it?

regards,


Replies (4)

RE: How to activate splash screen - Added by Jonathan Cormier about 7 years ago

On the MDK 2014 filesystem, psplash is started first thing during rcS. I don't have my dev kit setup for a display right now so can't test that.

root@mityomapl138:~# ls -l /etc/rcS.d/
total 0
lrwxrwxrwx    1 root     root            17 Jan 13  2014 S01psplash -> ../init.d/psplash
lrwxrwxrwx    1 root     root            20 Jan 13  2014 S40networking -> ../init.d/networking
lrwxrwxrwx    1 root     root            17 Jan 13  2014 S43portmap -> ../init.d/portmap
root@mityomapl138:~# cat /etc/init.d/psplash 
#!/bin/sh 

if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
        echo "Boot splashscreen disabled" 
        exit 0;
fi

. /etc/init.d/functions
. /etc/default/psplash

case `machine_id` in
    "hp_ipaq_h3100"|"hp_ipaq_h3800") 
        PARAMS='-a 90' ;;
    "hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi)
        PARAMS='-a 270' ;;
esac

export TMPDIR=/mnt/.splash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k

/usr/bin/psplash $PARAMS &

# Timetrap against hanging with splash hiding console messages.
(sleep 120; psplash-write "QUIT") &
root@mityomapl138:~# cat /etc/default/psplash 
# Parameters to pass to psplash
PARAMS="" 

RE: How to activate splash screen - Added by Andri Haryono about 7 years ago

I found out that the psplash service in /lib/systemd/system is not available. so i make a psplash.service script

[Unit]
Description=Splash screen
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/usr/bin/psplash

[Install]
WantedBy=basic.target

Now the psplash is displayed. However, since the LCD wake up is processed at the end of boot up, it take around 10 second to display the splash screen.

How can we wake the LCD up early in the bootup process?

i tried to put the script in /etc/rcS.d/ but it is show up late.

RE: How to activate splash screen - Added by Jonathan Cormier about 7 years ago

The LCD requires the fpga to be programmed if your using a L138 with fpga. Perhaps that's whats holding the LCD off until end of boot.

    (1-4/4)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)