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

Matthias Apitz <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
El día Tuesday, September 08, 2009 a las 10:21:23AM +0200, Lars Engels escribió:

> > 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.

Thanks for your hint; I'm using since some time now:

cat /usr/local/etc/devd/lid.conf
#
# When the the Lid is open / closed ....
#
# <[email protected]>, August 2009
#
notify 10 {
        match "system"          "ACPI";
        match "subsystem"       "Lid";
        match "notify"          "0x00";
        action                  "/usr/local/bin/xset -display :0.0 s 1";
};
notify 10 {
        match "system"          "ACPI";
        match "subsystem"       "Lid";
        match "notify"          "0x01";
        action                  "/usr/local/bin/xset -display :0.0 s
120";
};

Thx

	matthias


-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[email protected]> - w http://www.unixarea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
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.