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
[-- Attachment #1 --]
On Thu, Aug 20, 2009 at 10:10:55AM +0200, Matthias Apitz wrote:
>
> Hello,
>
> I'm running 8-CURRENT and Xorg on the above mentioned laptop.
>
> 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:
>
> close:
> setting system=ACPI
> setting subsystem=Lid
> setting type=\_SB_.LID_
> setting notify=0x00
> Processing notify event
> ...
>
> open:
> setting system=ACPI
> setting subsystem=Lid
> setting type=\_SB_.LID_
> setting notify=0x01
> Processing notify event
> ...
>
> but they are not estimated in /etc/devd.conf. Any hint for a good
> devd.conf entry to make that working? Thx in advance
>
> 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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
iEYEARECAAYFAkqmFAMACgkQKc512sD3afintACfa9QKipA41WQCny1CRpa+5FsZ
Ui4AoKYRugaqJOujYkGbzfVbHPzSPLuA
=UMRV
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090908082123.GR38884>
