From owner-freebsd-acpi@FreeBSD.ORG Wed Feb 1 04:22:53 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED74D16A420 for ; Wed, 1 Feb 2006 04:22:53 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E45B43D45 for ; Wed, 1 Feb 2006 04:22:53 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 16D8C16C155; Wed, 1 Feb 2006 05:22:52 +0100 (CET) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 088AC45F5D; Wed, 1 Feb 2006 05:22:52 +0100 (CET) Received: from wizard.sanskrit.local.net (dslb-084-058-033-020.pools.arcor-ip.net [84.58.33.20]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id E008316C155; Wed, 1 Feb 2006 05:22:51 +0100 (CET) Received: from wizard.sanskrit.local.net (localhost.sanskrit.local.net [127.0.0.1]) by wizard.sanskrit.local.net (8.13.5/8.13.5) with SMTP id k114N3ep038326; Wed, 1 Feb 2006 05:23:04 +0100 (CET) (envelope-from manfred.lotz@arcor.de) Date: Wed, 1 Feb 2006 05:22:58 +0100 From: Manfred Lotz To: Nate Lawson Message-Id: <20060201052258.d1026a6f.manfred.lotz@arcor.de> In-Reply-To: <43DFD03D.4020002@root.org> References: <20060120200410.a05870c1.manfred.lotz@arcor.de> <43D30F0F.3090703@root.org> <20060126143040.a6b1f796.manfred.lotz@arcor.de> <43D9201B.3010403@root.org> <20060131214210.81c53b6e.manfred.lotz@arcor.de> <43DFD03D.4020002@root.org> X-Mailer: Sylpheed version 2.2.0beta2 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: suspend/resume event X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 04:22:54 -0000 On Tue, 31 Jan 2006 13:01:49 -0800 Nate Lawson wrote: > Manfred Lotz wrote: > > Hmmh. I got compile errors then. However with hw.ata.atapi_dma set > > to 0 I could boot the 7.0 system and test it. > > > > First of all: Your code did work, i.e. the kern/power/resume event > > gets triggered and I could call a script. > > > > However, what confuses me is that the power button triggers > > the /etc/rc.resume in some cases (2. and 3. below) without using > > your code. > > > > 1. hw.acpi.sleep_button_state=S3 and no Button event > > in /etc/devd.conf > > > > When suspending (Fn-ESC) and resuming (Power button) > > neither /etc/rc.suspend nor /etc/rc.resume gets called. > > The kern/power/resume devd event should be delivered, no matter what > the mechanism used to suspend/resume. It should even work for apm, > if you were using that. > Sorry, I wasn't clear here. When I said "no Button event in devd.conf" I meant the event isn't captured in devd.conf. The event itself took place of course as could be seen by starting devd in debug mode. ... > > 3. hw.acpi.sleep_button_state=NONE and Button event > > in /etc/devd.conf is activated > > > > 3. seems to be the best option., > > I see no need for you to run rc.suspend. To restart moused, you just > need rc.resume. > I'm using rc.suspend to shutdown the wireless NIC iwi0. -- Manfred