如何在 ubuntu 18.04 上禁用鼠标加速

Jub*_*ast 13 mouse dconf 18.04

我的鼠标有鼠标加速功能,在 ubuntu 18.04 中速度太快。在
创建不起作用。 当 gnome 从xorg切换到wayland 时,这些文件将不再起作用。 有没有另一种方法可以在 ubuntu 中禁用鼠标加速?90-mouse.confxorg.conf.d
xorg.conf

Jub*_*ast 21

Ubuntu 使用gnome,gnome 使用dconf(一个充满设置的“数据库”)。

如何:

  • 安装 dconf 编辑器
    • sudo apt install dconf-editor 通过终端或
    • Dconf Editor在 Ubuntu 软件中搜索
  • 打开 dconf-editor 并转到org-> gnome-> desktop-> peripherals->mouse

这是鼠标设置。

  • accel-profile -> 设置你想要什么样的加速度
  • 速度-> 设置鼠标速度

您在accel-profile 中有以下选项:

  • 默认
  • 又名。禁用鼠标加速
  • 适应性

要禁用鼠标加速:

  • 设置Use default valueoff
  • 设置Custom valueflat

要更改鼠标速度:

  • org/gnome/desktop/peripherals/mouse/speed
  • 设置Use default valueoff
  • 将 the 更改Custom value为适合您
    的数字(数字可以介于 -1 和 1 之间)


rob*_*orv 6

我找到了一个解决方案,您可以通过命令直接从终端使用gsettings

# displays what this setting represents
gsettings describe org.gnome.desktop.peripherals.mouse accel-profile

# displays the values it accepts as input
gsettings range org.gnome.desktop.peripherals.mouse accel-profile

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

我来到这个解决方案是因为我偶然发现了https://developer.gnome.org/GSettings/#gsettings其中说。

要修改 dconf 后端存储本身,请使用 dconf 工具;但应该优先使用 gsettings。

此答案中的命令使用 gsettings 而不是 dconf。