Laptop is MacBook Pro 13 early 2015. When just booted, its fine, battery percentage shows accuratelly. But after a sleep it occasionally (like 80% of time) goes wrong, showing 4-10% left, while in reality its 40-100%.
$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: DP
model: bq20z451
power supply: yes
updated: сб, 01-кві-2023 09:22:28 +0300 (9 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: critical
energy: 32,7526 Wh
energy-empty: 0 Wh
energy-full: 739,81 Wh
energy-full-design: 74,9038 Wh
energy-rate: 11,1002 W
voltage: 11,42 V
charge-cycles: 1775
time to empty: 3,0 hours
percentage: 4,42716%
temperature: 24,3 degrees C
capacity: 66,4431%
technology: lithium-ion
icon-name: 'battery-caution-symbolic'
History (charge):
1680330147 4,427 discharging
1680330144 4,429 discharging
1680330140 4,430 discharging
1680330109 4,438 discharging
1680330106 4,440 discharging
1680330102 4,441 discharging
1680330071 4,463 discharging
1680330068 4,464 discharging
1680330064 4,466 discharging
History (rate):
1680330147 11,100 unknown
1680330145 13,122 discharging
1680330144 14,012 discharging
1680330142 10,084 discharging
1680330140 8,782 discharging
1680330086 11,498 discharging
The line:
energy-full: 739,81 Wh
Looks very wrong to me.