L5 battery calibration does not work at all
What problem did you encounter
Battery calibration gets increasingly off over time, meaning that measured by upower -d | grep energy-full | head -2 the energy-full value will deviate more and more from the energy-full-design value following every charge cycle, long or short.
What is the actual behaviour?
Since recently, upower will show something like: energy-full: 18,1782 Wh energy-full-design: 17,6365 Wh Before that, something like: energy-full: 15,1047 Wh energy-full-design: 13,8572 Wh
The more energy-full deviates from energy-full-design, the sooner it will power off due to low battery, e.g. at perceived battery charge of 15-20%, sometimes even before it drops to that level.
What is the expected behaviour?
Normally, upower -d | grep energy-full | head -2 is expected to show energy-full: 13,8572 Wh energy-full-design: 13,8572 Wh or the energy-full value being fairly close to the value of energy-full-design
How to reproduce
- Reset battery calibration by removing and reinserting the battery, which powers phone back on
- Check battery with upower -d | grep energy-full | head -2
- Use phone normally to drain battery partially or completely
- Plug it into the L5 charger (or similar) and charge it to full or whenever you need to remove from charger
- Check battery with upower -d | grep energy-full | head -2 again
I have had this problem for over a year now, and it doesn't seem to matter what kind of charging cycles I run (0-100%, 50-80%, 30-100% or just about any charging cycle). The battery calibration gets significantly off in just a few days and the just keeps increasing the deviation. The only way I have found to return to a workable calibration is to reset it according to 1) above and use phone for 4-6 days before the values deviate too much for me to know the actual charge level of the battery and I feel the need to reset calibration again.
What hardware are you running on?
Librem 5 Evergreen, European version
Relevant OS information
OS: PureOS 10 (Byzantium) aarch64 Host: Purism Librem 5r4
Which kernel are you using?
Linux pureos 6.4.0-1-librem5 #1 (closed) SMP PREEMPT Mon Sep 25 10:40:19 UTC 2023 aarch64 GNU/Linux
Which OS are you using?
ID=pureos NAME=PureOS PRETTY_NAME="PureOS 10 (Byzantium)"
VERSION_ID="10" VERSION_CODENAME=byzantium
HOME_URL="https://pureos.net/" SUPPORT_URL="https://puri.sm/faq/#faq-WherecanIfindoutmoreaboutPureOS" BUG_REPORT_URL="https://tracker.pureos.net/"
LOGO=pureos-logo-icon
Any other information that may be helpful?
Full output of upower -d: Device: /org/freedesktop/UPower/devices/line_power_tps6598x_source_psy_0_003f native-path: tps6598x-source-psy-0-003f power supply: yes updated: tis 10 okt 2023 21:13:26 (946 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes icon-name: 'ac-adapter-symbolic'
Device: /org/freedesktop/UPower/devices/battery_max170xx_battery native-path: max170xx_battery power supply: yes updated: tis 10 okt 2023 21:27:20 (112 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 14,9406 Wh energy-empty: 0 Wh energy-full: 18,1782 Wh energy-full-design: 17,6365 Wh energy-rate: 1,32274 W voltage: 4,05141 V time to full: 2,4 hours percentage: 82% temperature: 43,3 degrees C capacity: 100% technology: lithium-ion icon-name: 'battery-full-charging-symbolic' History (rate): 1696966040 1,323 charging
Device: /org/freedesktop/UPower/devices/line_power_bq25890_charger_0 native-path: bq25890-charger-0 power supply: yes updated: tis 10 okt 2023 21:13:27 (945 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes icon-name: 'ac-adapter-symbolic'
Device: /org/freedesktop/UPower/devices/DisplayDevice power supply: yes updated: tis 10 okt 2023 21:27:20 (112 seconds ago) has history: no has statistics: no battery present: yes state: charging warning-level: none energy: 14,9406 Wh energy-full: 18,1782 Wh energy-rate: 1,32274 W time to full: 2,4 hours percentage: 82% icon-name: 'battery-full-charging-symbolic'
Daemon: daemon-version: 0.99.11 on-battery: no lid-is-closed: no lid-is-present: no critical-action: PowerOff