You are not logged in.
Hi,
When running on a laptop, the MATE desktop's power applet provides a page of extended stats for the battery. This includes the power drain rate, battery capacity when full (designed and actual) among other interesting stats. I don't get anything like this level of detail in GNOME 3 or LXDE and only see a subset of it in XFCE.
Does anyone know of a generic tool (preferably command line) to query the battery? lshw doesn't appear to refer to the battery at all. I found that if I poke around in /sys/class/power_supply/BAT0 most of the information is there but I couldn't find the current drain in watts.
Thanks.
Last edited by Modeler (2013-09-09 14:20:51)
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"
Offline
Try upower.
# list paths for available devices
upower -e
# list information for one device
upower -i /org/freedesktop/UPower/devices/battery_BAT0
# dump information for all devices
upower -d
Offline
Nice!
[root@ThinkPad-T60p ~]# upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
vendor: Panasonic
model: 92P1139
serial: 5445
power supply: yes
updated: Mon Sep 9 10:23:06 2013 (21413 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 55.36 Wh
energy-empty: 0 Wh
energy-full: 55.36 Wh
energy-full-design: 56.16 Wh
energy-rate: 0 W
voltage: 12.487 V
percentage: 100%
capacity: 98.5755%
technology: lithium-ion
Thanks Lekensteyn, just what I was looking for.
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster"
Offline