From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 02:05:29 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC96A16A4CE for ; Wed, 28 Jan 2004 02:05:29 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D45043D31 for ; Wed, 28 Jan 2004 02:05:28 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) i0SA5GZV007468; Wed, 28 Jan 2004 05:05:16 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)i0SA5FZi007465; Wed, 28 Jan 2004 05:05:15 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Wed, 28 Jan 2004 05:05:14 -0500 (EST) From: Andre Guibert de Bruet To: Melvyn Sopacua In-Reply-To: <200401281010.41264.freebsd-current@webteckies.org> Message-ID: <20040128045816.Y1089@alpha.siliconlandmark.com> References: <200401272247.59306.freebsd-current@webteckies.org> <200401281010.41264.freebsd-current@webteckies.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: current@freebsd.org Subject: Re: API to turn off the display X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 10:05:30 -0000 On Wed, 28 Jan 2004, Melvyn Sopacua wrote: > On Wednesday 28 January 2004 05:07, Seth Chandler wrote: > > > > > >currently closing the lid doesn't properly turn off the display (when > > > running X it gets to console mode, but doesn't turn off completely). > > > > > >I'd like to get tackle this by hooking into devd until this hopefully is > > >resolved, but cannot find any information on a userland utility or system > > > API for the vga/syscons/screen drivers to accomplish that. > > > > > >Is there such a thing? > > It really depends on the video card you're using. If your laptop has a > > radeon, i suggest checking out radeontool from > > > > http://fdd.com/software/radeon/ > > Nope, I have an nvidia GeForce 4200Go. Is there really no generic hook for a > videocard/monitor to suspend/poweroff? How did apm handle this? Through functionality provided by the BIOS. A 30-second search through the source would have shown the answer in /usr/src/sys/i386/bios/apm.c:334 with apm_display(). Regards > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ >