Last active
February 26, 2023 20:49
-
-
Save abn/e5bb0f2d152f4b96a1f1263b61d0cac9 to your computer and use it in GitHub Desktop.
Fix keychron k1 function keys on Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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