码迷,mamicode.com
首页 > 系统相关 > 详细

更新ubuntu15.10后触摸板点击功能消失

时间:2015-12-16 22:59:17      阅读:850      评论:0      收藏:0      [点我收藏+]

标签:

问题描述:

  昨天升级了ubuntu15.10,升级之后很多15.04让人不爽的东西消失了,大快人心,但是突然发现自己的触摸板不怎么好用了,原来可以点击,双指点击代表右键,三指点击代表鼠标中键的功能不见了,现在点击都不能够点击,真奇怪,最后看了下面这个教程终于高懂了。

参考这个

https://wiki.archlinux.org/index.php/Touchpad_Synaptics_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E9.85.8D.E7.BD.AE

终端输入

synclient -l

显示

技术分享

这里就是你的触摸板可以有什么功能,我要恢复到以前的功能

所以只进行了下面的修改

synclient EmulateMidButtonTime=1  //开启中键功能
synclient TapButton1=1  //1代表左键
synclient TapButton2=3  //3在未开启中键时代表回车,开启中键后代表中键
synclient TapButton3=2  //2代表右键

我没有找到配置文件(不会找啊,大家知道的告诉我吧,感激不尽)

我只好将命令写到了/etc/rc.local里面~_~||

哈哈,我明白了,根据他的教程我locate了一下synaptics.conf然后在/usr/share/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"
# 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 clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# 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"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
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

我们看到注释里面有要求

# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
  //不要编辑这个文件,你的发行版很可能被重写当他被升级的时候,你需要将这个文件复制到/etc/X11/xorg.conf.d # 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" #

那我们就复制呗

当然我没有xorg.conf.d文件

新建一个

/etc/X11$ sudo mkdir xorg.conf.d

然后复制

/etc/X11$ sudo cp /usr/share/X11/xorg.conf.d/50-synaptics.conf ./xorg.conf.d/

然后修改为他要求的模样

 

更新ubuntu15.10后触摸板点击功能消失

标签:

原文地址:http://www.cnblogs.com/reddusty/p/5052355.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!