:~$ xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Kensington Kensington Expert Mouse id=10 [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)] ⎜ ↳ TPPS/2 IBM TrackPoint 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)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Video Bus id=8 [slave keyboard (3)] ↳ Power Button id=9 [slave keyboard (3)] ↳ Integrated Camera id=11 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)] ↳ ThinkPad Extra Buttons id=15 [slave keyboard (3)] :~$ xinput --disable 13先用xinput 列出所有 input device,然後用 disable 關掉 touchpad
在使用wayland 後這個 xinput 方式就失效了,沒有出現我用的 touchpad 名稱。
所以參考這一篇 歷經 11 年後的回答,用gnome setting:
Disable:
gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled
Enable:
gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled
沒有留言:
張貼留言