From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Date: Thu, 27 May 2010 01:05:08 -0700 Message-ID: References: <1274482015-30899-1-git-send-email-arve@android.com> <201005242049.18920.rjw@sisk.pl> <87wrusvrqe.fsf@deeprootsystems.com> <201005250138.16293.rjw@sisk.pl> <1274863655.5882.4875.camel@twins> <1274867106.5882.5090.camel@twins> <20100526120242.5c9b73ad@schatten.dmk.lab> <20100526133721.602633b2@schatten.dmk.lab> <20100526142430.327ccbc4@schatten.dmk.lab> <20100526141612.3e2e0443@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Vitaly Wool Cc: Alan Cox , Florian Mickler , Peter Zijlstra , LKML , Paul@smtp1.linux-foundation.org, felipe.balbi@nokia.com, Linux OMAP Mailing List , Linux PM List-Id: linux-omap@vger.kernel.org 2010/5/27 Vitaly Wool : > 2010/5/27 Arve Hj=F8nnev=E5g : >> On Wed, May 26, 2010 at 6:16 AM, Alan Cox = wrote: >>>> Really, what are you getting at? Do you deny that there are progra= ms, >>>> that prevent a device from sleeping? (Just think of the bouncing >>>> cows app) >>>> >>>> And if you have two kernels, one with which your device is dead af= ter 1 >>>> hour and one with which your device is dead after 10 hours. Which = would >>>> you prefer? I mean really... this is ridiculous. >>> >>> The problem you have is that this is policy. If I have the device w= ired >>> to a big screen and I want cows bouncing on it I'll be most upset i= f >>> instead it suspends. >> >> We never suspend when the screen is on. If the screen is off, I woul= d >> not be upset if it suspends. > > That's /wrong/. What if you have an active download ongoing when the > screen is off? This ugly simplistic approach is one of the worst > things in Android. On android we have code that blocks suspend while downloading. On non-android systems I have used if the download has not finished by the time the auto-sleep timeout kicks in, the system will suspend and the download halts. --=20 Arve Hj=F8nnev=E5g