From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 21 09:57:21 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 D654716A41F for ; Sat, 21 Jan 2006 09:57:21 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3006143D45 for ; Sat, 21 Jan 2006 09:57:20 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 8F0C610440C; Sat, 21 Jan 2006 10:57:19 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 7E8AEBCE27; Sat, 21 Jan 2006 10:57:19 +0100 (CET) Received: from wizard.sanskrit.local.net (dslb-084-058-036-203.pools.arcor-ip.net [84.58.36.203]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 5DC59E1C4B; Sat, 21 Jan 2006 10:57:19 +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 k0L9vOh0040409; Sat, 21 Jan 2006 10:57:24 +0100 (CET) (envelope-from manfred.lotz@arcor.de) Date: Sat, 21 Jan 2006 10:57:19 +0100 From: Manfred Lotz To: Nate Lawson Message-Id: <20060121105719.2eb0c2f9.manfred.lotz@arcor.de> In-Reply-To: <43D13F8A.8000802@root.org> References: <20060120200410.a05870c1.manfred.lotz@arcor.de> <43D13F8A.8000802@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: Sat, 21 Jan 2006 09:57:21 -0000 On Fri, 20 Jan 2006 11:52:42 -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? > > That's an implementation problem. I think the right approach is to > add a resume notification to devd. That should be easy to do and I > may look into it this weekend if no one submits a patch first. > Thanks. From what you said and after googling I tried the following: I set: sysctl hw.acpi.lid_switch_state=NONE and added the following section at the end of /etc/devd.conf notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; created /etc/rc.lid: <------ snip ----------> #! /bin/sh LOGGER="/usr/bin/logger -t lid_switch -p user.notice" $LOGGER $1 <------ snip ----------> made it executable and restarted devd via /etc/rc.d/devd restart However after closing and then opening the lid nothing had happened. Any idea what I did wrong? -- Manfred