Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 23:23:30 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
Cc:        freebsd-current@freebsd.org
Subject:   Re: API to turn off the display
Message-ID:  <20040128222330.GH25691@pcwin002.win.tue.nl>
In-Reply-To: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040128222330.GH25691>