PBBAT(4) | Device Drivers Manual | PBBAT(4) |
pbbat
— PowerBook
1xx Battery and AC adaptor
pbbat* at aed?
The pbbat
driver supports PowerBook 1xx
batteries and AC adaptors.
The battery and adaptor status are made available through the envsys(4) API. The battery information can be displayed also with the envstat(8) command:
$ envstat Current CritMax WarnMax WarnMin CritMin Unit [AC Adaptor] connected: TRUE [pbbat0] present: TRUE design voltage: 6.000 V voltage: 7.267 V design cap: 60.000 Wh last full cap: N/A charge: 47.910 3.674% 2.799% Wh (47.91%) charge rate: N/A discharge rate: 5.641 W charging: TRUE charge state: NORMAL
The pbbat
driver is able to send events to
powerd(8) daemon when a
capacity state has been changed. The new state will be reported as the
fourth
argument to the /etc/powerd/scripts/sensor_battery
script. If a custom capacity limit was set via
envstat(8), the
pbbat
driver will report a
user-capacity
event to the same script when current capacity limit has been reached. AC
Adaptor events are passed to the
/etc/powerd/scripts/acadaptor script as pressed and
released events when power is connected or disconnected respectively.
Nathanial Sloss
The pbbat
driver appeared in
NetBSD 11.
This driver currently only supports the PowerBook 100 series batteries excluding the 150 and 190 computers.
The design capacity is an approximation of charge based on a new battery.
The charge and discharge rates are approximations between successive reads of the battery capacity and should not be relied upon for accurate running time calculations.
March 28, 2025 | NetBSD 10.99 |