From owner-freebsd-current@FreeBSD.ORG Thu Jan 29 04:03:34 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 A60B516A4CF for ; Thu, 29 Jan 2004 04:03:34 -0800 (PST) Received: from sarevok.idg.nl (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F41443D54 for ; Thu, 29 Jan 2004 04:03:24 -0800 (PST) (envelope-from mdev@sarevok.idg.nl) Received: by sarevok.idg.nl (Postfix, from userid 100) id 3087DB82A; Thu, 29 Jan 2004 13:03:20 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: current@FreeBSD.org Date: Thu, 29 Jan 2004 13:03:12 +0100 User-Agent: KMail/1.5.94 References: <200401272247.59306.freebsd-current@webteckies.org> <200401281319.02208.jhb@FreeBSD.org> <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> In-Reply-To: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_IaPGAUCN4QH4cnX"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401291303.20039.freebsd-current@webteckies.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: Thu, 29 Jan 2004 12:03:34 -0000 --Boundary-02=_IaPGAUCN4QH4cnX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 28 January 2004 22:07, Taku YAMAMOTO wrote: > 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 write= s: > > > > : 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) =3D 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. Thank you very much for your work! I've tested this with lcd0 and toggeling sysctl's works correctly. It doesn= 't=20 get envoked on lid closure though. I've tried to debug this, but I only get a lot of noisy stuff and nothing I= =20 can relate to video or display objects. Could you advise on the preferred debug.acpi settings and what to look for? PS: On resume in X the display is all wrong (appr. 640 wide, and screen bot= tom=20 is in the middle), but this is an X problem most likely, with the nvidia=20 driver and the 1280x800 resolution. =2D-=20 Melvyn =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =46reeBSD sarevok.idg.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 18:= 01:18=20 CET 2004 =20 root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG = =20 i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --Boundary-02=_IaPGAUCN4QH4cnX Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAGPaIOv9JNmfFN5URAi4gAKCuIbO1Msimfkb2OrAvbKe9hTpOWACeMzsV cMrJc+gmfKclo8iQaAqdWb8= =E8eT -----END PGP SIGNATURE----- --Boundary-02=_IaPGAUCN4QH4cnX--