Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My return key is physically dead.

I'm running xubuntu. I am able to remap the AltGr to return using xmodmap. However when I reload xmodmap, either via shell or automatically during boot, it will hang for 5 minutes. This is a known issue with xfce and xmodmap.

So how would I use xkb to map altgr to return?

(or how would I stop altgr hanging for so long?)

share|improve this question
I can use xkbcomp to swap the keys around, but I can't make the changes persistent. – rhlee May 1 '12 at 18:25
if xkbcomp works, you could put it in xinit? – Chris2048 May 1 '12 at 21:30
up vote 1 down vote accepted

The xmodmap program works fine for me under Ubuntu 12.04 and 14.04 when I give it my own map file, but it does hang like you mentioned when I run it under Fedora 20. The solution I did was to run the following:

xmodmap -e "insert your keycode mapping here"

You basically call xmodmap for each individual keycode you wish to modify. It's somewhat of a cumbersome workaround, but it does work.

share|improve this answer
that being said, new keyboards are pretty cheap. – gonzobrains Jan 23 '15 at 19:01

Your Answer


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.