incorrect battery percentage when resuming from suspend
When opening my laptop lid (resuming from suspend), the battery plugin seems to show the incorrect percentage remaining.
The plugin sometimes will show the last known percentage before suspend. e.g. If the battery has 36% charge left and is suspended, charged again fully to 100%, and resumed from suspend; 36% remaining charge will be shown.
Some time after the above scenario, it is possible that the percentage given by the plugin will increase to another value that is still not given by acpi
. Taking the above scenario, wait 5-10 minutes, and then observe an arbitrary percentage, e.g. 82%.
To match the expected of acpi, one can restart the xfce4-panel entirely with xfce4-panel -r
.
Contributing factors may include:
- my hardware (thinkpad x230)
- package version of xfce4-battery-plugin (1.1.3-2) by distro (fedora 32)
- configurations of tlp and/or powertop