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
The following reply was made to PR port-i386/40751; it has been noted by GNATS.
From: "Jared D. McNeill" <jmcneill%invisible.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-i386-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: port-i386/40751: power button does not work after halt
Date: Tue, 24 Feb 2009 18:24:02 -0500
This is a multi-part message in MIME format.
--------------050807020304030405040100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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?
--------------050807020304030405040100
Content-Type: text/plain;
name="pr40751.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pr40751.patch"
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");
--------------050807020304030405040100--
Home |
Main Index |
Thread Index |
Old Index