Suspend/Resume not working on thinkpad T42

David Scheidt dscheidt at panix.com
Sun Jun 19 02:10:30 GMT 2005


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


More information about the freebsd-mobile mailing list