diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-08-05 03:52:33 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-08-05 03:52:33 +0000 |
commit | 14214d82b691f19a6b7a0ce009cd927660657721 (patch) | |
tree | 4dbebe1a6dbdc71be92b17ee06ad046a25baabc3 /share/man | |
parent | f8c05085cc9019a622bed50e4b27afec1423dcee (diff) |
Start of a driver for the "Active Protection System" accelerometer
found in recentish ThinkPads.
Sensors are reported via hw.sensors in sysctl but sensor numbers
and presence is likely to change. Units and use of all of the
sensors is not yet known as IBM has not released any documentation.
Driver is based on information reverse engineered from the windows
driver by Anurag Sharma and Mark Smith.
"commit the code" deraadt@
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man4/Makefile | 4 | ||||
-rw-r--r-- | share/man/man4/aps.4 | 65 |
2 files changed, 67 insertions, 2 deletions
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 1a54cae6a1d..0de621c9c43 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.308 2005/08/03 14:50:18 mickey Exp $ +# $OpenBSD: Makefile,v 1.309 2005/08/05 03:52:32 jsg Exp $ MAN= aac.4 ac97.4 acphy.4 addcom.4 adv.4 aha.4 ahb.4 ahc.4 ahd.4 \ - aic.4 amdpm.4 ami.4 amphy.4 an.4 aria.4 ast.4 atalk.4 \ + aic.4 amdpm.4 ami.4 amphy.4 an.4 aps.4 aria.4 ast.4 atalk.4 \ atapiscsi.4 ath.4 atu.4 atw.4 audio.4 aue.4 auich.4 autri.4 \ auvia.4 awi.4 axe.4 az.4 bce.4 bge.4 bha.4 bio.4 bktr.4 \ bmtphy.4 boca.4 bpf.4 brgphy.4 bridge.4 cac.4 cardbus.4 \ diff --git a/share/man/man4/aps.4 b/share/man/man4/aps.4 new file mode 100644 index 00000000000..41acbe90434 --- /dev/null +++ b/share/man/man4/aps.4 @@ -0,0 +1,65 @@ +.\" $OpenBSD: aps.4,v 1.1 2005/08/05 03:52:32 jsg Exp $ +.\" +.\" Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org> +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd August 5, 2005 +.Dt APS 4 +.Os +.Sh NAME +.Nm aps +.Nd ThinkPad Active Protection System accelerometer +.Sh SYNOPSIS +.Cd "aps0 at isa? port 0x1600" +.Sh DESCRIPTION +The +.Nm +driver provides support for several sensors found in some ThinkPad laptops. +.Pp +The sensors currently exposed via the +.Xr sysctl 8 +interface are: +.Bl -column "Sensor" "Units" "Typical" -offset indent +.It Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use" +.It Li "X_ACCEL" Ta "Unknown" Ta "X Acceleration" +.It Li "Y_ACCEL" Ta "Unknown" Ta "Y Acceleration" +.It Li "X_VAR" Ta "Unknown" Ta "Weighted X Acceleration?" +.It Li "Y_VAR" Ta "Unknown" Ta "Weighted Y Acceleration?" +.It Li "Temp1" Ta "uK" Ta "Unknown" +.It Li "Temp2" Ta "uK" Ta "Unknown" +.It Li "KBD_ACT" Ta "boolean" Ta "Keyboard activity" +.It Li "MS_ACT" Ta "boolean" Ta "Mouse activity" +.It Li "LID_OPEN" Ta "boolean" Ta "Lid state" +.It Li "unknown" Ta "Unknown" Ta "Unknown" +.El +.Sh SEE ALSO +.Xr sensorsd 8 , +.Xr sysctl 8 +.Sh HISTORY +The +.Nm +driver first appeared in +.Ox 3.8 . +.Sh AUTHORS +The +.Nm +driver was written by +.An Jonathan Gray Aq jsg@openbsd.org . +.Sh CAVEATS +The +.Nm +driver does not yet maintain state and take evasive action when it +thinks the hard disk is in danger. +As IBM provides no documentation it is not known what all the available +sensors are used for. |