您的位置:首页 > Web前端

fedora 11 配置 thinkpad trackpoint 中键

2010-11-21 19:38 525 查看
前言:
周五irc会议上遇到asin问thinkpad的trackpoint与中键的滚动功能,后顺利解决,才有了这篇文章。

关于trackpoint的原文在thinkwiki上,我只是照着做了一遍(:-D),原文是How to configure the TrackPoint, 具体如下:
默认情况下,中键在linux上是用作粘贴操作的,而不是和win上一样能和小红点一起组合来上下左右滚动功能的,因此我们需要配置一下。在Ubuntu 8.10 和Fedora 10 以上(fedora 12当然是),是使用udev和HAL配置这些输入设备的。

1.使用lshal|grep input.product查看自己的设备,我的如下:
[liuhongdan@dan ~]$ lshal | grep input.product
input.product = ‘ThinkPad Extra Buttons’ (string)
input.product = ‘Lid Switch’ (string)
input.product = ‘Macintosh mouse button emulation’ (string)
input.product = ‘Sleep Button’ (string)
input.product = ‘Video Bus’ (string)
input.product = ‘Power Button’ (string)
input.product = ‘SynPS/2 Synaptics TouchPad’ (string)
input.product = ‘TPPS/2 IBM TrackPoint’ (string)
input.product = ‘AT Translated Set 2 keyboard’ (string)
input.product = ‘HDA Digital PCBeep’ (string)

2.使用root新建文件/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.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

3.如果希望水平滚动则加入:
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>

4.重启机器,或者重启hal服务与xorg,OK。如果设备是PS/2 Generic Mouse,需要5。

5.如果你的机器是PS/2 Generic Mouse,则需要使用PS/2 Generic Mouse替换”TPPS/2 IBM TrackPoint”即可。

6.Enjoy!

转载自 http://liuhongdan.com/?p=806
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: