Vad*_*nov 18 mouse-scroll 17.04
以前工作过
echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap
Run Code Online (Sandbox Code Playgroud)
没用
小智 14
就我而言,无需删除任何包。唯一缺少的行/usr/share/X11/xorg.conf.d/40-libinput.conf
是:
Option "NaturalScrolling" "on"
Run Code Online (Sandbox Code Playgroud)
所以整个部分如下所示:
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Option "NaturalScrolling" "on"
Driver "libinput"
EndSection
Run Code Online (Sandbox Code Playgroud)
重新启动 X 会话后,我的鼠标工作正常。
对我来说,解决方案是保持xserver-xorg-input-libinput
安装状态,而不是删除xserver-xorg-input-synaptics
,然后重新启动。似乎升级安装了两者并且默认选择了突触,这似乎没有自然滚动选项。
(我在戴尔 XPS 15 9530 上运行 Ubuntu Gnome 17.04,顺便说一句)
小智 5
我刚刚从 Ubuntu 16.10 升级到 17.04,但有几件事坏了,包括自然鼠标滚动。注意 - 我在桌面上有一个普通鼠标(Evoluent),而不是触控板。我以前在 Ubuntu 16 上使用过这个解决方案:反转两指滚动方向(自然滚动)?,但这在 Ubuntu 17 中不起作用。以下是在 Ubuntu 17.04 中对我有用的内容:
首先,删除xserver-xorg-input-libinput
包:
sudo apt remove xserver-xorg-input-libinput
Run Code Online (Sandbox Code Playgroud)
然后/usr/share/X11/xorg.conf.d/20-natural-scrolling-mouses.conf
使用此内容创建文件:
Section "InputClass"
Identifier "Natural Scrolling Mouses"
MatchIsPointer "on"
MatchIsTouchpad "off"
MatchDevicePath "/dev/input/event*"
Option "VertScrollDelta" "-1"
Option "HorizScrollDelta" "-1"
Option "DialDelta" "-1"
EndSection
Run Code Online (Sandbox Code Playgroud)
然后重新启动计算机。