Archive

Posts Tagged ‘cli’

CLI: Battery information

May 25th, 2009

There are many battery manager out of there for the most of Desktop Environments but if you don’t want to use them and spend most of your time in a terminal session you would take a look to acpiconf on FreeBSD.

% acpiconf -i0

Return all the information about your battery number 0, though you may be interested only in remaining time and state of battery (charging, discharging).
You may use this my own script. It is free as in beer ;)

================
#!/bin/sh

acpiconf -i0 | grep Remaining
acpiconf -i0 | grep State

FreeBSD, Technology , , ,