From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761826AbYDNVVS (ORCPT ); Mon, 14 Apr 2008 17:21:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753801AbYDNVVE (ORCPT ); Mon, 14 Apr 2008 17:21:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:50028 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbYDNVVD (ORCPT ); Mon, 14 Apr 2008 17:21:03 -0400 Date: Mon, 14 Apr 2008 23:21:43 +0200 From: Pavel Machek To: Alan Stern Cc: David Brownell , benh@kernel.crashing.org, "Rafael J. Wysocki" , Greg KH , pm list , ACPI Devel Maling List , Len Brown , LKML , Alexey Starikovskiy , Oliver Neukum , Nigel Cunningham , Jesse Barnes , Andrew Morton Subject: Re: [PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks (rev. 8) Message-ID: <20080414212142.GC26246@elf.ucw.cz> References: <200804132147.03579.david-b@pacbell.net> 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.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2008-04-14 10:51:34, Alan Stern wrote: > On Sun, 13 Apr 2008, David Brownell wrote: > > > I sort of agree. Looking at it from a whole-system perspective, > > suspending needs to be able to chitchat with userspace ... and I > > don't think that can be done *before* writing to /sys/power/state > > in an acceptably generic/portable way. (Briefly, applications > > need to have clean stopping points and be able to arrange system > > wakeup. They may well have more work to do than most drivers.) > > Pavel's recent work aside, the only way to initiate a system sleep is > from userspace. So it seems natural for all application notifications > to be made by the initiating program, perhaps via dbus. Actually, my plan is to do without notifications. Userspace should tell kernel "I'm prepared, you can suspend any time now"... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html