Home » Questions » Computers [ Ask a new question ]

How to swap the "fn" use of Function keys on an Apple Keyboard in Linux

How to swap the "fn" use of Function keys on an Apple Keyboard in Linux

I have an apple slim keyboard (USB) and if I want to use one of the Function Key as-is, I also have to press "fn " key first. Otherwise, it will try to perform the other function of the key, such as increasing or decreasing the display intensity, change the volume/mute, etc....

Asked by: Guest | Views: 379
Total answers/comments: 3
Guest [Entry]

"echo 0 > /sys/module/hid_apple/parameters/fnmode

Or, in case of permission issue:

echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode

This will prevent you from having to reboot. Adding the option is a good idea, so the change persists through reboots.

0 = Fn key disabled
1 = Fn key pressed by default
2 = Fn key released by default

From /drivers/hid/hid-apple.c line 42:

Mode of fn key on Apple keyboards (0 = disabled, [1] = fkeyslast, 2 = fkeysfirst)"
Guest [Entry]

"From Here
how do we swap the function of the Fn key?
First edit /etc/modprobe.d/options

sudo nano /etc/modprobe.d/options

and make sure it has the line

options hid pb_fnmode=2

Then save and exit. Lastly, we need to update ramfs:

sudo update-initramfs -u -v -k uname -r

Then just reboot!"
Nueone [Entry]

oral lipitor 20mg <a href="https://lipiws.top/">buy lipitor 10mg pills</a> order atorvastatin 20mg online