On Sat 2007-08-11 14:26:02, Yan Burman wrote:
> HP Mobile Data Protection System 3D ACPI driver. Similar to hdaps in functionality.
> This driver provides 4 kinds of functionality:
> 1) Creates a misc device /dev/accel that acts similar to /dev/rtc and unblocks
> the process reading from it when the device detects free-fall interrupt
> 2) Functions as an input class device to provide similar functionality to
> hdaps, in order to be able to use the laptop as a joystick
> 3) Provides an interface similar to hdaps, so that hdapsd could work with it
> 4) Makes it possible to power the device off.
I assume this means 'power the sensor down'? What is interface for
that?
Aha, /sys. Could we simply power off the device when its input device
is not opened?
> +Description
> +-----------
> +
> +This driver provides support for the HP Mobile Data Protection
> +System 3D (mdps), which is an accelerometer. HP nc6420, nw9440 and nx9420
> +are supported right now, but it may work on other models as well. The
> +accelerometer data is readable via /sys/devices/platform/mdps.
> +
> +Sysfs attributes under /sys/devices/platform/mdps/:
> +position - 2D position that the accelerometer reports. Format: "(x,y)"
> +position3d - 3D position that the accelerometer reports. Format: "(x,y,z)"
> +calibrate - read: values (x, y) that are used as the base for input class device operation.
> + write: forces the base to be recalibrated.
> +rate - reports the sampling rate of the accelerometer device in HZ
> +state - read: the current power state of the accelerometer device
> + write: "0" or "1" to power on/off the device
> +joystick - read: whether the input class device is active or not
> + write: "0" or "1" to enable/disable the input device
> +
> +Load time parameters:
> +bool joystick - whether to enable the input class device or not (default 1)
> +bool power_off - whether to power off the device on module load (default 0)
> +bool hdaps_compat - Make the driver export same interfaces as hdaps,
> + so that apps like hdaps-gl will work the same as with hdaps (default 0)
> + The effect of this is:
> + 1) Instead of /sys/devices/platform/mdps/, /sys/devices/platform/hdaps/ is created
> + 2) Sensitivity is adjusted to match that of hdaps
> +bool input_3d - Whether to operate as a 3D input device. (default 0)
> + BIG FAT WARNING: Do not enable this mode unless you are sure
> + that you want it, since it eats more CPU
> +
> +This driver also provides an absolute input class device, allowing
> +the laptop to act as a pinball machine-esque joystick.
> +
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]