xref: /openbsd/share/man/man4/aps.4 (revision 5af055cd)
1.\"	$OpenBSD: aps.4,v 1.10 2013/07/16 16:05:48 schwarze Exp $
2.\"
3.\" Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
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: July 16 2013 $
18.Dt APS 4
19.Os
20.Sh NAME
21.Nm aps
22.Nd ThinkPad Active Protection System accelerometer
23.Sh SYNOPSIS
24.Cd "aps0 at isa? port 0x1600"
25.Sh DESCRIPTION
26The
27.Nm
28driver provides support for several sensors found in some ThinkPad laptops.
29.Pp
30The sensors currently exposed via the
31.Xr sysctl 8
32interface are:
33.Bl -column "Keyboard Active" "Unknown" "Typical Use" -offset indent
34.It Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use"
35.It Li "X_ACCEL" Ta "Unknown" Ta "X Acceleration"
36.It Li "Y_ACCEL" Ta "Unknown" Ta "Y Acceleration"
37.It Li "X_VAR" Ta "Unknown" Ta "Weighted X Acceleration?"
38.It Li "Y_VAR" Ta "Unknown" Ta "Weighted Y Acceleration?"
39.It Li "Temp1" Ta "uK" Ta "Unknown"
40.It Li "Temp2" Ta "uK" Ta "Unknown"
41.It Li "Keyboard Active" Ta "boolean" Ta "Keyboard activity"
42.It Li "Mouse Active" Ta "boolean" Ta "Mouse activity"
43.It Li "Lid Open" Ta "boolean" Ta "Lid state"
44.El
45.Sh SEE ALSO
46.Xr isa 4 ,
47.Xr sensorsd 8 ,
48.Xr sysctl 8
49.Sh HISTORY
50The
51.Nm
52driver first appeared in
53.Ox 3.8 .
54.Sh AUTHORS
55The
56.Nm
57driver was written by
58.An Jonathan Gray Aq Mt jsg@openbsd.org .
59.Sh CAVEATS
60The
61.Nm
62driver does not yet maintain state and subsequently does not take
63evasive action when it thinks the hard drive is in danger.
64.Pp
65The Y axis on X40 and possibly other models seems to be inverted.
66It is unknown how to distinguish between different versions of the
67accelerometer to compensate for this in the driver at this time.
68.Pp
69As IBM provides no documentation, it is not known what all the available
70sensors are used for.
71