可以在没有“InputClass”部分的 X 服务器配置中禁用点击点击吗?

imz*_*hev 5 xorg touchpad x-server xinput altlinux

我想配置我的系统,以便在触摸板上禁用点按。(它使用 xorg-server-1.4.2-alt10.M41.1 运行相当旧版本的 ALTLinux 发行版。)

我对无需synclient在每个 X 会话中运行的解决方案感兴趣。

也许,我的X服务器太旧了,这样不理解“InputClass”部分xorg.conf的,由文森特Nivoliers另一个答案建议

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Option "MaxTapTime"             "0"
EndSection
Run Code Online (Sandbox Code Playgroud)

我得到一个错误;来自 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
Run Code Online (Sandbox Code Playgroud)

此外,我的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
$ 
Run Code Online (Sandbox Code Playgroud)

我希望答案能给出一些一般性的建议,而不是针对这种情况。

And*_*ese 5

此外InputClass,还有一个名为的部分InputDevice,它采用与InputClass. 当然,您不能使用Match*运算符,但必须明确给出设备的路径:

Section "InputDevice"
    Identifier "touchpad"
    Driver "synaptics"
    Option "Device" "/dev/input/event<X>"

    Option "MaxTapTime"             "0"
EndSection
Run Code Online (Sandbox Code Playgroud)

您只需要替换<X>为适当的设备编号即可。