转载自:https://blog.csdn.net/RadiantJeral/article/details/115717575
在笔记本上安装了Ubuntu 系统,但是不支持 Fn 键. 本文提供一种方法,自定义快捷键关闭触摸板.
1. xinput 命令
1.1 查看 xinput 命令控制 TouchPad 的 id
xinput
- 1
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=12 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=13 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=16 [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)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Video Bus id=10 [slave keyboard (3)]
↳ Lenovo EasyCamera: Lenovo EasyC id=11 [slave keyboard (3)]
↳ Ideapad extra buttons id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
查看输出结果,TouchPad
的 id=16
.
1.2 xinput 命令开启或关闭 TouchPad
关闭触摸板
xinput --disable 16
- 1
开启触摸板
xinput --enable 16
- 1
2. 设置快捷键
Settings > Keyboard > Custom Shotrcuts
点击 + 添加自定义快捷键条目,并编辑如下:
在添加的条目右侧自定义快捷键组合.