ubuntu 10.04 thinkpad 中键滚屏 配置

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

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

水平滚动代码
html

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放在用户目录下。web

 

 

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

1. 安装 Gpointing Device Settings。spa

sudo apt-get install gpointing-device-settings

 

系统 - 首选项 - Pointing Devices, 按以下配置:命令行

 

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

相关文章
相关标签/搜索