Tuesday, January 31, 2012

How to get Laptop battery related information from ubuntu command

Type Following command in command Line
sanjeewa@sanjeewa-TECRA-M11:$ cat /proc/acpi/battery/BAT1/info
sanjeewa@sanjeewa-TECRA-M11:$ cat /proc/acpi/battery/BAT1/state

If BAT1 didnt work try BAT0 as well.
You will see following output. This is working in ubuntu 11 as well :)



No comments:

Post a Comment