触控板不会自然滚动,鼠标会
$ xinput list-props 15
Device 'SynPS/2 Synaptics TouchPad': Device Enabled (137): 1 Coordinate Transformation Matrix (139): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Tapping Enabled (275): 1 libinput Tapping Enabled Default (276): 0 libinput Tapping Drag Enabled (277): 1 libinput Tapping Drag Enabled Default (278): 1 libinput Tapping Drag Lock Enabled (279): 0 libinput Tapping Drag Lock Enabled Default (280): 0 libinput Accel Speed (281): 0.000000 libinput Accel Speed Default (282): 0.000000 libinput Natural Scrolling Enabled (283): 1 libinput Natural Scrolling Enabled Default (284): 0 libinput Send Events Modes Available (255): 1, 1 libinput Send Events Mode Enabled (256): 0, 0 libinput Send Events Mode Enabled Default (257): 0, 0 libinput Left Handed Enabled (285): 0 libinput Left Handed Enabled Default (286): 0 libinput Scroll Methods Available (287): 1, 1, 0 libinput Scroll Method Enabled (288): 1, 0, 0 libinput Scroll Method Enabled Default (289): 1, 0, 0 libinput Click Methods Available (290): 1, 1 libinput Click Method Enabled (291): 1, 0 libinput Click Method Enabled Default (292): 1, 0 libinput Disable While Typing Enabled (293): 1 libinput Disable While Typing Enabled Default (294): 1 Device Node (258): "/dev/input/event6" Device Product ID (259): 2, 7 libinput Drag Lock Buttons (295): libinput Horizonal Scroll Enabled (260): 1
现在,如果我将触控板的自然滚动设置为1或0,它就不会尊重它。 无论如何不自然地滚动。 如果我为我的鼠标设置自然滚动为1,它会尊重设置,并在每次切换1或0时反转滚动。
我真的很想找到最简单,最合适的解决方案。 以前我使用的是xmodmap,但它只适用于某些应用程序,因此有时候很自然,有时会反向滚动,这取决于应用程序的GTK3 / QT / GTK是否令人沮丧。
我是一个菜鸟,所以教我如何使设置永久或重新启动后“粘性”将真正帮助我,以及其他所有类似麻烦的菜鸟。
这可能是这个错误 。
在修复错误之前,这是比OP更合适的解决方法:
-
通过运行
xinput
找出您设备的名称 -
使用此内容在
/etc/X11/xorg.conf.d/
创建名为90-fix-for-LP1132063.conf
的文件(用于启用Natural Scrolling):Section "InputClass" Identifier "Enable Natural Scroll and Tap To Click" MatchDriver "libinput" MatchProduct "<(part of) device name>" Option "NaturalScrolling" "yes" EndSection
我建议也设置这个选项:
Option "Tapping" "yes"
它可以通过点击触摸板来模拟左键单击。
此处记录了更多libinput
选项: https : libinput
您可以订阅错误并在修复错误后重新移动文件。
进一步阅读: https : //wayland.freedesktop.org/libinput/doc/latest/faq.html
为了在重新启动后使其成为“粘性”或永久性的,我将以下“naturalscrolling.sh”作为启动项运行:
#!/bin/bash xinput set-prop 12 "Natural Scrolling Enabled" 1 xinput set-prop 15 "Natural Scrolling Enabled" 1 xinput set-prop 17 "Natural Scrolling Enabled" 1 xinput set-prop 18 "Natural Scrolling Enabled" 1 xinput set-prop 16 "Natural Scrolling Enabled" 1
也可以在插入鼠标后双击它以运行。
你必须为你的系统选择合适的数字,我的通常有对应于#12,15,17等的鼠标和触控板。