Is there any software or command can show battery voltage and discharge current or charge current constantly?
You can try this command:
cat /sys/class/power_supply/axp20x-battery/uevent
You can install the xfce4-sensors-plugin with apt and then add the sensors to the top panel. It shows battery voltage and power draw +/- depending on charging/discharging.
wow some has already written code for this???
sudo watch -n 1 cat /sys/class/power_supply/axp20x-battery/uevent
and if you want just the current info
sudo watch -n 1 "cat /sys/class/power_supply/axp20x-battery/uevent|grep NOW"
(you might need to replace the " with ` - i cant figure out the escaping to show it correctly on this forum)
use 3 ` before and after the code, like so:
makes it look like this:
sudo watch -n 1 `cat /sys/class/power_supply/axp20x-battery/uevent|grep NOW`
This is just standard linux software that also works on the uConsole, or in the case of @sunmin’s post it is data exposed by the linux kernel itself.
so question… i know… when windows mobile 6.1 (i think it was that one) came out… one version had a bug that checked battery 5 times every second… and checking the battery… killed the battery… you adjusted the registry to check every 30s and it added like 2 hours of battery life (on windows phone)… is this idea taken into account?
May not even matter… i remember the first at&t portable phone i had… battery life was 45 minutes standby… 15 minute phone call… maybe that made me paranoid about battery life…
Thanks,but I want see the battery voltage。 Not the cpu
Why I can`t find the curr1 option?
Hmm, mine is an A-06 unit. Is that what you’re using too?
I am using a CM4,haha。
At least I can see the voltage。