如何同时为两只小鼠设置不同的灵敏度?


13

我经常同时使用USB鼠标和笔记本电脑的指点杆。我可以在“鼠标偏好设置”中调整灵敏度,但是两只鼠标的灵敏度差异很大,以至于我找不到折衷设置。

有没有一种方法可以为每只鼠标指定不同的灵敏度设置?

Answers:


10

您可以使用xinput设置鼠标的灵敏度/加速度。

$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech USB-PS/2 Optical Mouse           id=8    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=10   [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=11   [slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation          id=13   [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)]
    ↳ Microsoft Microsoft® Nano Transceiver v2.0    id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]

从该输出中获取id鼠标的数值。我将为我的Logitech鼠标提供一个示例。对于多只小鼠,冲洗并重复。

因此,对于我的罗技我将使用xinput get-feedbacks <device name>xinput set-ptr-feedback <device name> <threshold> <num> <denom>

$ xinput get-feedbacks 8
1 feedback class
PtrFeedbackClass id=0
    accelNum is 3
    accelDenom is 10
    threshold is 4

加速度设置为分数,因此您需要为其设置nom和denom:

$ xinput set-ptr-feedback 8 4 3 1
$ xinput get-feedbacks 8
1 feedback class
PtrFeedbackClass id=0
    accelNum is 3
    accelDenom is 1
    threshold is 4

创造奇迹。现在我只是为解决这个bug而努力
ændrük

如果问题仍未解决,请更新您的错误报告:-S

1
重新启动之间是否持续存在?
TheOne
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.