2001-07-11 11:36:03

by Pavel Machek

[permalink] [raw]
Subject: ACPI S1 and keyboard

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
--
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]


2001-07-11 16:31:19

by Patrick Mochel

[permalink] [raw]
Subject: Re: ACPI S1 and keyboard


On Tue, 10 Jul 2001, Pavel Machek wrote:

> 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'.

> 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