From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Jessen Subject: Re: Turning PC monitor on/off Date: Wed, 11 Oct 2006 12:02:04 +0200 Message-ID: <452CC11C.7040309@computer.org> References: <1160554317.4000.3.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: C programming list Raseel Bhagat wrote: > Hi > > On 10/11/06, Henry Margies wrote: >> Maybe it also helps to look at the sources of xset program of X11. >> >> xset dpms force off >> >> Turns off the monitor (until you press a key or so). > > But what if I'm not on the X-window ? > As in, I'm running this program from console, or one of the virtual > terminals ? You said you wanted to look at the code and xset is probably a good example. Whether it'll also work from the commandline with no active X system, that's for you to find out :-) /Per Jessen, Zurich