From owner-freebsd-acpi@FreeBSD.ORG Sun Jan 22 04:50:11 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 9FE8316A420 for ; Sun, 22 Jan 2006 04:50:11 +0000 (GMT) (envelope-from nate@root.org) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F1E643D66 for ; Sun, 22 Jan 2006 04:50:07 +0000 (GMT) (envelope-from nate@root.org) Received: from pimout6-ext.prodigy.net (pimout6-int.prodigy.net [207.115.4.22]) by ylpvm15.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k0M4oGEX030935 for ; Sat, 21 Jan 2006 23:50:18 -0500 X-ORBL: [71.139.110.185] Received: from [10.0.0.115] (ppp-71-139-110-185.dsl.snfc21.pacbell.net [71.139.110.185]) by pimout6-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id k0M4o3aP042754; Sat, 21 Jan 2006 23:50:04 -0500 Message-ID: <43D30F0F.3090703@root.org> Date: Sat, 21 Jan 2006 20:50:23 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050723) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Manfred Lotz References: <20060120200410.a05870c1.manfred.lotz@arcor.de> In-Reply-To: <20060120200410.a05870c1.manfred.lotz@arcor.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Sun, 22 Jan 2006 04:50:11 -0000 Manfred Lotz wrote: > Hi there, > With my Samsung X20 1730 suspend /resume works fine when doing > acpiconf -s 3. I added /etc/rc.d/moused restart in /etc/rc.resume and > the touchpad mouse gets awake after resuming. That's great. > > However when closing the lid (I set hw.acpi.lid_switch_state=S3) and > then pressing the power button although suspend/resume works > fine the mouse won't get restarted. This means /etc/rc.resume and > presumably /etc/rc.suspend won't get called in this case. > > Same happen when pressing Fn-ESC the key for suspend. > > How can I make sure /etc/rc.suspend as well as /etc/rc.resuem gets > called in the "non-acpiconf" cases? Ok, I committed code to -current to provide a resume event and will mfc in a week or two. You can catch it in devd.conf with: notify 10 { match "system" "kern"; match "subsystem" "power"; match "type" "resume"; action "SOME SCRIPT"; }; -- Nate