Skip to contentSkip to conversation

since 2.6.9 reboots instead of poweroff (solved)

DISCUSSION Bernard Blackham 1 participant 1 message Nov 22, 2004 4 messages not in the archive ACPI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 3 lines · Akos Maroy

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.

Signature · 1 line
 Bernard Blackham <bernard at blackham dot com dot au>
drivers/acpi/hardware/hwsleep.c renamed from drivers/acpi/hardware/hwsleep.c.orig +0 -5
@@ -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);