[PATCH] UPower reports the DisplayDevice state as unknown when a device is not charging
Submitted by Ognjen Galic
Assigned to Richard Hughes
Created attachment 138070 patch to fix the above bug
On linux-next (commit has been reversed due to this bug, use linux-next 20180223), a new state for batteries has been introduced in the ACPI battery driver for Lenovo ThinkPad laptops as "Not Charging". This state occurs when the one of the batteries has been charged up to a certain threshold and stops charging.
UPower reports that correctly as pending-charge for the real battery, but the fake DisplayDevice has a state of "unknwon" thus breaking the icon and state in almost all desktop environments.
The below patch fixes this issue and has more information available.
Patch 138070, "patch to fix the above bug":