From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Mickler Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) Date: Sat, 5 Jun 2010 22:01:43 +0200 Message-ID: <20100605220143.08774900@schatten.dmk.lab> References: <201005302202.39511.rjw@sisk.pl> <201005312347.24251.rjw@sisk.pl> <1275471561.27810.30865.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Felipe Contreras Cc: Arve =?ISO-8859-15?Q?Hj=F8nnev=E5g?= , Peter Zijlstra , 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 List-Id: linux-omap@vger.kernel.org On Sat, 5 Jun 2010 20:44:24 +0300 =46elipe Contreras wrote: > 2010/6/2 Arve Hj=F8nnev=E5g : > > 2010/6/2 Peter Zijlstra : > >> (and please don't mention @#$@ up x86 ACPI again, Intel knows, the= y're > >> fixing it, get over it already). > >> > > > > I don't think it is realistic to drop support for all existing hard= ware. >=20 > We are talking about mainline here, there's no support for suspend > blockers, so nothing is dropped. >=20 > In the mind of everybody, suspend blockers is for opportunistic > suspend, which only makes sense on sensible hw (not current x86). So > in the mind of everybody, x86 should be out of scope for the analysis > of suspend blockers. >=20 > Are you seriously suggesting that one of the strong arguments in favo= r > of suspend blockers is x86 usage (nobody agrees)? If not, then drop > it. I think they have an advantage over the 30-minute-screensaver-then-suspend that current desktops do. Because you can define what keeps the system up. I.e. the screensaver/powermanager is not limited to keyboard- and mouse-inactivity. > If I enable suspend blockers on my laptop, I have to modify my > user-space. Otherwise my system will behave horribly. >=20 In the simplest case you have a shell script which takes a suspend blocker and reads from stdinput. When you write "mem" to it, it releases the suspend blocker and acquires it back again. Voila, forced suspend reimplemented on top of opportunistic suspend. That wasn't hard, was it?=20 Cheers, =46lo =20