xref: /openbsd-src/share/man/man4/acpibat.4 (revision d7eef35ec2eeca07253f68482ed3c7005d31a0fa)
1.\"     $OpenBSD: acpibat.4,v 1.8 2017/03/30 16:04:36 jcs Exp $
2.\"
3.\" Copyright (c) 2006 Dmitri Alenitchev <dmitri@wave.net.ru>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: March 30 2017 $
18.Dt ACPIBAT 4
19.Os
20.Sh NAME
21.Nm acpibat
22.Nd ACPI control method battery
23.Sh SYNOPSIS
24.Cd "acpibat* at acpi?"
25.Sh DESCRIPTION
26The
27.Nm
28driver supports the ACPI Control Method Battery interface between the
29battery and the host.
30Information about the battery, such as capacity, recharge rate, voltage,
31and serial number, is available through this driver.
32Battery status is updated through an event triggered when a battery
33changes state (such as starting to charge) and, as a failsafe if the
34system does not support passing such events, every 10 seconds.
35Battery status can be monitored using
36.Xr sysctl 8
37or
38.Xr sensorsd 8 .
39.Sh SEE ALSO
40.Xr acpi 4 ,
41.Xr acpisbs 4 ,
42.Xr intro 4 ,
43.Xr sensorsd 8 ,
44.Xr sysctl 8
45.Sh HISTORY
46The
47.Nm
48driver first appeared in
49.Ox 3.8 .
50.Sh AUTHORS
51.An -nosplit
52The
53.Nm
54driver was written by
55.An Marco Peereboom Aq Mt marco@openbsd.org .
56.Sh BUGS
57Some systems do not propagate battery insertion up to the driver.
58