turn monitor off and on

Alexander Kapps alex.kapps at web.de
Sat May 14 03:59:07 EDT 2011


On 14.05.2011 09:29, harrismh777 wrote:
> harrismh777 wrote:
>>>
>>> def turnOnMonitor():
>>> SC_MONITORPOWER = 0xF170
>>> win32gui.SendMessage(win32con.HWND_BROADCAST,
>>> win32con.WM_SYSCOMMAND, SC_MONITORPOWER, -1)
>
>
> Wonder what the equivalent of this is in Linux... ?

Probably xset dpms force {on,off,...}



More information about the Python-list mailing list