Catching resume from suspend?

Anders Lund anders at alweb.dk
Sun Dec 6 15:06:40 GMT 2009


David Jarvie skrev:
> On Saturday 05 Dec 2009 20:03:39 Anders Lund wrote:
> > Chani skrev:
> > > > > now, I get the feeling that since it doesn't Just Work yet, Solid
> > > > > doesn't provide us with any such signal. this feels like the sort
> > > > > of thing that solid *should* provide, but I don't know enough about
> > > > > the low-level details to say how it should be implemented.
> > > >
> > > > This has recently been discussed on hardware-devel
> > > > http://lists.kde.org/?t=125874601600001&r=1&w=2
> > >
> > > thanks.
> > > hmm, not looking very positive right now. silly HAL. but there's got to
> > > be a way, right? :)
> >
> > Appearently, an option is to put a script in /usr/lib/pm-util that sends
> > a dbus message. That message could be caught by, say, a plasma
> > dataengine. I don't know how portable it is, but for example
> > NetworkManager is using that on my system, along with several other
> > applications.
> 
> This is something that would be really useful as a generally available
>  signal in KDE. I already had to make KAlarm check every minute in case of
>  a resume, instead of just sleeping until a signal arrived or an alarm was
>  due.
> 

I will attempt to use this, for a plasma dataengine. But I guess the correct 
address would be the powerdevil kded module, which could broadcast it for 
general use?

-- 
Venlig hilsen,
Anders




More information about the kde-core-devel mailing list