I have found some free time (long night) to implement a kernel module which converts the axis reported by the HTC Shift G-Sensor accelerometer (see previous post!) into a Joystick input event device.



Install Instructions

Download the tarball, extract it to some temporary directory, compile and install it:

# make # make install

Load the needed modules:

#modprobe i2c\_i801 #modprobe i2c\_dev #modprobe gsensor-joy #modprobe joydev

If you want that automatically loaded every boot, you can also add them to /etc/modules.

For X.org configuration see the README file included in the tarball.

Here’s a demo video playing TuxRacer…

Demo Video