Re: Suspend/Resume not working on thinkpad T42
David Scheidt <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 17, 2005 at 08:31:37PM +0200, Marcin Jessa wrote:
> I disabled it myself since I dont want my laptop to get suspended
> every time i close the screen. But I am curious about your devd trick.
>
in /etc/devd.conf:
notify 10 {
match "system" "ACPI";
match "subsystem" "Lid";
action "/etc/rc.lid $notify";
};
/etc/rc.lid can do pretty much anything you want. Mine is this:
#!/bin/sh
# deal with lid switch events
if [$1 = 0x00 ]; then
logger -t Lid Closed at `date`
acpiconf -s 3
else
logger -t Lid Opened at `date`
fi
David
--BA8CC43D1F.1119135113/mx1.FreeBSD.org--
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"