我最近在老化的笔记本电脑上从Ubuntu转到了Debian+Openbox。极简主义令人耳目一新。
当我用两个手指在触控板上横向拖动时,这会被解释为水平滚动。有什么办法可以让我停用这个吗?
使用xev,我发现双指水平拖动是按钮6和7。我尝试将这一行添加到.Xmodmap中:
pointer = 1 2 3 5 4我希望这将隐式地从按钮6和7中取消水平滚动,但这没有起作用。
发布于 2017-09-06 14:15:19
Debian 9在默认情况下应该使用libinput驱动程序(xserver-xorg-input-libinput),因此我将为该驱动程序提供一个解决方案(参见这里)。
创建具有以下内容的文件/etc/X11/xorg.conf.d/40-libinput.conf (如果不存在则创建目录):
$ cat /etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "HorizontalScrolling" "false"
EndSection有关可用配置选项的详细说明,可以参考libinput手册页。
如果您正在使用synaptics驱动程序(xserver-xorg-input-synaptics),请查看debian wiki或archlinux wiki的相关页面,解决方案几乎是相同的。
发布于 2018-10-29 22:23:32
同样的答案对老鼠来说
下面是一个禁用水平滚动的示例(保存新文件并重新启动)
纳米/etc/X11/xorg.conf.d/40-libinput-mouse-left-right.conf
Section "InputClass"
Identifier "Logitech catchall"
MatchIsPointer "on"
Driver "libinput"
Option "HorizontalScrolling" "false"
EndSection其他有用命令
xinput list
xinput list-props 15此外,xorg配置文件还可用于重新映射按钮。
Section "InputClass"
# ...
Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"
# OR
Option "ButtonMapping" "a b c d e f g h i"
# ...
EndSectionhttps://unix.stackexchange.com/questions/390692
复制相似问题