Page 1 of 1

lxde :- screen to turn off after 10 mins not blank

Posted: Wed Dec 17, 2014 4:52 pm
by vectraboyv6
hi,

im planning to run a model a+ with a small 12" touch screen (via hdmi) to display a webpage on "frameless" chrome.

ive found that LXDE only blanks the screen after 10 mins but I really wanted it to put the monitor in to standby to save power and the back light after 10 mins.

does anyone know how I would go about this please?

thanks

Re: lxde :- screen to turn off after 10 mins not blank

Posted: Thu Dec 18, 2014 8:45 pm
by vectraboyv6
so found out that the raspbery pi cannot switch off a monitor correctly using dpms...

is this a old problem? the monitor im using turns off ok on a windows pc

thanks

Re: lxde :- screen to turn off after 10 mins not blank

Posted: Thu Dec 18, 2014 9:03 pm
by gkreidl
Search the forum for cec-client, You have to compile a version yourself (the repository version doesn't work for me). And you have to create your own script that runs in the background and turns the monitor into standby mode.

Re: lxde :- screen to turn off after 10 mins not blank

Posted: Thu Dec 18, 2014 9:47 pm
by vectraboyv6
oh poo... nothings ever simple :)

Re: lxde :- screen to turn off after 10 mins not blank

Posted: Thu Dec 18, 2014 10:02 pm
by DougieLawson
vectraboyv6 wrote:oh poo... nothings ever simple :)
cec-client is relatively easy.

But before you head down that track what happens if you simply use tvservice -o to disable the HDMI signal. Use tvservice -s to get status and tvservice -p to switch it back on in preferred mode.

Then install cec-client and try these
echo "on 0" | cec-client -s
echo "standby 0" | cec-client -s
echo "pow 0" | cec-client -s |grep "power status:"

Re: lxde :- screen to turn off after 10 mins not blank

Posted: Fri Dec 26, 2014 9:50 pm
by vectraboyv6
hi

the tvservice commands work brillantly so i install the cec stuff and its a no go, just sprouts aload of garbage out.

going to try and create a script, maybe python? to read the mouse movements and bash out the appropiate tvserve commands

(or borrow someone elses if all ready done :) )

thanks