Autosave D-BUS message?

David Zeuthen david at fubar.dk
Thu Jun 30 07:36:23 PDT 2005


Hi,

On Thu, 2005-06-30 at 11:36 +0200, Waldo Bastian wrote:
> > > What kind of preparations do we expect applications to take? Is there
> > > anything other than "The network is about to die"
> >
> > Unfortunately it's more like "the network just died" which makes it much
> > more difficult to for apps to cope with.
> 
> That depends when the application gets the message, no? If the application 
> gets the message when you are about to suspend, the network should  still be 
> there. For this to work the application must have the possibility to delay 
> the suspend somewhat till it is actually finished cleaning up, otherwise 
> there is the risk that the application ends up cleaning the connection when 
> it resumes instead of before the suspend.

That's right. Ideally it should handle both messages though ("just died"
and "about to die").

> > Well, some apps really don't want some transaction to be interrupted -
> > the CD burning example I gave in the other mail is valid I think.
> 
> Ideally you would want to alert the user to that situation and ask whether he 
> wants to continue with the suspend. (Similar to the situation when the user 
> would press "logout" and the session manager starts to clean up) However 
> there may be situations where there is no possibility to have 
> user-interaction (low-bat, lid closed), in that situation the suspend 
> shouldn't be delayed for a very long time and the CD burning should stop as 
> soon as possible.

Yup, however for the burn case I'm not sure it can be interrupted
without causing damage to the media. Ideally the cd burning application
just refuses to burn is battery is too low. This is pretty much
something to consider app by app, don't you think?

> Is there a wiki somewhere were the ideas from the BOF have been captured?
> 

Not that I know of. Suggest to email Matthew Garrett to make him put his
notes online. There may also be video archives of the BOF, haven't
checked.

> I think it's important to differentiate between "about to suspend" and "just 
> resumed" though.

Certainly.

Cheers,
David




More information about the dbus mailing list