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

Bastien Nocera hadess at hadess.net
Tue Jun 19 08:07:01 UTC 2018


On Tue, 2018-06-19 at 09:38 +0200, Charles-Antoine Couret wrote:
> 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.

We use GitLab to handle bugs and merge requests:
https://gitlab.freedesktop.org/upower/upower/

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

Sigh. Just one more broken piece of hardware to handle. You should also
add a regression test in src/linux/integration-test for this particular
test case. It will allow us to check that the patch is working as it
should without having access to the hardware.

Cheers

> Signed-off-by: Charles-Antoine Couret <charles-
> antoine.couret at essensium.com>

We don't use SoB in user-space.


More information about the devkit-devel mailing list