run resume code only for S1-S4 states

Andriy Gapon avg at freebsd.org
Thu Apr 23 16:41:11 UTC 2009


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


More information about the freebsd-acpi mailing list