Archive for August, 2008

xorg, evdev and EmulateWheel

August 15, 2008

With the switch to evdev as the input for the xserver in intrepid I lost my EmulateWheel settings. I use this option on my Thinkpad a lot. I have configured the middle mouse button so that I can scroll up and down with the trackpoint. I really love this option and use it quite a lot.

So today I decided to look into what can be done to get it back 🙂 With the help of Timo Aaltonen and Julien Cristau I made it work again.

You need a very recent xserver-xorg-input-evdev (git snapshot) that I put into my PPA at “deb http://ppa.launchpad.net/mvo/ubuntu intrepid main” and then a fdi file in /etc/hal/fdi/policy/mouse-wheel.fdi that looks like this:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

You may have to alter the “info.product” key for your system to make it work. After restarting hal and the xserver, that gave me my middle button scroll back and I’m a happy (and productive) man again.

Advertisements