How check or see laptop battery health in Linux

See all GNU/Linux related FAQ
There are a few ways to check your Laptop’s battery health in Linux. Here are a few methods that use the upower and acpi commands to check your Laptop’s battery health in Linux, such as battery percentage, battery vendor name, current battery state, charge cycles, and more.

Tutorial details
Difficulty level Easy
Root privileges No
Requirements Linux terminal
Category System Management
OS compatibility AlmaLinux Alpine Amazon Linux Arch CentOS Debian Fedora Linux Mint openSUSE Pop!_OS RHEL Rocky Stream SUSE Ubuntu
Est. reading time 2 minutes
  1. Open the terminal application.
  2. List the current device paths using the upower command:
    $ upower --enumerate
    Note down the battery path:

    /org/freedesktop/UPower/devices/line_power_AC
    /org/freedesktop/UPower/devices/battery_BAT0
    /org/freedesktop/UPower/devices/mouse_dev_CD_27_F1_E6_00_B3
    /org/freedesktop/UPower/devices/mouse_hidpp_battery_10
    /org/freedesktop/UPower/devices/DisplayDevice
  3. Say your device path is battery_BAT0 as follows from the --enumerate option:
    $ upower -i /org/freedesktop/UPower/devices/battery_BAT0
    This will list all of the power source information on your system, including your battery health status in Linux.
  4. You can also use acpi command to print battery information in Linux. For example:
    $ acpi -b
    How check or see laptop battery health in Linux using the CLI
    That is all.

Say hello to the inxi command

Prerequisite
By default, inxi command may not be installed on your system. Hence, use the apk command on Alpine Linux, dnf command/yum command on RHEL & co, apt command/apt-get command on Debian, Ubuntu & co, zypper command on SUSE/OpenSUSE, pacman command on Arch Linux to install the inxi.
You can also try the inxi command which is a command line system information tool made for console users. Try installing it first and then pass the -B or --battery option to see the system battery data, charge, condition at the CLI. The syntax is:
$ inxi --battery
$ inxi -B

Outputs:

Battery:
  ID-1: BAT0 charge: 40.6 Wh condition: 46.7/50.5 Wh (93%)

Summing up

I hope this brief tutorial can assist you in obtaining crucial information on how to check your laptop’s battery health in Linux through CLI. For more information see the following manual pages using the help command or man command:
$ man upower
$ man acpi

See also

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

Vivek Gite is an expert IT Consultant with over 25 years of experience, specializing in Linux and open source solutions. He writes about Linux, macOS, Unix, IT, programming, infosec, and open source. Follow his work via RSS feed.

12 comments… add one
  • jim Jul 31, 2023 @ 9:45

    hi,
    I’m using this command
    cat /sys/class/power_supply/BAT0/status /sys/class/power_supply/BAT0/capacity

    thx for enriching my knowledge

  • folky Jan 30, 2024 @ 11:48

    As always there is a way with inxi too:

    inxi -B
    
  • Ashkan Sep 3, 2024 @ 3:50

    omg so easy to follow! thanks!

  • Bob K. Sep 19, 2024 @ 1:39

    Good job. Thanks.

  • Don Oct 9, 2024 @ 16:10

    Thank you so much. I was looking for a way to check my battery charge on my laptop. I’m using a Window Manager which doesn’t give me a battery monitor by default. acpi is perfect for what I really need. Great job!!! :-)

  • pierrO Oct 12, 2024 @ 15:06

    very usefull

  • Rob Jan 15, 2025 @ 20:29

    Useful and straight to the point, thank you!

  • Gary Feb 19, 2025 @ 22:03

    Excellent

  • Anonymous Apr 2, 2025 @ 4:28

    Great. Thanks.

  • harve Apr 17, 2025 @ 13:19

    This article was very help full and to the point.

  • Anonymous Sep 11, 2025 @ 2:40

    Very helpful, thanks!

  • Marcin Oct 28, 2025 @ 9:23

    Very useful, thanks :)

Leave a Reply

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

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.