Linux Mint 全新安装:鼠标灵敏度太低

Linux Mint 全新安装:鼠标灵敏度太低

我刚刚安装了 Linux Mint 19 Cinammon,但遇到了鼠标灵敏度太低的问题。我转到选项并尝试增加它,但滑块已经处于“最大”位置。我看到网上有人建议我编辑 xorg 文件,但较新版本的 Linux 似乎不使用该文件。

答案1

我在 Mint 18 中遇到了与此完全相反的问题,但解决方案本质上应该是相同的。

如果运行xinput --list --short,您应该获得连接的外围设备的输出及其 ID。我们只需要鼠标,因此我们可以将其输入到 grep 中:

xinput --list --short | grep -i mouse
⎜ ↳ USB Optical Mouse id=8 [slave pointer (2)]

所以这里的ID是8

我们现在可以使用以下命令为该外围设备提取一系列配置--list-props

xinput --list-props 8
Device 'USB Optical Mouse':
    Device Enabled (115):   1
    Coordinate Transformation Matrix (117): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (227):     0
    Device Accel Constant Deceleration (228):       1.000000
    Device Accel Adaptive Deceleration (229):       1.000000
    Device Accel Velocity Scaling (230):    10.000000

Velocity Scaling是您想要更改以获得更好的鼠标 DPI 的值。你可以在我的输出中看到它的 ID 是230,它的值是10.00

--set-prop您可以通过以下方式更改设置:

xinput --set-prop <mouse ID> <Velocity Scaling ID> <value>
xinput --set-prop 8 230 20.0

这使得鼠标指针的速度从10.0到增加了一倍20.0

尝试不同的值,直到它适合您。它越高,您应该覆盖的 DPI 就越大。

相关内容