无法为SynPS / 2 Synaptic设置默认值

今天我注意到我的触控板没有响应点击事件,点击并拖动和两个手指滚动。 (我主要使用鼠标,所以我不能向你保证,什么时候开始)

我查了一下,发现我的内核识别了我的触摸板(SynPS / 2 Synaptics TouchPad),所以它不是内核问题。

然后,我通过执行xinput list检查了所有输入设备,然后找到了我的TouchPad。 然后我查找了它的属性,发现上面提到的所有操作都被禁用了。 以下是默认特性:

 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):  libinput Horizonal Scroll Enabled (268): 1 

显然,您可以看到未启用攻丝 。 我尝试手动设置它,我能够通过执行xinput set-prop "12" "296" "1"启用Tappings,我的触控板现在响应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 

我试过它也是超级用户,但没有运气。

请,我不想设置一个在每次启动/启动后自动执行的脚本,我想简单地启用它。

希望你能帮助我……

您可以更改位于的libinput配置文件中的默认值

/usr/share/X11/xorg.conf.d/40-libinput.conf

(我的实际上是90-libinput.conf。无论如何,就像这样。)

只需添加

 Option "Tapping" "True" 

对我来说,完整的条目是:

 Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "Tapping" "True" EndSection 

更多信息请访问:

https://wiki.archlinux.org/index.php/Libinput

https://www.mankier.com/4/libinput