pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.58k stars 835 forks source link

All input blocked for enabled keyboards #3923

Open johnrwoolley opened 1 week ago

johnrwoolley commented 1 week ago

Starting yesterday, when Karabiner Elements is enabled for any keyboard, all input is blocked for that keyboard. I can't type anything into any text boxes - as far as I can tell the only button that works is the mute button. The Karabiner-Elements event viewer still reports keypresses as normal.

Any ideas would be appreciated. My caps lock -> escape/ctrl remap is key to my workflow!

Hardware information:

macOS version: macOS 14.6.1
Karabiner version: Karabiner-Elements 15.0.0
Your Mac hardware: Apple M1 Pro 
Your keyboard hardware:
- Apple Internal Keyboard/Trackpad (Apple Inc.)
- Magic Keyboard (Apple Inc.)

Here is my karabiner.json config file:

{
    "profiles": [
        {
            "complex_modifications": {
                "rules": [
                    {
                        "description": "Change caps_lock to left_control if pressed with other keys, change caps_lock to escape if pressed alone.",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "caps_lock",
                                    "modifiers": { "optional": ["any"] }
                                },
                                "to": [{ "key_code": "left_control" }],
                                "to_if_alone": [{ "key_code": "escape" }],
                                "type": "basic"
                            }
                        ]
                    }
                ]
            },
            "devices": [
                {
                    "identifiers": {
                        "is_keyboard": true,
                        "product_id": 834,
                        "vendor_id": 1452
                    },
                    "ignore": true,
                    "manipulate_caps_lock_led": false
                },
                {
                    "identifiers": {
                        "is_keyboard": true,
                        "product_id": 615,
                        "vendor_id": 76
                    },
                    "ignore": true
                },
                {
                    "identifiers": {
                        "is_keyboard": true,
                        "product_id": 45962,
                        "vendor_id": 1578
                    },
                    "ignore": true
                }
            ],
            "fn_function_keys": [
                {
                    "from": { "key_code": "f3" },
                    "to": [{ "key_code": "f3" }]
                },
                {
                    "from": { "key_code": "f5" },
                    "to": [{ "key_code": "f5" }]
                }
            ],
            "name": "Default profile",
            "selected": true
        }
    ]
}

Here are the logs, starting from enabling my magic keyboard and then typing on it a bit:

--------------------------------------------------------------------------------
[2024-09-11 08:31:01.821] [info] [grabber] Load /Users/johnwoolley/.config/karabiner/karabiner.json...
[2024-09-11 08:31:01.824] [info] [grabber] core_configuration is updated.
[2024-09-11 08:31:01.830] [info] [console_user_server] Load /Users/johnwoolley/.config/karabiner/karabiner.json...
[2024-09-11 08:31:01.843] [info] [console_user_server] core_configuration is updated.
[2024-09-11 08:31:01.850] [info] [grabber] Apple Internal Keyboard / Trackpad (device_id:4294970013) hid queue value monitor is stopped.
[2024-09-11 08:31:01.852] [info] [virtual_hid_device_service] received request::virtual_hid_pointing_terminate: 17f41cf1a2ca90d8.sock
[2024-09-11 08:31:01.853] [info] [virtual_hid_device_service] received request::virtual_hid_pointing_terminate: 17f41cf1a2ca90d8.sock
[2024-09-11 08:31:04.088] [info] [grabber] Load /Users/johnwoolley/.config/karabiner/karabiner.json...
[2024-09-11 08:31:04.091] [info] [grabber] core_configuration is updated.
[2024-09-11 08:31:04.093] [info] [console_user_server] Load /Users/johnwoolley/.config/karabiner/karabiner.json...
[2024-09-11 08:31:04.119] [info] [virtual_hid_device_service] received request::virtual_hid_pointing_terminate: 17f41cf1a2ca90d8.sock
[2024-09-11 08:31:04.122] [info] [grabber] Magic Keyboard (device_id:4294971484) probable_stuck_events_manager_->clear()
[2024-09-11 08:31:04.122] [info] [grabber] Magic Keyboard (device_id:4294971484) hid queue value monitor is started (grabbed).
[2024-09-11 08:31:04.122] [info] [grabber] caps_lock_led_state_manager is started: Magic Keyboard
[2024-09-11 08:31:04.122] [info] [virtual_hid_device_service] received request::virtual_hid_pointing_terminate: 17f41cf1a2ca90d8.sock
[2024-09-11 08:31:04.123] [info] [console_user_server] core_configuration is updated.
sidharthv96 commented 4 days ago

Restarting Karabiner fixed it for me, although temporarily. It came back when I woke up after standby. But it's not consistent, happens ~once in 2-3 days.

johnrwoolley commented 2 days ago

Thanks for the response. Unfortunately it is 100% consistent for me, including multiple restarts of karabiner and of my mac.