我想配置我的系统,以便在触摸板上禁用点击操作。 (它运行的是一个相当旧版本的 ALTLinux 发行版,带有 xorg-server-1.4.2-alt10.M41.1。)
synclient
我对无需在每个 X 会话中运行的解决方案感兴趣。
可能,我的 X 服务器太旧了,因此它无法理解 中的“InputClass”部分xorg.conf
,如Vincent Nivoliers 在另一个答案中建议:
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "MaxTapTime" "0"
EndSection
我得到一个错误;来自 Xorg.*.log:
(==) Using config file: "/etc/X11/xorg.conf"
Parse error on line 71 of section InputClass in file /etc/X11/xorg.conf
"InputClass" is not a valid section name.
(EE) Problem parsing the config file
(EE) Error parsing the config file
另外,我的xorg.conf
没有任何明确的“InputDevice”部分(带有注释:“使用 libXiconfig,我们不需要 ps 和 usb 鼠标的配置。”)。
如何将“MaxTapTime”选项放入我xorg.conf
的输入设备(包括触摸板)的配置中? (如果我写明确的“InputDevice”部分,我可能会破坏自动获得的正确配置..)
也许, 的输出xinput list
会有一些用处。我不想通过发布我的帖子xinput list
并询问在这种特定情况下该怎么做来使问题变得过于具体。举个例子:
$ xinput list
"Virtual core keyboard" id=0 [XKeyboard]
Num_keys is 248
Min_keycode is 8
Max_keycode is 255
"Virtual core pointer" id=1 [XPointer]
Num_buttons is 32
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is 0
Max_value is -1
Resolution is 0
Axis 1 :
Min_value is 0
Max_value is -1
Resolution is 0
"AT Translated Set 2 keyboard" id=4 [XExtensionKeyboard]
Type is KEYBOARD
Num_keys is 248
Min_keycode is 8
Max_keycode is 255
"PS/2 Mouse" id=3 [XExtensionPointer]
Type is MOUSE
Num_buttons is 32
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is -1
Max_value is -1
Resolution is 1
Axis 1 :
Min_value is -1
Max_value is -1
Resolution is 1
"AlpsPS/2 ALPS GlidePoint" id=2 [XExtensionPointer]
Type is TOUCHPAD
Num_buttons is 12
Num_axes is 2
Mode is Relative
Motion_buffer is 256
Axis 0 :
Min_value is 0
Max_value is -1
Resolution is 1
Axis 1 :
Min_value is 0
Max_value is -1
Resolution is 1
$
我希望答案能够提供一些一般性建议,而不是针对此案例。
答案1
此外,InputClass
还存在一个名为 的部分InputDevice
,其选项与 几乎完全相同InputClass
。当然,您不能使用Match*
运算符,但必须明确给出设备的路径:
Section "InputDevice"
Identifier "touchpad"
Driver "synaptics"
Option "Device" "/dev/input/event<X>"
Option "MaxTapTime" "0"
EndSection
您只需替换<X>
为适当的设备编号即可。