You are not logged in.
Pages: 1
I have the following modprobe config for hid_apple device:
# /etc/modprobe.d/gmk67.conf
# The GMK67 keyboard presents itself as an Apple keyboard, who knew!
#
# This fixes the Fn keys as shown on the ArchWiki:
# https://wiki.archlinux.org/title/Apple_Keyboard#Function_keys_do_not_work
options hid_apple fnmode=2
What is weird is that modprobe picks the config up, but doesn't apply it at all.
$ modprobe -D hid_apple
insmod /lib/modules/6.13.2-arch1-1/kernel/drivers/hid/hid-apple.ko.zst fnmode=2
$ cat /sys/module/hid_apple/parameters/fnmode
3
What could be the issue here?
Last edited by utkarshverma (2025-04-22 09:25:59)
Offline
One quick note, I use a unified kernel image. The config is not applied at boot but works if I do:
$ sudo rmmod hid_apple && sudo modprobe hid_apple
Last edited by utkarshverma (2025-02-25 04:51:20)
Offline
Did you regenerate the UKI after editing the config, because otherwise, if the module is in the initramfs/uki, the config won't apply (because itself isn't there)
Online
Did you regenerate the UKI after editing the config, because otherwise, if the module is in the initramfs/uki, the config won't apply (because itself isn't there)
Yes, I regenerated my UKI using mkinitcpio and rebooted.
$ sudo mkinitcpio -p linux
Offline
As a work-a-round (and assuming you need the module during the boot) you could set the parameter via the commandline, https://wiki.archlinux.org/title/Unifie … mmand_line
"hid_apple.fnmode=2"
Online
The issue was caused because my modprobe.d/gmk67.conf was symlinked and it could not be accessed during boot. So, I fixed this by adding a FILES+=(/etc/modprobe.d/*.conf) via a drop-in mkinitcpio.conf config. As mentioned in mkinitcpio manpage, add_file results in copying both the target and the link in case of symlinks.
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online
Pages: 1