Re: Script to check monitor blank state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, May 24, 2010 at 8:36 AM, Markus <markus@xxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux