You can calibrate the controller by:
- charge the device to 100%
- activate the calibrate function
- echo 1 | sudo tee /sys/class/power_supply/axp20x-battery/calibrate
- drain the device to power off.
- charge the device to 100%
You can calibrate the controller by: