How To Disable a Keyboard Key in Linux


Okee.. then

Connect a USB keyboard in there, or get into the machine using ssh.

Open a terminal, and run xev. It will show some stuff on screen (too much stuff, but don't worry). 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 the keycode 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 hope this helps! okee thanks you..
Share:

How To Fix Broadcom 4311 in Ubuntu 12.04/ 14.04



Previously you check in terminal,

$ lspci | grep BCM


 












04:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)

If yes,continue to process this

1.Remove the BCM driver (standart SAT) in the kernel.

Go to terminal command:

$ sudo apt-get remove bcmwl-kernel-source

2. Install alternative driver

$ sudo apt-get install firmware-b43-installer b43-fwcutter

3. Restart Computer

$ sudo reboot

Good luck..

Share: