Fwd: UPower 1.0 API changes

Michael Biebl mbiebl at gmail.com
Fri Oct 18 12:15:46 PDT 2013


this was supposed to go to the list...


---------- Forwarded message ----------
From: Michael Biebl <mbiebl at gmail.com>
Date: 2013/10/18
Subject: Re: UPower 1.0 API changes
To: Bastien Nocera <hadess at hadess.net>


Hi,

2013/10/17 Bastien Nocera <hadess at hadess.net>:
>
> Removed functions:
> - up_client_get_properties_sync()
> - up_client_enumerate_devices_sync()
> - up_client_get_on_low_battery() (use the "warning-level" property on
> the DisplayDevice object instead)
> - up_client_suspend_sync()
>   up_client_hibernate_sync()
>   up_client_get_can_hibernate()
>   up_client_get_can_suspend(), all obsoleted by logind
> - All of the QoS API
>
> Removed signals:
> - notify_sleep and notify_resume
> - changed (both UpClient and UpDevice), device-changed (connect to the
> "notify" signal for the properties that interest you instead)
>
> Changed signal:
> - device-removed now sends an object path, not a device (as we do not
> keep an internal list of devices on the client side, to reduce wake-ups)
>
> D-Bus service
> -------------
>
> The D-Bus service changes pretty much match the libupower-glib API
> changes. I invite you to read the included API documentation.

Do you know if XFCE (e.g. xfce-power-manager) and KDE (Solid,
powerdevil) are aware of those changes?

Removing the suspend/hibernate functionality most likely means for
them that they either have to rely on systemd or cook up their own
solution. XFCE and KDE are much more hesitant to rely on systemd
afaik, so I'd be interested to know what their plans are.

Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the devkit-devel mailing list