From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Markus Rechberger" Subject: Re: Turning PC monitor on/off Date: Wed, 11 Oct 2006 12:20:45 +0200 Message-ID: References: <1160554317.4000.3.camel@localhost.localdomain> <452CC11C.7040309@computer.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <452CC11C.7040309@computer.org> Content-Disposition: inline Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Per Jessen Cc: C programming list Hi, first of all it might be useful how DPMS works, http://webpages.charter.net/dperr/dpms.htm Instead of using X you could try to use some kind of Vesa feature. Maybe your bios has a revealed interface in Linux for that feature too Markus On 10/11/06, Per Jessen wrote: > 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 > - > To unsubscribe from this list: send the line "unsubscribe > linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Markus Rechberger