Skip to content

Instantly share code, notes, and snippets.

@JudahSan
Created October 2, 2024 20:37
Show Gist options
  • Save JudahSan/20efb8b2f7e9f8f166a78b9789cf13f8 to your computer and use it in GitHub Desktop.
Save JudahSan/20efb8b2f7e9f8f166a78b9789cf13f8 to your computer and use it in GitHub Desktop.
How to check battery health linux
  1. List available power sources
upower -e

output

/org/freedesktop/UPower/devices/battery_BAT0
/org/freedesktop/UPower/devices/battery_BAT1
  1. Get battery information related to a particular battery using the -i flag
upower -i /org/freedesktop/UPower/devices/battery_BAT0

ouput

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment