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 9: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.
>
> Markus
>

I don't actually have a script for this, although I may end up writing one
because I
want similar functionality (just after xx minutes, suspend, not on screen
blank).

But, what you can do is install xscreensaver.
xscreensaver-command -watch can be used to monitor the screen saver state
(which may be just blank your desktop) and thus control the script.


-- 
Alexander Lam


[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