我正在努力使罗技履带在18.10的轨道上自然滚动。
自然滚动被设置为在系统设置中启用,并正在为我的计算机的集成触控板工作,但它不适用于USB跟踪球。
在启动时,此设备将禁用自然滚动:
> xinput list-props "Logitech USB Trackball"
...
libinput Natural Scrolling Enabled (289): 0
libinput Natural Scrolling Enabled Default (290): 0当系统使用以下命令运行时,我可以成功地启用它:
> xinput set-int-prop \
"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 8 1
> xinput list-props "Logitech USB Trackball"
...
libinput Natural Scrolling Enabled (289): 1
libinput Natural Scrolling Enabled Default (290): 0但这种情况并没有持续下去。
我添加了一个配置文件,如下所示:
/usr/share/X11/xorg.conf.d/70-logitech-trackman.conf:
Section "InputClass"
Identifier "TrackmanConfiguration"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
Option "ScrollMethod" "button"
Option "ScrollButton" "9"
Option "NaturalScrolling" "1"
EndSection但是,虽然该文件中的其他设置受到尊重,但NaturalScrolling选项将被忽略。我也尝试过"true"和"on"作为布尔值的替代值,但它们都不起作用。
在测试了我能想到的所有libinput选项之后,我得出的结论是,NaturalScrolling选项完全被忽略或被鼠标自然滚动集的全局值通过GUI或dconf覆盖,因此在这种情况下不可能选择每个设备的首选项。
Dconf示例:
dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll true发布于 2020-11-11 00:48:33
这对我来说是完美的。我禁用了图形用户界面中的自然滚动,因为这对我的Logitech T650来说很奇怪。
在禁用GUI选项的情况下,这对于xinput检测到的所有触控板设备来说都是完美的:
#70-natural-scrolling.conf
Section "InputClass"
Identifier "TrackpadConfiguration"
MatchProduct "Logitech Rechargeable Touchpad T650"
Driver "libinput"
Option "NaturalScrolling" "1"
EndSection
Section "InputClass"
Identifier "TrackpadConfiguration"
MatchProduct "ELAN959A:00 04F3:3072 Mouse"
Driver "libinput"
Option "NaturalScrolling" "1"
EndSection
Section "InputClass"
Identifier "TrackpadConfiguration"
MatchProduct "LAN959A:00 04F3:3072 Touchpad"
Driver "libinput"
Option "NaturalScrolling" "1"
EndSection发布于 2018-11-16 08:59:05
我还使用xinput为我的膝上型电脑触控板设置某些属性。我这样做的方式是将xinput [set-prop|set-int-prop]命令放在我的启动脚本上。如果您使用的是Gnome,您可以从启动应用程序中添加自定义命令。
发布于 2018-11-16 09:41:42
您可以使用.bashrc在引导时启用自然滚动!只需在您的~/ dir中编辑您的.bashrc,并附加您所使用的命令,以便使自然滚动到文件的末尾(在一行中而不是使用"\")
https://askubuntu.com/questions/1090838
复制相似问题