Skip to content

upower backend: handle pending charge and pending discharge states

Méven Car requested to merge (removed):upower-pending-states into master

CCBUG: 422111

We interpreted pending charge and pending discharge states as NoCharge previously.

Now interpret them as Charging and Discharging respectively.

I guess Pending charge, means the battery was just plugged in but the battery has not changed yet. The documentation is quite lacking regarding this in https://upower.freedesktop.org/docs/Device.html

I have seen this used in upower client: https://github.com/berlam/awesome-upower-battery/blob/master/init.lua

Edited by Méven Car

Merge request reports