用以前的EmulateWheel的方法也不能正常使用(只有中键点击的效果,还只能对文件进行操作)。
不甘心,昨天Google了一下,找到了解决办法,不敢独享,给黑友们分享一下。
注意:仅针对X60,其他型号可能设置有所不同。
大概翻译一下:Scrolling with the Thinkpad's TrackPoint in Ubuntu 8.10 Intrepid
Ubuntu Intrepid (8.10) switches to evdev for X server input, which has the unfortunate side effect of breaking old EmulateWheel configurations. So scrolling using the middle button + TrackPoint (which I absolutely love) was broken for a while. However, the version of evdev in Intrepid has now caught up and supports these features. Instead of modifying your xorg.conf, create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi with the following contents:
<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.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
(Based on code from Michael Vogt and adapted to support both vertical and horizontal scrolling.)
In only tangentially related news, Lenovo recently announced the Thinkpads X200 and (more recently) X200s. The general consensus among reviewers is that if you love the X61, you'll love the X200. It's basically an update of the X61 with newer Intel chips and a widescreen display (with better pixel density); consequently, it is a bit wider and not as deep and has a full size keyboard. Shame I'm nowhere near the end of an upgrade cycle.
Update: by the way, you'll have to restart hal and gdm for the changes to take effect.
Update, 29 Oct 2008: I tested the above code on an X61s. The X200 (and possibly other new Thinkpads?) seems to have a different hardware configuration, so the config above doesn't work. Furthermore, an update to Ubuntu Intrepid (subsequent to my original post) breaks TrackPoint scrolling either completely or only after suspending and resuming. See Ubuntu bug 282387 for instructions on compiling and installing upstream's fixed version.
Ubuntu 8.10 转向用evdev作为X server的输入,所以以前用EmulateWheel设置的方式使用中间滚轮键的方法就失效了。但是现在的evdev也支持更改设置来使用滚轮键(不然Ubuntu岂不是越出越差了:P)。
解决办法很简单,只需要先新建一个文件 /etc/hal/fdi/policy/mouse-wheel.fdi, 并添加以下内容就可以了:
<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.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
*提醒一下刚接触Ubuntu的新手,这个文件夹需要root权限才能修改,所以
代码: 全选
sudo touch /etc/hal/fdi/policy/mouse-wheel.fdi
代码: 全选
sudo gedit
sudo touch /etc/hal/fdi/policy/mouse-wheel.fdi
别忘了重新启动hal和gdm服务(实在不会就restart一下吧)。
再次登录进系统,滚轮键就可以使用了。
由于本人只有X60,此方法在X60上经测试没有问题,其他型号Thinkpad可能要改一些设置,需要的话可以参考一下原文:http://psung.blogspot.com/2008/09/scrol ... nt-in.html
Hope it can help.
Have fun with Ubuntu!