Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760697AbaJ3PIU (ORCPT ); Thu, 30 Oct 2014 11:08:20 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36518 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760670AbaJ3PIS (ORCPT ); Thu, 30 Oct 2014 11:08:18 -0400 X-Originating-IP: 83.155.44.161 Message-ID: <1414681655.2406.57.camel@hadess.net> Subject: Re: A desktop environment[1] kernel wishlist From: Bastien Nocera To: Andy Lutomirski Cc: Pavel Machek , "Theodore Ts'o" , John Stultz , Linux Kernel Mailing List Date: Thu, 30 Oct 2014 16:07:35 +0100 In-Reply-To: References: <1413881397.30379.7.camel@hadess.net> <1413911644.30379.12.camel@hadess.net> <1413914978.30379.14.camel@hadess.net> <20141027092804.GB9807@amd> <1414420292.30379.55.camel@hadess.net> <54513DDC.2020700@amacapital.net> <20141029202616.GC5000@thunk.org> <20141029211608.GA32576@amd> <1414680302.2406.55.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7 (3.12.7-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2014-10-30 at 07:53 -0700, Andy Lutomirski wrote: > On Thu, Oct 30, 2014 at 7:45 AM, Bastien Nocera wrote: > > On Wed, 2014-10-29 at 22:16 +0100, Pavel Machek wrote: > >> On Wed 2014-10-29 16:26:16, Theodore Ts'o wrote: > >> > On Wed, Oct 29, 2014 at 12:19:56PM -0700, Andy Lutomirski wrote: > >> > > For a tablet, isn't the relevant piece of information whether the power > >> > > button was recently pressed, not whether the power button caused the wakeup? > >> > > >> > For Android L devices, it has been reported that the device might > >> > power up its screen fully (note I didn't say 'wake up') automatically > >> > when it detects that you are picking it up, or when you double-tap the > >> > screen. It also reportedly has a low power black and white "ambient > >> > display" (ala the Android Wear devics) which allows you to see > >> > notifications without waking up the phone all the way[1]. (All of > >> > this assuming appropriate hardware support, of course.) > >> > > >> > [1] http://www.androidauthority.com/ambient-display-lollipop-541198/ > >> > > >> > Which goes back to the concept of having a "suspend" mode is legacy > >> > thinking. Modern devices will soon have not just a "awake" and a > >> > "asleep" modes; there will be (well, is now) a much wider spectrum of > >> > modes, with the goal of using the minimum amount of power while still > >> > providing use functionality to the user. > >> > >> Actually Maemo people (on Nokia N900 and friends) got it right: unlike > >> android devices, it does not suspend to RAM at any point, and still > >> has reasonable battery life. > > > > Android devices don't suspend to RAM. Neither do Tizen devices AFAIK. > > > >> So I agree -- using suspend to RAM on "active" cell phone is just a > >> bad design. > > > > I don't think anyone was discussing cell phones in particular in this > > thread, and knowing when user-space got woken up because of the baseband > > processor having information for us would still be useful. > > > > You still haven't addressed what problem this solves that isn't solved > by merely knowing whether the baseband processor has useful > information. We don't know that the baseband processor has useful information if we're not in the "path" for the interrupt that it would send. This event might end up dying somewhere inside the kernel for all we know. I've given the example of the Wi-Fi card, which definitely has multiple ways of being woken up, and doesn't export those in any way that user-space could use. -- 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/