2

I've been playing around xmodmap to create a custom keyboard (refer to Get the keycode of a key, from a custom made keyboard also).

But now, I can't use the N key anymore, but the Shift+N still works fine.

I think I messed up something, so I performed a reset to defaults of my keyboard (using the Ubuntu system settings).

Now everything seems to work ok, except my N key, my Shift+N key works.

How can I get that key working again?

0

3 Answers 3

2

that was some .xbindkeysrc file that messed up all that. I removed it, and it's ok now.

2

First, check that you've restored the keyboard layout properly. echo keycode 57 = n N | xmodmap - should do the trick (adjust the keycode if you aren't using a PC keyboard — run xev to see the keycode sent by the key).

If pressing the key does nothing visible even in xev, there is probably an application that has grabbed the key, i.e. claims the key as a shortcut. If your X server isn't too old, you can see a list of active grabs with the command

xdotool key XF86LogGrabInfo
0

Try sudo rm /var/lib/xkb/*.xkm This clears a sort of cache of keyboard layouts. I had similar problems in the past when using custom keyboard layauts and this solved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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