如何更改鼠标速度/灵敏度?

Fel*_*lix 91 mouse

我在 Ubuntu 12.10 中使用 Asus Zenbook UX32VD。在 12.04 和 12.10 中,我都无法更改鼠标速度(即鼠标/触摸板对话框中的“灵敏度”)。我可以更改滑块,但没有任何变化。

这对我来说是个大问题,因为鼠标速度有点慢。有什么建议?

问题出在触摸板和鼠标上。

Vik*_*ngh 125

首先,我们需要识别输入device ID来改变速度/灵敏度。打开终端并运行以下命令:

xinput --list --short
Run Code Online (Sandbox Code Playgroud)

输出:

abcd@abcd-abcde:~$ xinput --list --short

Virtual core pointer

? SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]

? Logitech USB RECEIVER                     id=12   [slave  pointer  (2)]
Run Code Online (Sandbox Code Playgroud)

我的指点设备是 aLogitech USB RECEIVER和 a Synaptics TouchPad。列出设备属性:

xinput --list-props "SynPS/2 Synaptics TouchPad"
Run Code Online (Sandbox Code Playgroud)

编辑:

另一种选择: xinput --list-props 11正如11上面显示在其父属性中的数字 (SynPS/2 Synaptic TouchPad)。

现在减少它的属性值以满足您的需要:

Device Accel Constant Deceleration (267):   2.500000
Run Code Online (Sandbox Code Playgroud)

使用这个命令:

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5
Run Code Online (Sandbox Code Playgroud)

编辑:

另一种选择: 设备xinput --set-prop 11 267 1.5在哪里11,就像上面一样,267是设备属性的 id(设备加速常数减速度),当11列出设备时,您可以看到所有附加的属性,最后1.5是您想要的速度。

您可能需要稍微调整一下这个数字才能完全按照您的需要进行设置。

如果你需要在每次 Ubuntu 启动时自动设置这个值,那么:

创建一个 .sh 文件

#!/bin/sh

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 1.5
Run Code Online (Sandbox Code Playgroud)

将文件更改为可执行文件:

chmod +x
Run Code Online (Sandbox Code Playgroud)

并将其放入启动应用程序列表中。

来源:手动配置鼠标速度

  • Linux mint 18,Logitech 510,xinput 说“属性‘Device Accel Constant Deceleration’不存在,您需要指定其类型和格式” (4认同)
  • 我现在有统一接收器的无线罗技鼠标有同样的问题。我可以用同样的方式改变速度,但最大速度 (1) 太慢了!有什么建议? (2认同)

小智 34

Ubuntu 12.10 64 位,罗技无绳 TrackMan

xinput 对我没有任何帮助。

xset q
Run Code Online (Sandbox Code Playgroud)

检查设置

xset mouse 3 0
Run Code Online (Sandbox Code Playgroud)

这将加速度设置为 3,阈值设置为零。不是很好的设置,但比以前更好。

如果要使用小数值,可以输入分数(即 3/2)而不是浮点数。

手册页说设置将在注销/重新启动时丢失。

  • 如果要使用小数值,可以输入分数(即 3/2)而不是浮点数。这很奇怪,但它有效。 (10认同)

小智 22

上面提到的“Device Accel ...”选项在我的机器上不存在。运行 Ubuntu 18.04 的联想 T440s

相反,我成功地使用了这些:

xinput --set-prop "TPPS/2 IBM TrackPoint" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1
Run Code Online (Sandbox Code Playgroud)

原始的“坐标变换矩阵是 1 0 0 0 1 0 0 0 1,我现在速度减半,这对我来说已经足够慢了。

使用此语法,我们可以分别调整水平和垂直速度。

  • 谢谢你。我已经成功地使用它来加速我的罗技 K520 鼠标,所以我想提一下它似乎也适用于罗技鼠标。奇怪的是,最右边的数字似乎在较高的数字处减慢垂直滚动,而在较低的数字处加速。 (2认同)

rub*_*o77 7

您可以使用这些脚本来设置每次系统启动时的触摸板和鼠标速度:

#!/bin/sh
TP=$(xinput --list --short|grep -i touchpad|cut -f 1 | cut -d" " -f 5-|sed 's/\s\+$//g')
xinput --set-prop "$TP" "Device Accel Constant Deceleration" 1.5
xinput --set-prop "$TP" "Device Accel Velocity Scaling" 10
Run Code Online (Sandbox Code Playgroud)

对我来说,我认为 1.5 和 10 是适合touchpad 的值。


我也使用罗技 USB 鼠标。
因此,对于Logitech鼠标,请使用以下脚本:

#!/bin/sh
MOUSE=$(xinput --list --short|grep -i Logitech| cut -f 1|cut -d" " -f 5-|sed 's/\s\+$//g')
xinput --set-prop "$MOUSE" "Device Accel Constant Deceleration" 1.2
xinput --set-prop "$MOUSE" "Device Accel Velocity Scaling" 10
Run Code Online (Sandbox Code Playgroud)

对我来说,我认为 1.2 和 10 是适合mouse 的值。

我在 Github 上创建了一个项目:https : //github.com/rubo77/mouse-speed