Read battery state

How can I read the battery state (life, …) with a shell command. I have setup SSH access. I found nothing in the Wiki about this. Thanks

 upower -d

To get only the charge percentage, try this:

 upower -d | grep percent

Thanks. I added it to the Wiki: https://source.puri.sm/Librem5/community-wiki/-/wikis/Tips-&-Tricks#battery-fuel-meter

1 Like

If you want more info then you can scrounge around in
/sys/class/power_supply/max170xx_battery

1 Like