Linux Command To Check Laptop Battery Health

last updated in Categories , ,

What command I need to run to check the health of my System 76 laptop battery in Ubuntu or Debian Linux?

You can either use /sys/ file system or command line acpi or upower. You must login as root user. Open the Terminal application and type any one of the following command.

Linux GUI tool to check your laptop battery health

Click on battery icon in the sidebar or top bar right side battery icon. You will get an window as follows:

Fig.01: Linux Laptop power statistics application in action
Fig.01: Linux Laptop power statistics application in action

Linux command to check your laptop battery health

The syntax is:

acpi

OR

acpi -ib

OR

upower -i /org/freedesktop/UPower/devices/battery_BAT0

Sample outputs:

Fig.02: acpi command output
Fig.02: acpi command output

Here is output from upower command:

Fig.03: upower command output
Fig.03: upower command output

How Do I Get CPU Temperature Data?

How Do I Read Hard Disk Temperature?

See also
  • Man pages: proc(5)

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):