I have an external battery pack and an i2c voltage and current monitor, and I’d like to forward the charge info to the Ubuntu battery status. I was thinking of maybe using a python script to convert the i2c data into a percentage value. Is this doable or would it be better just to make a custom script to shut the board down on low power?
hello jcwscience,
may I know what’s your actual use-case,
would you like to show the current battery capacity on the ubuntu os?
it’s using module pin, PMIC_BBATT when you’re having external power supply.
please also refer to Xavier NX SOM datasheet, and please check PMIC_BBATT for more details.
thanks
I’m making sort of a tablet with the nx dev kit and an external 18650 battery pack. I wanted some way to monitor the charge level in the os. Is the PMIC-BBATT just for the backup clock?
hello jcwscience,
the battery capacity should be available via the following directory,
for example,
# cat /sys/class/power_supply/BAT1/capacity
# cat /sys/class/power_supply/BAT1/status
Ok thanks I’ll take a look
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.