如何在Ubuntu 16.04上反转触摸板滚动

我正在运行Ubuntu 16.04并且想要反转我的触摸板滚动,以便将我的两个手指移向显示器会导致屏幕向上滚动。 以前,曾经有过鼠标和触摸板设置的选项,允许这样做。 同样, gsettings表示不推荐使用触摸板配置。 思考?

编辑:xinput命令提供此输出:

 Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ ImPS/2 Generic Wheel Mouse id=14 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ Integrated_Webcam_HD id=10 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)] ↳ DELL Wireless hotkeys id=15 [slave keyboard (3)] ↳ Dell WMI hotkeys id=16 [slave keyboard (3)] 

出于某种原因,我没有看到列出的触控板。 我戴着戴尔Latitude E5570笔记本电脑,绝对有触控板。 此外,似乎没有鼠标和触控板选项支持触控板。

另外,查看目录/usr/share/X11/xorg.conf.d/ ,我只看到这些配置文件:

 10-amdgpu.conf 10-evdev.conf 10-quirks.conf 11-evdev-quirks.conf 11-evdev-trackpoint.conf 50-synaptics.conf 50-vmmouse.conf 50-wacom.conf 51-synaptics-quirks.conf 

反转滚动方向的选项称为自然滚动 ,仍然存在于16.04的系统设置→鼠标和触摸板配置中。

在此处输入图像描述

如果使用libinput ,则GUI选项不可用。

在这种情况下,您可以通过添加启用“自然滚动”

 Option "NaturalScrolling" "True" 

/usr/share/X11/xorg.conf.d/90-libinput.conf文件的触摸板部分。

如果使用libinput ,则使用libinput将配置文件添加到/etc/X11/xorg.conf.d/例如20-touchpad.conf

 Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "NaturalScrolling" "on" EndSection 

还有其他有用的function,例如:

  Option "MiddleEmulation" "on" Option "Tapping" "on" Option "DisableWhileTyping" "on" 

如果您愿意,也可以在30-pointer.conf为具有以下内容的任何鼠标启用此function

 Section "InputClass" Identifier "libinput pointer catchall" MatchIsPointer "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "NaturalScrolling" "on" EndSection 

更多信息man libinput

如果使用Synaptic安装touchpad-indicator ,则它具有natural scrolling选项。

从仪表板启动Synaptic,单击RELOAD图标,然后在搜索框中键入touchpad 。 然后标记touchpad-indicator以进行安装,然后单击“应用”图标。

让我们知道你是怎么做的。 干杯,Al