From owner-freebsd-acpi@FreeBSD.ORG Thu Jan 26 19:32:04 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 B65CF16A422 for ; Thu, 26 Jan 2006 19:32:04 +0000 (GMT) (envelope-from nate@root.org) Received: from ylpvm12.prodigy.net (ylpvm12-ext.prodigy.net [207.115.57.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF2E943D6B for ; Thu, 26 Jan 2006 19:32:03 +0000 (GMT) (envelope-from nate@root.org) Received: from ylpvm01.prodigy.net (ylpvm01-int.prodigy.net [207.115.5.207]) by ylpvm12.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k0QJVwea021834 for ; Thu, 26 Jan 2006 14:31:59 -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 ylpvm01.prodigy.net (8.13.4 dk-milter linux/8.13.4) with ESMTP id k0QJW1WB032698; Thu, 26 Jan 2006 14:32:01 -0500 Message-ID: <43D923C3.1010709@root.org> Date: Thu, 26 Jan 2006 11:32:19 -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> <43D13F8A.8000802@root.org> <20060121105719.2eb0c2f9.manfred.lotz@arcor.de> <43D29A95.7070809@root.org> <20060122074911.9d7566fc.manfred.lotz@arcor.de> In-Reply-To: <20060122074911.9d7566fc.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: Thu, 26 Jan 2006 19:32:04 -0000 Manfred Lotz wrote: > On Sat, 21 Jan 2006 12:33:25 -0800 > Nate Lawson wrote: >>Manfred Lotz wrote: >>>However after closing and then opening the lid nothing had happened. >>> >>>Any idea what I did wrong? >> >>Nothing offhand. Try running devd manually with the -d flag so it >>won't go into the background and it will print the events on >>console. Then close/open the lid. > > > > -d flag helped. I just didn't wait long enough. It took almost > 12 seconds after closing the lid till the message showed up > in /var/log/messages. > > 12 seconds is a long time. Is there anything I can adjust to make it > shorter? Hmm, no idea what's causing that. We generate the printf and event on console as soon as the BIOS generates the interrupt so it's likely that the BIOS is delaying generating it until it's finished reinitializing after resume. Perhaps the patch I committed to -current will help because it unconditionally sends a resume event, independent of what the laptop does with the lid button. -- Nate