热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

[转载]ThinkpadT400小红帽中键滚动设置

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        
推荐阅读
author-avatar
婕小米
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有