Bug 265698

Summary: a suspending() dbus signal would be nice to complement resumingFromSuspend
Product: [Unmaintained] solid Reporter: Martin Bednar <martin+kde>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:

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