From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [RFC][PATCH 00/11] Android PM extensions Date: Mon, 2 Feb 2009 12:46:44 +0100 Message-ID: <20090202114644.GC4631@elf.ucw.cz> References: <20090130091139.GB7967@atrey.karlin.mff.cuni.cz> <200901301334.03007.u.luckas@road.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <200901301334.03007.u.luckas@road.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Uli Luckas Cc: swetland@google.com, linux-pm@lists.linux-foundation.org, Nigel Cunningham List-Id: linux-pm@vger.kernel.org On Fri 2009-01-30 13:34:02, Uli Luckas wrote: > On Friday, 30. January 2009, Pavel Machek wrote: > > > >> - The user-space input-event thread returns from read. It determines > > > >> that the key should not wake up the system, releases the > > > >> process-input-events wakelock and calls select or poll. > > > > > > > > This makes no sense. If the system wasn't asleep to begin with, how > > > > could the key wake it up? And if the system _was_ asleep to begin > > > > with, how could all of this happen without waking the system up? > > > > > > What I mean here is that the screen turns on and the system does not > > > immediately go back to sleep. The user-space framework has its own > > > idea of whether the system is awake or not. I can change this to > > > "fully wake up" or "turn on the screen". > > > > "turn on the screen", please. (But I still don't quite get it; screen > > should be at full control of userspace, so why is kernel interaction > > needed?) Pavel > > > Turning on the screen is only on thing userspace can do. What exactly happens > is beyon the scope of the kernel interface. > The right term is probably something like "break out of auto-suspend" or "wake > from auto suspend". I guess I'm missing big parts of the picture here. It would be nice to document how it all works together... somewhere. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html