ubuntu 10.04 thinkpad 中键滚屏 配置

原创
2010/05/10 10:21
阅读数 1.6K

方法一(基于命令行):参考 http://forum.ubuntu.org.cn/viewtopic.php?f=42&t=264157&start=0
垂直滚动代码

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 (我在执行时,这行出错,但没有影响功能,执行完成后可以滚屏)

水平滚动代码

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5


重新启动后无效,如果希望不用每次启动都要去运行一次代码,可以写一个脚本文件放在启动应用程序里,在系统每次启动的时候自动运行。
写一个trackPointScrolling.sh的文件(记得要加上执行权限)代码如下:
sleep 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

说明一点:不知是不是ubuntu 10.04启动得太快了,要在开头加上sleep 2才比较好,不然好像有时会启作用。
在启动应用程序首选项里 增加一项 代码./trackPointScrolling.sh trackPointScrolling.sh放在用户目录下。

 

 

[推荐]方法二(基于图形界面): 参考 http://blog.sina.com.cn/s/blog_55e606c20100jbxz.html

1. 安装 Gpointing Device Settings。

sudo apt-get install gpointing-device-settings

 

系统 - 首选项 - Pointing Devices, 按如下配置:

 

要选择的数字可能不一样,默认选择是4, 我选择2才有效。

展开阅读全文
加载中
点击加入讨论🔥(2) 发布并加入讨论🔥
2 评论
0 收藏
0
分享
返回顶部
顶部