-
Notifications
You must be signed in to change notification settings - Fork 61
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
Doesn't not work with MacBook Pro (Retina, 13-inch, Early 2015) #9
Comments
Hm, thank you @Aetf for this information, it's quite impotent. PS. And how did you get a key code 464 for FN key on your Macbook Pro? |
Distribution: Archlinux
And for the key code, I'm following the instruction on ArchWiki Edit: More test, strange result... Seems fn and lctrl aren't totally swapped. And with this patch, I indeed got a keycode 84 for fn today, which didn't appear when I tested a few weeks ago.
|
Maybe the difference in codes between patched version and not-patched is because of something being changed in kernel with file like hid-ids.h. |
More investigation shows that the driver support for 2015's Macbook Pro was added some version between 4.0.1 and 4.2, so Fn key on 2015's MBP is recognized with a standard key code KEY_FN(464). So no need for a special key code 84. However, this should also be the case for earlier models, not sure why :/ For the problem that when swap_fn_leftctrl disabled, Fn key not working properly, I think I have found the reason. There should be only one place dealing with changed fn keycode and other parts should be left unmodified. The function If revert |
I have created a PR #10 with the bug fixed and updated against kernel version 4.2.2 |
Thank you, @Aetf, great job! |
The keycode for Fn key is 464(0x1d0) on my macbook pro, not 84.
After changing Line 40, the module works as expected.
The model identifier is MacbookPro12,1 if that is needed.
The text was updated successfully, but these errors were encountered: