Check your laptop battery in Linux

By | January 12, 2009

If you run Linux off a laptop, you might want to check your battery status alt least once a year:

grep -F capacity: /proc/acpi/battery/BAT0/info

This will output something like

design capacity:         7800 mAh
last full capacity:      6414 mAh

3 thoughts on “Check your laptop battery in Linux

  1. T4L Post author

    When it comes to batteries, the only thing you can do if they fail is change them. I had a power spike almost two years ago, fried my laptop’s battery. Had to buy a new one. Other than that, I can’t imagine what other problems could arise.
    BTW: here’s two other useful tips for laptop batteries:

    user@laptop:~$ acpi -t
    Battery 0: Full, 100%
    Thermal 0: ok, 44.5 degrees C
    user@laptop:~$ acpi -V
    Battery 0: Full, 100%
    AC Adapter 0: on-line
    Thermal 0: ok, 41.5 degrees C
    Cooling 0: Processor 0 of 10
    Cooling 1: Processor 0 of 10

    Reply
  2. Pingback: CLI to check laptop battery condition « Linux & Stuff

Leave a Reply

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