Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg)

Lars Engels <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkqmFAMACgkQKc512sD3afintACfa9QKipA41WQCny1CRpa+5FsZ
Ui4AoKYRugaqJOujYkGbzfVbHPzSPLuA
=UMRV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.