Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jun 2005 22:10:29 -0400
From:      David Scheidt <dscheidt@panix.com>
To:        freebsd-mobile@freebsd.org
Subject:   Re: Suspend/Resume not working on thinkpad T42
Message-ID:  <20050618225151.GA23348@panix.com>
In-Reply-To: <20050617203137.4b4eb5f6.lists@yazzy.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050618225151.GA23348>