From mboxrd@z Thu Jan 1 00:00:00 1970 From: Len Brown Subject: Re: [PATCH v2 resend] ACPI: generate wakeup events on fixed power button Date: Fri, 01 Jun 2012 13:20:51 -0400 Message-ID: <4FC8F9F3.5000100@kernel.org> References: <20120509230843.C3EF79D401E@zog.reactivated.net> <201205102208.28013.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qa0-f46.google.com ([209.85.216.46]:57200 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759212Ab2FARUz (ORCPT ); Fri, 1 Jun 2012 13:20:55 -0400 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Daniel Drake Cc: "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, pgf@laptop.org, rui.zhang@intel.com On 05/28/2012 06:52 PM, Daniel Drake wrote: > On Thu, May 10, 2012 at 2:08 PM, Rafael J. Wysocki wrote: >> On Thursday, May 10, 2012, Daniel Drake wrote: >>> 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 >>> Acked-by: Zhang Rui >> >> Acked-by: Rafael J. Wysocki >> >> 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