Disable input devices such as keyboard, touchpad, and mouse in Linux # xinput list-props list-number # xinput set-prop list-number func-number 1/0 www.2cto.com $ xinput list to list all input devices www.2cto.com $ xinput list? Virtual core pointer id = 2 [master pointer (3)]?? Virtual core XTEST pointer id = 4 [slave pointer (2)]?? Logitech USB Optical Mouse id = 9 [slave pointer (2)]?? SynPS/2 Synaptics TouchPad 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)]? Video Bus id = 7 [slave keyboard (3)]? Power Button id = 8 [slave keyboard (3)]? AT Translated Set 2 keyboard id = 10 [slave keyboard (3)] out-of-touch input device SynPS/2 Synaptics TouchPad id = 11 and then use the following command. 0 indicates that it is disabled, 1 indicates that $ xinput set-prop 11 "Device Enabled" 0 is Enabled.