From owner-freebsd-acpi@FreeBSD.ORG Thu Apr 23 16:41:10 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3F28106566C for ; Thu, 23 Apr 2009 16:41:10 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3179A8FC3A for ; Thu, 23 Apr 2009 16:41:09 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA18923 for ; Thu, 23 Apr 2009 19:41:08 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <49F09A23.9080802@freebsd.org> Date: Thu, 23 Apr 2009 19:41:07 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org References: <49DB639A.4090504@icyb.net.ua> <49DCF5C2.60805@root.org> <49DDF906.8090400@icyb.net.ua> <49DF3CA4.1090309@freebsd.org> <49E4B2A7.3020302@freebsd.org> <49E61986.7040709@root.org> <49E8AED0.1090008@freebsd.org> <20090418125806.2a48b0a8@fabiankeil.de> <49E9FFB0.6090707@root.org> <49EC60C6.7000702@freebsd.org> <49EC9D2F.8080701@root.org> <49EDFBBA.1080504@freebsd.org> <20090422183214.1e3372c6@fabiankeil.de> In-Reply-To: <20090422183214.1e3372c6@fabiankeil.de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: run resume code only for S1-S4 states 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, 23 Apr 2009 16:41:11 -0000 on 22/04/2009 19:32 Fabian Keil said the following: > There were no other messages that seemed to be related to the problem. > I've never seen the problem on the system before, however I don't use > the power button that often. > > When the problem occurred, I tried the power button several times > but only got more of the messages. I waited a few minutes and finally > powered the system down with "shutdown -p now" which worked flawlessly. > Fabian, I realize that this is not much fun, but could you please apply the below patch on top of the previous patch and try to reproduce the problem? diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 6477125..0432fab 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2497,7 +2497,9 @@ acpi_EnterSleepState(struct acpi_softc *sc, int state) * Shut down cleanly and power off. This will call us back through the * shutdown handlers. */ + printf("acpi: S5 - before shutdown_nice"); shutdown_nice(RB_POWEROFF); + printf("acpi: S5 - after shutdown_nice"); return_ACPI_STATUS (AE_OK); } -- Andriy Gapon