shutdown screen display

Raspberry Pi related support

Re: shutdown screen display

Postby hondagx35 » 17 Apr 2016, 12:11

Hi Ingo,

isn't that normal behavior? xset dpms only has influence to the Xserver, which is stopped during shutdown/reboot.

That is correct, but with the previous image the display stayed blank on shutdown.
With "setterm -blank force" you can turn off the console, but this doesn't work with shutdown script.

Shutting down rune should turn off the display.
But i'm a bit lost with this, so help would be great to point me to the right direction.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: shutdown screen display

Postby ingohz » 17 Apr 2016, 17:20

Frank,

did you try something like this from rune_shutdown? Just looked but couldn't find a "setterm" anywhere in the rune tree.

Code: Select all
setterm --term linux --blank force > /dev/tty0 < /dev/tty0
  • HiFi 1: Alix/voyage-mpd, MusicalFidelity M1 DAC (RP2/HifiBerry Digi+), Accuphase DP-67, Accuphase E-212, Infinity Kappa 8.2i
  • HiFi 2: RP2/7" Touchscreen/IQaudIO Pi-DAC+, Philips Fidelio X1
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: shutdown screen display

Postby ingohz » 21 Apr 2016, 08:22

What do you think of this: Video reboot RuneAudio ?

Thanks to Perjan for the bootsplash.
Attachments
splash.jpg
splash.jpg (17.95 KiB) Viewed 2263 times
  • HiFi 1: Alix/voyage-mpd, MusicalFidelity M1 DAC (RP2/HifiBerry Digi+), Accuphase DP-67, Accuphase E-212, Infinity Kappa 8.2i
  • HiFi 2: RP2/7" Touchscreen/IQaudIO Pi-DAC+, Philips Fidelio X1
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: shutdown screen display

Postby Dohmar » 21 Apr 2016, 08:58

Thats sweet! Perfect user experience, if we could null the raspberry square and keep it a black screen, it'd be perfect ;)

Any chance of this getting merged into main code branch?

-D
Dohmar
 
Posts: 79
Joined: 14 Mar 2016, 12:27

Re: shutdown screen display

Postby ingohz » 21 Apr 2016, 18:18

Dohmar wrote:Thats sweet! Perfect user experience, if we could null the raspberry square and keep it a black screen, it'd be perfect ;)

Any chance of this getting merged into main code branch?

-D


You can disable the rainbow splash by adding
Code: Select all
disable_splash=1

to /boot/config.txt
  • HiFi 1: Alix/voyage-mpd, MusicalFidelity M1 DAC (RP2/HifiBerry Digi+), Accuphase DP-67, Accuphase E-212, Infinity Kappa 8.2i
  • HiFi 2: RP2/7" Touchscreen/IQaudIO Pi-DAC+, Philips Fidelio X1
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: shutdown screen display

Postby hondagx35 » 21 Apr 2016, 18:26

Hi Ingo,

looks good.

A bit more information on how it is done would be nice.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: shutdown screen display

Postby ingohz » 21 Apr 2016, 21:10

hondagx35 wrote:A bit more information on how it is done would be nice.
Frank


This question I feared. So here is a (not so short) HOWTO. The installation of the splash is only suitable for experienced users. So be warned!

I didn't upgrade the package list (pacman -Syy). So I ran the pacman install commands, looked for the wanted package versions, downloaded and installed them manually (pacman -U <filename>)

Install mkinitcpio, unzip and lzop (don't know if needed)
Code: Select all
pacman -S mkinitcpio
pacman -S unzip
pacman -S lzop


Get, unzip, make and install a patched and RaspBerry-ready version of plymouth-lite from here.
Code: Select all
wget https://github.com/T4d3o/Plymouth-lite/archive/master.zip
unzip master.zip
cd Plymouth-lite-master
make && make install


Get @Perjan's bootsplash and save it to /usr/share/plymouth/runeaudio.png
Code: Select all
wget -O /usr/share/plymouth/runeaudio.png https://www.dropbox.com/s/id2vevgkfxnuas4/splash.png\?dl=0


Install plymouth-lite-start.service. Save this file as /usr/lib/systemd/system/plymouth-lite-start.service (Att.: The line ExecStart=... is a long line until EOF)
Code: Select all
[Unit]
Description=Show Plymouth-lite Start Screen
DefaultDependencies=no
After=systemd-vconsole-setup.service
Before=sysinit.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/echo 0 > /sys/class/graphics/fbcon/cursor_blink ; /usr/bin/echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink ; /usr/bin/chvt 7 ; /usr/bin/ply-image /usr/share/plymouth/runeaudio.png


Make it run on startup
Code: Select all
cd /usr/lib/systemd/system
chmod 644 plymouth-lite-start.service
cd sysinit.target.wants
ln -s ../plymouth-lite-start.service


Modify /usr/lib/initcpio/init to this on line 35 (aprox) only add ply-image line
Code: Select all
if [ -n "$earlymodules$MODULES" ]; then
    modprobe -qab ${earlymodules//,/ } $MODULES
fi

ply-image /usr/share/plymouth/runeaudio.png &> /dev/null

run_hookfunctions 'run_hook' 'hook' $HOOKS


Now modify the BINARIES and FILES section of /etc/mkinitcpio.conf to this
Code: Select all
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES="ply-image"

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES="/usr/share/plymouth/runeaudio.png"


Now run
Code: Select all
mkinitcpio -g /boot/initrd -v


Add this lines to /boot/config.txt
Code: Select all
#initramfs
initramfs initrd 0x00f00000

# Disable rainbow splash
disable_splash=1


Now you have to add "initrd=0x00f00000 quiet logo.nologo vt.cur_default=1" to /boot/cmdline.txt. Mine now looks like this:
Code: Select all
root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 kgdboc=ttyAMA0,115200 elevator=noop ipv6.disable=1 initrd=0x00f00000 quiet logo.nologo vt.cur_default=1


Add a call to ply-image to /var/www/command/rune_shutdown. Att: "/usr/bin/echo 0 ... /runeaudio.png" is ONE long line! The last lines of mine look like this:
Code: Select all
echo "Stop MPD and unmount shares..."
mpc stop
systemctl stop nginx
sleep 1
systemctl stop mpd
systemctl stop spopd
sleep 1
/usr/bin/echo 0 > /sys/class/graphics/fbcon/cursor_blink ; /usr/bin/echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink ; /usr/bin/chvt 7 ; /usr/bin/ply-image /usr/share/plymouth/runeaudio.png
#export DISPLAY=:0
#xset dpms force off
#sleep 1
umount -aft nfs
umount -aft cifs


Now cross fingers, reboot and have fun.
  • HiFi 1: Alix/voyage-mpd, MusicalFidelity M1 DAC (RP2/HifiBerry Digi+), Accuphase DP-67, Accuphase E-212, Infinity Kappa 8.2i
  • HiFi 2: RP2/7" Touchscreen/IQaudIO Pi-DAC+, Philips Fidelio X1
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: shutdown screen display

Postby trumpy81 » 18 Oct 2016, 00:22

I came across this thread and I thought I would give it a go on my spare RPi3. It works well on my Odroid thanks to Frank. ;)

Unfortunately, whenever I type in any of the following commands, all I get is a 404 error;

pacman -S mkinitcpio
pacman -S unzip
pacman -S lzop

Am I doing something wrong or are these files simply missing in action now?
Regards
Andy M

Raspberry Pi 3 Model B + 7" Touch Screen + ABS enclosure - Raspberry Pi 2 Model B + Wavshare 7" IPS + HiFiberry DAC+ Pro + Bicolor Case - Synology DS1813+ with 8 x 4TB
trumpy81
 
Posts: 31
Joined: 10 Sep 2016, 13:11

Re: shutdown screen display

Postby hondagx35 » 18 Oct 2016, 06:49

Hi Andy,

try
Code: Select all
pacman -Sy mkinitcpio
pacman -S unzip
pacman -S lzop


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: shutdown screen display

Postby trumpy81 » 18 Oct 2016, 08:46

Thanks Frank.

I got those commands working, but the following command failed;

make && make install
Code: Select all
gcc  `pkg-config --cflags libpng`  ply-image.c ply-frame-buffer.c -o ply-image  -lm `pkg-config --libs libpng`
/bin/sh: gcc: command not found
Makefile:3: recipe for target 'ply-image' failed
make: *** [ply-image] Error 127


Obviously I am missing gcc. I gather that is a compiler?

This command also failed;
Code: Select all
wget -O /usr/share/plymouth/runeaudio.png https://www.dropbox.com/s/id2vevgkfxnuas4/splash.png\?dl=0


I checked that address manually and it no longer has the image available.

Oh well, I will just have to wait until that Frank fella releases an image with it on already ... :lol:

And no, I'm not cracking the whip here, just sayin' :lol:

Thanks again Frank. :)
Regards
Andy M

Raspberry Pi 3 Model B + 7" Touch Screen + ABS enclosure - Raspberry Pi 2 Model B + Wavshare 7" IPS + HiFiberry DAC+ Pro + Bicolor Case - Synology DS1813+ with 8 x 4TB
trumpy81
 
Posts: 31
Joined: 10 Sep 2016, 13:11

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 14 guests