分类: LINUX
2009-11-12 22:24:28
synaptics
On
40
1
1
1
3
2
3. 创建如下内容的脚本
#!/bin/sh
#
# Use xinput --list-props "SynPS/2 Synaptics TouchPad" to extract data
#
# Set multi-touch emulation parameters
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 32 8
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 8 1 1
# Disable edge scrolling
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 8 0 0 0
# This will make cursor not to jump if you have two fingers on the touchpad and you list one
# (which you usually do after two-finger scrolling)
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 32 110
# This will diable HorizTwoFingerScroll
synclient HorizTwoFingerScroll=0
# This will disable two finger tap
synclient TapButton2=0
//红色字体部分为后来添加,第一句是禁止水平滚动,第二句为禁止双指单击(本来的值为3,双指单击后即鼠标右键的功能)
更改文件的访问权限,然后随便丢在哪个目录下面吧
4. 把上面的脚本添加到开机自启动里面,这样用户登录后就可以使用双指滚动了
系统->首选项->启动应用程序,添加,OK搞定
5. 重启电脑,打开firefox测试(其他也可以测试,文档啊,图片啊,都可以的)
以上文档为个人总结,仅供参考
本文参考了如下文章,详情可以点击:
Setting up multi-touch scrolling for Ubuntu 9.10 Karmic Koala Linux on Asus Eee 1005HA netbook
http://blog.twinapex.fi/2009/10/11/setting-up-multi-touch-scrolling-for-ubuntu-9-10-karmic-koala-linux-on-asus-eee-1005ha-netbook/
如何开启SHMConfig
这里,可以不用关心具体的笔记本型号,只要该笔记本的触摸板满足下面两个条件
Synaptics driver can emulate two-finger touch with the following conditions
都可以通过emulation来实现双指滚动
下面命令可以参考:
$xinput list //用来列出所有input设备
$xinput list-props 10 //10是设备id 这里指的是touchpad
$ synclient -l //这个命令将touchpad的配置列举出来