From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 13:07:38 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 8882B16A4CF for ; Wed, 28 Jan 2004 13:07:38 -0800 (PST) Received: from maestro.tackymt.homeip.net (dhcp-7.cent.saitama-u.ac.jp [133.38.4.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF29C43D1D for ; Wed, 28 Jan 2004 13:07:34 -0800 (PST) (envelope-from taku@cent.saitama-u.ac.jp) Received: from dhcp-7.cent.saitama-u.ac.jp (localhost [IPv6:::1]) i0SL7SSx040946 for ; Thu, 29 Jan 2004 06:07:29 +0900 (JST) (envelope-from taku@cent.saitama-u.ac.jp) Date: Thu, 29 Jan 2004 06:07:27 +0900 From: Taku YAMAMOTO To: freebsd-current@freebsd.org Message-Id: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> In-Reply-To: <200401281319.02208.jhb@FreeBSD.org> References: <200401272247.59306.freebsd-current@webteckies.org> <20040128.083215.114732225.imp@bsdimp.com> <20040128181110.GC775@laptop.lambertfam.org> <200401281319.02208.jhb@FreeBSD.org> Organization: Advanced Computer and Communication Studies Society X-Mailer: Sylpheed version 0.9.8a-gtk2-20040109 (GTK+ 2.2.4; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 21:07:38 -0000 Greetings, On Wed, 28 Jan 2004 13:19:02 -0500 John Baldwin wrote: > On Wednesday 28 January 2004 01:11 pm, Scott Lambert wrote: > > On Wed, Jan 28, 2004 at 08:32:15AM -0700, M. Warner Losh wrote: > > > In message: <20040128045816.Y1089@alpha.siliconlandmark.com> > > > > > > Andre Guibert de Bruet writes: > > > : 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(). > > > > > > My experience is that turning the display off via apm doesn't work on > > > many laptops :-(. > > > > Is there anything that does; other than closing the lid? > > Yes, there should be. ACPI has an entire set of methods devoted to manging > displays including turning the displays on and off. We just don't support > those yet. I wrote a driver that handles what John told. http://access.cent.saitama-u.ac.jp/~taku/freebsd/acpi_vid-20031013.tar.gz MD5 (acpi_vid-20031013.tar.gz) = adbfa6931e505544fb784e00c7b974e7 This driver uses ACPI video extension to control display switching and backlight brightness. So working ACPI is a requisition for this driver. Whether it does or does not work depends heavily on how well the BIOS written, however, I hope it worth trying. Suggestions, working/not-working reports etc are very appreciated. Sincerely, taku -- -|-__ YAMAMOTO, Taku | __ < Post Scriptum: Due to recent instability of our campus network, downloading may fail. Please try several times before giving it up if things didn't go well. Sorry for inconvinience.