Bug 265698 - a suspending() dbus signal would be nice to complement resumingFromSuspend
Summary: a suspending() dbus signal would be nice to complement resumingFromSuspend
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 16:45 UTC by Martin Bednar
Modified: 2014-12-27 13:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bednar 2011-02-07 16:45:01 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

The same as upower implements a Sleeping() dbus signal, I think solid should implement such a signal. 
Use cases : clean disconnect from IRC (especially useful if not a registered user) and other IM at suspend, disconnect from IMAP. coupled with resumingFromSuspend(), suspend induced network timeout hangs would be history.

Reproducible: Always
Comment 1 Dario Freddi 2011-02-07 19:19:32 UTC
Adding this as a wish for 4.7, as 4.6 is API frozen.
Comment 2 Kai Uwe Broulik 2014-12-27 13:26:47 UTC
An "aboutToSuspend" signal has been added to PowerDevil 5.2 by [1], however you should rather use the logind interface, if available, since this signal gives no guarantee or control over how long it will take for the system to really suspend and your task might not have been completed by then.

[1] http://quickgit.kde.org/?p=powerdevil.git&a=commit&h=dca4260a735fe0492107fc6b11b1b71cbee4409b