How To Check The Battery Status Via Command Line Interface

Hello Linux Geeksters.

In this article I will show you how to check your batery status from the terminal, on Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04, Linux Mint 15, Linux Mint 14 and Linux Mint 13.

To do this, install acpi. Because it is available in the default repositories, all you have to do is:

$ sudo apt-get install acpi

To use it, do:

See the the battery left, in percentages:

$ acpi
Battery 0: Full, 100%

To check the battery termperature (in Celsius), do:

$ $ acpi -t
Thermal 0: ok, 45.0 degrees C
Thermal 1: ok, 45.0 degrees C

To check the battery termperature(in Fahrenheit), do:

$ acpi -t -f
Thermal 0: ok, 111.2 degrees F
Thermal 1: ok, 111.2 degrees F

To check if your laptop is pluged in use (mine is connected):

$ acpi -a
Adapter 0: on-line

For more information, type acpi –help.

Tagged with: , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *




Subscribe to get the latest Linux news and how to guides directly on your e-mail!