Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Magic Keyboard Touch ID and Ubuntu 21.10 #79

Open
cue108 opened this issue Nov 19, 2021 · 4 comments
Open

Help Magic Keyboard Touch ID and Ubuntu 21.10 #79

cue108 opened this issue Nov 19, 2021 · 4 comments

Comments

@cue108
Copy link

cue108 commented Nov 19, 2021

I simply don't know how to configure it.
The module is installed via the first instructions in the Readme.md and I have reboot.

The module is not even loaded:

lsmod | grep hid
hid_magicmouse         20480  0
hidp                   32768  2
bluetooth             663552  42 btrtl,hidp,btintel,btbcm,bnep,btusb,rfcomm
mac_hid                16384  0
hid_generic            16384  0
usbhid                 61440  0
hid                   135168  4 hidp,usbhid,hid_generic,hid_magicmouse

If I do a modprobe it looks fine but I think the module is not used as I cannot identify any change in the keyboard usage:

sudo modprobe -v hid_apple
insmod /lib/modules/5.13.0-21-generic/updates/dkms/hid-apple.ko fnmode=2 swap_opt_cmd=1 rightalt_as_rightctrl=1 ejectcd_as_delete=1 swap_fn_f13_insert=1 

I have a Magic Keyboard with Touch ID together with a magic mouse and I am running Ubuntu 21.10 on a PC.

Any hint is appreciated!

@d0nth4x
Copy link
Contributor

d0nth4x commented Nov 19, 2021

Look like same problem as mine. You have to check your product id and add it like me. Check PR #77 .
idk what is prod id for keyboard with touch id so you have to use tool like Hardinfo and check it.
Hope it helps ;)

@cue108
Copy link
Author

cue108 commented Nov 20, 2021

Thanx a lot. I pulled your fork and it didn't work but I could find the USB id by checking syslog.

Maybe you want to add your PR with the following address in hid-ids.h:

#define USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_touch_id_2021 0x029f

and add the following lines to hid-apple.c:

	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_touch_id_2021),
		.driver_data = APPLE_HAS_FN },
	{ HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_touch_id_2021),
		.driver_data = APPLE_HAS_FN },

It works great!

@cue108
Copy link
Author

cue108 commented Nov 25, 2021 via email

@ghost
Copy link

ghost commented Feb 13, 2022

In my case it's 029a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants