[SOLVED] ODROID GameStation Turbo XU3/XU - Splash Screen

Very powerful gaming console solution based on Debian

Moderators: mdrjr, odroid

[SOLVED] ODROID GameStation Turbo XU3/XU - Splash Screen

Unread postby lukethor » Sun Apr 29, 2018 12:02 am

I would like to replace at booting time the text that appears during booting for a splash screen for the GameStation Turbo that appears in this topic:

https://forum.odroid.com/viewtopic.php?f=98&t=7322

Is this possible. I tried the steps mentioned in plymouth but no luck so far.


plymouth-set-default-theme -l
details
fade-in
glow
script
solar
spinfinity
spinner
text
tribar


plymouth-set-default-theme -R spinfinity


update-initramfs -u


https://wiki.debian.org/plymouth
lukethor
 
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4

Re: ODROID GameStation Turbo XU3/XU - Splash Screen

Unread postby meveric » Sun Apr 29, 2018 12:35 am

plymouth is not very good supported on ARM and might not work correctly.
I think there's a possibility to display a single image at boot time, or playing a short video as soon as the system is running.
But I haven't tried either yet.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9180
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: ODROID GameStation Turbo XU3/XU - Splash Screen

Unread postby lukethor » Sun Apr 29, 2018 10:27 am

May I get some pointers so I can research that possibility?
lukethor
 
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4

Re: ODROID GameStation Turbo XU3/XU - Splash Screen

Unread postby lukethor » Sun May 13, 2018 8:34 pm

Here is the solution to the splash screen:

Install fbi
Code: Select all
sudo apt-get install fbi


Next, create an init.d script called "asplashscreen" in "/etc/init.d/".

Code: Select all
#! /bin/sh
### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:     
# Default-Start:     S
# Default-Stop:
# X-Start-Before:    bootmisc
# 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

:





This line is important:

Code: Select all
# X-Start-Before:    bootmisc



Finally make the script executable and install it for init mode:

Code: Select all
chmod a+x /etc/init.d/asplashscreen

insserv /etc/init.d/asplashscreen

reboot
lukethor
 
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4

Re: ODROID GameStation Turbo XU3/XU - Splash Screen

Unread postby lukethor » Sun May 13, 2018 9:04 pm

If you need to get rid of all the messages at boot, just delete the console=tty1 from the /boot/boot.ini config file. Here is the boot.ini modified line that also avoids displaying the core logo at the top left corner


Code: Select all
#------------------------------------------------------------------------------------------------------
# Basic Ubuntu Setup. Don't touch unless you know what you are doing.
# --------------------------------



setenv bootrootfs "coherent_pool=2M console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repai
r=yes net.ifnames=0 quiet logo.nologo"


Also the timing to the display the splash the splash screen can be adjusted in the init.d script by adding the sleep command after running the fbi command. For example if you need to display the splash screen for 10 seconds then add sleep 10 to the procedure do_start():

Code: Select all
do_start () {

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

the fbi command is smart enough to determine in what frame buffer it needs to display the splash screen. Could you please post it as solved ?
lukethor
 
Posts: 43
Joined: Sat Mar 18, 2017 8:17 pm
languages_spoken: english
ODROIDs: ODROID XU4


Return to OGST-XU4

Who is online

Users browsing this forum: No registered users and 1 guest