fedora 12中配置thinkpad的trackpoint与中键的滚动功能
前言:
周五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>
2.如果希望水平滚动则加入:
<merge key=”input.x11_options.XAxisMapping” type=”string”>6 7</merge>
3.重启机器,或者重启hal服务与xorg,OK。如果设备是PS/2 Generic Mouse,需要4。
4.如果你的机器是PS/2 Generic Mouse,则需要使用PS/2 Generic Mouse替换”TPPS/2 IBM TrackPoint”即可。
5.Enjoy!
10 Comments »
RSS feed for comments on this post. TrackBack URL
你的blog主题总让我想起windows aero
我也用thinkpad 低端R60e
wp主题就是aerosold
电脑么,一样用,用着舒服就行,
128M内存,20G硬盘,win+fedora,我曾经用了2年左右,fedora还是完全安装,那时候混迹于linux sir…
正好lenovo的学生机活动,用学生机价格入手一台,嘎嘎~~
蓝天,白云,草地,绿树,还有远方的路,梦想的地方啊
晕倒,貌似引号成了中文的引号了。
注意:中文的引号在配置文件可是不认的
您好,我把引号改成ASCII引号了,但是不起作用,我用的是Fedora 12,T400rpm 安装,您有没有什么im联系方式,能否联系下?
hongdanliu[AT]gmail.com
用的rpm安装,是什么意思?
博主,你的fedora功力应该很强,你是怎么学习来的呢?
自己学啊,再加上Google,一般就足够了。
论坛是一个主要的学习渠道,一些fedora社区贡献者组建了Fedora中文用户组论坛:
http://bbs.fedora-zh.org/
你可以在这里提问或者学习,当然我也在这里,而且每周五我们会有irc会议谈论一些话题,学习,生活等等均可。其他相关的网站,推荐linuxsir。
看自己兴趣和愿不愿意学了。
have been following ur blog around three days. absolutely love your posts. by the way i will be doing research regarding this topic. do you know any other good websites or maybe online forums where I might get more? many thanks.
For linux?
http://www.fedoraforum.org/
http://www.linuxforums.org/
linuxsir, chinaunix…