Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2009 19:41:07 +0300
From:      Andriy Gapon <avg@freebsd.org>
To:        freebsd-acpi@freebsd.org
Subject:   Re: run resume code only for S1-S4 states
Message-ID:  <49F09A23.9080802@freebsd.org>
In-Reply-To: <20090422183214.1e3372c6@fabiankeil.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49F09A23.9080802>