Open linusg opened 4 years ago
Actually the weird percentage comes from the sysfs:
$ cat /sys/class/power_supply/BAT0/capacity
117
$ cat /sys/class/power_supply/BAT1/capacity
99
I'll investigate further. Feel free to close if this is out of scope for psutil to handle.
Platform
Bug description
psutil.sensors_battery()
reports apercent
value above 100 when the battery is almost fully charged:Where psutil reports 114%, GNOME reports 97% (battery icon top left corner).
Internally the laptop seems to have two batteries, yet I would expect the percentage to never exceed 100 - is this to be expected?