Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754985Ab0FDI4f (ORCPT ); Fri, 4 Jun 2010 04:56:35 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:61491 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753301Ab0FDI4d convert rfc822-to-8bit (ORCPT ); Fri, 4 Jun 2010 04:56:33 -0400 MIME-Version: 1.0 In-Reply-To: <20100604083423.GD15181@elte.hu> References: <20100603193045.GA7188@elte.hu> <20100603231153.GA11302@elte.hu> <20100603232302.GA16184@elte.hu> <20100604071354.GA14451@elte.hu> <20100604083423.GD15181@elte.hu> Date: Fri, 4 Jun 2010 01:56:33 -0700 Message-ID: Subject: Re: suspend blockers & Android integration From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Ingo Molnar Cc: tytso@mit.edu, Brian Swetland , Neil Brown , Thomas Gleixner , "Rafael J. Wysocki" , Alan Stern , Felipe Balbi , Peter Zijlstra , LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley , Linus Torvalds , Peter Zijlstra , Kevin Hilman , "H. Peter Anvin" , Arjan van de Ven Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1713 Lines: 39 On Fri, Jun 4, 2010 at 1:34 AM, Ingo Molnar wrote: > > * Arve Hj?nnev?g wrote: > >> > [...] >> > >> > Why do you need to track input wakeups? It's rather fragile and rather >> > unnecessary [...] >> >> Because we have keys that should always turn the screen on, but the problem >> is not specific to input events. If we enabled a wakeup event it usually >> means we need this event to always work, not just when the system is fully >> awake or fully suspended. > > Hm, i cannot follow that generic claim. Could you please point out the problem > to me via a specific example? Which task does what, what undesirable thing > happens where, etc. > We have many wakeup events, and some of them are invisible to the user. For instance on the Nexus One wake up every 10 minutes monitor the battery health. If the user presses a key right after this work has finished and we did not block suspend until userspace could process this key event, we risk suspending before we could turn the screen on, which to the user looks like the key did not work. Another example, the user pressed the power key which turns the screen off and allows suspend. We initiate suspend and a phone call comes in. If we don't block suspend until we processed the incoming phone call notification, the phone may never ring (some devices will send a new message every few seconds for this, so on those devices it would just delay the ringing). -- Arve Hj?nnev?g -- 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/