Skip to content

up-device-supply: add conditions to workaround bugged firmware to compute "Fully charged" status

Some firmware like on Lenovo E560 never sends "fully charged" status. The idea is to consider the situation: a battery without energy consumption, in discharging mode but with AC power plugged is fully charged.

According to kernel's Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193061 the fix should be in userspace.

Merge request reports