From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 27 16:33:35 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 BF49416A401 for ; Mon, 27 Mar 2006 16:33:35 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B72E43D5C for ; Mon, 27 Mar 2006 16:33:31 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Mon, 27 Mar 2006 08:33:26 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D0FFF45047; Mon, 27 Mar 2006 08:33:26 -0800 (PST) To: Norberto Meijome In-reply-to: Your message of "Mon, 27 Mar 2006 23:35:09 +1000." <20060327233509.22c4780d@localhost> Date: Mon, 27 Mar 2006 08:33:26 -0800 From: "Kevin Oberman" Message-Id: <20060327163326.D0FFF45047@ptavv.es.net> Cc: freebsd-mobile@freebsd.org 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 16:33:35 -0000 > Date: Mon, 27 Mar 2006 23:35:09 +1000 > From: Norberto Meijome > Sender: owner-freebsd-mobile@freebsd.org > > 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 HEAD, devd should be firing off rc.resume, but the problem is in the suspend side. When triggered by Fn-F4, there is no way to be sure that rc.suspend is complete before the system halts. zzz (or acpiconf -s3) will complete rc.suspend before actually telling the system to suspend. On the other hand, Fn-F4 immediately starts the suspend sequence. While I believe that it can be set to wait for a specific period before suspending, I don't think that there is any way to assure that anything completes. njl@ or Bruno Ducrot would know more about the details. This has been discussed in the past; probably in acpi@. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634