05-16-2021, 08:27 AM
Actually, @8bit , those aren't the correct paths. See below for the right ones:
For example, battery voltage on my PinePhone was reported as 4015000, while the battery capacity was reported as 79. After the reported capacity dropped to 77, the reported voltage dropped to 3999600.
Code:
/sys/class/power_supply/axp20x-battery/capacity
/sys/class/power_supply/axp20x-battery/voltage_now
For example, battery voltage on my PinePhone was reported as 4015000, while the battery capacity was reported as 79. After the reported capacity dropped to 77, the reported voltage dropped to 3999600.