20

I was wondering if anyone could tell me how to disable the fn key on my laptop?

Jorge Castro
  • 71,754
  • I came here because my laptop has a hardware issue and starts sending F12 keypresses randomly. Seems none of the answers here are helpful. – SOFe Jun 10 '22 at 15:40

4 Answers4

27

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

You can also press Ctrl+Shift+T.

abu_bua
  • 10,783
Rocky Pocky
  • 287
  • 3
  • 2
5

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.

3

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 thinkwiki.com 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.

Pit
  • 1,214
0

On my HP laptop, in Ubuntu 20.04. I solved this issue like this,

  1. At first lock your PC.
  2. Press ctrl+shift+t