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

Lars Engels lars.engels at 0x20.net
Tue Sep 8 08:37:07 UTC 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mobile/attachments/20090908/c6473723/attachment.pgp


More information about the freebsd-mobile mailing list