PBBAT(4)

NAME
pbbat - PowerBook 1xx Battery and AC adaptor

SYNOPSIS
pbbat* at aed?

DESCRIPTION
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

EVENTS
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.

SEE ALSO
adb(4), envsys(4), envstat(8), powerd(8)

AUTHORS
Nathanial Sloss

HISTORY
The pbbat driver appeared in NetBSD 11.

BUGS
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.