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:

1 Like

If you want more info then you can scrounge around in

1 Like