From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 27 21:24:46 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 8EDCF16A41F for ; Mon, 27 Mar 2006 21:24:46 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D03043D45 for ; Mon, 27 Mar 2006 21:24:46 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 25309 invoked from network); 28 Mar 2006 07:24:45 +1000 Received: from 210-84-39-124.dyn.iinet.net.au (HELO localhost) (210.84.39.124) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 Mar 2006 07:24:45 +1000 Date: Tue, 28 Mar 2006 07:24:40 +1000 From: Norberto Meijome To: freebsd-mobile@freebsd.org Message-ID: <20060328072440.2edc38a6@localhost> In-Reply-To: References: <20060327233509.22c4780d@localhost> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.16; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 21:24:46 -0000 On Mon, 27 Mar 2006 09:45:27 -0800 Ben Jencks wrote: > 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. > cool, that's EXACTLY what I was after :) thx man