Date: Tue, 8 Sep 2009 10:21:23 +0200 From: Lars Engels <lars.engels@0x20.net> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-mobile@freebsd.org Subject: Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg) Message-ID: <20090908082123.GR38884@e.0x20.net> In-Reply-To: <20090820081055.GA2962@current.Sisis.de> References: <20090820081055.GA2962@current.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--reI/iBAAp9kzkmX4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 20, 2009 at 10:10:55AM +0200, Matthias Apitz wrote: >=20 > Hello, >=20 > I'm running 8-CURRENT and Xorg on the above mentioned laptop. >=20 > I'd like to have powered off the display on Lid close, and powered on > again on open; I watched the devd(8) events in both cases: >=20 > close: > setting system=3DACPI > setting subsystem=3DLid > setting type=3D\_SB_.LID_ > setting notify=3D0x00 > Processing notify event > ... >=20 > open: > setting system=3DACPI > setting subsystem=3DLid > setting type=3D\_SB_.LID_ > setting notify=3D0x01 > Processing notify event > ... >=20 > but they are not estimated in /etc/devd.conf. Any hint for a good > devd.conf entry to make that working? Thx in advance >=20 > Btw: I don't want suspend/resume. Try this: notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action"$PATH_TO_YOUR_SCRIPT $notify"; }; And in your script you turn off the backlight with xbacklight -set 0 when notify is 0x00 and xbacklight -set 100 for 0x01. HTH Lars --reI/iBAAp9kzkmX4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkqmFAMACgkQKc512sD3afintACfa9QKipA41WQCny1CRpa+5FsZ Ui4AoKYRugaqJOujYkGbzfVbHPzSPLuA =UMRV -----END PGP SIGNATURE----- --reI/iBAAp9kzkmX4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090908082123.GR38884>