Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ok. I have a Thinkpad laptop and my bottom left key is a function key instead of a Control key like I'm used to.

So I fired up xev, pressed the Fn and got a keycode of 151. So I cleared all of it's current settings and ran the command :

keymap -e "keycode 151 = Control_L"

It runs successfully. So then I save this to my file ~/.Xmodmap. Then I log in and out of my account.

Yet when I open firefox if I attempt to use Fn + T to create a new tab the Fn key is not recognized as control and nothing happens.

What am I doing wrong?

share|improve this question
It is because ~/.Xmodmap is not read at login. See this question for how to set it. –  user76204 Feb 15 '13 at 18:24

Your Answer


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

Browse other questions tagged or ask your own question.