Function keys with a Chinese keyboard.

Hey, I’m cheap and bought a no-brand Chinese mechanical 65% keyboard. It was great except the function keys would not work.

It turns out that the keyboard presents itself as an apple device…

Bus 001 Device 004: ID 05ac:0250 Apple, Inc. Aluminium Keyboard (ISO)

… and there is a very quick fix for this.

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

This will make FN+number behave like an F key of that value.

A longer description of the setting can be found here.

You’re welcome.