Battery status is pending-charge on some devices when charge is 100%
Some Asus machines report the battery as "Not charging" when the battery is above a certain level (~95%). The problem is that when they are at 100% charge they also report "Not charging", instead of reporting Full.
I've tried to get it fixed in the kernel, but it received a lot of resistance and it looks like it is not going to be accepted: https://patchwork.kernel.org/patch/10666547/. So I think we'll need some heuristics in upower if we want to have it fixed.
This is the battery info from upower --dump
:
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: ASUSTeK
model: ASUS Battery
power supply: yes
updated: Thu 29 Nov 2018 03:33:42 PM PST (87 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: pending-charge
warning-level: none
energy: 34.086 Wh
energy-empty: 0 Wh
energy-full: 34.086 Wh
energy-full-design: 38 Wh
energy-rate: 0 W
voltage: 7.6 V
percentage: 100%
capacity: 89.7%
technology: lithium-ion
icon-name: 'battery-full-charging-symbolic'
And from the kernel:
$ cat /sys/class/power_supply/BAT0/status
Not charging
CC @jwrdegoede.