Screen Saver issues (GPIO button)

Is it possible to have the screen wake up if a GPIO button is pressed?

In case you are using the Touch Display plugin: The plugin wakes up the screen when the playing state of Volumio is changed from “stop” or “pause” to “play”. So if the GPIO button controls the play function the screen should wake up accordingly. Besides that the screen wakes up on keyboard, touchscreen and mouse actions. So if you want to have a dedicated GPIO button for just waking up the screen independently from the playing state, you could use a script that is called when the GPIO button is pressed and that emulates a keyboard input (e.g. “Ctrl” or “Esc”).

Pressing my GPIO play/pause button does not wake the screen up. The music stops and starts but the screen remains blank. After googling, I added the below xset lines to /opt/volumiokiosk.sh but this made no difference.

xset +dpms xset s blank xset 0 0 120

The complete files is as follows

#!/bin/bash
while true; do timeout 3 bash -c “</dev/tcp/127.0.0.1/3000” >/dev/null 2>&1 && break; done
sed -i ‘s/“exited_cleanly”:false/“exited_cleanly”:true/’ /data/volumiokiosk/Default/Preferences
sed -i ‘s/“exit_type”:“Crashed”/“exit_type”:“None”/’ /data/volumiokiosk/Default/Preferences
xset +dpms xset s blank xset 0 0 120
openbox-session &
while true; do
/usr/bin/chromium-browser
–simulate-outdated-no-au=‘Tue, 31 Dec 2099 23:59:59 GMT’
–disable-pinch
–kiosk
–no-first-run
–noerrdialogs
–disable-3d-apis
–disable-breakpad
–disable-crash-reporter
–disable-infobars
–disable-session-crashed-bubble
–disable-translate
–user-data-dir=’/data/volumiokiosk’ http://localhost:3000
done

Just for interest I then tried to disable the screensaver/blank screen using

xset -dpms xset s off #xset 0 0 120

But this also did not work. Even with the 120 part commented out, the screen still switches of at 2min and then does not come back on unless I move the mouse.

Please provide some more information about your system:

  1. What Pi model do you use?
  2. What is your Volumio version?
  3. What is the version of the touch display plugin?
  4. What is the brand and exact model name of your screen?
  5. What software do you use to control Volumio’s play/pause function with the GPIO button?

Further more, please SSH into Volumio, remove your modifications from /opt/volumiokiosk.sh and (from the UI) stop the touch display plugin.

Then execute sudo journalctl -f and restart the touch display plugin. Watch the log while the plugin starts and also in the moment you press the GPIO button to start / pause playback. Post the log entries here or PM me with them.

Hi

Just for some background, this was all working with an installation that I did August 2018 so I know that the hardware does work.

  • What Pi model do you use? Raspberry PI 3
  • What is your Volumio version? 2.806 (downloaded and installed today)
  • What is the version of the touch display plugin? Display Touch 1.1.9
  • What is the brand and exact model name of your screen? ODROID-VU7 Plus (I found out the hard way that this is not compatible but as mentioned while the touch did not work, the screen saver issue was resolved in the past using " xset +dpms xset s blank xset 0 0 120"
  • What software do you use to control Volumio’s play/pause function with the GPIO button? GPIO button-listener plugin for Volumio2 0.8.1

volumio@volumio:/opt$ journalctl -f
– Logs begin at Thu 2020-09-17 05:56:00 UTC. –
Sep 17 07:26:34 volumio volumio[1319]: error: error
Sep 17 07:26:34 volumio volumio[1319]: error: error
Sep 17 07:26:34 volumio volumio[1319]: error: error
Sep 17 07:26:36 volumio sudo[8528]: volumio : TTY=pts/0 ; PWD=/opt ; USER=root ; COMMAND=/usr/bin/nano /opt/volumiokiosk.sh
Sep 17 07:26:36 volumio sudo[8528]: pam_unix(sudo:session): session opened for user root by volumio(uid=0)
Sep 17 07:27:04 volumio wpa_supplicant[1197]: wlan0: WPA: Group rekeying completed with 24:a4:3c:03:ee:72 [GTK=CCMP]
Sep 17 07:27:16 volumio sudo[8528]: pam_unix(sudo:session): session closed for user root
Sep 17 07:27:24 volumio volumio[1319]: error: error
Sep 17 07:27:24 volumio volumio[1319]: error: error
Sep 17 07:27:25 volumio volumio[1319]: error: error
Sep 17 07:28:14 volumio volumio[1319]: error: error
Sep 17 07:28:15 volumio volumio[1319]: error: error
Sep 17 07:28:15 volumio volumio[1319]: error: error
Sep 17 07:28:28 volumio volumio[1319]: info: Disabling plugin touch_display
Sep 17 07:28:28 volumio volumio[1319]: info: Done.
Sep 17 07:28:28 volumio sudo[9210]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl stop volumio-kiosk.service
Sep 17 07:28:28 volumio sudo[9210]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 17 07:28:28 volumio systemd[1]: Stopping Volumio Kiosk…
Sep 17 07:28:28 volumio startx[1613]: xinit: connection to X server lost
Sep 17 07:28:28 volumio bluetoothd[1015]: Endpoint unregistered: sender=:1.19 path=/MediaEndpoint/A2DPSource
Sep 17 07:28:28 volumio bluetoothd[1015]: Endpoint unregistered: sender=:1.19 path=/MediaEndpoint/A2DPSink
Sep 17 07:28:28 volumio sudo[9208]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/sed -i -e /Option “TransformationMatrix”/d /etc/X11/xorg.conf.d/95-touch_display-plugin.conf
Sep 17 07:28:28 volumio sudo[9208]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 17 07:28:28 volumio sudo[9208]: pam_unix(sudo:session): session closed for user root
Sep 17 07:28:28 volumio volumio[1319]: info: touch_display: Touchscreen transformation matrix removed.
Sep 17 07:28:28 volumio startx[1613]: waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
Sep 17 07:28:29 volumio startx[1613]: xinit: unexpected signal 15
Sep 17 07:28:29 volumio systemd[1]: volumio-kiosk.service: main process exited, code=exited, status=1/FAILURE
Sep 17 07:28:29 volumio systemd[1]: Stopped Volumio Kiosk.
Sep 17 07:28:29 volumio systemd[1]: Unit volumio-kiosk.service entered failed state.
Sep 17 07:28:29 volumio sudo[9210]: pam_unix(sudo:session): session closed for user root
Sep 17 07:28:29 volumio volumio[1319]: info: touch_display: systemctl stop volumio-kiosk.service succeeded.
Sep 17 07:28:29 volumio volumio[1319]: info: touch_display: Volumio Kiosk stopped
Sep 17 07:28:35 volumio volumio[1319]: info: Enabling plugin touch_display
Sep 17 07:28:35 volumio volumio[1319]: info: Loading plugin “touch_display”…
Sep 17 07:28:35 volumio volumio[1319]: info: Applying required configuration parameters for plugin touch_display
Sep 17 07:28:35 volumio volumio[1319]: info: PLUGIN START: touch_display
Sep 17 07:28:35 volumio volumio[1319]: info: Loading i18n strings for locale en
Sep 17 07:28:35 volumio sudo[9271]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl daemon-reload
Sep 17 07:28:35 volumio sudo[9271]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 17 07:28:35 volumio systemd[1]: Reloading.
Sep 17 07:28:35 volumio systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue ‘ProtectKernelTunables’ in section ‘Service’
Sep 17 07:28:35 volumio systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue ‘ProtectControlGroups’ in section ‘Service’
Sep 17 07:28:35 volumio systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue ‘ProtectKernelModules’ in section ‘Service’
Sep 17 07:28:35 volumio systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue ‘RestrictNamespaces’ in section ‘Service’
Sep 17 07:28:35 volumio systemd[1]: Configuration file /lib/systemd/system/spop.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Sep 17 07:28:35 volumio systemd[1]: Configuration file /lib/systemd/system/spop.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Sep 17 07:28:35 volumio sudo[9271]: pam_unix(sudo:session): session closed for user root
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: systemctl daemon-reload succeeded.
Sep 17 07:28:35 volumio sudo[9291]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl start volumio-kiosk.service
Sep 17 07:28:35 volumio sudo[9291]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 17 07:28:35 volumio systemd[1]: Starting Volumio Kiosk…
Sep 17 07:28:35 volumio systemd[1]: Started Volumio Kiosk.
Sep 17 07:28:35 volumio startx[9296]: X.Org X Server 1.18.4
Sep 17 07:28:35 volumio startx[9296]: Release Date: 2016-07-19
Sep 17 07:28:35 volumio startx[9296]: X Protocol Version 11, Revision 0
Sep 17 07:28:35 volumio startx[9296]: Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
Sep 17 07:28:35 volumio startx[9296]: Current Operating System: Linux volumio 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l
Sep 17 07:28:35 volumio startx[9296]: Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=600 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 splash quiet plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait bootdelay=5 logo.nologo vt.global_cursor_default=0 loglevel=0 snd-bcm2835.enable_compat_alsa=1 snd_bcm2835.enable_headphones=1
Sep 17 07:28:35 volumio startx[9296]: Build Date: 11 November 2016 11:59:59AM
Sep 17 07:28:35 volumio startx[9296]: xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support)
Sep 17 07:28:35 volumio startx[9296]: Current version of pixman: 0.32.6
Sep 17 07:28:35 volumio startx[9296]: Before reporting problems, check http://wiki.x.org
Sep 17 07:28:35 volumio startx[9296]: to make sure that you have the latest version.
Sep 17 07:28:35 volumio startx[9296]: Markers: (–) probed, (**) from config file, (==) default setting,
Sep 17 07:28:35 volumio startx[9296]: (++) from command line, (!!) notice, (II) informational,
Sep 17 07:28:35 volumio startx[9296]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Sep 17 07:28:35 volumio startx[9296]: (==) Log file: “/var/log/Xorg.0.log”, Time: Thu Sep 17 07:28:35 2020
Sep 17 07:28:35 volumio startx[9296]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Sep 17 07:28:35 volumio startx[9296]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Sep 17 07:28:35 volumio startx[9296]: modprobe: FATAL: Module g2d_23 not found.
Sep 17 07:28:35 volumio sudo[9291]: pam_unix(sudo:session): session closed for user root
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: systemctl start volumio-kiosk.service succeeded.
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: Volumio Kiosk started
Sep 17 07:28:35 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: system , getConfigParam
Sep 17 07:28:35 volumio volumio[1319]: info: CoreCommandRouter::volumioGetState
Sep 17 07:28:35 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:28:35 volumio volumio[1319]: info: Done.
Sep 17 07:28:35 volumio volumio[1319]: info: CoreCommandRouter::volumioGetState
Sep 17 07:28:35 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: No Raspberry Pi Foundation touch screen detected.
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: Using Xserver unix domain socket /tmp/.X11-unix/X0
Sep 17 07:28:35 volumio sudo[9329]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/sed -i -e /Option “TransformationMatrix”/d /etc/X11/xorg.conf.d/95-touch_display-plugin.conf
Sep 17 07:28:35 volumio sudo[9329]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 17 07:28:35 volumio sudo[9329]: pam_unix(sudo:session): session closed for user root
Sep 17 07:28:35 volumio volumio[1319]: info: touch_display: Touchscreen transformation matrix removed.
Sep 17 07:28:36 volumio volumio[1319]: info: touch_display: Setting screensaver timeout to 120 seconds.
Sep 17 07:28:36 volumio pulseaudio[9404]: Stale PID file, overwriting.
Sep 17 07:28:36 volumio pulseaudio[9404]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
Sep 17 07:28:36 volumio pulseaudio[9404]: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally without any error message
Sep 17 07:28:36 volumio pulseaudio[9404]: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method “GetProperties” with signature “” on interface “org.bluez.Manager” doesn’t exist
Sep 17 07:28:36 volumio bluetoothd[1015]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSource
Sep 17 07:28:36 volumio bluetoothd[1015]: Endpoint registered: sender=:1.27 path=/MediaEndpoint/A2DPSink
Sep 17 07:28:45 volumio volumio[1319]: info: CoreCommandRouter::volumioGetState
Sep 17 07:28:45 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: multiroom , getMultiroom
Sep 17 07:28:46 volumio volumio[1319]: info: Listing playlists
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: appearance , getUiSettings
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: wizard , getShowWizard
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: system , getShowWizard
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: system , getPrivacySettings
Sep 17 07:28:46 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: my_volumio , getMyVolumioStatus
Sep 17 07:29:04 volumio volumio[1319]: error: error
Sep 17 07:29:04 volumio volumio[1319]: error: error
Sep 17 07:29:04 volumio volumio[1319]: error: error
Sep 17 07:29:15 volumio volumio[1319]: info: CoreCommandRouter::volumioGetState
Sep 17 07:29:15 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:15 volumio volumio[1319]: info: CoreCommandRouter::volumioPlay
Sep 17 07:29:15 volumio volumio[1319]: UNSET VOLATILE
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::play index undefined
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::setConsumeUpdateService undefined
Sep 17 07:29:15 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::startPlaybackTimer
Sep 17 07:29:15 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:15 volumio volumio[1319]: info: [1600327755577] ControllerSpop::clearAddPlayTrack
Sep 17 07:29:15 volumio volumio[1319]: info: {“service”:“spop”,“type”:“song”,“name”:“No Longer Slaves (Live)”,“title”:“No Longer Slaves (Live)”,“artist”:“Bethel Music”,“album”:“We Will Not Be Shaken (Live)”,“uri”:“spotify:track:63SF10lPoWA71bDYYzxfUs”,“samplerate”:“320Kbps”,“bitdepth”:“16 bit”,“trackType”:“spotify”,“albumart”:“https://i.scdn.co/image/ab67616d0000b273657b2d0d55d0df768c0eef8c","duration”:373}
Sep 17 07:29:15 volumio volumio[1319]: info: [1600327755578] ControllerSpop::sendSpopCommand
Sep 17 07:29:15 volumio volumio[1319]: info: ADDING DEFER FOR COMMAND uplay
Sep 17 07:29:15 volumio volumio[1319]: info:
Sep 17 07:29:15 volumio volumio[1319]: [1600327755795] ---------------------------- Spop announces state update
Sep 17 07:29:15 volumio volumio[1319]: info: [1600327755798] ControllerSpop::parseState
Sep 17 07:29:15 volumio volumio[1319]: info: [1600327755800] ControllerSpop::pushState
Sep 17 07:29:15 volumio volumio[1319]: info: CoreCommandRouter::servicePushState
Sep 17 07:29:15 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:15 volumio volumio[1319]: verbose: STATE SERVICE {“status”:“play”,“position”:0,“seek”:0,“duration”:374,“samplerate”:“320Kbps”,“bitdepth”:null,“channels”:null,“artist”:“Bethel Music, Melissa Helser, Jonathan David Helser”,“title”:“No Longer Slaves (Live)”,“album”:“We Will Not Be Shaken (Live)”}
Sep 17 07:29:15 volumio volumio[1319]: verbose: CURRENT POSITION 0
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::syncState stateService play
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::syncState currentStatus stop
Sep 17 07:29:15 volumio volumio[1319]: info: CoreStateMachine::pushState
Sep 17 07:29:15 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:15 volumio volumio[1319]: info: CoreCommandRouter::volumioPushState
Sep 17 07:29:15 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Sep 17 07:29:15 volumio volumio[1319]: info: [1600327755830] ------------------------------ 35ms
Sep 17 07:29:15 volumio volumio[1319]: info: FIRST BRANCH
Sep 17 07:29:15 volumio volumio[1319]: info: BEFORE: SPOP HAS 1 PROMISE IN STACK
Sep 17 07:29:15 volumio volumio[1319]: info: AFTER: SPOP HAS 0 PROMISE IN STACK
Sep 17 07:29:16 volumio kernel: pcm512x 1-004d: No SCLK, using BCLK: -2
Sep 17 07:29:18 volumio volumio[1545]: 2020-09-17 07:29:18 [SPTF] 07:29:18.821 I [file_streamer_simple.cpp:769] Request for file 8c354f51cb8cd639fe83ee5e849384364936afb2 complete (code: 0)
Sep 17 07:29:20 volumio volumio[1545]: 2020-09-17 07:29:20 [SPTF] 07:29:20.188 I [file_streamer_simple.cpp:769] Request for file 8c354f51cb8cd639fe83ee5e849384364936afb2 complete (code: 0)
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::volumioGetState
Sep 17 07:29:23 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::volumioPause
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::pause
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::stPlaybackTimer
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::servicePause
Sep 17 07:29:23 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::servicePause
Sep 17 07:29:23 volumio volumio[1319]: info: [1600327763062] ControllerSpop::pause
Sep 17 07:29:23 volumio volumio[1319]: info: [1600327763062] ControllerSpop::sendSpopCommand
Sep 17 07:29:23 volumio volumio[1319]: info: ADDING DEFER FOR COMMAND toggle
Sep 17 07:29:23 volumio volumio[1319]: info:
Sep 17 07:29:23 volumio volumio[1319]: [1600327763473] ---------------------------- Spop announces state update
Sep 17 07:29:23 volumio volumio[1319]: info: [1600327763475] ControllerSpop::parseState
Sep 17 07:29:23 volumio volumio[1319]: info: [1600327763477] ControllerSpop::pushState
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::servicePushState
Sep 17 07:29:23 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:23 volumio volumio[1319]: verbose: STATE SERVICE {“status”:“pause”,“position”:0,“seek”:7151,“duration”:374,“samplerate”:“320Kbps”,“bitdepth”:null,“channels”:null,“artist”:“Bethel Music, Melissa Helser, Jonathan David Helser”,“title”:“No Longer Slaves (Live)”,“album”:“We Will Not Be Shaken (Live)”}
Sep 17 07:29:23 volumio volumio[1319]: verbose: CURRENT POSITION 0
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::syncState stateService pause
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::syncState currentStatus pause
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::pushState
Sep 17 07:29:23 volumio volumio[1319]: info: CorePlayQueue::getTrack 0
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::volumioPushState
Sep 17 07:29:23 volumio volumio[1319]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Sep 17 07:29:23 volumio volumio[1319]: info: CoreStateMachine::stPlaybackTimer
Sep 17 07:29:23 volumio volumio[1319]: info: [1600327763493] ------------------------------ 20ms
Sep 17 07:29:23 volumio volumio[1319]: info: FIRST BRANCH
Sep 17 07:29:23 volumio volumio[1319]: info: BEFORE: SPOP HAS 1 PROMISE IN STACK
Sep 17 07:29:23 volumio volumio[1319]: info: AFTER: SPOP HAS 0 PROMISE IN STACK
Sep 17 07:29:23 volumio volumio[1319]: info: touch_display: Setting screensaver timeout to 120 seconds.

Just to confirm, my volumiokiosk.sh file is as follows:

#!/bin/bash
while true; do timeout 3 bash -c "</dev/tcp/127.0.0.1/3000" >/dev/null 2>&1 && break; done
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /data/volumiokiosk/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"None"/' /data/volumiokiosk/Default/Preferences
openbox-session &
while true; do
  /usr/bin/chromium-browser \
    --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
    --disable-pinch \
    --kiosk \
    --no-first-run \
    --noerrdialogs \
    --disable-3d-apis \
    --disable-breakpad \
    --disable-crash-reporter \
    --disable-infobars \
    --disable-session-crashed-bubble \
    --disable-translate \
    --user-data-dir='/data/volumiokiosk' http://localhost:3000
done

/opt/volumiokiosk.sh looks good.

Does the screensaver functionality work without using the GPIO button, i.e. if you operate Volumio from another device (PC, smartphone) by using the GUI play / pause button?

Thanks gvolt, you have helped me sort it out! Enabling “No screensaver while playing” fixed it i.e. if the screensaver kicks in, when I press the play GPIO it switches on again and then stays on as long as it plays.

TPlugin|690x324

Just for interest, here is the project that it is part of: https://www.instructables.com/id/Jukebox/

1 Like

Impressive work, looks excellent! :+1:

One hint regarding the modifications of /boot/config.txt: The hdmi* related changes could be placed in /boot/userconfig.txt instead. Using userconfig.txt has the advantage that this file remains untouched when Volumio gets updated. In contrast the /boot/config.txt file gets overwritten on each Volumio update (further information) and you would have to edit /boot/config.txt again.

Thanks for that. I have added your note to the project; will update properly once I get a chance to apply it myself. Indeed it is a much better approach :slight_smile: