How do I calibrate a new battery on Linux?
I’ve installed a new battery on my laptop, but to my surprise, the percentage of charge in the battery is at 0. Here’s the upower
diagnostics:
<span style="color:#323232;">$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
</span><span style="color:#323232;"> native-path: BAT0
</span><span style="color:#323232;"> serial: 0
</span><span style="color:#323232;"> power supply: yes
</span><span style="color:#323232;"> updated: Thursday 11 July 2024 09:54:55 PM (16 seconds ago)
</span><span style="color:#323232;"> has history: yes
</span><span style="color:#323232;"> has statistics: yes
</span><span style="color:#323232;"> battery
</span><span style="color:#323232;"> present: yes
</span><span style="color:#323232;"> rechargeable: yes
</span><span style="color:#323232;"> state: pending-charge
</span><span style="color:#323232;"> warning-level: none
</span><span style="color:#323232;"> energy: 0 Wh
</span><span style="color:#323232;"> energy-empty: 0 Wh
</span><span style="color:#323232;"> energy-full: 0 Wh
</span><span style="color:#323232;"> energy-full-design: 0 Wh
</span><span style="color:#323232;"> energy-rate: 0 W
</span><span style="color:#323232;"> charge-cycles: 100
</span><span style="color:#323232;"> percentage: 0%
</span><span style="color:#323232;"> technology: lithium-ion
</span><span style="color:#323232;"> icon-name: 'battery-caution-charging-symbolic'
</span>
The “energy-full-design” capacity of the battery should be 70Wh, but here it is, at 0Wh. None of the statistics above (except date and time) have updated, and it’s been two days already. How do I calibrate this battery?