Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751976AbaKUTIp (ORCPT ); Fri, 21 Nov 2014 14:08:45 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46121 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751939AbaKUTIn (ORCPT ); Fri, 21 Nov 2014 14:08:43 -0500 Date: Fri, 21 Nov 2014 20:08:40 +0100 From: Pavel Machek To: Bastien Nocera Cc: John Stultz , Linux Kernel Mailing List Subject: Re: A desktop environment[1] kernel wishlist Message-ID: <20141121190839.GA26833@amd> References: <1413881397.30379.7.camel@hadess.net> <1413911644.30379.12.camel@hadess.net> <1413914978.30379.14.camel@hadess.net> <1414419579.30379.49.camel@hadess.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1414419579.30379.49.camel@hadess.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Mon 2014-10-27 15:19:39, Bastien Nocera wrote: > > Now, I do think knowing which IRQ did bring you out of suspend is > > useful, but mostly for power-debugging when you're trying to optimize > > battery life. But for userland logic, I think its far too prone to > > races. > > I also cannot know, from user-space, whether Wake-On-LAN, > Wake-On-Wireless-LAN, or the Wi-Fi card's "network proximity" triggered > coming out of suspend for example. > > I can certainly check for the status of the lid, but I wouldn't know > whether a button was pressed to turn the machine back on, as the > firmware would eat that. If the firmware eats that, I'd call it "firmware bug"... and if we could work around it by synthetizing button press, yes, we should do that. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/