giampaolo / psutil

Cross-platform lib for process and system monitoring in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Linux] Get laptop charging speed (in Watts)

nschloe opened this issue · comments

When charging my laptop, I'd love to know how fast it goes (in Watt). This tells me if I I'm fast-charging or if my cable/charger isn't very good.

Right now, I use to command-line call

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

to get

[...]
   energy-rate:         10,55 W
[...]

(Not very fast at all.)