50-synaptics.conf选项不起作用

Ubuntu如何提出默认的synaptics设置? 我在Eeepc 900上安装了Ubuntu Netbook 10.10.开箱即用的TapButton2设置为3,TapButton3设置为2。

我有几个我想要的自定义突触设置作为系统范围的默认值。 现在我使用带有synclient命令的脚本,我必须运行每次启动或唤醒。 皮塔。 它曾经是xorg.conf中所有的东西都不存在了。 我正在尝试学习新方法,这显然是/usr/share/X11/xorg.conf.d conf文件。

  1. 我编辑了/usr/share/X11/xorg.conf.d/50-synaptics.conf看起来像:

      “InputClass”部分
         标识符“touchpad catchall”
         司机“突触”
          MatchIsTouchpad“on”
          MatchDevicePath“/ dev / input / event *”
         选项“LockedDrags”“1”
         选项“TapButton2”“2”
         选项“TapButton3”“3”
     EndSection 
  2. 我尝试修改/usr/share/X11/xorg.conf.d/10-evdev.conf的触摸板部分,没有雪茄。

  3. /etc/X11/xorg.conf.d部分中尝试了相同的50-synaptics.conf和10-evdev.conf文件。

  4. 尝试使用上面的InputClass部分创建/etc/X11/xorg.conf 。 没有雪茄。

我总是首先恢复旧的更改,创建新的更改,然后启动一个新的X会话进行测试( startx -- :2 )。 我觉得有趣的是,在任何切换到虚拟终端( ctrl + alt + F1 )后,我的突触设置都会丢失。 重大? 我不知道。

这些是我运行的synclient命令:

  jake @ clyde:〜$ cat bin / synset.sh
 #!/斌/庆典
 synclient TapButton2 = 2
 synclient TapButton3 = 3
 synclient LockedDrags = 1

这是/ dev / input中的内容:

 jake@clyde:/dev/input$ ls by-path/ event0 event1 event2 event3 event4 event5 event6 event7 mice mouse0 jake@clyde:/dev/input$ ls -l by-path/ total 0 lrwxrwxrwx 1 root root 9 2011-02-18 15:43 platform-eeepc-event -> ../event6 lrwxrwxrwx 1 root root 9 2011-02-18 15:43 platform-i8042-serio-0-event-kbd -> ../event4 lrwxrwxrwx 1 root root 9 2011-02-18 15:43 platform-i8042-serio-1-event-mouse -> ../event7 lrwxrwxrwx 1 root root 9 2011-02-18 15:43 platform-i8042-serio-1-mouse -> ../mouse0 

X日志相当长,但这里有一些输出。 如果整个事情都有用,那么上传它的好地方在哪里?

 jake@clyde:/var/log$ egrep "synaptics|touchpad" Xorg.0.log [ 16.707] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event7) [ 16.707] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall" [ 16.707] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall" [ 16.707] (II) LoadModule: "synaptics" [ 16.707] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so [ 16.707] (II) Module synaptics: vendor="X.Org Foundation" [ 16.708] (II) Synaptics touchpad driver version 1.2.2 [ 16.708] (II) ETPS/2 Elantech Touchpad: x-axis range 8 - 1144 [ 16.708] (II) ETPS/2 Elantech Touchpad: y-axis range 8 - 760 [ 16.708] (II) ETPS/2 Elantech Touchpad: device does not report pressure, will use touch data. [ 16.708] (II) ETPS/2 Elantech Touchpad: finger width range 0 - 0 [ 16.708] (II) ETPS/2 Elantech Touchpad: buttons: left right double triple [ 16.708] (--) ETPS/2 Elantech Touchpad: touchpad found [ 16.708] (**) ETPS/2 Elantech Touchpad: always reports core events [ 16.708] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD) [ 16.708] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1 [ 16.709] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 0 [ 16.709] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000 [ 16.709] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4 [ 16.709] (--) ETPS/2 Elantech Touchpad: touchpad found [ 16.710] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0) [ 15516.377] (--) ETPS/2 Elantech Touchpad: touchpad found [ 44215.009] (--) ETPS/2 Elantech Touchpad: touchpad found [ 44358.733] (--) ETPS/2 Elantech Touchpad: touchpad found [ 44414.761] (--) ETPS/2 Elantech Touchpad: touchpad found [ 44515.817] (--) ETPS/2 Elantech Touchpad: touchpad found 

在目前的Ubuntus(12.04,12.10)中看起来仍未解决。

  • https://askubuntu.com/questions/252166/ubuntu-isnt-loading-xorg-conf
  • Ubuntu完全忽略了我的xorg.d设置
  • X11忽略输入设备配置中的选项

好吧,让我们试着深入研究

Xorg自定义配置:

通过弃用HAL Xorg,使用udev进行设备检测。 因此,在配置XServer时,将考虑定义的任何udev规则。 但是,由于Xorg支持配置文件,因此无需定义udev规则,实际上不鼓励定义udev规则。

自定义配置文件遵循以下优先级

  • 来自/usr/share/X11/xorg.conf.d/设置
  • udev规则(我不太确定udev优先级,也许更少)
  • 来自/etc/X11/xorg.conf.d/设置
  • /etc/X11/xorg.conf设置

好的旧的,仍然支持的xorg.conf具有最高优先级。 因此,当找到具有更高优先级的其他规则时,您在/usr/share/X11/xorg.conf.d/放入的任何规则都会/usr/share/X11/xorg.conf.d/

要在没有xorg.conf文件的情况下定义自定义配置,您需要创建一个文件夹/etc/X11/xorg.conf.d/ ,您可以在其中放置自定义设备配置文件(此处为50-synaptics.conf)。 但是,现有xorg.conf文件中的任何其他定义都将覆盖这些定义,因此您需要删除xorg.conf文件。

不幸的是,我无法访问Synaptics触摸板,无法测试它是否真的有效。 在Fedora项目Wiki中可以找到关于如何配置X的非常好的教程(尽管是外来的)。

祝好运。

我正在使用Ubuntu 11.04,显然gnome设置守护程序是覆盖synaptics选项的地方,无论你放在哪里。 事实上,对于“TapButton”选项,djkeikyb尝试使用的值是默认值,守护进程将它们反转。

在启动时使用synclient命令运行脚本不是一个选项,因为djkeikyb描述了虚拟终端,并且因为任何时候我连接/断开USB鼠标,值也被重置。

我决定禁用鼠标/触摸板属性的设置守护程序。 在终端类型中:

 gconf-editor 

然后转到apps> gnome_settings_daemon> plugins> mouse并关闭活动选项。 当然,副作用是无法在系统>首选项>鼠标下编辑鼠标属性

此时它看起来像一个bug。 我将继续询问synaptic和xorg邮件列表并提交错误报告。 这是我不满意的答案:/

虽然我还没有机会在Ubuntu 11.04中测试我的选项,但synaptics和xorg在最新版本(Thu Jun 2 03:09:43 PDT 2011)Arch安装中也没有按预期工作。 因此,它似乎是一个上游错误,而不是特别是Ubuntu。

如果重要的话,使用从9.04左右升级的11.04系列。 使用/etc/udev/rules.d/99-touchpad-borders.rules无法正常工作

 ACTION!="add|change", GOTO="xorg_synaptics_end" KERNEL!="event*", GOTO="xorg_synaptics_end" ENV{ID_INPUT_TOUCHPAD}!="1", GOTO="xorg_synaptics_end" # synclient for settings ENV{x11_options.RightEdge}="5200" ENV{x11_options.LeftEdge}="1744" ENV{x11_options.TopEdge}="2000" ENV{x11_options.BottomEdge}="4256" LABEL="xorg_synaptics_end" 

synclient在重启后显示设置没有变化。 xorg.conf.d确实有效,使用/usr/share/X11/xorg.conf.d/55-touchpad-border.conf

 Section "InputClass" Identifier "touchpad border config" MatchIsTouchpad "on" Driver "synaptics" Option "RightEdge" "5200" Option "LeftEdge" "1744" Option "TopEdge" "2000" Option "BottomEdge""4256" EndSection 

重新启动X,使用synclient显示更改。

gpointing-device-settings也作为解决方案在某处被提及。

不确定它是否有帮助但是如果你把它保存为xorg.conf它应该工作

 Option "SHMConfig" "on" 

仍然适用? 至少我仍然在我的旧配置文件中。 不能把那个放进去,不是吗?