我可以将鼠标灵敏度加速到标准最大值吗?

Iva*_*van 7 mouse gnome xorg

我已经使用“鼠标首选项”窗口将鼠标指针加速度和灵敏度滑块设置为最大值,但我仍然对鼠标指针移动的速度不满意(我有一个非常大的显示器)。我可以加速吗?

小智 4

我不太确定鼠标加速滑块的范围是多少,但您可以使用 轻松手动更改它xset

尝试类似的东西xset m 100 5,这对我来说速度非常快。

该命令的语法是:

xset m <pixels to move when going fast> <pixels threshold before moving fast>
Run Code Online (Sandbox Code Playgroud)

为了使更改生效,请将它们放入您的~/.xinitrc


小智 2

我不知道这是否是正确的方法,但是将AccelerationProfile从 0 更改为 6 并将VelocityScale设置为 10 您可以获得一个非常快速的指针。比在“鼠标首选项”中更改它要快得多。操作方法如下:

首先,您需要找到您的鼠标 ID 和 ProductName :

xinput list
...
 Logitech USB Optical Mouse                 id=11   [slave  pointer  (2)]
...
Run Code Online (Sandbox Code Playgroud)

现在您可以使用以下命令将 AccelerationProfile 设置为 6:

xinput set-prop 11 "Device Accel Profile" 6
# 11 = DEVICE_ID
# 6 = linear (more speed, more acceleration)
Run Code Online (Sandbox Code Playgroud)

然后将 VelocityScale 设置为适合您的值。(1 到 10)(更高 = 更快):

xinput set-prop 11 "Device Accel Velocity Scaling" 5
Run Code Online (Sandbox Code Playgroud)

如果上述解决方案适合您,您可以通过编辑 xorg.conf ( /etc/X11/xorg.conf) 使其持久化。将此部分添加到文件末尾。

Section "InputClass"
   Identifier      "Logitech"                   # Whatever you want.
   MatchProduct    "Logitech USB Optical Mouse" # ProductName from xinput list.
   Option          "AccelerationProfile" "6"
   Option          "VelocityScale" "5"
EndSection
Run Code Online (Sandbox Code Playgroud)

重新启动后,您应该得到与 xinput 命令相同的结果。

如果有帮助请告诉我。

***使用 Ubuntu 10.10 进行测试 * **

参考