[arch-general] Script to check monitor blank state
aaronmgriffin at gmail.com
Mon May 24 18:14:01 EDT 2010
On Mon, May 24, 2010 at 8:36 AM, Markus <markus at hackfleischeis.de> wrote:
> Hello everyone,
> i would like to write a little script, that suspends my computer
> if a few circumstances are met.
> One should be, that my screen should be blanked. I already did a google
> search on this, but i only found howtos of getting it to work / disable it.
> It looks like xset q does not print the actual state.
> Maybe there is a hook for screen blanking?
> I know this is not a arch specific question, but maybe someone can help me.
If this is X specific, you might want to drop to the C level - write
an app that uses a normal Xlib event loop, and catches all input
events (keyboard and mouse events). After a given timeout with no
input events, do your blanking / suspend
More information about the arch-general