From owner-freebsd-mobile@FreeBSD.ORG Sun Jun 19 02:10:30 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9459016A41C for ; Sun, 19 Jun 2005 02:10:30 +0000 (GMT) (envelope-from dscheidt@panix.com) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C09543D1F for ; Sun, 19 Jun 2005 02:10:30 +0000 (GMT) (envelope-from dscheidt@panix.com) Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mail3.panix.com (Postfix) with ESMTP id C006113A79F for ; Sat, 18 Jun 2005 22:10:29 -0400 (EDT) Received: (from dscheidt@localhost) by panix1.panix.com (8.11.6p3/8.8.8/PanixN1.1) id j5J2ATn04890 for freebsd-mobile@freebsd.org; Sat, 18 Jun 2005 22:10:29 -0400 (EDT) Date: Sat, 18 Jun 2005 22:10:29 -0400 From: David Scheidt To: freebsd-mobile@freebsd.org Message-ID: <20050618225151.GA23348@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050617203137.4b4eb5f6.lists@yazzy.org> User-Agent: Mutt/1.4.2.1i User-Agent: Mutt/1.4.2.1i Subject: Re: Suspend/Resume not working on thinkpad T42 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2005 02:10:30 -0000 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--