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
Adding this as a wish for 4.7, as 4.6 is API frozen.
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