Thread (4 messages) 4 messages, 3 authors, 2012-06-01

Re: [PATCH v2 resend] ACPI: generate wakeup events on fixed power button

From: Len Brown <lenb@kernel.org>
Date: 2012-06-01 17:20:55

On 05/28/2012 06:52 PM, Daniel Drake wrote:
On Thu, May 10, 2012 at 2:08 PM, Rafael J. Wysocki [off-list ref] wrote:
quoted
On Thursday, May 10, 2012, Daniel Drake wrote:
quoted
When the system is woken up by the ACPI fixed power button, currently there
is no way of userspace becoming aware that the power button was pressed.

OLPC would like to know this, so that we can respond appropriately.
For example, if the system was woken up by a network packet, we know
we can go back to sleep very quickly. But if the user explicitly woke the
system with the power button, we're going to want to stay awake for a
while.

The wakeup count mechanism seems like a good fit for communicating this.
Mark the fixed power button as wakeup-enabled, and increment its wakeup
counter when the system is woken with the power button. (The wakeup counter
is also incremented when the power button is pressed during system
operation; this is already handled by an existing acpi-button codepath).

Signed-off-by: Daniel Drake <redacted>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Rafael J. Wysocki <redacted>

Len, this looks like v3.5 material to me, any chance to pick it up?
Bump. Any news here? Would love to see it in 3.5.

it is in my tree via rafael's queue.

thanks,
-Len
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help