[ltp] T42 won't power off after shutdown/halt/poweroff

Jonas Schirmer linux-thinkpad@linux-thinkpad.org
Mon, 20 Sep 2004 14:44:57 +0200

 J.V. <linux-thinkpad@linux-thinkpad.org> wrote:
>Hi all,
>I'm having an issue that many people seem to be having as well but
>I'm having trouble finding a solution.
>I can't get the system to turn off after a shutdown -h, halt, init 0,
>or poweroff.  The screen turns off after a message displays about
>powering off but the fan is still spinning and unplugging the AC
>makes it beep.

I'm using the following patch:


--- linux-2.6.7.bak/drivers/acpi/sleep/poweroff.c	2004-06-16 07:20:04.000000000 +0200
+++ linux-2.6.7/drivers/acpi/sleep/poweroff.c	2004-06-17 19:44:49.000000000 +0200
@@ -9,11 +9,13 @@
 #include <linux/init.h>
 #include <acpi/acpi_bus.h>
 #include <linux/sched.h>
+#include <asm/apic.h>
 static void
 acpi_power_off (void)
 	printk("%s called\n",__FUNCTION__);
+	disable_local_APIC ();
 	/* Some SMP machines only can poweroff in boot CPU */
 	set_cpus_allowed(current, cpumask_of_cpu(0));

which corrects the problem. Fn-F3 doesn't work.