The programming specifications for this device were obtained by Johannes Berg by reverse enginneering the Mac OSX driver, and are available here. This driver is implemented using a clean room approach from the above specifications.
The ams driver is not complete yet. It does not do anything special (except printing a message) when a shock or a free fall is detected (the OSX driver parks the hard disk drives when this is happenning).
/sys/devices/ams you will find three files
z) which contain
the sensor values for changes in each direction.
You can turn the ams driver into a mouse like input device by
loading the module with the
mouse option or at any
time by writing 1 to
/sys/devices/ams/mouse (writing 0
will disable the input device).
|Last modified: Wed May 24 11:21:12 CEST 2006|