linux使用xinput --list --short 发现pointer显示两个同名的鼠标设备?

请问如何才能修改鼠标的速度?

[root@localhost ~]# xinput list
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB Keyboard                       id=9    [slave  pointer  (2)]
⎜   ↳ Logitech G102 Prodigy Gaming Mouse          id=10    [slave  pointer  (2)]
⎜   ↳ Logitech G102 Prodigy Gaming Mouse          id=11    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Power Button                                id=6    [slave  keyboard (3)]
    ↳ Power Button                                id=7    [slave  keyboard (3)]
    ↳ Logitech USB Keyboard                       id=8    [slave  keyboard (3)]
[root@localhost ~]# xinput --set-prop "pointer:Logitech G102 Prodigy Gaming Mouse" "Device Accel Velocity Scalling" 5
Warning: There are multiple devices matching 'pointer:Logitech G102 Prodigy Gaming Mouse'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device pointer:Logitech G102 Prodigy Gaming Mouse
[root@localhost ~]# 
阅读 3.7k
1 个回答

xinput 使用方法:xinput set-prop <device> <property> <val>
其中 device 可以使用名字,也可以使用 设备ID,因为你这里有 2 个同名的,用名字肯定不行,所以要用 ID;property 可以是名字,也可以是 Atom 值(也是一个数),查看方法是 xinput list-props <device>

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题