Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2004 13:03:12 +0100
From:      Melvyn Sopacua <freebsd-current@webteckies.org>
To:        current@FreeBSD.org
Subject:   Re: API to turn off the display
Message-ID:  <200401291303.20039.freebsd-current@webteckies.org>
In-Reply-To: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp>
References:  <200401272247.59306.freebsd-current@webteckies.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

--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 <jhb@FreeBSD.org> 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 <andy@siliconlandmark.com> 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--



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