From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 26 19:16:35 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 3164716A420 for ; Thu, 26 Jan 2006 19:16:35 +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 B901243D55 for ; Thu, 26 Jan 2006 19:16:34 +0000 (GMT) (envelope-from nate@root.org) Received: from pimout7-ext.prodigy.net (pimout7-int.prodigy.net [207.115.4.147]) by ylpvm15.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k0QJGiEX001603 for ; Thu, 26 Jan 2006 14:16:45 -0500 X-ORBL: [71.139.97.200] Received: from [10.0.5.50] (ppp-71-139-97-200.dsl.snfc21.pacbell.net [71.139.97.200]) by pimout7-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id k0QJGRSD198342; Thu, 26 Jan 2006 14:16:32 -0500 Message-ID: <43D9201B.3010403@root.org> Date: Thu, 26 Jan 2006 11:16:43 -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> <43D30F0F.3090703@root.org> <20060126143040.a6b1f796.manfred.lotz@arcor.de> In-Reply-To: <20060126143040.a6b1f796.manfred.lotz@arcor.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Thu, 26 Jan 2006 19:16:35 -0000 Manfred Lotz wrote: > On Sat, 21 Jan 2006 20:50:23 -0800 > Nate Lawson wrote: > > >>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"; >>}; >> > > > Well, I had problems testing it. I actually have a 6.0 STABLE on my > Samsung and installed a small 7.0 current system. However, it didnī't > even boot with ACPI. It stumbles over acd0 where it is simply hanging > with timeout stuff or so. > > Could I possible copy some src files to my 6.0 system and rebuild a > kernel in order to test it? You can just download the patch and apply it to 6.0. It's only one file: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/subr_bus.c.diff?r1=text&tr1=1.189&r2=text&tr2=1.190 -- Nate