Showing posts with label xorg. Show all posts
Showing posts with label xorg. Show all posts

Monday, February 4, 2008

Slow down your evdev mouse

Evdev is a generic input device driver for xorg. It provides basic support to a wide range of keyboards and mice. Particularly, sometimes the mouse driver may not work well with your stylish mouse, e.g. my Logitech VX Revolution. Then give evdev a shot and very likely it's gonna work like a charm. Generic as it is, however, evdev lacks many advanced features, among which one remarkable feature is to slow down mouse speed. AFAIK the mouse driver also lacks this functionality in its up-to-date version. To make it even worse, evdev does not respect "xset m" instructions, which could be used as a workaround for mouse. Thus if you possess a mouse with really high resolution, the flying speed will likely render it useless with evdev.

Now that's enough for background. I've made a tiny patch against xf86-input-evdev version 1.1.5, to add a "Speed" parameter to evdev. It takes a real value between 0 and 1, and a line like this in your evdev device section
Option "Speed" "0.5"
will slow down your mouse by half. The option defaults to 1.0 meaning original speed.

The patch is here (evdev-speed-1.1.5.patch) and I've also built a deb package for it here (xserver-xorg-input-evdev_1.1.5-0ubuntu2+jason1_i386.deb).