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:
POWER_SUPPLY_ENERGY_FULL_DESIGNandPOWER_SUPPLY_ENERGY_FULL, in µWh. Health is full divided by design. The page shows them in mWh.- Some phones and tablets report
CHARGE_FULLandCHARGE_FULL_DESIGNin µAh instead. The ratio is the same kind of health figure. POWER_SUPPLY_CYCLE_COUNTwhen the firmware provides it. Missing is normal on some hardware.ENERGY_NOWis the current charge, not the full capacity. It is not used as health.
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.