screensaver or APM control via commandline?

Matt Graham danceswithcrows at usa.net
Mon Mar 2 17:46:05 MST 2009


> 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 Display.
Or you could just do "xhost +local:", though that will cause paranoid
people to have a cow.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see




More information about the PLUG-discuss mailing list