Linux Command To Check Laptop Battery Health

h‮t‬tps://www.lautturi.com
Linux Command To Check Laptop Battery Health

To check the health of a laptop battery in Linux, you can use the upower command with the -i option.

Here's an example of how to use the upower command to check the health of a laptop battery:

upower -i /org/freedesktop/UPower/devices/battery_BAT0

This will display information about the battery, including the current charge level, the capacity, and the battery health.

Here's an example of the output you might see:

native-path:          BAT0
  vendor:               SANYO
  model:                DELL WK383
  serial:               123456
  power supply:         yes
  updated:              Mon 21 Jan 2020 05:01:53 AM EST (45 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              56.2779 Wh
    energy-empty:        0 Wh
    energy-full:         56.2779 Wh
    energy-full-design:  56.2779 Wh
    energy-rate:         0 W
    percentage:          100%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'

The capacity field shows the current capacity of the battery, and the percentage field shows the current charge level.

Created Time:2017-10-29 22:08:52  Author:lautturi