[Bglug] command line: upower

Andrew Howlett andrew at howlett.net
Sat Aug 6 10:20:37 EDT 2016

hi all,

discovered the upower command today, eg:

root at andrew:/home/andrew# upower -i /org/freedesktop/UPower/devices/battery_BAT0
   native-path:          BAT0
   vendor:               SMP
   model:                DELL 5G67C12
   serial:               855
   power supply:         yes
   updated:              Sat 06 Aug 2016 10:14:24 AM EDT (69 seconds ago)
   has history:          yes
   has statistics:       yes
     present:             yes
     rechargeable:        yes
     state:               discharging
     warning-level:       none
     energy:              5.3502 Wh
     energy-empty:        0 Wh
     energy-full:         28.6158 Wh
     energy-full-design:  59.9955 Wh
     energy-rate:         14.5854 W
     voltage:             11.07 V
     time to empty:       22.0 minutes
     percentage:          18%
     capacity:            47.6966%
     technology:          lithium-ion
     icon-name:          'battery-low-symbolic'
   History (charge):
     1470492864    18.000    discharging
   History (rate):
     1470492864    14.585    discharging

what i really like about this is the "energy-full" and "energy-full-design" lines. i don't know exactly how accurate this is, but looks like i can use those two lines to get an estimate of how this battery has deteriorated.

that's important to me because i'm using a refurb laptop with a refurb battery. the refurbisher only guarantees "30 minutes of life" from the refurbished battery. so my question "is it worthwhile to buy a replacement battery" seems to be yes, I can more than double the battery life if i get a battery that meets energy-full-design.



More information about the Group mailing list