Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758490AbZCAWy1 (ORCPT ); Sun, 1 Mar 2009 17:54:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755255AbZCAWyS (ORCPT ); Sun, 1 Mar 2009 17:54:18 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:45931 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754755AbZCAWyR (ORCPT ); Sun, 1 Mar 2009 17:54:17 -0500 Date: Sun, 1 Mar 2009 23:56:47 +0100 From: Pavel Machek To: Arve Hj?nnev?g Cc: "Rafael J. Wysocki" , Alan Stern , "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: <20090301225647.GE1961@elf.ucw.cz> References: <200902180022.00239.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. 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 Content-Length: 1328 Lines: 29 Hi! > >> > Phase 3: Probably explicit control left to open/close. > >> > >> While that's generally a good idea, it's important to recognize that > >> some devices should be runtime-suspended even while they are open. > > > > From the kernel side, yes (and that should be transparent to the user space > > having them open). By the user space, no. > > Allowing user space to suspend input devices while they are still open > is useful. The user-space code that reads from the input devices does > not need to know if the device is suspended or not, and the kernel > cannot auto suspend input devices based on inactivity. Actually, I'd like you to fix your userspace and close input devices when it does not need them. Given the way you control the platform it should not be that hard. I do not see why we'd want to invent new interface for "uhuh, I have opened the keyboard but I am not really interested in keys being pressed". 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/