How to check battery status on Ubuntu

By Detector | 17 October 2009



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 | , , ,

| |

One Response to “How to check battery status on Ubuntu”

  1. Marwelln says:

    Thank you.






Archives

Add to Technorati Favorites
website stats
TwitterCounter for @ukion