How to check battery status on Ubuntu
Ubuntu provides you with the proc filesystem from you can get very useful information’s for your system. If you need info for your battery, you can found at /proc/acpi/battery folder. If you use only one laptop battery you can find info on BATO folder, otherwise there will be several folders according to your number of batteries. So for quick check, open terminal and copy/paste yhe next code into it:
cat /proc/acpi/battery/BAT0/info
You can then see useful information about your battery’s health etc..
For current battery state enter this lines to the terminal:
cat /proc/acpi/battery/BAT0/state
Now you can see how long will the battery last and other useful info. Have fun.
Tags | Howto, Linux, Newbie Ubuntu Tips, Tips and Tricks
Thank you.