From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754885AbZBVODd (ORCPT ); Sun, 22 Feb 2009 09:03:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752071AbZBVODZ (ORCPT ); Sun, 22 Feb 2009 09:03:25 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58068 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbZBVODY (ORCPT ); Sun, 22 Feb 2009 09:03:24 -0500 Date: Sun, 22 Feb 2009 15:03:11 +0100 From: Pavel Machek To: Alan Stern Cc: "Rafael J. Wysocki" , Arve Hj?nnev?g , "Woodruff, Richard" , Arjan van de Ven , Kyle Moffett , Oliver Neukum , Benjamin Herrenschmidt , pm list , LKML , Nigel Cunningham , Matthew Garrett , mark gross , Uli Luckas , Igor Stoppa , Brian Swetland , Len Brown Subject: Re: [RFD] Automatic suspend Message-ID: <20090222140311.GF1387@ucw.cz> References: <200902191356.53584.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > Again, the decision to trigger automatic suspend has to be based on some > > well defined criteria and the (in)activity of devices seems to be one of them. > > I don't know what criteria the system monitor would use. It might have > to be platform-specific. The Android people seem to have a pretty good > idea of what criteria will work for them. > > Inactivity of devices isn't always a good criterion. There might be a > background task which wakes up every few seconds to do something as > long as the system is awake, thereby keeping some device always active. > The activity from this background task shouldn't prevent an auto-sleep. Then we'd need a interface to mark such background task... and what is reasonable use for such task, anyway? Either its job is neccessary, or it should not waste power. IOW maybe it is easier to eliminate such stuff? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html