「InputClass」セクションなしでXサーバー構成でクリック操作を無効にできますか?

「InputClass」セクションなしでXサーバー構成でクリック操作を無効にできますか?

タッチパッドでクリックが無効になるようにシステムを設定したいと思います。 (xorg-server-1.4.2-alt10.M41.1を使用してかなり古いALTLinuxディストリビューションを実行していました。)

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マウスの設定は不要です」)。

xorg.conf入力デバイス(タッチパッドを含む)設定に「MaxTapTime」オプションをどのように配置しますか? (明示的に「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含むセクションもあります。もちろん、演算子は使用できませんが、デバイスへのパスを明示的に指定する必要があります。InputDeviceInputClassMatch*

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

    Option "MaxTapTime"             "0"
EndSection

<X>適切なデバイス番号と交換してください。

おすすめ記事