Subject: Re: Battery Level on PowerBook 2400
To: Bryan Vyhmeister <bsd@hub3.net>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: port-macppc
Date: 12/18/2002 17:48:38
Bryan Vyhmeister <bsd@hub3.net> writes:

> What would it take to get just a simple battery level on the PowerBook
> 2400? It is my understanding that the Linux people have this for the
> 2400/3400/G3 PowerBooks at least although I am not sure about anything
> newer. Would the Linux code be useful in figuring out what they did?

We have some code that emulates a PC-like APM device in -current as of
last June; make sure you have:

apm0    at adb?

in your kernel configuration, create the apm device node (cd /dev;
./MAKEDEV apm), and you can use the apm(1) command to check battery
status, or build one of the GUI battery meters in pkgsrc, like
sysutils/xbattbar.

        - Nathan