Skip to content

Improve property caching and invalidation for UPowerDevice

This removes the unconditional synchronous bulk fetch on each invalidation, and reduces the DBus calls to the strictly necessary ones.

The first patch introduces the value update from the propertiesChanged signal.

The second patch removes some corner cases which could eventually cause unnecessary calls.

The third patch properly connects the UPowerDevice changed/propertiesChanged signal to the GenericInterface. This is a bug fix, and preparation for the fourth patch.

The 4th patch introduces a "monitor" subcommand for solid-hardware, which is quite useful to verify and debug property changes in solid (not only UPower, but for all backends).

Merge request reports