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: 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 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: <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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,...}