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

Apple Keyboard Support #7

Open
brunofjesus opened this issue May 8, 2023 · 1 comment
Open

Apple Keyboard Support #7

brunofjesus opened this issue May 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@brunofjesus
Copy link

Hello! I use a Keychron K2 in MacOS mode, I noticed that the function keys do not work.
I was able to make the Function Brightness keys work (by accident) when adding this to the ds_KEY_TO_HID:

'KEY BRIGHTNESSDOWN': chr(0x47),
'KEY_BRIGHTNESSUP': chr (0x48) ,

Is there any plan to make the Apple Keyboards work? I would be happy to help on that, I just don't know much about how does this work yet.

@HeuristicPerson HeuristicPerson added the bug Something isn't working label May 14, 2023
@HeuristicPerson
Copy link
Owner

HeuristicPerson commented May 14, 2023

Hi, @brunofjesus, and thanks for the report.

Hi have a Keychron K2 myself and, using the usb connection in Mac mode I checked that F5 and F6 don't produce any key code in my regular desktop Linux PC. In windows mode, they produce:

$ sudo showkey
^[[15~keycode  63 press
keycode  63 release
^[[17~keycode  64 press
keycode  64 release

I'm not familiarised with Mac computers, why do you need to have your keyboard setup in Mac mode? My partner uses an USB keyboard in a Mac computer with no issues, have you tried setting up the keyboard in Windows mode?

My understanding is that the keyboard should be setup in Windows mode since it's connected to the Raspberry PC running Linux. Then, if you miss any key in your mac computer, the code of the program should be modified so it performs the translation between codes 63, 64 (regular F5 and F6 keys) to the missing special keys Mac needs.

I'll try to run the above command in the Mac of my partner to check whether F5 and F6 produce any keycode there.

Regards

EDIT: If I press "fn" key and F5/F6, they produce keycodes 229/230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants