更改鼠标速度 - 无“设备加速恒定减速”属性

cl1*_*l16 5 mouse mouse-pointer

我试图在 Ubuntu 20.04.1 LTS 上更改 Logitech M335 鼠标的鼠标速度,但找不到此解决方案的步骤 3 中描述的“设备加速恒定减速度”属性。此属性名称是否已更改?我只列出了 Accel 的这些属性:

  • libinput 加速
  • libinput 加速速度默认值
  • 可用的 libinput Accel 配置文件
  • 启用 libinput Accel 配置文件
  • libinput Accel 配置文件启用默认值

我应该更改这些属性之一还是有其他方法?

小智 0

我在 Ubuntu 20.04 上也遇到了同样的问题。

\n

我可以使用以下过程提高鼠标速度

\n
user@ubuntu-20.04:~$ xinput --list | grep pointer | grep Ducky\n\xe2\x8e\x9c   \xe2\x86\xb3 Ducky Ducky One2 Mini RGB                 id=29   [slave  pointer  (2)]\n
Run Code Online (Sandbox Code Playgroud)\n

其中“Ducky”是需要更改输入速度的设备的品牌名称。请注意,设备的 id 是29

\n
user@ubuntu-20.04:~$ xinput --list-props 29 | grep "Coordinate Transformation Matrix"\n    Coordinate Transformation Matrix (188): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000\n
Run Code Online (Sandbox Code Playgroud)\n

从上面我们得知坐标变换矩阵的prop ID是188

\n
user@ubuntu-20.04:~$ xinput --set-prop 29 188 a b c d e f g h i \n
Run Code Online (Sandbox Code Playgroud)\n

其中上面的每个变量构造一个矩阵,如下所示

\n
[[a b c]\n [d e f]\n [g h i]]\n
Run Code Online (Sandbox Code Playgroud)\n

为了将指针速度提高到当前速度的两倍,我使用了以下矩阵

\n
[[2 0 0]\n [0 2 0]\n [0 0 1]]\n
Run Code Online (Sandbox Code Playgroud)\n

这确实加快了指针的速度,但也带来了指针“跳过”像素的缺点。它还可能导致控制光标的应用程序出现光标跳跃问题。

\n

为了缓解这些问题,您必须考虑使用仿射变换矩阵(请参阅https://math.stackexchange.com/questions/2954781/calculate-the-translation-of-an-affine-matrix-so-that-it -中心-期间-斯卡林)

\n