26 January 2013

How to check Battery Status of Laptop in Ubuntu from Terminal

6 comments

Q. How do I check Battery Status of Laptop in Ubuntu from Terminal

check battery status from terminal in ubuntu

Ans:


acpi is a Utility which allows you to check Battery status from Terminal in Ubuntu, just type following command in terminal to install acpi

$ sudo apt-get install acpi

1. To check Battery status simply run following command in terminal

$ acpi
Battery 0: Full, 100%

* Without Charger

$ acpi
Battery 0: Discharging, 100%, 02:35:40 remaining

2. To Check Battery Temperature(Celsius), type

$ acpi -t
Thermal 0: ok, 63.0 degrees C

3. To Check Battery Temperature(Fahrenheit), type

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

4. Check AC power status

$ acpi -a
Adapter 0: on-line

* Without Charger

$ acpi -a
Adapter 0: off-line

5. For more options, type following command in terminal

$ acpi --help

Hope you Enjoyed the Post :)


If You Liked This Post Please Take a Time To Share This Post

You May Also Like...

6 comments:

  1. Nice post.
    If I remember correctly one can also look in the /proc/acpi folder for some more details

    ReplyDelete
    Replies
    1. ya we can look in the /proc/acpi folder for more information like

      $ cat /proc/acpi/battery/BAT0/info // for more info about battery

      $ cat /proc/acpi/battery/BAT0/state // for battery state

      and thanks for liking it :)

      Delete
  2. Your blog is really one amongst my most favorite blogs, it’s so creative. http://www.lowhosting.com/bluehost-review/

    ReplyDelete