Page 1 of 3

screentimeout on 7'' RPi touchscreen

PostPosted: Wed Nov 09 2016 09:59
by vanwehaege
i successfull installed the RPi 7'' touchscreen on my RPi3 Volumio2.

works fine. But there is no screensaver... the screen is always on.

is there a way to let volumio or the screen go to sleep?

screentimeout on 7'' RPi touchscreen

PostPosted: Thu Nov 10 2016 06:55
by vanwehaege
I think it would be great if someone could write some extra code, to let the screen go in powersave mode and just display the time. this would be a great feature for clockradio-DIY projects.

Can someone put me in the right direction to 'Putty SSH' in Volumio and play with some code?

screentimeout on 7'' RPi touchscreen

PostPosted: Sat Nov 12 2016 02:04
by richvintagesound
I'm in the same boat, right now. I'd be happy with a blank screen or even better some visualization effects like some of the old winamp plugins.

screentimeout on 7'' RPi touchscreen

PostPosted: Sat Nov 12 2016 16:40
by vanwehaege
for now i installed rasbian on the RPi, en running volumio webUI. After couple of minutes the RPi goes into sleepmode. one touch on the screen and there is volumio again...

screentimeout on 7'' RPi touchscreen

PostPosted: Sun Nov 13 2016 19:15
by faity
Just edit with following commands on the commandline

cd..
cd..
cd opt
sudo nano volumiokiosk.sh

Originaly it looks like this:

Code: Select all
#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
  /usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars  --kiosk --no-first-run  'http://localhost:3000'
done


edit the lines:

"xset -dpms" to "xset +dmps"
and
"xset s off" to "xset s blank"
and add the line
"xset dpms 0 0 120"

it should look like this:

Code: Select all
#!/bin/bash
xset +dpms
xset s blank
xset dpms 0 0 120
openbox-session &
while true; do
  /usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars  --kiosk --no-first-run  'http://localhost:3000'
done




save the changes and reboot the machine. After rebooting the screen schould turn off after a few minutes and turn back on on fingertip...

greetings from Austria

screentimeout on 7'' RPi touchscreen

PostPosted: Mon Nov 14 2016 08:13
by vanwehaege
Thx faity, i'll give this a try tonight.

Would it be to simplistic to set "xset s time" to display the current time at screentimeout?

i'm trying to use the screen as a clockradio in the bedroom.
So volumio control for all the RPi's and at night the time on the screen...

screentimeout on 7'' RPi touchscreen

PostPosted: Mon Nov 14 2016 10:57
by michelangelo
faity wrote:Just edit with following commands on the commandline

cd..
cd..
cd opt
sudo nano volumiokiosk.sh

Originaly it looks like this:

Code: Select all
#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
  /usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars  --kiosk --no-first-run  'http://localhost:3000'
done


edit the lines:

"xset -dpms" to "xset +dmps"
and
"xset s off" to "xset s blank"
and add the line
"xset 0 0 120"

it should look like this:

Code: Select all
#!/bin/bash
xset +dpms
xset s blank
xset 0 0 120
openbox-session &
while true; do
  /usr/bin/chromium-browser --disable-session-crashed-bubble --disable-infobars  --kiosk --no-first-run  'http://localhost:3000'
done




save the changes and reboot the machine. After rebooting the screen schould turn off after a few minutes and turn back on on fingertip...

greetings from Austria


Clever! What about helping via a Pull request? So everybody can have it

screentimeout on 7'' RPi touchscreen

PostPosted: Mon Nov 14 2016 11:00
by voorstad
Nice, having the same issue. i will test the screen timeout.

Second, It would be nice if we could set a screensaver with pictures to have a photo frame.

Suggestions?

screentimeout on 7'' RPi touchscreen

PostPosted: Thu Nov 17 2016 15:54
by andib
Thank you very much this helps me very much!

screentimeout on 7'' RPi touchscreen

PostPosted: Thu Nov 17 2016 18:43
by karsten-thiemann
worked for me - thank you for sharing :)