Действия
Отключение устройств ввода в X¶
Смотрим список устройств ввода¶
xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)] ⎜ ↳ Logitech USB Receiver id=12 [slave pointer (2)] ⎜ ↳ PS/2 Logitech Wheel Mouse 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)] ↳ WebCam SC-03FFL11739P id=10 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
Отключаем по id¶
Отключаем PS/2 Logitech Wheel Mouse
xinput set-int-prop 14 "Device Enabled" 8 0
Включаем по id¶
Включаем PS/2 Logitech Wheel Mouse
xinput set-int-prop 14 "Device Enabled" 8 1
Обновлено Андрей Волков больше 9 лет назад · 2 изменени(я, ий)