Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757665Ab0FET4W (ORCPT ); Sat, 5 Jun 2010 15:56:22 -0400 Received: from ist.d-labs.de ([213.239.218.44]:50367 "EHLO mx01.d-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757009Ab0FET4U (ORCPT ); Sat, 5 Jun 2010 15:56:20 -0400 Date: Sat, 5 Jun 2010 21:56:04 +0200 From: Florian Mickler To: Felipe Contreras Cc: Peter Zijlstra , Arve =?ISO-8859-15?Q?Hj=F8nnev?= =?ISO-8859-15?Q?=E5g?= , Thomas Gleixner , "Rafael J. Wysocki" , Matthew Garrett , Alan Stern , Paul@smtp1.linux-foundation.org, LKML , felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM , Alan Cox Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Message-ID: <20100605215604.68efc4e5@schatten.dmk.lab> In-Reply-To: References: <201005302202.39511.rjw@sisk.pl> <201005312347.24251.rjw@sisk.pl> <1275471561.27810.30865.camel@twins> <1275474088.27810.31000.camel@twins> <20100602221309.6da754e7@schatten.dmk.lab> <1275550802.27810.34863.camel@twins> <20100603161205.73a2b56d@schatten.dmk.lab> <1275578881.27810.35995.camel@twins> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2553 Lines: 57 On Sat, 5 Jun 2010 20:30:40 +0300 Felipe Contreras wrote: > On Thu, Jun 3, 2010 at 6:28 PM, Peter Zijlstra wrote: > > On Thu, 2010-06-03 at 16:12 +0200, Florian Mickler wrote: > >> On Thu, 03 Jun 2010 09:40:02 +0200 > >> Peter Zijlstra wrote: > >> > >> > Fix the friggin apps, don't kludge with freezing. > >> > >> Of course programs should be as smart as possible. But that is an > >> orthogonal problem. > >> > >> Suppose firefox were fixed. It still needs to fetch my rss feeds every > >> minute, because I'm sad if it doesn't. It just can't be fixed at the > >> application level. > > > > Sure it can, why would it need to fetch RSS feeds when the screen is off > > and nobody could possible see the result? So you can stop the timer when > > you know the window isn't visible or alternatively when the screensaver > > is active, I think most desktops have notification of that as well. > > Exactly, and that's what applications in the N900 do. For this to work > reliably, you need these notifications (network disconnected, screen > off) to be easily accessible, and even transparent to the application > writer. > > I don't think the suspend blockers solve much. A bad application will > behave bad on any system. Suppose somebody decides to port Firefox to > Android, and forgets to listen to the screen off event (bad on Android > or Maemo), however, notices the application behaves very badly, so by > googling finds these suspend blockers, and enables them all the time > the application runs. > > When the user install the application, will be greeted by a warning > "This application might break PM, do you want to enable suspend > blockers?" (or whatever), as any typical user would do, will press Yes > (whatever). > > We end up in exactly the same situation. > No. The application will show up in the suspend blocker stats and the user will remember: "Oh, yes. There was a warning about that. Well I think I'm going to file a bug there." The only difference is, that with suspend blockers, he can than dismiss the applications permission to block suspend and will not miss his job interview the next day because his phones battery run out. And also he can use the application to a certain extent. Cheers, Flo -- 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/