Inconsistent battery percentage shown when "fully charged"
Affected version
Hardware: MSI GP62 6QF
OS: Fedora Silverblue 33 (kernel 5.8.18), Arch Linux (kernel 5.9.8) (dual boot, happens on both)
GNOME Shell version: 3.38.1 (could have been happening earlier but I only switched to GNOME very recently)
The bug occurs in both Xorg and Wayland.
Bug summary
If the battery status is "Fully charged" and "Show battery percentage" is enabled in Power Settings then the displayed percentages can be inconsistent between the panel and settings (only when plugged in, when unplugged it's consistent).
Steps to reproduce
- Have a laptop that behaves like in #3034 (closed) but reports "Fully charged" instead of "Not charging" under 100%
- Enable "Show battery percentage" in Power Settings
- Compare the shown values between the panel and Power Settings
What happened
The panel always shows 100%, while Power Settings reports the actual percentage (same as upower).
What did you expect to happen
The panel shows the actual percentage, consistent with Power Settings.
Relevant logs, screenshots, screencasts etc.
My laptop (MSI GP62 6QF) has a feature where if it is plugged in between 90-100% charge or it was just charged to 100% the battery won't actually charge (essentially the same behaviour as described in #3034 (closed)), however in my case GNOME just shows "Fully charged" even if the charge percentage isn't actually 100%. I'm fairly certain that part is just what the battery/kernel reports (KDE 5.20.3 shows the same thing).