ACPIBAT(4)
π NAME π
okay so this is acpibat(4) from the Kernel Interfaces Manual, bestie β itβs literally the page for the ACPI Battery driver.
acpibat β ACPI Battery π
π SYNOPSIS π
acpibat* at acpi?
β¨ DESCRIPTION β¨
the acpibat driver supports ACPI batteries. no cap, thatβs the whole vibe.
The battery status is made available through the envsys(4) API, and you can also display the battery information with the envstat(8) command:
$ envstat -d acpibat0
Current CritMax WarnMax WarnMin CritMin Unit
present: ON
design voltage: 14.400 V
voltage: 16.267 V
design cap: 74.880 Wh
last full cap: 48.260 Wh
charge: 47.910 5.000% 0.414% Wh (99.27%)
charge rate: N/A
discharge rate: 16.641 W
charging: OFF
charge state: NORMAL
Depending on the battery, the unit of measurement for the capacity-related information is either watt-hour (Wh) or ampere-hour (Ah). From these, the charge is usually the most interesting value β main character energy, honestly β but itβs possible to derive useful information from the other values too. For example, when acpiacad(4) is disconnected, the discharge rate gives a coarse approximation of the current power consumption. The ratio between the design capacity and the last full capacity, on the other hand, reveals the overall health of deteriorating lithium-ion batteries. π¦
π¦ EVENTS π¦
the acpibat driver is able to send events to the 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. iykyk.
If a custom capacity limit was set via envstat(8), the acpibat driver will report a user-capacity event to the same script when the current capacity limit has been reached. periodt. π
π₯ SEE ALSO π₯
πΈ HISTORY πΈ
The acpibat driver appeared in NetBSD 1.6. a whole icon. π
π BUGS π
β οΈ real talk, bestie: the ACPI specifications make a distinction between βcontrol method batteriesβ and βsmart batteriesβ. Theacpibatdriver only supports control method batteries. Furthermore,acpibatdoes not yet support some additional battery information introduced in the ACPI 4.0 standard. not me fixing that today, but noted. π
brought to you by the source/version footer cuties: Debian, dated March 17, 2010, filed as ACPIBAT(4) β mwah ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms