Catching resume from suspend?

Anders Lund anders at alweb.dk
Mon Dec 7 09:29:02 GMT 2009


Dario Freddi skrev:
> On Sunday 06 December 2009 16:06:40 Anders Lund wrote:
> > 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?
> 
> Again, relying on pm-utils it's probably a no-go, it could be possible to
>  add in solid, hence powerdevil, if the upower people are interested in
>  such a thing
>

As I see it, using pm-utils is a solution that will work in quite many 
systems, afaik it is quite common. And it is there, it can be used right away. 
So it could be a temporary solution untill someone can come up with something 
better.


-- 
Venlig hilsen,
Anders




More information about the kde-core-devel mailing list