怎么设置linux鼠标灵敏度,ubuntu设置鼠标速度

[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):

libinput Horizontal Scroll Enabled (308): 1

修改矩阵

原来的矩阵是

math?formula=%5Cbegin%7Bbmatrix%7D%201%260%260%20%5C%5C%200%261%260%5C%5C%200%260%261%20%5Cend%7Bbmatrix%7D

将前两个1修改为1.5,速度就刚好OK啦

xinput --set-prop 9 157 1.5 0 0 0 1.5 0 0 0 1

ref

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值