貌似ubuntu默认没有开启触摸板三指模拟中键的功能;
于是,我使用 synclient ClickFinger3=2 来手动开启;
但是,每次重启系统之后,这个设置就丢了;
求一劳永逸的解决方案——这个触摸板的配置文件到底在哪里?该它的配置文件可行吗?
触摸板中键模拟与synclient命令
-
- 帖子: 403
- 注册时间: 2007-10-27 1:04
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- lilydjwg
- 论坛版主
- 帖子: 4258
- 注册时间: 2009-04-11 23:46
- 系统: Arch Linux
- 联系:
Re: 触摸板中键模拟与synclient命令
这是我的 /etc/X11/xorg.conf.d/50-synaptics.conf。你如果有的话就自己加上,没有的话摘抄一些过去好了。
代码: 全选
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
Option "SHMConfig" "on"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "HorizEdgeScroll" "1"
Option "VertEdgeScroll" "1"
Option "VertTwoFingerScroll" "1"
Option "HorizTwoFingerScroll" "1"
Option "CircularScrolling" "1"
Option "CircScrollTrigger" "3"
Option "EdgeMotionUseAlways" "1"
Option "RightEdge" "5850"
Option "LockedDrags" "1"
Option "LockedDragTimeout" "300"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
MatchDevicePath "/dev/input/event*"
EndSection
Section "InputClass"
Identifier "touchpad ignore duplicates"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "Ignore" "on"
EndSection
# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
# To disable the bottom edge area so the buttons only work as buttons,
# not for movement, set the AreaBottomEdge
# Option "AreaBottomEdge" "82%"
EndSection
# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Disable clickpad buttons on Apple touchpads"
MatchProduct "Apple|bcm5974"
MatchDriver "synaptics"
Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
-
- 帖子: 403
- 注册时间: 2007-10-27 1:04
Re: 触摸板中键模拟与synclient命令
多谢 lilydjwg;不过,我的 这个conf 文件在 /usr/share/X11下面。
另外,有木有详细一点的文档啊?搞不清楚这些option 分别是啥意思?
主要是英文不咋地,man synaptics 看得我云里雾里。
另外,有木有详细一点的文档啊?搞不清楚这些option 分别是啥意思?
主要是英文不咋地,man synaptics 看得我云里雾里。
-
- 论坛版主
- 帖子: 5371
- 注册时间: 2007-01-14 16:23
Re: 触摸板中键模拟与synclient命令
貌似是有个配置文件的……不过不一样的发行版好像存放位置不一样,不好乱说,不过名字里面应该是有synclient……英文不好这个真没办法,查字典吧,option基本就是字面意思……比方说横向滚动,竖向滚动啥的
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
- lilydjwg
- 论坛版主
- 帖子: 4258
- 注册时间: 2009-04-11 23:46
- 系统: Arch Linux
- 联系:
Re: 触摸板中键模拟与synclient命令
那把它复制到 /etc/X11/xorg.conf.d 中去再改。命令行的 synclient ClickFinger3=2 就等同于你在这里写 Option ClickFinger3 "2"。sarrow 写了:多谢 lilydjwg;不过,我的 这个conf 文件在 /usr/share/X11下面。
另外,有木有详细一点的文档啊?搞不清楚这些option 分别是啥意思?
主要是英文不咋地,man synaptics 看得我云里雾里。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 触摸板中键模拟与synclient命令
1. 這個檔案是安裝 xserver-xorg-input-synaptics 時產生的/usr/share/X11/xorg.conf.d/50-synaptics.conf
第四行
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating.
建議不要修改這個檔案 因爲更新時 會被覆蓋 (意思是 改了也是白改)
第五行
# Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
建議複製
50-synaptics.conf
到
/etc/X11/xorg.conf.d
第七行
# Additional options may be added in the form of
# Option "OptionName" "value"
建議修改這個複製到 /etc/X11/xorg.conf.d 的 50-synaptics.conf 的參數格式
再下面的行數是 參數格式的舉例 及 參考網址
2. 安裝 xserver-xorg-input-synaptics 時 提供兩個指令
更詳細的參數格式 參閱
/usr/bin/synclient
http://manpages.ubuntu.com/manpages/pre ... ent.1.html
/usr/bin/syndaemon
http://manpages.ubuntu.com/manpages/pre ... mon.1.html
3. 進一步參閱
Xorg - X11R7 X server
http://manpages.ubuntu.com/manpages/pre ... org.1.html
synaptics - touchpad input driver
http://manpages.ubuntu.com/manpages/pre ... ics.4.html
4. Synaptics Help 及其連結文章
https://help.ubuntu.com/community/SynapticsTouchpad
-
- 帖子: 403
- 注册时间: 2007-10-27 1:04
Re: 触摸板中键模拟与synclient命令
好吧,被郁闷了。
多谢各位帮助。
多谢各位帮助。
- nmsfan
- 帖子: 18958
- 注册时间: 2009-10-16 22:46
- 来自: finland
Re: 触摸板中键模拟与synclient命令
自己写一个脚本设置开机启动就可以了
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum