cod*_*101 1 touchpad synaptics xinput 16.10
今天我注意到我的触控板没有响应点击事件、点击和拖动以及两指滚动。(我主要使用鼠标,所以我不能向你保证,这一切是什么时候开始的)
我查了一下,发现我的内核识别了我的触摸板(SynPS/2 Synaptics TouchPad),所以不是内核问题。
然后,我通过执行检查所有输入设备,xinput list
并找到了我的触摸板。然后我查找了它的属性,发现上面提到的所有操作都被禁用了。这是默认属性:
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (143): 1
Coordinate Transformation Matrix (145): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (296): 0
libinput Tapping Enabled Default (297): 0
libinput Tapping Drag Enabled (298): 1
libinput Tapping Drag Enabled Default (299): 1
libinput Tapping Drag Lock Enabled (300): 0
libinput Tapping Drag Lock Enabled Default (301): 0
libinput Accel Speed (279): 0.000000
libinput Accel Speed Default (280): 0.000000
libinput Natural Scrolling Enabled (284): 0
libinput Natural Scrolling Enabled Default (285): 0
libinput Send Events Modes Available (263): 1, 1
libinput Send Events Mode Enabled (264): 0, 0
libinput Send Events Mode Enabled Default (265): 0, 0
libinput Left Handed Enabled (286): 0
libinput Left Handed Enabled Default (287): 0
libinput Scroll Methods Available (288): 1, 1, 0
libinput Scroll Method Enabled (289): 1, 0, 0
libinput Scroll Method Enabled Default (290): 1, 0, 0
libinput Disable While Typing Enabled (302): 1
libinput Disable While Typing Enabled Default (303): 1
Device Node (266): "/dev/input/event6"
Device Product ID (267): 2, 7
libinput Drag Lock Buttons (295): <no items>
libinput Horizonal Scroll Enabled (268): 1
Run Code Online (Sandbox Code Playgroud)
显然,如您所见,未启用 Tapping。我尝试手动设置它,我能够通过执行来启用 Tappings xinput set-prop "12" "296" "1"
,我的触控板现在可以响应 Tappings。
但是如您所知,它仅适用于特定会话,每次启动时我都必须再次手动设置它。但我发现有属性 id 297表示默认。我尝试通过以下方式手动设置
sudo xinput set-prop "12" "297" "1"
但以这个告终。
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 131 (XInputExtension)
Minor opcode of failed request: 57 ()
Serial number of failed request: 19
Current serial number in output stream: 20
Run Code Online (Sandbox Code Playgroud)
我也试过成为超级用户,但没有运气。
拜托,我不想设置一个在每次启动/启动后自动执行的脚本,我想简单地启用它。
希望你能帮我...
小智 5
您可以更改位于以下位置的 libinput 配置文件中的默认值
/usr/share/X11/xorg.conf.d/40-libinput.conf
(我的实际上是 90-libinput.conf。无论如何,像这样。)
只需添加
Option "Tapping" "True"
Run Code Online (Sandbox Code Playgroud)
对我来说,完整的条目是:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"
EndSection
Run Code Online (Sandbox Code Playgroud)
更多信息请访问:
https://wiki.archlinux.org/index.php/Libinput
https://www.mankier.com/4/libinput