我希望我的触摸板两根手指点击可以在 ubuntu 19.10 上充当鼠标中键单击。Ubuntu 中的默认设置是三根手指点击,但我更喜欢使用两根手指。
在我以前的笔记本电脑上使用 synaptics 驱动程序选项时这非常容易(如此处所述)https://askubuntu.com/a/156545/1035668),但看起来这台新笔记本电脑正在使用不同的驱动程序,而且我还不知道如何按照我想要的方式配置它。
这里你有输出xinput list
:
xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ MSFT0001:02 06CB:CD3E Touchpad id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Integrated Camera: Integrated C id=9 [slave keyboard (3)]
↳ Ideapad extra buttons id=11 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
输出xinput list-props 10
:
Device 'MSFT0001:02 06CB:CD3E Touchpad':
Device Enabled (145): 1
Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (282): 1
libinput Tapping Enabled Default (283): 0
libinput Tapping Drag Enabled (284): 1
libinput Tapping Drag Enabled Default (285): 1
libinput Tapping Drag Lock Enabled (286): 0
libinput Tapping Drag Lock Enabled Default (287): 0
libinput Tapping Button Mapping Enabled (288): 1, 0
libinput Tapping Button Mapping Default (289): 1, 0
libinput Natural Scrolling Enabled (290): 0
libinput Natural Scrolling Enabled Default (291): 0
libinput Disable While Typing Enabled (292): 1
libinput Disable While Typing Enabled Default (293): 1
libinput Scroll Methods Available (294): 1, 1, 0
libinput Scroll Method Enabled (295): 1, 0, 0
libinput Scroll Method Enabled Default (296): 1, 0, 0
libinput Click Methods Available (297): 1, 1
libinput Click Method Enabled (298): 1, 0
libinput Click Method Enabled Default (299): 1, 0
libinput Middle Emulation Enabled (300): 0
libinput Middle Emulation Enabled Default (301): 0
libinput Accel Speed (302): 0.000000
libinput Accel Speed Default (303): 0.000000
libinput Left Handed Enabled (304): 0
libinput Left Handed Enabled Default (305): 0
libinput Send Events Modes Available (267): 1, 1
libinput Send Events Mode Enabled (268): 0, 0
libinput Send Events Mode Enabled Default (269): 0, 0
Device Node (270): "/dev/input/event6"
Device Product ID (271): 1739, 52542
libinput Drag Lock Buttons (306): <no items>
libinput Horizontal Scroll Enabled (307): 1```
答案1
你可以加
Option "TappingButtonMap" "lmr"
添加到文件的触摸板部分,/usr/share/X11/xorg.conf.d/40-libinput.conf
如下所示:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "TappingButtonMap" "lmr"
EndSection
lmr
表示“左/中/右”。默认情况下,三指点击表示中键单击 (lrm)。
它将永久设置此选项(重启后)。您也可以通过设置选项来测试它xinput
:
xinput set-prop 10 288 0 1
这应该会立即产生效果,但重启后将无法继续生效。