[Kde-hardware-devel] Detecting when the computer gets back from suspend

Sebastian Kügler sebas at kde.org
Tue Nov 24 17:41:07 CET 2009


On Tuesday 24 November 2009 17:02:21 Bruno Bigras wrote:
> 2009/11/24 Sebastian Kügler <sebas at kde.org>:
> > The answer is: yes, we want that. It should come in  the form of a
> > signal. The specific use-case I have in mind is to update the clock
> > applet after resume. Currently, they stay out of sync for up to 59
> > seconds, post-suspend.
> >
> > Do you want to give hacking up a patch a try?
> 
> Sure, I just don't know where to start. Could it be done with HAL? any
> better backend?

I think HAL has such a signal. Otherwise, just emit after the call to HAL's suspend 
returns (unless it's sync, of course, in which case a QTimer::singleShot() could work 
as well (but is of course less reliable).
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9


More information about the Kde-hardware-devel mailing list