From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 27 17:45:30 2006 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 8FD3916A401 for ; Mon, 27 Mar 2006 17:45:30 +0000 (UTC) (envelope-from ben@bjencks.net) Received: from bjencks.net (hera.ST.HMC.Edu [134.173.60.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36E3A43D45 for ; Mon, 27 Mar 2006 17:45:29 +0000 (GMT) (envelope-from ben@bjencks.net) Received: (qmail 54190 invoked from network); 27 Mar 2006 17:45:29 -0000 Received: from wl-158.cine.hmc.edu (134.173.200.158) by hera.st.hmc.edu with QMQP; 27 Mar 2006 17:45:29 -0000 To: Norberto Meijome References: <20060327233509.22c4780d@localhost> From: Ben Jencks Date: Mon, 27 Mar 2006 09:45:27 -0800 In-Reply-To: <20060327233509.22c4780d@localhost> (Norberto Meijome's message of "Mon, 27 Mar 2006 23:35:09 +1000") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-mobile@freebsd.org Subject: Re: ACPI Suspend, devd and rc.suspend 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: Mon, 27 Mar 2006 17:45:30 -0000 Norberto Meijome writes: > Hi there, > machine : Thinkpad z60m, acpi.ko, acpi_ibm.ko loaded, 6.1 Prerelease > kernel and world as of yesterday. > > If I run zzz , /etc/rc.suspend is run. on resume, /etc/rc.resume is > executed. > > If I hit Fn-F4 ( == suspend event), the acpi sets the machine to > suspend mode, but /etc/rc.suspend is NOT executed, and neither > is /etc/rc.resume on resume. > > I don't know how to tell if devd catches the suspend event. I run it in > debug mode (devd -dD) but couldn't see anything other than all the > device motherboard's USB hubs being pulled off and added back in. > > I would love some enlightenment on this subject. In order to make this work on my T43p, I set dev.acpi_ibm.0.events=1, so that Fn-F4 generates an acpi_ibm event (which is handled by devd) rather than a suspend event (which tells the kernel to suspend straightaway). I have the block notify 10 { match "system" "ACPI"; match "subsystem" "IBM"; match "notify" "0x04"; action "/usr/sbin/zzz"; }; in my devd.conf, so that it calls zzz, which does the right thing. -Ben Jencks