0

Actually my problem is same with this How to disable a keyboard key in Linux (Ubuntu)?

But I want to disable this corrupted key( keycode is 135) on startup.

xmodmap -e 'keycode 135= NoSymbol'

Although I tried a lot of methods, I could not run the above command on startup.

I tried these methods;

  • I added the above command into /etc/rc.local but it doesn't work!

  • I created a bash script and then I moved my script into /etc/init.d/ and I enabled it on startup with this command update-rc.d disablekey.sh enable but it doesn't work!

  • I found a service postgresql in /etc/init.d/ and I added this xmodmap -e 'keycode 135= NoSymbol' command in postgresql service and then I run this command update-rc.d postgresql enable When I rebooted my computer. The postgresql service runs okay but my corrupted key still works.

any suggestions?

1 Answers1

0

Try to create file ~/.Xmodmap

keycode 135 = NoSymbol

and reboot.