GICT knowledge base
How to Check Laptop Battery Health in Linux
Published
Laptop batteries naturally lose their ability to hold a full charge over time. If you rely on your laptop for work or study, it’s important to keep track of your battery’s health. Regularly checking battery health helps you avoid sudden shutdowns and lets you plan for a replacement before your battery fails at a critical moment.
What Is Battery Health?
Battery health describes how much charge your laptop battery can hold compared to when it was brand new. For example, if your battery health is 80%, it means your battery can only store 80% of its original capacity. Lower health means shorter time on battery and more frequent charging.
- Good health (90–100%): Battery is almost like new.
- Moderate health (70–89%): Normal wear after a year or two. You’ll notice a little less battery life.
- Poor health (50–69%): Battery drains quickly. Time to consider a replacement.
- Very poor (<50%): Battery is weak and should be replaced soon.
Why Check Battery Health in Linux?
Linux gives you full control and visibility into your hardware, including batteries. Unlike some operating systems, you can use both command line tools and graphical apps to get detailed battery health information. This helps you:
- Understand why your battery drains faster than before
- Plan for a new battery before the old one fails completely
- Work smarter if you often use your laptop away from an outlet
Checking Battery Health Using Terminal Commands
1. Using the upower Command
upower is an easy way to check battery health on most Linux laptops. Here’s how:
- Open your terminal.
- List batteries with:
upower -e - Look for a line like
/org/freedesktop/UPower/devices/battery_BAT0. Use this in the next command: - Check battery stats:
upower -i /org/freedesktop/UPower/devices/battery_BAT0
In the output, look for:
- energy-full: Current max charge (e.g. 38.5 Wh)
- energy-full-design: Max charge when new (e.g. 48.8 Wh)
- capacity: Battery health as a percent (e.g. 78%)
If you want to calculate health yourself:
Battery Health = (energy-full / energy-full-design) * 100
2. Using the acpi Command
acpi is another tool for battery info. First, install it if it’s missing:
sudo apt install acpi
Then run:
acpi -V
This shows battery percentage, charging state, and temperature. For health, use:
acpi -i
This displays battery capacity and other details.
3. Reading System Files Directly
Linux stores battery info in system files. You can read these directly:
- Current battery percentage:
cat /sys/class/power_supply/BAT0/capacity - Current full charge value:
cat /sys/class/power_supply/BAT0/charge_full - Original (design) charge value:
cat /sys/class/power_supply/BAT0/charge_full_design
Divide charge_full by charge_full_design and multiply by 100 for health percentage. On some systems, use energy_full and energy_full_design instead.
Checking Battery Health with Graphical Tools
1. GNOME Power Statistics (Power Manager)
If you use Ubuntu or another GNOME desktop:
sudo apt install gnome-power-manager
Open ‘Power Statistics’ from your application menu. You’ll see:
- Current and original battery capacity
- Charge history and rates as graphs
- Battery status at a glance
2. TLP Battery Statistics
TLP is a powerful tool for Linux battery management. Install it with:
sudo apt install tlp tlp-rdw
View detailed battery stats with:
sudo tlp-stat -b
See battery health, cycles, wear level, and more. TLP can also help optimize your battery automatically.
3. Other Battery Apps
Depending on your Linux desktop, you may find battery monitoring apps in your software center, such as:
- Battery Monitor
- TLPUI (a graphical frontend for TLP)
- powerdevil (for KDE/Plasma)
Understanding Battery Health Numbers
| Health (%) | What It Means |
|---|---|
| 90–100% | Excellent. Almost like new. |
| 70–89% | Normal for a battery 1–2 years old. Still reliable. |
| 50–69% | Noticeable loss. Plan for a replacement soon. |
| <50% | Battery is weak. Replace as soon as possible. |
Why Is My Battery Health Dropping?
- Every full charge and discharge (a cycle) slowly wears out the battery.
- Heat speeds up battery aging. Keep your laptop cool when possible.
- Leaving your laptop plugged in at 100% all the time may reduce battery life.
- Letting the battery run all the way to 0% often also causes faster wear.
Tips to Extend Battery Life
- Avoid hot places. Heat is the enemy of battery life.
- If possible, keep your charge between 20% and 80%.
- Use power saver mode when on battery power.
- Lower your screen brightness.
- Close apps and browser tabs you don’t need—background tasks drain the battery.
- Store your laptop half-charged if you won’t use it for a long time.
Troubleshooting and Common Questions
1. The commands don’t work on my system!
- Make sure you have a laptop battery (not all desktops support these commands).
- Your battery device may be
BAT1instead ofBAT0. Useupower -eto check. - If a command like
acpiisn’t found, install it with your package manager.
2. Battery health shows “unknown” or 0%?
- Your battery may be failing or not reporting data. Try rebooting, or check if your laptop needs a firmware update.
3. Battery drains fast after a Linux update.
- Sometimes, kernel or driver updates can affect battery performance. Check online forums for your laptop and Linux version for advice.
Quick Reference: Linux Battery Health Commands
| Command | What It Does |
|---|---|
upower -i /org/freedesktop/UPower/devices/battery_BAT0 |
Shows battery health and details |
acpi -V |
Shows battery status and temperature |
cat /sys/class/power_supply/BAT0/capacity |
Shows current charge % |
cat /sys/class/power_supply/BAT0/charge_full |
Current full charge value |
cat /sys/class/power_supply/BAT0/charge_full_design |
Original (design) full charge value |
sudo tlp-stat -b |
Detailed battery info (with TLP) |
Conclusion
Checking your laptop battery health in Linux is easy and can save you from unexpected shutdowns and lost work. Use the upower or acpi commands for quick checks, or graphical tools like Power Statistics for a visual overview. If your battery health is above 70%, you can keep working as usual. If it’s lower, plan for a replacement soon. Take care of your battery by avoiding extreme temperatures, not always charging to 100%, and checking health monthly. With these habits, you’ll get the best life from your laptop battery!
