I noticed that the device was being loaded with hid-generic in dmesg logs until I rebuilt the module with these lines added.
Also, not sure if this is the correct way to do it but in order to get the module to load at boot, I added hid_apple the /etc/modules file. Otherwise, I'd have to run sudo modprobe -r hid_apple; sudo modprobe hid_apple after logging in.
I wasn't able to get my keyboard to work until I added these lines:
hid-apple.c
hid-ids.h
I noticed that the device was being loaded with
hid-generic
indmesg
logs until I rebuilt the module with these lines added.Also, not sure if this is the correct way to do it but in order to get the module to load at boot, I added
hid_apple
the/etc/modules
file. Otherwise, I'd have to runsudo modprobe -r hid_apple; sudo modprobe hid_apple
after logging in.This is the exact product in question: https://www.apple.com/shop/product/MMMR3LL/A/magic-keyboard-with-touch-id-and-numeric-keypad-for-mac-models-with-apple-silicon-us-english-black-keys