我尝试分别使用synaptics
和配置两个触控板(笔记本电脑内部和 Apple Magic Trackpad) libinput
,但仍然发现有时无法检测到触控板点击。
使用 时xinput --test
,我观察到有时在发生多个motion
事件后仍未检测到点击。这几乎就像其他手势被阻止并等待用户交互一样。
有什么办法可以禁用一切除了点击触控板之外还有什么其他方法?我猜这可能是特定于设备的?
操作系统:Ubuntu 18.04.4 LTS
作为参考,下面的吝啬配置不够有弹性:
» xinput --list-props 9
Device 'Apple Inc. Magic Trackpad 2':
Device Enabled (140): 1
Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (277): 1
libinput Tapping Enabled Default (278): 0
libinput Tapping Drag Enabled (279): 0
libinput Tapping Drag Enabled Default (280): 1
libinput Tapping Drag Lock Enabled (281): 0
libinput Tapping Drag Lock Enabled Default (282): 0
libinput Tapping Button Mapping Enabled (283): 1, 0
libinput Tapping Button Mapping Default (284): 1, 0
libinput Natural Scrolling Enabled (285): 0
libinput Natural Scrolling Enabled Default (286): 0
libinput Disable While Typing Enabled (287): 1
libinput Disable While Typing Enabled Default (288): 1
libinput Scroll Methods Available (289): 1, 1, 0
libinput Scroll Method Enabled (290): 0, 0, 0
libinput Scroll Method Enabled Default (291): 1, 0, 0
libinput Click Methods Available (292): 1, 1
libinput Click Method Enabled (293): 0, 0
libinput Click Method Enabled Default (294): 0, 1
libinput Middle Emulation Enabled (295): 0
libinput Middle Emulation Enabled Default (296): 0
libinput Accel Speed (297): 0.000000
libinput Accel Speed Default (298): 0.000000
libinput Left Handed Enabled (299): 1
libinput Left Handed Enabled Default (300): 0
libinput Send Events Modes Available (262): 1, 1
libinput Send Events Mode Enabled (263): 0, 0
libinput Send Events Mode Enabled Default (264): 0, 0
Device Node (265): "/dev/input/event5"
Device Product ID (266): 1452, 613
libinput Drag Lock Buttons (301): <no items>
libinput Horizontal Scroll Enabled (302): 0
» cat /usr/share/X11/xorg.conf.d/90-magictrackpad.conf
Section "InputClass"
Identifier "Touchpads"
Driver "mtrack"
MatchProduct "Trackpad"
MatchDevicePath "/dev/input/event*"
# options...
Option "Sensitivity" "0.55"
Option "FingerHigh" "10"
Option "FingerLow" "10"
Option "TapButton1" "1"
#Option "TapButton2" "3"
#Option "TapButton3" "2"
#Option "TapButton4" "0"
Option "ButtonIntegrated" "true"
Option "ClickTime" "25"
Option "ScrollDistance" "75"
Option "ScrollSmooth" "1"
Option "TapDragEnable" "false"