我有一台 Lenovo X1 gen9,上面装有 Ubuntu 22。触摸板太敏感,当我移动光标时,经常会拖动东西,记录错误的点击和双击。我发现解决方案是使用 xinput 但我找不到我必须更改的内容。
这是我的xinput list-props <device id>
输出:
Device 'SYNA8009:00 06CB:CE57 Touchpad':
Device Enabled (189): 1
Coordinate Transformation Matrix (191): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000Synaptics-Touchpad (xorg-xserver) tap sensitivity too high
libinput Tapping Enabled (346): 1
libinput Tapping Enabled Default (347): 0
libinput Tapping Drag Enabled (348): 1
libinput Tapping Drag Enabled Default (349): 1
libinput Tapping Drag Lock Enabled (350): 0
libinput Tapping Drag Lock Enabled Default (351): 0
libinput Tapping Button Mapping Enabled (352): 1, 0
libinput Tapping Button Mapping Default (353): 1, 0
libinput Natural Scrolling Enabled (325): 0
libinput Natural Scrolling Enabled Default (326): 0
libinput Disable While Typing Enabled (354): 1
libinput Disable While Typing Enabled Default (355): 1
libinput Scroll Methods Available (327): 1, 1, 0
libinput Scroll Method Enabled (328): 1, 0, 0
libinput Scroll Method Enabled Default (329): 1, 0, 0
libinput Click Methods Available (356): 1, 1
libinput Click Method Enabled (357): 1, 0
libinput Click Method Enabled Default (358): 1, 0
libinput Middle Emulation Enabled (359): 0
libinput Middle Emulation Enabled Default (360): 0
libinput Accel Speed (334): 0.000000
libinput Accel Speed Default (335): 0.000000
libinput Accel Profiles Available (336): 1, 1
libinput Accel Profile Enabled (337): 1, 0
libinput Accel Profile Enabled Default (338): 1, 0
libinput Left Handed Enabled (339): 0
libinput Left Handed Enabled Default (340): 0
libinput Send Events Modes Available (310): 1, 1
libinput Send Events Mode Enabled (311): 0, 0
libinput Send Events Mode Enabled Default (312): 0, 0
Device Node (313): "/dev/input/event10"
Device Product ID (314): 1739, 52823Synaptics-Touchpad (xorg-xserver) tap sensitivity too high
libinput Drag Lock Buttons (341): <no items>
libinput Horizontal Scroll Enabled (342): 1
libinput Scrolling Pixel Distance (343): 15
libinput Scrolling Pixel Distance Default (344): 15
libinput High Resolution Wheel Scroll Enabled (345): 1
答案1
在终端中运行此命令来查找触摸板的 ID 号
xinput --list
从例子来看我的是12
DELL097D:00 04F3:311C 触摸板 ID=12 [从指针(2)]
然后设置滚动速度(将 12 更改为您的触摸板 ID 号)
input --set-prop **12** "libinput Scrolling Pixel Distance" 50
注意更高数字使滚动慢点
我不知道如何更改默认值...有一种方法可以使用 xorg conf 文件保存它,但我不知道如何...也许有人可以添加/编辑这个答案