stick2mouse

home / linux / stick2mouse
Latest: stick2mouse-0.3.tar.bz2
See also: http://wiki.github.com/hiikezoe/xf86-input-pointing-stick/ (more advanced than this driver, maybe you should use it instead). This is an experimental driver for Synaptics USB Styk devices (trackpoints). This driver is analogous to the X.Org driver for touchpads, however, instead of reporting input events directly to the X server, it reports them to the kernel via uinput. This driver needs the synaptics-usb kernel module compiled and loaded.

Notice that I do not have a Synaptics USB Styk device, so the driver might not yet work properly. Please report any experience with this driver. Or if you have some experience with C, you are welcome to improve it (the relevant code is in emu.c).

Additional kernel configuration

This driver needs uinput support in the kernel:
	CONFIG_INPUT_UINPUT: y/m
		Device Drivers --->
		    Input Device Support --->
			Miscellaneous devices --->
			    User level driver support

Testing the driver

To compile stick2mouse, simply run make. Now we must bind the trackpoint device to the synaptics-usb kernel module:
	synaptics-usb rebind_stick_to synaptics-usb
The uinput kernel module must be loaded:
	modprobe uinput
Finally run the driver with:
	./stick2mouse --sensitivity 100

Changes

version 0.3:
  • inverted y-axis
  • libusb is now the default input method
    version 0.2:
  • rescaled sensitivity by 100
    version 0.1:
  • first release