screensaver or APM control via commandline?

2009-03-02 Thread Charles Jones
I have a linux laptop connected to a large screen display that shows informational items (what it is doesn't matter) that are only viewed from 7am-6pm. To conserve energy and reduce screen wear I would like for the display to go to sleep after the PC has been idle for X hours. The GUI

Re: screensaver or APM control via commandline?

2009-03-02 Thread Charles Jones
I think I figured it out (weird how anytime I ask a question I someone figure it out right afterwards). It looks like this will work: xset dpms force off # to turn off xset dpms force on # to turn on This worked from a shell, I don't know if it will work in cron or not.

Re: screensaver or APM control via commandline?

2009-03-02 Thread Matt Graham
xset dpms force off # to turn off This worked from a shell, I don't know if it will work in cron At the very least, you need to set DISPLAY to :0 , as cron jobs have a really limited set of environment variables. The cron job also must be running as the user who's currently using the X

Re: screensaver or APM control via commandline?

2009-03-02 Thread Charles Jones
Matt Graham wrote: xset dpms force off # to turn off This worked from a shell, I don't know if it will work in cron At the very least, you need to set DISPLAY to :0 , as cron jobs have a really limited set of environment variables. The cron job also must be running as the user who's