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
xinputto float the input device under X.
- Execute the command
xinput listto list your input devices.
- Locate
AT Translated Set 2 keyboardand take note of itsidnumber; 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 themaster, which will be used to re-enable your keyboard.
- To disable the keyboard, execute the command
xinput float, whereis your keyboard's id number. For example, if theidwas10, then the command would bexinput float 10.
- To re-enable the keyboard, execute the command
xinput reattach, wheremasteris that second number we noted down. So if the number was3, you would doxinput reattach 10 3.
No comments:
Post a Comment