screentimeout on 7'' RPi touchscreen

Get help for Volumio here!

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

screentimeout on 7'' RPi touchscreen

Postby vanwehaege » Wed Nov 09 2016 09:59

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?
2x RPi b+ Hifiberry dac+ in a i-dice
1x RPi b+ Hifiberry dac+ Kenwood amp
1x RPi3 Hifiberry amp in an old speakerset for outdoor use
1x RPi3 Hifiberry amp with 7'' screen for bedroom
Ticwatch2 smartwatch
LG Nexus 5x
User avatar
vanwehaege
Sunday DIYer
Sunday DIYer
 
Posts: 31
Joined: Tue Oct 14 2014 10:56
Location: Kruishoutem, Belgium

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


screentimeout on 7'' RPi touchscreen

Postby vanwehaege » Thu Nov 10 2016 06:55

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?
2x RPi b+ Hifiberry dac+ in a i-dice
1x RPi b+ Hifiberry dac+ Kenwood amp
1x RPi3 Hifiberry amp in an old speakerset for outdoor use
1x RPi3 Hifiberry amp with 7'' screen for bedroom
Ticwatch2 smartwatch
LG Nexus 5x
User avatar
vanwehaege
Sunday DIYer
Sunday DIYer
 
Posts: 31
Joined: Tue Oct 14 2014 10:56
Location: Kruishoutem, Belgium


screentimeout on 7'' RPi touchscreen

Postby richvintagesound » Sat Nov 12 2016 02:04

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.
Random avatar
richvintagesound
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Sun Oct 23 2016 22:42


screentimeout on 7'' RPi touchscreen

Postby vanwehaege » Sat Nov 12 2016 16:40

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...
2x RPi b+ Hifiberry dac+ in a i-dice
1x RPi b+ Hifiberry dac+ Kenwood amp
1x RPi3 Hifiberry amp in an old speakerset for outdoor use
1x RPi3 Hifiberry amp with 7'' screen for bedroom
Ticwatch2 smartwatch
LG Nexus 5x
User avatar
vanwehaege
Sunday DIYer
Sunday DIYer
 
Posts: 31
Joined: Tue Oct 14 2014 10:56
Location: Kruishoutem, Belgium


screentimeout on 7'' RPi touchscreen

Postby faity » Sun Nov 13 2016 19:15

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
Last edited by faity on Thu Dec 08 2016 19:56, edited 2 times in total.
Random avatar
faity
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Sun Nov 13 2016 18:56


screentimeout on 7'' RPi touchscreen

Postby vanwehaege » Mon Nov 14 2016 08:13

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...
2x RPi b+ Hifiberry dac+ in a i-dice
1x RPi b+ Hifiberry dac+ Kenwood amp
1x RPi3 Hifiberry amp in an old speakerset for outdoor use
1x RPi3 Hifiberry amp with 7'' screen for bedroom
Ticwatch2 smartwatch
LG Nexus 5x
User avatar
vanwehaege
Sunday DIYer
Sunday DIYer
 
Posts: 31
Joined: Tue Oct 14 2014 10:56
Location: Kruishoutem, Belgium


screentimeout on 7'' RPi touchscreen

Postby michelangelo » Mon Nov 14 2016 10:57

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
User avatar
michelangelo
Founder
 
Posts: 3934
Joined: Sun Dec 15 2013 23:18


screentimeout on 7'' RPi touchscreen

Postby voorstad » Mon Nov 14 2016 11:00

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?
Random avatar
voorstad
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Mon Dec 16 2013 08:08


screentimeout on 7'' RPi touchscreen

Postby andib » Thu Nov 17 2016 15:54

Thank you very much this helps me very much!
Random avatar
andib
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Wed Sep 17 2014 11:43


screentimeout on 7'' RPi touchscreen

Postby karsten-thiemann » Thu Nov 17 2016 18:43

worked for me - thank you for sharing :)
Random avatar
karsten-thiemann
Sunday DIYer
Sunday DIYer
 
Posts: 10
Joined: Mon Nov 14 2016 18:07

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests