11/04/2009

Enable New Lenovo ThinkPad USB Keyboard with Trackpoint on Ubuntu 9.10

How to enable the middle key scrolling function of Lenovo ThinkPad USB Keyboard with Trackpoint on Ubuntu 9.10?

Add a file named mouse-wheel.fdi at /etc/hal/fdi/policy/ with the following content.


<match key="info.product" string="Lite-On Technology Corp. ThinkPad USB Keyboard>
<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.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>


Restart the computer!

沒有留言: