Suspend and NetworkManager

Sjoerd Simons sjoerd at luon.net
Sun Jan 22 09:11:31 PST 2006


On Fri, Jan 13, 2006 at 08:59:05AM +0000, Richard Hughes wrote:
> On Thu, 2006-01-12 at 17:31 -0500, David Zeuthen wrote:
> > On Fri, 2006-01-13 at 08:12 +1000, Nigel Cunningham wrote:
> > > >  - NetworkManager to shut networking down
> > > >  - IRC / IM to log properly off
> > > >  - Nautilus to finish copying stuff to hotpluggable / removable drives
> > > >  - Abiword to quick-save all documents before letting go.
> > > 
> > > All those examples delay the suspend - I can fully understand and agree with 
> > > them, but how about the ACK/NAK bit? That was what caused me to stumble.
> > 
> > Oh, yea.. well.. maybe I wasn't clear.. I didn't mean an application
> > should be able to fully stop it.. only hint g-p-m that it needs more
> > time. It's up to g-p-m to decide whether or how long it decides to honor
> > the NAK... Hence the talk about the timeouts...
> > 
> > Btw, this is all me rambling.. and I do ramble a lot :-) ... we all need
> > to talk Richard into doing this as it's his call as the g-p-m
> > maintainer...
> 
> Sorry to come into the conversation late, been really busy.
> 
> With the suspend stuff, my only concern is: How long would an
> application have to delay the shutdown for? I mean if Abiword takes 1.05
> seconds to quicksave, and n-m takes about 0.2 seconds to disable the
> card, then why can't we just give the applications 2 seconds to do their
> thing, rather than asking all of them to define when they are done?

Because in some cases it could take more then 2 seconds ?...  Although a
hard-coded maximum timeout (say 30s) might be nice, just to ensure that it
actually wil go into suspend at some point. (If my powerbook is closed without
AC and not it suspend it will turn itself of after some time, so i really want
it to suspend before that whatever happens :)

Also it might be nice to show what the machine is waiting on (``Waiting on
abiword to save documents'')

  Sjoerd
-- 
Scientists are people who build the Brooklyn Bridge and then buy it.
		-- William Buckley


More information about the hal mailing list