NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-i386/40751: power button does not work after halt



ad%netbsd.org@localhost wrote:
How-To-Repeat:
type halt.
decide you want to power it off after all.
press power button, it doesn't work.

Does the attached patch help?
Index: amd64/amd64/machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/amd64/machdep.c,v
retrieving revision 1.127
diff -u -p -r1.127 machdep.c
--- amd64/amd64/machdep.c       17 Feb 2009 01:39:25 -0000      1.127
+++ amd64/amd64/machdep.c       24 Feb 2009 23:23:28 -0000
@@ -714,6 +714,10 @@ haltsys:
 
        x86_broadcast_ipi(X86_IPI_HALT);
 
+#if NACPI > 0
+       AcpiDisable();
+#endif
+
        if (howto & RB_HALT) {
                printf("\n");
                printf("The operating system has halted.\n");
Index: i386/i386/machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.661
diff -u -p -r1.661 machdep.c
--- i386/i386/machdep.c 13 Feb 2009 22:41:02 -0000      1.661
+++ i386/i386/machdep.c 24 Feb 2009 23:23:28 -0000
@@ -944,6 +944,10 @@ haltsys:
 #endif
        }
 
+#if NACPI > 0
+       AcpiDisable();
+#endif
+
        if (howto & RB_HALT) {
                printf("\n");
                printf("The operating system has halted.\n");


Home | Main Index | Thread Index | Old Index