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 was wondering if anyone could tell me how to disable the fn key on my laptop?

share|improve this question

I recently had a similar problem with CapsLock and fixed it with xmodmap

You would only have to find out the code for fn, perhaps you will find it in the man page of xmodmap.

Update: Refering to the keycode for fn should be 227 and the keysym F35

So the xmodmap syntax to disable fn could be remove Lock = F35
I have not tested it.

share|improve this answer

Check your laptop's BIOS. Most of the BIOS handles how to change (or remove) functionality of those special keys. I have just done this in order to change the order of [Fn] and left [Ctrl] keys but I remember there is an option to cancel the [Fn] key.

share|improve this answer

Press Fn+ESC will toggle between enabling/disabling Fn-key functions.

share|improve this answer
I'm not sure that this answer will work on all systems: it does not work on my Dell. – Charles Green Oct 9 '14 at 13:50
This worked for me on Lenovo Thinkpad e450 – Shobit Sharma Oct 29 '15 at 6:31

Your Answer


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