我安装 Ubuntu 系统后默认的小红帽灵敏度太高,一碰就会跑好远,有时候打字的时候很容易误碰,因此需要调整灵敏度:
通过终端输入:
xinput list | grep "TrackPoint"
可以查看我的「TrackPoint」对应的 id 是 13
终端再次输入:
xinput list-props 13
可以查看到我的小红帽的灵敏度属性 id 为 310 ,也就是libinput Accel Speed 这个属性。
ado ~ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech M215 2nd Gen id=10 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint 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)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ C-Media Electronics Inc. USB Audio Device id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=14 [slave keyboard (3)]
ado ~ xinput list | grep "TrackPoint"
⎜ ↳ TPPS/2 IBM TrackPoint id=13 [slave pointer (2)]
ado ~ xinput list-props 13
Device 'TPPS/2 IBM TrackPoint':
Device Enabled (164): 1
Coordinate Transformation Matrix (166): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (301): 0
libinput Natural Scrolling Enabled Default (302): 0
libinput Scroll Methods Available (303): 0, 0, 1
libinput Scroll Method Enabled (304): 0, 0, 1
libinput Scroll Method Enabled Default (305): 0, 0, 1
libinput Button Scrolling Button (306): 2
libinput Button Scrolling Button Default (307): 2
libinput Middle Emulation Enabled (308): 0
libinput Middle Emulation Enabled Default (309): 0
libinput Accel Speed (310): 0.470588
libinput Accel Speed Default (311): 0.000000
libinput Accel Profiles Available (312): 1, 1
libinput Accel Profile Enabled (313): 1, 0
libinput Accel Profile Enabled Default (314): 1, 0
libinput Left Handed Enabled (315): 0
libinput Left Handed Enabled Default (316): 0
libinput Send Events Modes Available (286): 1, 0
libinput Send Events Mode Enabled (287): 0, 0
libinput Send Events Mode Enabled Default (288): 0, 0
Device Node (289): "/dev/input/event7"
Device Product ID (290): 2, 10
libinput Drag Lock Buttons (317): <no items>
libinput Horizontal Scroll Enabled (318): 1
ado ~ xinput set-prop 13 310 -1.0
ado ~ xinput set-prop 13 310 -0.5
ado ~
这个属性的数值区间为[-1,1],当该值为 -1 时灵敏度最低,我这里尝试设置该值为 -1 ,发现很难移动鼠标指针;该值为1时灵敏度最高,我这里默认的值是 0.470588 ,因此,我需要把值设置在 -1 到 0之间应该比较合适,所以我最后设置该值为 -0.5 :
xinput set-prop 13 310 -0.5
经过使用发现这样已经比较符合我的使用习惯了。
如果想禁用小红帽
终端输入:
xinput disable 13
即可禁用。因为我需要使用到小红帽,所以这里就不尝试了。
注意
以上方法经过实际测试(Ubuntu 20.04),电脑重启后会失效。
最简单的处理方法:
打开图形界面的「启动应用程序首选项」

点击「添加」:

这样保存后重启就能正常使用了。
但实际上 id 是会经常变化的,直接写 id 并不科学,那么,直接写名称就是了:
xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" -0.5
参考链接:
在linux 下设置 thinkpad 小红点的灵敏度
Ubuntu Thinkpad禁用小红帽功能