Saturday, January 10, 2015

debian - How to disable whole keyboard in linux?



I want my whole keyboard disabled for some time as I keep my notebook on my laptop keyboard while studying and unnecessarily, many unwanted keys are pressed. But, I don't want to disable the touchpad as I need any one input device.




I have installed ParrotOS (Debian Based).



Please suggest


Answer



You can use xinput float to disable your keyboard.



As @Ignacio Vazquez-Abrams answered in https://askubuntu.com/a/178741/905329:





You can use xinput to float the input device under X.




  1. Execute the command xinput list to list your input devices.

  2. Locate AT Translated Set 2 keyboard and take note of its id number; this will be used to disable the keyboard. Also, take note of the number at the end, [slave keyboard (#)]; this is the id number of the master, which will be used to re-enable your keyboard.

  3. To disable the keyboard, execute the command xinput float , where is your keyboard's id number. For example, if the id was 10, then the command would be xinput float 10.

  4. To re-enable the keyboard, execute the command xinput reattach , where master is that second number we noted down. So if the number was 3, you would do xinput reattach 10 3.



No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...