I was wondering if anyone could tell me how to disable the fn key on my laptop?
-
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 Answers
Press Fn+Esc will toggle between enabling/disabling Fn-key functions.
You can also press Ctrl+Shift+T.

- 10,783

- 287
- 3
- 2
-
1I'm not sure that this answer will work on all systems: it does not work on my Dell. – Charles Green Oct 09 '14 at 13:50
-
2
-
-
2
-
2work on my dell inspiron 7000. surprisingly simple answer, didn't expect that. – Johnny Willer Sep 21 '18 at 01:20
-
-
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.

- 19,552
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.
On my HP laptop, in Ubuntu 20.04. I solved this issue like this,
- At first lock your PC.
- Press ctrl+shift+t