How to disable a keyboard key in Linux (Ubuntu)?
What I would try:
Connect a USB keyboard in there, or get into the machine using ssh.
Open a terminal, and run
xev -event keyboard
. It will show some stuff on screen. If you omit the arguments, you will notice that it will show some more stuff if you move your mouse, as well.Then, press the key combination you want to disable [é]. The info in the screen will change, and you will have to look for the
keycode
value.Run something like this, changing
<value>
for the value you got for thekeycode
in the last step:xmodmap -e 'keycode <value>='
For example, if I want to disable the
~
key ( Shift + ` ), I would have to run:xmodmap -e 'keycode 49='
I have only tried this with more standard keys, like Caps Lock... but I guess it should work with this as well. I hope this helps!