RE: [patch] ACPI: kbd-pw-on/WOL don't work anymore since 2.4.14

Patrick Mochel (mochel@osdl.org)
Tue, 12 Mar 2002 12:40:01 -0800 (PST)


On Tue, 12 Mar 2002, Grover, Andrew wrote:

> > From: Mario 'BitKoenig' Holbe [mailto:Mario.Holbe@RZ.TU-Ilmenau.DE]
> > However, if someone of the ACPI developers or someone of the
> > patch-acceptors (:)) tells me 'do it, we'll patch it in', I'll do
> > it.
> > If it has no chance to get in, I wont do it - for me myself, my
> > patch is quite enough :)
>
> Basically we have to disable non-wake GPEs prior to sleeping - I agree with
> Pavel that this should not be a config option. The real problem is that the
> keyboard GPE should be flagged as a wake GPE, but it isn't yet.
>
> What needs to happen is, when we are entering a sleep state, we need to
> evaluate _PRW and _PSW objects for devices, and take the appropriate action
> - I would bet that a result of doing this would be that keyboard (WOL too?
> maybe) would be properly flagged as a wake device, so the call to that
> function would but turn off its GPE bit.

It seems like this would ideally be specified in the config file for the
power management agent. So, before the transition to sleep began, the
agent would enable those devices to wake the system (probably by writing a
value to a driverfs file).

The only thing is that you probably want all devices of a particular class
to wake a system - like all keyboards or all net devices. I don't know
what the config file format for ospmd looks like, but it might articulated
like:

/* devices to wake the system when we go to sleep */
wake {
keyboard
network
mouse
}

Right?

-pat

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/