Skip to contentSkip to conversation

ACPI S1 and keyboard

DISCUSSION Pavel Machek 2 participants 2 messages Jul 11, 2001

lore
Share & tools
lore
#0 lore raw

Hi!

With latest ACPI and patrick's patches, S1 *somehow* works. I can enter it, and can exit it, userland is still alive, but all hardware devices are dead.

But patrick's code explicitely does not resume devices when returning from S1:

if (state > ACPI_SLEEP_S1)
pm_send_all(PM_RESUME,(void*)0);

Does that mean my hardware is buggy, or is something wrong with interrupts?

Pavel

Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
#1 lore raw
Quoted 11 lines · Pavel Machek

Hi!

With latest ACPI and patrick's patches, S1 *somehow* works. I can enter it, and can exit it, userland is still alive, but all hardware devices are dead.

But patrick's code explicitely does not resume devices when returning from S1:

if (state > ACPI_SLEEP_S1)
pm_send_all(PM_RESUME,(void*)0);

That's because none of the devices should be asleep in S1: it's "power-on" suspend, which means about the only thing that happens is the processor executes 'hlt'.

Quoted 2 lines

Does that mean my hardware is buggy, or is something wrong with interrupts?

Interrupts are enabled on the next line, and I can verify that it works here. ;) What type of system is it?

-pat