-
-
Save xanathar/efa792f4b4defec6975b06785b23ae4b to your computer and use it in GitHub Desktop.
/etc/modprobe.d/hid_apple.conf
This file contains hidden or 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
| options hid_apple fnmode=2 | |
| options hid_apple swap_opt_cmd=1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://wiki.archlinux.org/title/Apple_Keyboard (it's Arch, but works in whatever Linux)
After this, to apply:
For Ubuntu:
sudo update-initramfs -u -k allFor Fedora:
sudo vi /etc/dracut.conf.d/hid_apple.confaddinstall_items+=/etc/modprobe.d/hid_apple.confdracut --forceIn both cases, then reboot.
To change the settings to the current session:
sudo vi /sys/module/hid_apple/parameters/fnmodeoverwrite with2sudo vi /sys/module/hid_apple/parameters/swap_opt_cmd, overwrite with1