vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

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

Wed Dec 17, 2014 4:52 pm

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

vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

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

Thu Dec 18, 2014 8:45 pm

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

gkreidl
Posts: 6355
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

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

Thu Dec 18, 2014 9:03 pm

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.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

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

Thu Dec 18, 2014 9:47 pm

oh poo... nothings ever simple :)

User avatar
DougieLawson
Posts: 40126
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Thu Dec 18, 2014 10:02 pm

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:"
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

vectraboyv6
Posts: 43
Joined: Fri Aug 17, 2012 11:28 am

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

Fri Dec 26, 2014 9:50 pm

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

Return to “Raspberry Pi OS”