Re: Script to check monitor blank state

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



On 25.05.2010 19:17, "Jérôme M. Berger" wrote:
> 	Here, "xset q" has a line that says: "Monitor is On". Couldn't you
> use that?
> 
> 		Jerome

Yes this seems actually very useful,
i had dpms inactive, but ScreenSaver blanking on.
Maybe someone knows what the difference between these two is all about.
It looks totally equal from the "outside" ;-)

Now that I activated dpms, there is this line indicating the state.

xset q | awk '{if (match($0,"Monitor is On")) {print "notblanked"}}'

I am going to use this little check for my script.

Thank you for your help!

Markus


[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