How can I monitor battery state on a laptop running FreeBSD 8?

3

Is there any console tool that can be used to view battery status on a laptop (Dell Vostro A860) ?

Eugene Yarmash

Posted 2010-03-29T18:34:42.000

Reputation: 1 102

Answers

2

I don't think the apm command has existed for a while now -- try the sysutils/hwstat port (pulls battery info from ACPI).

There are plenty of X11/graphical battery meters in ports but that's the only one I'm aware of that works on the console.

voretaq7

Posted 2010-03-29T18:34:42.000

Reputation: 2 051

1It was certainly there in 7 and the man pages say it's still there in 8. – Cry Havok – 2010-03-29T21:35:23.843

Yes, it's still there in my 8-STABLE VM (which was installed clean from 8.0-RELEASE). – coneslayer – 2010-03-29T22:15:51.787

3

You want apm -b.

Cry Havok

Posted 2010-03-29T18:34:42.000

Reputation: 3 486

2

Try acpiconf -i 0 or acpiconf -i 0 | grep Remaining.

Consider creating an alias such as battery to make it easier to find the information.

ctype.h

Posted 2010-03-29T18:34:42.000

Reputation: 827

0

I'm using such script in my conky config

sysctl -n hw.acpi.battery.life

SaveTheRbtz

Posted 2010-03-29T18:34:42.000

Reputation: 385

0

Try the following:

acpiconf -i 0 ; man acpiconf

Marica Planinc

Posted 2010-03-29T18:34:42.000

Reputation: 1