[Kde-hardware-devel] Re: Any API to be notified when the system gets back from hibernation?

Lukáš Tinkl ltinkl at redhat.com
Wed Dec 1 16:28:46 CET 2010


Dne Út 30. listopadu 2010 22:04:41 Sebastian Kügler napsal(a):
> Hi Carlos,
> 
> On Tuesday, November 30, 2010 17:18:32 Carlos Olmedo Escobar wrote:
> > I need my app to detect when the system gets back from an hibernation,
> > is this possible?
> 
> Not yet, but we've come across the same problem in other code as well
> (clock being wrong for up to one minute post-resume), and we're working on
> a fix. Timeframe for this is 4.6, but I'm not 100% sure this part actually
> made it. We did discuss it and came up with a solution during the Solid
> sprint in October.
> 
> The solution will involve connecting your method doSomethingPostResume()
> (or similar) to a signal Solid will be providing.
> 
> Cheers,

It is currently possible in KDE trunk (to become KDE 4.6); you need to connect 
to the "resumingFromSuspend" signal on the org.kde.Solid.PowerManagement DBUS 
service.
-- 
Lukáš Tinkl <ltinkl at redhat.com>
Software Engineer - Base Operating Systems Brno
KDE developer <lukas at kde.org>
Red Hat Inc.                               http://cz.redhat.com


More information about the Kde-hardware-devel mailing list