Showing your IP, ISP & place on this screen only

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

Quicker: the battery page has a one-line command for bash and zsh that puts a short summary on your clipboard, with no serial number or computer name, and no file left behind. Run it, then press Paste.

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.