作者:婕小米 | 来源:互联网 | 2023-05-17 11:41
Fedora对ThinkPad的支持还不错。但Fedora16安装在ThinkPad上后,小红帽(TrackPoint)中键的垂直滚动功能默认是没有的,如果启用该功能,需要采取如下办法
Fedora 对 ThinkPad 的支持还不错。但 Fedora 16 安装在 ThinkPad 上后,小红帽(TrackPoint)中键的垂直滚动功能默认是没有的,如果启用该功能,需要采取如下办法:
1. 安装 xinput 依赖包 xorg-x11-apps-7.6-2.xxxx.rpm,具体的软件包名称依据发行版体系架构而定。
2. 启用垂直滚动
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 8 200
以上在 Fedora 16 上是可行的,应该也可以应用于 Fedora 17。
该方法来源:http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint
On a Modern distribution (like Fedora, Ubuntu or OpenSUSE) you will want to use xinput or one of the graphical front ends. For distributions that are lagging a bit (e.g. Debian Lenny and PCLOS '09) you may still want to use the old xorg config method.
Configuration using xinput
If you want to modify changes on the fly, you can do so with xinput
(part of the optional xorg-x11-apps rpm on Fedora). Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your .xsessionrc
(depends on your distribution) so they are executed every time X starts.
To query the available options
xinput list-props "TPPS/2 IBM TrackPoint"
More information can be found in the man-pages for evdev
man evdev
To enable vertical scrolling
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 8 200
To enable horizontal scrolling in addition to vertical scrolling
xinput set-int-prop "TPPS/2 IB