Home / Guides / Linux battery health

Guide

How to check Linux battery health

The kernel already exposes design capacity, current full capacity, and often a cycle count, under /sys/class/power_supply.

Read the uevent

ls /sys/class/power_supply

Look for BAT0 or BAT1. Then:

cat /sys/class/power_supply/BAT0/uevent

Paste that into the battery page. The fields that matter:

upower -i output, with energy-full in Wh, is accepted too. Divide is the same after the units are lined up.

A desktop without a battery has no BAT directory. There is no health percentage to invent.