Battery information for the R01

Is there a command to grab battery information from the R01?

There’s no acpi device that i can see so acpitool does not work.

I did see an xmessage popup when my battery ran down to 5% the first time around, but I’m not sure what service was providing that, and I’ve not seen it happen again.

The xmessage most likely came from gkrellm - at least it has “xmessage LOW BATTERY 5%” set as alarm_command. according to the sensor-config, the battery is available as “axp20x-battery”, and you can manually get values out of /sys/class/power_supply/axp20x-battery/

1 Like

You can get this info with:
cat /sys/class/power_supply/axp20x-battery/capacity

1 Like

Thank you both! That all makes sense!