Boot / Shutdown / Power Off splash screens #29

Closed
opened 2020-08-14 05:38:31 +00:00 by kemonine · 0 comments
Owner

Setup splash screens for boot / shutdown / poweroff ; See below for implementation ; need non-testing, commercial capable images (noun project?)

https://www.madebymany.com/stories/fun-with-systemd-running-a-splash-screen-shutting-down-screens-and-an-iot-product-service-with-python-on-raspberry-pi
https://yingtongli.me/blog/2016/12/21/splash.html
https://learn.adafruit.com/pitft-linux-python-animated-gif-player/python-code





cat > /etc/systemd/system/fim.service <<EOF
[Unit]
Description=fim slideshow
After=getty.target

[Service]
User=fim
ExecStartPre=/usr/bin/killall fim
ExecStart=/usr/local/bin/fim-slideshow.sh
Restart=always
RuntimeMaxSec=604800

[Install]
WantedBy=multi-user.target
EOF

cat > /etc/systemd/system/boot-logo.service <<EOF
[Unit]
Description=boot splash screen
DefaultDependencies=no
After=local-fs.target

[Service]
User=fim
ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/spinner.gif
Type=exec

[Install]
WantedBy=sysinit.target
EOF

cat > /etc/systemd/system/halt-logo.service <<EOF
[Unit]
Description=show image on starting shutdown
DefaultDependencies=no
Before=halt.target poweroff.target reboot.target shutdown.target

[Service]
User=fim
ExecStartPre=/usr/bin/killall fim
ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/spinner.gif
Type=exec

[Install]
WantedBy=halt.target poweroff.target reboot.target shutdown.target
EOF

cat > /etc/systemd/system/shutdown-logo.service <<EOF
[Unit]
Description=safe-to-power-off image
DefaultDependencies=no
After=umount.target
Before=final.target

[Service]
User=fim
ExecStartPre=/usr/bin/killall fim
ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/unplug.jpg
Type=exec

[Install]
WantedBy=halt.target halt.target poweroff.target reboot.target shutdown.target
EOF

systemctl daemon-reload
systemctl enable boot-logo.service
systemctl enable halt-logo.service
systemctl enable shutdown-logo.service
Setup splash screens for boot / shutdown / poweroff ; See below for implementation ; need non-testing, commercial capable images (noun project?) ``` https://www.madebymany.com/stories/fun-with-systemd-running-a-splash-screen-shutting-down-screens-and-an-iot-product-service-with-python-on-raspberry-pi https://yingtongli.me/blog/2016/12/21/splash.html https://learn.adafruit.com/pitft-linux-python-animated-gif-player/python-code cat > /etc/systemd/system/fim.service <<EOF [Unit] Description=fim slideshow After=getty.target [Service] User=fim ExecStartPre=/usr/bin/killall fim ExecStart=/usr/local/bin/fim-slideshow.sh Restart=always RuntimeMaxSec=604800 [Install] WantedBy=multi-user.target EOF cat > /etc/systemd/system/boot-logo.service <<EOF [Unit] Description=boot splash screen DefaultDependencies=no After=local-fs.target [Service] User=fim ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/spinner.gif Type=exec [Install] WantedBy=sysinit.target EOF cat > /etc/systemd/system/halt-logo.service <<EOF [Unit] Description=show image on starting shutdown DefaultDependencies=no Before=halt.target poweroff.target reboot.target shutdown.target [Service] User=fim ExecStartPre=/usr/bin/killall fim ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/spinner.gif Type=exec [Install] WantedBy=halt.target poweroff.target reboot.target shutdown.target EOF cat > /etc/systemd/system/shutdown-logo.service <<EOF [Unit] Description=safe-to-power-off image DefaultDependencies=no After=umount.target Before=final.target [Service] User=fim ExecStartPre=/usr/bin/killall fim ExecStart=/usr/bin/fim --verbose --no-commandline --no-history --device /dev/fb0 --vt 1 --execute-commands-early "clear" --execute-commands 'display;sleep "300";quit;' --autozoom /home/fim/unplug.jpg Type=exec [Install] WantedBy=halt.target halt.target poweroff.target reboot.target shutdown.target EOF systemctl daemon-reload systemctl enable boot-logo.service systemctl enable halt-logo.service systemctl enable shutdown-logo.service ```
kemonine added the
enhancement
label 2020-08-14 05:38:34 +00:00
kemonine added this to the Initial Stable Deployment milestone 2020-08-14 05:38:36 +00:00
kemonine self-assigned this 2020-08-14 05:38:39 +00:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PiFrame/piframe#29
No description provided.