Ubuntu 17.10 上触摸板的自适应加速

nik*_*eee 12 touchpad gnome synaptics libinput 17.10

我最近从运行 Unity 的 Ubuntu 16.04 更新到运行 GNOME 的 17.10。升级后,我的触摸板上缺少自适应加速功能。我非常喜欢它,因为它在更短的距离上更准确。

稍微挖掘一下,我发现 17.10 使用 GNOMElibinput代替synaptics,但默认情况下libinput使用flat触摸板的加速配置文件(https://wayland.freedesktop.org/libinput/doc/1.4.3/pointer-acceleration.html# ptracel-触摸板)。

我也尝试xserver-xorg-input-synaptics在 17.10 上安装。这工作正常,除了从命令行启用“自然滚动”太麻烦(https://askubuntu.com/a/206006)。另一个问题是 GNOME 不显示synaptics已安装的触摸板设置(https://unix.stackexchange.com/a/292920)。

我还尝试gnome-tweak-tool在侧边栏上的“键盘和鼠标”子菜单下进行操作,但它可以选择仅为鼠标而不是触摸板选择“加速配置文件”(请参阅什么是 gnome-tweak 中的鼠标加速配置文件中的屏幕截图-工具?)。

有没有办法为libinput没有上述副作用的触摸板启用自适应加速?

Sim*_*ter 7

在 17.10 中,您还可以直接设置加速配置文件并通过设置accel-profile为禁用鼠标加速'flat'

gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat'
Run Code Online (Sandbox Code Playgroud)

或者,使用dconf-editor

在 Ubuntu 17.10 中禁用鼠标加速


Nic*_*mel 4

为此,请尝试编辑speedschema 中的密钥org.gnome.desktop.peripherals.touchpad。该密钥的描述如下:

Pointer speed for the touchpad. Accepted values are in the [-1..1] range (from "unaccelerated" to "fast"). A value of 0 is the system default.

这强烈表明 gnome 键与触摸板加速有关。通过命令行使用dconf编辑器或gsettings,看看修改这个键是否有效果。