everyone!
I had to change keyboards at work and they gave me a mac keyboard that wasn't in use. I configured most of it to the point where I can use it, but I noticed that I need to press the fn
key to activate the Functions F1~F19
and I was wondering if there is anyway I could flip that.
So what I want to do is have the Function keys as default, and need to hit fn
whenever I want the other function of the key, such as Volume Up
or Eject Disc
Typing this in terminal:
enables F keys without needing FN.
To restore, change
0x02
to0x01
.Must be run after each reboot.
To make it permanent, you can add the command
echo -n 0x02 > /sys/module/hid_apple/parameters/fnmode
to the file/etc/rc.local
above the lineexit 0
. Or you can usesysfsutils
(check that it's installed withsudo apt install sysfsutils
) - edit/etc/sysfs.conf
to include the lineThis is covered in some depth at the Ubuntu Community Wiki, including various ways to do it permanently, systemwide.