# 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](https://wattping.com/battery#report) 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](https://wattping.com/battery). The fields that matter:

- `POWER_SUPPLY_ENERGY_FULL_DESIGN` and `POWER_SUPPLY_ENERGY_FULL`, in µWh. Health is full divided by design. The page shows them in mWh.

- Some phones and tablets report `CHARGE_FULL` and `CHARGE_FULL_DESIGN` in µAh instead. The ratio is the same kind of health figure.

- `POWER_SUPPLY_CYCLE_COUNT` when the firmware provides it. Missing is normal on some hardware.

- `ENERGY_NOW` is 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.

---
Canonical page: https://wattping.com/guides/linux-battery-health
