Skip to content

Instantly share code, notes, and snippets.

@cristianovitorino
Forked from Joao-Peterson/gmk67_linux.md
Created February 6, 2024 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cristianovitorino/d67a0721f2b9b7df37fff1f966dc7f02 to your computer and use it in GitHub Desktop.
Save cristianovitorino/d67a0721f2b9b7df37fff1f966dc7f02 to your computer and use it in GitHub Desktop.
Using GMK67 keyboard in linux. Function keys not working with Fn!

GMK67 with Linux!

Recently i bought a zuoya gmk67 keyboard, it doesn't have a function keys row and has a know for volume control. Unfortunately, if you plug your gmk67 in a linux machine you will notice that using fn+1 will not produce f1 as expected, it will produce a screen brightness decrease, and if you change the physical switch in the back for the macOS mode, the function keys now work, but the modifier keys don't, quite stressful.

Fear not, you can either alter your system configuration so the keyboard functions normally, as in this gist, or remap the keys, as seen in the gist Using GMK67 keyboard in linux with key remaps!.

For this gist we are going to alter the configuration for the apple hid driver on linux, since this keyboard uses it, and alter the functionality of the Fn key.

This is tested on archlinux, for any other distro you might have to figure out yourself the correponding commands!

First write the following file as root:

/etc/modprobe.d/hid_apple.conf:

options hid_apple fnmode=2

Then rebuild the initramfs:

$ sudo mkinitcpio -p linux 

And boom, know everything should work as intended, thanks @butterdori for the tip!. More info on the arch wiki:

Apple Keyboard - Function keys do not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment