10d06db5aSConstantine A. Murenin.\" $OpenBSD: aps.4,v 1.8 2007/12/23 22:09:19 jmc Exp $ 20d06db5aSConstantine A. Murenin.\" 30d06db5aSConstantine A. Murenin.\" Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org> 40d06db5aSConstantine A. Murenin.\" 50d06db5aSConstantine A. Murenin.\" Permission to use, copy, modify, and distribute this software for any 60d06db5aSConstantine A. Murenin.\" purpose with or without fee is hereby granted, provided that the above 70d06db5aSConstantine A. Murenin.\" copyright notice and this permission notice appear in all copies. 80d06db5aSConstantine A. Murenin.\" 90d06db5aSConstantine A. Murenin.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 100d06db5aSConstantine A. Murenin.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 110d06db5aSConstantine A. Murenin.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 120d06db5aSConstantine A. Murenin.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 130d06db5aSConstantine A. Murenin.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 140d06db5aSConstantine A. Murenin.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 150d06db5aSConstantine A. Murenin.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 160d06db5aSConstantine A. Murenin.\" 17017d4aa0SConstantine A. Murenin.Dd March 18, 2010 180d06db5aSConstantine A. Murenin.Dt APS 4 190d06db5aSConstantine A. Murenin.Os 200d06db5aSConstantine A. Murenin.Sh NAME 210d06db5aSConstantine A. Murenin.Nm aps 220d06db5aSConstantine A. Murenin.Nd ThinkPad Active Protection System accelerometer 230d06db5aSConstantine A. Murenin.Sh SYNOPSIS 24017d4aa0SConstantine A. MureninTo compile this driver into the kernel, 25017d4aa0SConstantine A. Mureninplace the following lines in your 26017d4aa0SConstantine A. Mureninkernel configuration file: 27017d4aa0SConstantine A. Murenin.Bd -ragged -offset indent 28017d4aa0SConstantine A. Murenin.Cd "device isa" 2923e32507SConstantine A. Murenin.Cd "device aps0 at isa? port 0x1600" 30017d4aa0SConstantine A. Murenin.Ed 31017d4aa0SConstantine A. Murenin.Pp 32017d4aa0SConstantine A. MureninAlternatively, to load the driver as a 33017d4aa0SConstantine A. Mureninmodule at boot time, place the following line in 34017d4aa0SConstantine A. Murenin.Xr loader.conf 5 : 35017d4aa0SConstantine A. Murenin.Bd -literal -offset indent 36017d4aa0SConstantine A. Mureninaps_load="YES" 37017d4aa0SConstantine A. Murenin.Ed 380d06db5aSConstantine A. Murenin.Sh DESCRIPTION 390d06db5aSConstantine A. MureninThe 400d06db5aSConstantine A. Murenin.Nm 4123e32507SConstantine A. Murenindriver provides support for several sensors found in some 4223e32507SConstantine A. Murenin.Tn ThinkPad 4323e32507SConstantine A. Mureninlaptops. 440d06db5aSConstantine A. Murenin.Pp 4523e32507SConstantine A. MureninThe sensors currently supported are: 460d06db5aSConstantine A. Murenin.Bl -column "Sensor " "Units " "Typical" -offset indent 470d06db5aSConstantine A. Murenin.It Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use" 480d06db5aSConstantine A. Murenin.It Li "X_ACCEL" Ta "Unknown" Ta "X Acceleration" 490d06db5aSConstantine A. Murenin.It Li "Y_ACCEL" Ta "Unknown" Ta "Y Acceleration" 500d06db5aSConstantine A. Murenin.It Li "X_VAR" Ta "Unknown" Ta "Weighted X Acceleration?" 510d06db5aSConstantine A. Murenin.It Li "Y_VAR" Ta "Unknown" Ta "Weighted Y Acceleration?" 520d06db5aSConstantine A. Murenin.It Li "Temp1" Ta "uK" Ta "Unknown" 530d06db5aSConstantine A. Murenin.It Li "Temp2" Ta "uK" Ta "Unknown" 540d06db5aSConstantine A. Murenin.It Li "Keyboard Active" Ta "boolean" Ta "Keyboard activity" 550d06db5aSConstantine A. Murenin.It Li "Mouse Active" Ta "boolean" Ta "Mouse activity" 560d06db5aSConstantine A. Murenin.It Li "Lid Open" Ta "boolean" Ta "Lid state" 570d06db5aSConstantine A. Murenin.El 5823e32507SConstantine A. Murenin.Pp 5923e32507SConstantine A. MureninSensor values are made available through the 6023e32507SConstantine A. Murenin.Dv HW_SENSORS 6123e32507SConstantine A. Murenin.Xr sysctl 3 6223e32507SConstantine A. Murenininterface, 6323e32507SConstantine A. Mureninand can be monitored with the 6423e32507SConstantine A. Murenin.Xr systat 1 6523e32507SConstantine A. Murenin.Ar sensors 6623e32507SConstantine A. Murenindisplay, 6723e32507SConstantine A. Murenin.Xr sensorsd 8 6823e32507SConstantine A. Mureninand 6923e32507SConstantine A. Murenin.Xr sysctl 8 7023e32507SConstantine A. Murenin.Ar hw.sensors . 7123e32507SConstantine A. MureninFor example, on a ThinkPad R51: 7223e32507SConstantine A. Murenin.Bd -literal -offset indent 7323e32507SConstantine A. Murenin%sysctl hw.sensors.aps0 7423e32507SConstantine A. Mureninhw.sensors.aps0.raw0: 488 (X_ACCEL) 7523e32507SConstantine A. Mureninhw.sensors.aps0.raw1: 481 (Y_ACCEL) 7623e32507SConstantine A. Mureninhw.sensors.aps0.raw2: 488 (X_VAR) 7723e32507SConstantine A. Mureninhw.sensors.aps0.raw3: 481 (Y_VAR) 7823e32507SConstantine A. Mureninhw.sensors.aps0.temp0: 52.00 degC 7923e32507SConstantine A. Mureninhw.sensors.aps0.temp1: 52.00 degC 8023e32507SConstantine A. Mureninhw.sensors.aps0.indicator0: Off (Keyboard Active) 8123e32507SConstantine A. Mureninhw.sensors.aps0.indicator1: Off (Mouse Active) 8223e32507SConstantine A. Mureninhw.sensors.aps0.indicator2: On (Lid Open) 8323e32507SConstantine A. Murenin.Ed 840d06db5aSConstantine A. Murenin.Sh SEE ALSO 8523e32507SConstantine A. Murenin.Xr systat 1 , 8623e32507SConstantine A. Murenin.Xr sysctl 3 , 8723e32507SConstantine A. Murenin.Xr intro 4 , 880d06db5aSConstantine A. Murenin.Xr isa 4 , 890d06db5aSConstantine A. Murenin.Xr sensorsd 8 , 900d06db5aSConstantine A. Murenin.Xr sysctl 8 910d06db5aSConstantine A. Murenin.Sh HISTORY 920d06db5aSConstantine A. MureninThe 930d06db5aSConstantine A. Murenin.Nm 940d06db5aSConstantine A. Murenindriver first appeared in 950d06db5aSConstantine A. Murenin.Ox 3.8 . 9623e32507SConstantine A. Murenin.Dx 9723e32507SConstantine A. Mureninsupport was added in 9823e32507SConstantine A. Murenin.Dx 2.5 . 990d06db5aSConstantine A. Murenin.Sh AUTHORS 10023e32507SConstantine A. Murenin.An -nosplit 1010d06db5aSConstantine A. MureninThe 1020d06db5aSConstantine A. Murenin.Nm 1030d06db5aSConstantine A. Murenindriver was written by 104*b2a6f486SFranco Fichtner.An Jonathan Gray Aq Mt jsg@openbsd.org . 10523e32507SConstantine A. MureninIt was adapted to 10623e32507SConstantine A. Murenin.Dx 10723e32507SConstantine A. Mureninby 10823e32507SConstantine A. Murenin.An Constantine A. Murenin , 10923e32507SConstantine A. MureninUniversity of Waterloo. 1100d06db5aSConstantine A. Murenin.Sh CAVEATS 1110d06db5aSConstantine A. MureninThe 1120d06db5aSConstantine A. Murenin.Nm 1130d06db5aSConstantine A. Murenindriver does not yet maintain state and subsequently does not take 1140d06db5aSConstantine A. Mureninevasive action when it thinks the hard drive is in danger. 1150d06db5aSConstantine A. Murenin.Pp 1160d06db5aSConstantine A. MureninThe Y axis on X40 and possibly other models seems to be inverted. 1170d06db5aSConstantine A. MureninIt is unknown how to distinguish between different versions of the 1180d06db5aSConstantine A. Mureninaccelerometer to compensate for this in the driver at this time. 1190d06db5aSConstantine A. Murenin.Pp 1200d06db5aSConstantine A. MureninAs IBM provides no documentation, it is not known what all the available 1210d06db5aSConstantine A. Mureninsensors are used for. 122