From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 14:23:30 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 EE9FE16A4CF for ; Wed, 28 Jan 2004 14:23:30 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF05243D45 for ; Wed, 28 Jan 2004 14:23:27 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.10/8.12.10) with ESMTP id i0SMNUUA067728; Wed, 28 Jan 2004 23:23:30 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.10/8.12.10/Submit) id i0SMNUmW067727; Wed, 28 Jan 2004 23:23:30 +0100 (CET) (envelope-from stijn) Date: Wed, 28 Jan 2004 23:23:30 +0100 From: Stijn Hoop To: Taku YAMAMOTO Message-ID: <20040128222330.GH25691@pcwin002.win.tue.nl> References: <200401272247.59306.freebsd-current@webteckies.org> <20040128.083215.114732225.imp@bsdimp.com> <20040128181110.GC775@laptop.lambertfam.org> <200401281319.02208.jhb@FreeBSD.org> <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rS8CxjVDS/+yyDmU" Content-Disposition: inline In-Reply-To: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! cc: freebsd-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 22:23:31 -0000 --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 29, 2004 at 06:07:27AM +0900, Taku YAMAMOTO wrote: > I wrote a driver that handles what John told. >=20 > http://access.cent.saitama-u.ac.jp/~taku/freebsd/acpi_vid-20031013.tar.gz > MD5 (acpi_vid-20031013.tar.gz) =3D adbfa6931e505544fb784e00c7b974e7 >=20 > This driver uses ACPI video extension to control display switching and > backlight brightness. So working ACPI is a requisition for this driver. >=20 > Whether it does or does not work depends heavily on how well the BIOS wri= tten, > however, I hope it worth trying. >=20 > Suggestions, working/not-working reports etc are very appreciated. I can compile & kldload this module just fine on a -CURRENT from this morni= ng, on a Dell D600 laptop. Output from 'sysctl hw.acpi.video' after loading the module: hw.acpi.video.crt0.active: 0 hw.acpi.video.lcd0.active: 0 hw.acpi.video.out0.active: 0 Which is not entirely correct because the LCD is certainly on & working :) This also is the initial state after a reboot or shutdown. When switching to sleep state S1 (by closing the lid) the display is not turned off automatically. However, I can switch off the LCD manually by doi= ng # sysctl hw.acpi.video.lcd0.active=3D1 # sysctl hw.acpi.video.lcd0.active=3D0 and I can subsequently restore it by (blindly) typing # sysctl hw.acpi.video.lcd0.active=3D1 Furthermore, when booted with an external monitor connected (but only then), the crt0 part also seems to work. And even although the laptop's shortcut k= ey for switching between LCD / CRT seems to disallow having both screens on at the same time, I can make that work by toggling the apropriate sysctls, so = it definitely appears to work! Unfortunately, I cannot test out0 right now. Thank you for this driver, I hope this report is of help. --Stijn --=20 The very powerful and the very stupid have one thing in common. Instead of altering their views to fit the facts, they alter the facts to fit their vi= ews =2E.. which can be very uncomfortable if you happen to be one of the facts = that needs altering. -- Doctor Who, "Face of Evil" --rS8CxjVDS/+yyDmU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFAGDZiY3r/tLQmfWcRAkBzAKCXM8NUzyXtE6svETyIOxJ78ovLlgCcDwpB GGt+vCS3Jq7+qH+Vxql9x5w= =Koe/ -----END PGP SIGNATURE----- --rS8CxjVDS/+yyDmU--