From kde-hardware-devel Tue Nov 24 16:41:07 2009 From: Sebastian =?iso-8859-1?q?K=FCgler?= Date: Tue, 24 Nov 2009 16:41:07 +0000 To: kde-hardware-devel Subject: Re: [Kde-hardware-devel] Detecting when the computer gets back from Message-Id: <200911241741.07917.sebas () kde ! org> X-MARC-Message: https://marc.info/?l=kde-hardware-devel&m=125908089522866 On Tuesday 24 November 2009 17:02:21 Bruno Bigras wrote: > 2009/11/24 Sebastian Kügler : > > 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 _______________________________________________ Kde-hardware-devel mailing list Kde-hardware-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-hardware-devel