Tuesday, January 20, 2009

Laptop batt status cmd line

2:59 PM Posted by: Mad Lord Snapcase 0 comments

I was looking at /usr/bin and looking at binaries that I don't recognize to see what they do. A while ago I was thinking of writing a script to poll info out of /sys for power information but this command does it all!

halflife@darklord:~$ acpi -V
Battery 0: Discharging, 99%, 03:34:12 remaining, design capacity 7800 mAh
AC Adapter 0: off-line
Thermal 0: ok, 39.5 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
halflife@darklord:~$

0 comments: