鼠标控制面板窗口滑块不执行任何操作。官方线程似乎不会影响此特定鼠标,因为它的 xinput 属性不同:降低鼠标灵敏度
这是我尝试过的:
xinput set-prop 9 "libinput Accel Speed Default" 2.88
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 131 (XInputExtension)
Minor opcode of failed request: 57 ()
Serial number of failed request: 20
Current serial number in output stream: 21
和:
xinput set-prop $MOUSE_ID "Device Accel Constant Deceleration" 2.88
property 'Device Accel Constant Deceleration' doesn't exist, you need to specify its type and format
以下是道具:
xinput list-props 9
Device 'Corsair Corsair M95 Gaming Mouse':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (287): 0.000000
libinput Accel Speed Default (288): 0.000000
libinput Accel Profiles Available (289): 1, 1
libinput Accel Profile Enabled (290): 1, 0
libinput Accel Profile Enabled Default (291): 1, 0
libinput Natural Scrolling Enabled (292): 0
libinput Natural Scrolling Enabled Default (293): 0
libinput Send Events Modes Available (272): 1, 0
libinput Send Events Mode Enabled (273): 0, 0
libinput Send Events Mode Enabled Default (274): 0, 0
libinput Left Handed Enabled (294): 0
libinput Left Handed Enabled Default (295): 0
libinput Scroll Methods Available (296): 0, 0, 1
libinput Scroll Method Enabled (297): 0, 0, 0
libinput Scroll Method Enabled Default (298): 0, 0, 0
libinput Button Scrolling Button (299): 2
libinput Button Scrolling Button Default (300): 2
libinput Middle Emulation Enabled (301): 0
libinput Middle Emulation Enabled Default (302): 0
Device Node (275): "/dev/input/event2"
Device Product ID (276): 6940, 6918
libinput Drag Lock Buttons (303): <no items>
libinput Horizontal Scroll Enabled (304): 1
jonny ~ xinput list-props 11
Device 'Corsair Corsair M95 Gaming Mouse':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (292): 0
libinput Natural Scrolling Enabled Default (293): 0
libinput Send Events Modes Available (272): 1, 0
libinput Send Events Mode Enabled (273): 0, 0
libinput Send Events Mode Enabled Default (274): 0, 0
Device Node (275): "/dev/input/event4"
Device Product ID (276): 6940, 6918
libinput Drag Lock Buttons (303): <no items>
libinput Horizontal Scroll Enabled (304): 1
jonny ~ xinput list-props 10
Device 'Corsair Corsair M95 Gaming Mouse':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (272): 1, 0
libinput Send Events Mode Enabled (273): 0, 0
libinput Send Events Mode Enabled Default (274): 0, 0
Device Node (275): "/dev/input/event3"
Device Product ID (276): 6940, 6918
jonny ~ xinput list-props 15
Device 'Corsair Corsair M95 Gaming Mouse':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (292): 0
libinput Natural Scrolling Enabled Default (293): 0
libinput Send Events Modes Available (272): 1, 0
libinput Send Events Mode Enabled (273): 0, 0
libinput Send Events Mode Enabled Default (274): 0, 0
Device Node (275): "/dev/input/event4"
Device Product ID (276): 6940, 6918
xinput list-props 4
Device 'Virtual core XTEST pointer':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
XTEST Device (271): 1
xinput list-props 2
Device 'Virtual core pointer':
Device Enabled (153): 1
Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
和:
xinput 1
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Corsair Corsair M95 Gaming Mouse id=9 [slave pointer (2)]
⎜ ↳ Corsair Corsair M95 Gaming Mouse id=11 [slave pointer (2)]
⎜ ↳ Razer Razer BlackWidow Ultimate id=13 [slave pointer (2)]
⎜ ↳ Razer Razer BlackWidow Ultimate id=14 [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)]
↳ UVC Camera (046d:0807) id=8 [slave keyboard (3)]
↳ Corsair Corsair M95 Gaming Mouse id=10 [slave keyboard (3)]
↳ Razer Razer BlackWidow Ultimate id=12 [slave keyboard (3)]
↳ Corsair Corsair M95 Gaming Mouse id=15 [slave keyboard (3)]
↳ Razer Razer BlackWidow Ultimate id=16 [slave keyboard (3)]
答案1
我非常接近了:
xinput set-prop $MOUSE_ID "libinput Accel Speed" -0.9
在哪里
MOUSE_ID=`xinput list | grep -i Corsair | awk '{print $(NF-3)}' | cut -c4-5 | head -n 1
每:https://patrickmn.com/aside/lowering-gaming-mouse-sensitivity-in-ubuntu-9-10/
答案2
对于那些不像Device Accel Constant Deceleration
我这样的人。
的值libinput Accel Speed
可以是负数,例如
xinput --set-prop 'pointer:Logitech MX Master' 'libinput Accel Speed' -0.5
要查找您的鼠标名称:
xinput | grep pointer
,不要忘记在其前面加上前缀,pointer:
因为我的鼠标也显示为键盘。