Touchscreen timeout

Get help for Volumio here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Touchscreen timeout

Postby peter366 » Tue Sep 26 2017 16:24

Hi all,
I use Volumio with Pi3, Hifiberry DAC+ and Waveshare 7" touch display. Everything works fine,
but I would like to disable the screensaver so that the display is on all the time.
I tried a number of workarounds I found on the web, but nothing works and the screen goes
black after some minutes (and comes up if I touch the screen).
Today I updated the software.
Is there anybody who was able to switch off this screensaver?
Any help is highly appreciated, thanks in advance.

peter
Random avatar
peter366
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Tue Sep 26 2017 16:08

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Touchscreen timeout

Postby GavThomson » Sun Oct 15 2017 19:57

Bumping this as would also like to keep my screen on all the time (until I turn it off).

Any help would be appreciated.

Rpi3 (Digione hat) Volumio 2 with reused 10" laptop screen.

Thanks
Gav
Random avatar
GavThomson
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Sun Oct 15 2017 19:53


Touchscreen timeout

Postby gkkpch » Tue Oct 17 2017 04:22

Note, this also removes the cursor, for that I installed unclutter
Code: Select all
sudo apt-get install unclutter

then edited /opt/volumiokiosk.sh
Code: Select all
Change line #1, replace "+dpms" by "-dpms"
Change line #2, replace "blank" by "off"
Remove line #3

then added the following line to the end of /etc/xdg/openbox/autostart
Code: Select all
@unclutter -idle 0


Tested with a 1080p monitor (TV) connected to a RPI3 and a Pine64 and with an Odroid VU7 (similar to waveio) connected to an Odroid C2.
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1623
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Touchscreen timeout

Postby GavThomson » Tue Oct 17 2017 17:39

gkkpch wrote:Note, this also removes the cursor, for that I installed unclutter
Code: Select all
sudo apt-get install unclutter

then edited /opt/volumiokiosk.sh
Code: Select all
Change line #1, replace "+dpms" by "-dpms"
Change line #2, replace "blank" by "off"
Remove line #3

then added the following line to the end of /etc/xdg/openbox/autostart
Code: Select all
@unclutter -idle 0


Tested with a 1080p monitor (TV) connected to a RPI3 and a Pine64 and with an Odroid VU7 (similar to waveio) connected to an Odroid C2.


Fantastic - worked like a charm!, thanks.
Random avatar
GavThomson
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Sun Oct 15 2017 19:53


Touchscreen timeout

Postby gkkpch » Tue Oct 17 2017 17:51

hope is there that it will be controlled by a plugin setting one day ;)
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1623
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


Touchscreen timeout

Postby paganini » Mon Sep 03 2018 12:41

Does this solution comply with the newly introduced system integration check during updates?
User avatar
paganini
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Fri Mar 17 2017 19:20


Touchscreen timeout

Postby gvolt » Mon Sep 03 2018 18:58

To me it looks as if just the folder "volumio" is checked with md5deep (line 260 in https://github.com/volumio/Volumio2/blob/master/app/plugins/system_controller/updater_comm/index.js). So guess (and hope) altering a file in /opt should be no problem.

Regarding unclutter: It is not needed. It suffices to open the file /lib/systemd/system/volumio-kiosk.service and append " -- -nocursor" to the line "ExecStart=/usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh" so it looks like
Code: Select all
ExecStart=/usr/bin/startx /etc/X11/Xsession /opt/volumiokiosk.sh -- -nocursor

I myself prefer to copy /lib/systemd/system/volumio-kiosk.service to /etc/systemd/system/volumio-kiosk.service
Code: Select all
cp -a /lib/systemd/system/volumio-kiosk.service /etc/systemd/system/volumio-kiosk.service

and alter the file in /etc/systemd/system/ which takes precendence over the same named file in /lib/systemd/system/. You can do this with nano or
Code: Select all
sed -i -e 's/\/opt\/volumiokiosk.sh/\/opt\/volumiokiosk.sh -- -nocursor/g' /etc/systemd/system/volumio-kiosk.service


P.S. The touch display plugin on github has already been updated accordingly but unfortunately that version of the plugin is not available in the plugin manager of the UI.
Random avatar
gvolt
Audiophile
Audiophile
 
Posts: 196
Joined: Fri Mar 02 2018 16:47


Touchscreen timeout

Postby paganini » Mon Sep 03 2018 20:16

Good to know, thank you very much for the explanation!
User avatar
paganini
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Fri Mar 17 2017 19:20


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest