Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

my keyboard is damaged, the keyboard key [é] is always pressed and it prevents me from working. On windows I found the software sharpkey to disable the [é] button but on Ubuntu I can't found no solution. On many forums they talks about Xmodmap but I can not work on the terminal as the [é] button is often PRESSED. Please could you give me a solution for that issue. Thanks

share|improve this question
4  
Do you have ssh enabled? You could use xmodmap from another machine. But have you tried removing the key physically and cleaning under it? –  Paul Jul 2 at 0:57

2 Answers 2

up vote 1 down vote accepted

What I would try:

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

  2. 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.

  3. 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.

  4. 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 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!

share|improve this answer

You can also change the keyboard for new one. It is possible to order a keyboard for your particular laptop on the net and it comes by post envelope somewhere from China.

You can also just disconnect you keyboard and use external USB one. It is easy to open your laptop and disconnect a little cable going from the keyboard to the motherboard.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.