[toc]
问题来源
更换的4k显示器后,鼠标速度变的非常慢。
尝试xset
等命令均无效,如下方法完美解决问题。
直接在设置界面设置鼠标速度,范围有限
解决方法
首先查看所有设备
命令行输入
xinput --list
打印信息如下
yjf@chardonnay:~$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft® Classic IntelliMouse® id=9 [slave pointer (2)]
⎜ ↳ SONiX USB DEVICE 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)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ SONiX USB DEVICE id=10 [slave keyboard (3)]
↳ SONiX USB DEVICE id=12 [slave keyboard (3)]
可见,我鼠标的id是9
查看鼠标信息
命令行输入
xinput --list-props 9
打印信息如下
yjf@chardonnay:~$ xinput --list-props 9
Device 'Microsoft Microsoft® Classic IntelliMouse®':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 1.00000, 0.000000, 0.000000, 0.000000, 1.00000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (291): 0
libinput Natural Scrolling Enabled Default (292): 0
libinput Scroll Methods Available (293): 0, 0, 1
libinput Scroll Method Enabled (294): 0, 0, 0
libinput Scroll Method Enabled Default (295): 0, 0, 0
libinput Button Scrolling Button (296): 2
libinput Button Scrolling Button Default (297): 2
libinput Middle Emulation Enabled (298): 0
libinput Middle Emulation Enabled Default (299): 0
libinput Accel Speed (300): 1.000000
libinput Accel Speed Default (301): 0.000000
libinput Accel Profiles Available (302): 1, 1
libinput Accel Profile Enabled (303): 1, 0
libinput Accel Profile Enabled Default (304): 1, 0
libinput Left Handed Enabled (305): 0
libinput Left Handed Enabled Default (306): 0
libinput Send Events Modes Available (276): 1, 0
libinput Send Events Mode Enabled (277): 0, 0
libinput Send Events Mode Enabled Default (278): 0, 0
Device Node (279): "/dev/input/event3"
Device Product ID (280): 1118, 2083
libinput Drag Lock Buttons (307): <no items>
libinput Horizontal Scroll Enabled (308): 1
修改矩阵
原来的矩阵是
将前两个1修改为1.5,速度就刚好OK啦
xinput --set-prop 9 157 1.5 0 0 0 1.5 0 0 0 1