Xorg

可以在沒有“InputClass”部分的 X 伺服器配置中禁用點擊點擊嗎?

  • November 10, 2016

我想配置我的系統,以便在觸摸板上禁用點擊點擊。(它使用 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 滑鼠。”)。

如何將“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
$ 

我希望答案能給出一些一般性的建議,而不是針對這種情況。

此外InputClass,還有一個名為的部分InputDevice,它採用與 幾乎完全相同的選項InputClass。當然,您不能使用Match*運算符,但必須明確給出設備的路徑:

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

   Option "MaxTapTime"             "0"
EndSection

您只需替換<X>為適當的設備編號。

引用自:https://unix.stackexchange.com/questions/125264