Skip to content

Instantly share code, notes, and snippets.

@abn
Last active February 26, 2023 20:49
Show Gist options
  • Save abn/e5bb0f2d152f4b96a1f1263b61d0cac9 to your computer and use it in GitHub Desktop.
Save abn/e5bb0f2d152f4b96a1f1263b61d0cac9 to your computer and use it in GitHub Desktop.
Fix keychron k1 function keys on Fedora
#!/usr/bin/env bash
FNMODE=0
# session fix
echo $FNMODE | sudo tee /sys/module/hid_apple/parameters/fnmode
# permanent fix
# https://ask.fedoraproject.org/t/getting-the-function-keys-to-work-properly-with-a-varmilo-keyboard/11297
echo "options hid_apple fnmode=$FNMODE" | sudo tee /etc/modprobe.d/hid_apple.conf
echo 'install_items+=/etc/modprobe.d/hid_apple.conf' | sudo tee /etc/dracut.conf.d/hid_apple.conf
sudo dracut --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment