Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5348

Re: turn monitor off and on

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <alex.kapps@web.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.059
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; '>>>': 0.12; 'def': 0.13; 'wrote:': 0.14; '-1)': 0.16; 'message-id:@web.de': 0.16; 'xset': 0.16; 'header:In-Reply-To:1': 0.22; 'wonder': 0.24; 'equivalent': 0.26; 'probably': 0.30; 'from:addr:web.de': 0.31; 'to:addr:python- list': 0.32; 'force': 0.35; 'header:User-Agent:1': 0.35; 'to:addr:python.org': 0.39; 'received:de': 0.39; 'received:172.20': 0.73; 'subject:off': 0.73; 'sender:addr:web.de': 0.84
Date Sat, 14 May 2011 09:59:07 +0200
From Alexander Kapps <alex.kapps@web.de>
User-Agent Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
MIME-Version 1.0
To python-list@python.org
Subject Re: turn monitor off and on
References <mailman.1537.1305353327.9059.python-list@python.org> <VYpzp.28137$Vp.6741@newsfe14.iad> <r3qzp.174$cs1.146@newsfe15.iad> <2bqzp.1932$7N5.281@newsfe04.iad>
In-Reply-To <2bqzp.1932$7N5.281@newsfe04.iad>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Sender alex.kapps@web.de
X-Sender Alex.Kapps@web.de
X-Provags-ID V01U2FsdGVkX1+PelnY3T+mIl9CWA5gTbsTQusFYahHogARrtoW 6rO/OglfVFshcvWpQkHeIXUhZ5GTrf4VzzRLKNfRBTnGFqGvD5 oPNf4qNKA=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1540.1305359993.9059.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 82.94.164.166
X-Trace 1305359993 news.xs4all.nl 81482 [::ffff:82.94.164.166]:34573
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5348

Show key headers only | View raw


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,...}

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

turn monitor off and on Astan Chee <astan.chee@gmail.com> - 2011-05-14 16:08 +1000
  Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-14 02:13 -0500
    Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-14 02:20 -0500
      Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-14 02:29 -0500
        Re: turn monitor off and on Alexander Kapps <alex.kapps@web.de> - 2011-05-14 09:59 +0200
      Re: turn monitor off and on Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-14 07:43 +0000
        Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-14 03:05 -0500
      Re: turn monitor off and on Terry Reedy <tjreedy@udel.edu> - 2011-05-14 15:58 -0400
        Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-14 19:25 -0500
        Re: turn monitor off and on Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-05-16 12:00 +1200
          Re: turn monitor off and on harrismh777 <harrismh777@charter.net> - 2011-05-15 20:48 -0500

csiph-web