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

Issue Mapping Keys on Apple Magic Keyboard #4113

Open
masashiomori opened this issue Jan 31, 2025 · 8 comments
Open

Issue Mapping Keys on Apple Magic Keyboard #4113

masashiomori opened this issue Jan 31, 2025 · 8 comments

Comments

@masashiomori
Copy link

Karabiner version: 15.3.0
Mac OS: Sonoma 14.7

I'm trying to add a simple modification to my apple magic keyboard, but the key presses are not detected in event-viewer. I see that Karabiner does recognize that the keyboard is connected:

Image

Image

I did notice that the line "device_identifiers": { "is_keyboard": true } is not present in the configuration for the magic keyboard. Could that be a reason why the mappings aren't working? Please advise, thank you.

@jaybxyz
Copy link

jaybxyz commented Feb 5, 2025

I have a similar issue. Function keys with my Magic Keyboard are not functioning in my case.

Karabiner version: 15.3.0
Karabiner DriverKit VirtualHIDKeyboard: 1.8.0
Mac OS: Sonoma 14.5

Image

Strangely, if I use USB cable to plug it in, the Karabiner Elements app detects it correctly.

Image

For reference, here is how I set up the function keys.

Image

@jaybxyz
Copy link

jaybxyz commented Feb 6, 2025

Does anyone know how to fix the issue?

@francescov1
Copy link

I had this issue with a new Magic Keyboard until I plugged it into my laptop with a usbc cord. I got prompted to allow the USBC device which I assume is what was needed here

@jaybxyz
Copy link

jaybxyz commented Feb 10, 2025

I had this issue with a new Magic Keyboard until I plugged it into my laptop with a usbc cord. I got prompted to allow the USBC device which I assume is what was needed here

I actually plugged it into my Studio Display. Let me try to plug it into my laptop and see if it recognizes.

UPDATE: not working for me.

@masashiomori
Copy link
Author

same, I don't even get the prompt :(

@tekezo
Copy link
Member

tekezo commented Feb 16, 2025

I can't reproduce the issue on my end. As mentioned above, the Magic Keyboard needs to be paired with macOS first, such as by connecting it via cable. I suspect that the pairing may not have been completed successfully.

@jaybxyz
Copy link

jaybxyz commented Feb 16, 2025

I suspect that the pairing may not have been completed successfully.

Still having the same issue. As far as I can tell, the pairing is successfully completed, but the Karabiner Elements does not recognize the keyboard. As you can see the last image I attached above, it says (Unknown).

    {
        "device_id": 4295115206,
        "device_identifiers": {
            "product_id": 802,
            "vendor_id": 76
        },
        "is_apple": true,
        "location_id": 1401136774,
        "manufacturer": "Unknown",
        "product": "Magic Keyboard with Touch ID and Numeric Keypad",
        "serial_number": "1c-1d-d3-83-a6-86",
        "transport": "Bluetooth"
    }

If I plugged it with USB cable, it changes to

    {
        "device_id": 4295116220,
        "device_identifiers": {
            "is_keyboard": true,
            "product_id": 802,
            "vendor_id": 1452
        },
        "is_apple": true,
        "location_id": 51511296,
        "manufacturer": "Apple Inc.",
        "product": "Magic Keyboard with Touch ID and Numeric Keypad",
        "serial_number": "F0THCM0NA0A0000MQB",
        "transport": "USB"
    },

@tekezo
Copy link
Member

tekezo commented Feb 18, 2025

Normally, it would be recognized as follows.
It's also strange that the manufacturer is shown as "Unknown". If there's another possible cause, it could be that a third-party vendor's custom driver is installed, and the Magic Keyboard is being handled by that driver instead of the standard keyboard driver.
If such a custom driver is interfering, it may not function properly. In that case, please consider uninstalling the custom driver.

    {
        "device_id": 4296533380,
        "device_identifiers": {
            "is_keyboard": true,
            "product_id": 666,
            "vendor_id": 76
        },
        "is_apple": true,
        "location_id": 1542593102,
        "manufacturer": "Apple Inc.",
        "product": "Fumihiko Takayama’s Magic Keyboard",
        "serial_number": "AC:49:DB:F2:1A:4E",
        "transport": "Bluetooth"
    }

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

4 participants