Skip to content
Commit 42abf94a authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Add caching implementation of UPower.Device properties interface

Instead of retrieving each relevant property individually with a
synchronous DBus call on each propertiesChanged signal from a watched
device (at least 2 on a laptop, battery and AC, more when e.g. battery
powered peripherals are present), fetch the properties just once during
startup (with a single bulk "GetAll" query), and use the values from
the propertiesChanged signal for implicit updates.

Skip creation of instances for individual Devices if the DisplayDevice
is present, as the properties are not used at all.

Remove the autogenerated UPower.Device interface, as it is only able to
fetch properties synchronously, one by one.
parent ca8c1297
Pipeline #390479 passed with stage
in 1 minute and 29 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment