Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I'm trying to remap my keyboard such that the Caps Lock acts as an additional Fn key, because the current one is in an awkward place (over by the Home and End). I was planning on using xmodmap, which requires keycodes to work. I have my Caps Lock keycode, which is 66, but to finish I need the keycode for the Fn. Using xev and pressing the Fn, I don't see anything. Any recommendations?

share|improve this question
up vote 5 down vote accepted

The Fn key usually doesn't send a key code; it's handled by the BIOS, not by the OS. You can sometimes get at it as an ACPI event. (This is very much dependent on the exact computer model.)

share|improve this answer
Too bad. Thanks for your help. Here's to getting used to a function key next to the home and end keys! – Bradley Powers May 27 '11 at 16:45
This answer is not true anymore. See this post. – daltonfury42 Jun 29 '15 at 6:39

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.