Re: since 2.6.9 reboots instead of poweroff (solved)

Bernard Blackham
2004-11-22T15:55:37Z

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

On Sun, Nov 21, 2004 at 11:18:39AM +0100, Akos Maroy wrote:
> Bernard Blackham wrote:
> I commented the above out, and rebooted with that kernel, but the effect
> is the same - it reboots instead of powering off :(

Gah. What I said didn't actually make any sense - that code never
even gets called on shutdown.

Here is a workaround that works for me. It's not the correct the
solution, but probably suffices unless you want wakeup events which
are not the power button :)

Bernard.

--
Bernard Blackham <bernard at blackham dot com dot au>

[-- Attachment #2: acpi-reboot.diff --]
[-- Type: text/plain, Size: 510 bytes --]

--- linux-2.6.9/drivers/acpi/hardware/hwsleep.c.orig 2004-11-22 23:37:21.000000000 +0800
+++ linux-2.6.9/drivers/acpi/hardware/hwsleep.c 2004-11-22 23:37:28.000000000 +0800
@@ -299,11 +299,6 @@
}
acpi_gbl_system_awake_and_running = FALSE;

- status = acpi_hw_enable_all_wakeup_gpes (ACPI_ISR);
- if (ACPI_FAILURE (status)) {
- return_ACPI_STATUS (status);
- }
-
/* Get current value of PM1A control */

status = acpi_hw_register_read (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1_CONTROL, &PM1Acontrol);