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.57k stars 834 forks source link

Karabiner Elements Driver no longer activates #2617

Open nickdingle opened 3 years ago

nickdingle commented 3 years ago

Like many others here, I am facing the problem of the Karabiner Elements driver not activating on Catalina 10.15.7.

I have tried everything I could find on this forum ... reinstalling multiple versions (12.10, 13.0, 13.3) -- none of it works. No amount of reinstalling, in safe mode or otherwise, makes the "Activate driver" button work. This is what I see:

error

However, opening Preferences shows nothing:

settings

My log fills up with this error:

[2021-02-04 17:52:37.016] [warning] [virtual_hid_device_service] driverversion is mismatched: client expected: 10300, actual dext: std::nullopt

Is there a way for me to "allow" the drivers via the command line, so that I can bypass this issue until it's fixed? If so, please share what the command might be. I desperately need my Karabiner back! ;)

lucasjbyoung commented 3 years ago

Have you tried disabling System Integrity Protection?

doraemoso commented 3 years ago

Do this. It's works fine.

Boot into Recovery Then in Terminal: csrutil disable Restart

nickdingle commented 3 years ago

Thanks for the suggestions guys, but disabling csrutil did not work. I'm seeing the same behaviour.

Here's the start of the logfile, before the same error just starts repeating.

[2021-02-05 11:55:37.221] [info] [observer] vendor_id: 1452 [2021-02-05 11:55:37.221] [info] [observer] product_id: 832 [2021-02-05 11:55:37.221] [info] [observer] location_id: 0xffffffff80500000 [2021-02-05 11:55:37.221] [info] [observer] serial_number: FM7944200YYHYYLAP+TEZ [2021-02-05 11:55:37.222] [info] [grabber] task_policy_set is called. [2021-02-05 11:55:37.227] [info] [grabber] session_monitor_receiver is initialized [2021-02-05 11:55:37.233] [info] [grabber] receiver is initialized [2021-02-05 11:55:37.234] [info] [grabber] receiver: bound [2021-02-05 11:55:37.234] [info] [grabber] receiver: chown socket: 0 [2021-02-05 11:55:37.234] [info] [grabber] session_monitor_receiver: bound [2021-02-05 11:55:37.244] [info] [observer] is_keyboard: true [2021-02-05 11:55:37.244] [info] [observer] is_pointing_device: false [2021-02-05 11:55:37.245] [info] [observer] rescan devices... [2021-02-05 11:55:37.245] [info] [observer] matching device: [2021-02-05 11:55:37.245] [info] [observer] registry_entry_id: 4294969022 [2021-02-05 11:55:37.245] [info] [observer] manufacturer: Apple Inc. [2021-02-05 11:55:37.245] [info] [observer] product: Apple Internal Keyboard / Trackpad [2021-02-05 11:55:37.245] [info] [observer] vendor_id: 1452 [2021-02-05 11:55:37.245] [info] [observer] product_id: 832 [2021-02-05 11:55:37.245] [info] [observer] location_id: 0xffffffff80500000 [2021-02-05 11:55:37.245] [info] [observer] serial_number: FM7944200YYHYYLAP+TEZ [2021-02-05 11:55:37.247] [info] [observer] is_keyboard: false [2021-02-05 11:55:37.247] [info] [observer] is_pointing_device: true [2021-02-05 11:55:37.247] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294969024) is observed. [2021-02-05 11:55:37.247] [info] [observer] rescan devices... [2021-02-05 11:55:37.253] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294969022) is observed. [2021-02-05 11:55:37.989] [info] [observer] matching device: [2021-02-05 11:55:37.989] [info] [observer] registry_entry_id: 4294969034 [2021-02-05 11:55:37.989] [info] [observer] manufacturer: Logitech [2021-02-05 11:55:37.990] [info] [observer] product: G403 HERO Gaming Mouse [2021-02-05 11:55:37.990] [info] [observer] vendor_id: 1133 [2021-02-05 11:55:37.990] [info] [observer] product_id: 49295 [2021-02-05 11:55:37.990] [info] [observer] location_id: 0x14123100 [2021-02-05 11:55:37.990] [info] [observer] serial_number: 116C39563638 [2021-02-05 11:55:37.991] [info] [observer] is_keyboard: true [2021-02-05 11:55:37.991] [info] [observer] is_pointing_device: false [2021-02-05 11:55:37.991] [info] [observer] rescan devices... [2021-02-05 11:55:37.993] [info] [observer] G403 HERO Gaming Mouse (device_id:4294969034) is observed. [2021-02-05 11:55:38.111] [info] [observer] matching device: [2021-02-05 11:55:38.111] [info] [observer] registry_entry_id: 4294969042 [2021-02-05 11:55:38.111] [info] [observer] manufacturer: Metadot - Das Keyboard [2021-02-05 11:55:38.111] [info] [observer] product: Das Keyboard Model S [2021-02-05 11:55:38.111] [info] [observer] vendor_id: 9456 [2021-02-05 11:55:38.111] [info] [observer] product_id: 311 [2021-02-05 11:55:38.111] [info] [observer] location_id: 0x14123200 [2021-02-05 11:55:38.112] [info] [observer] is_keyboard: true [2021-02-05 11:55:38.112] [info] [observer] is_pointing_device: false [2021-02-05 11:55:38.112] [info] [observer] rescan devices... [2021-02-05 11:55:38.113] [info] [observer] Das Keyboard Model S (device_id:4294969042) is observed. [2021-02-05 11:55:38.139] [info] [observer] matching device: [2021-02-05 11:55:38.139] [info] [observer] registry_entry_id: 4294969054 [2021-02-05 11:55:38.139] [info] [observer] manufacturer: Logitech [2021-02-05 11:55:38.139] [info] [observer] product: G403 HERO Gaming Mouse [2021-02-05 11:55:38.139] [info] [observer] vendor_id: 1133 [2021-02-05 11:55:38.139] [info] [observer] product_id: 49295 [2021-02-05 11:55:38.139] [info] [observer] location_id: 0x14123100 [2021-02-05 11:55:38.139] [info] [observer] serial_number: 116C39563638 [2021-02-05 11:55:38.139] [info] [observer] is_keyboard: false [2021-02-05 11:55:38.139] [info] [observer] is_pointing_device: true [2021-02-05 11:55:38.139] [info] [observer] rescan devices... [2021-02-05 11:55:38.140] [info] [observer] G403 HERO Gaming Mouse (device_id:4294969054) is observed. [2021-02-05 11:55:38.257] [info] [observer] grabber_client is connected. [2021-02-05 11:55:38.257] [info] [observer] rescan devices... [2021-02-05 11:55:43.604] [info] [observer] matching device: [2021-02-05 11:55:43.604] [info] [observer] registry_entry_id: 4294969610 [2021-02-05 11:55:43.604] [info] [observer] vendor_id: 1452 [2021-02-05 11:55:43.604] [info] [observer] product_id: 34304 [2021-02-05 11:55:43.605] [info] [observer] is_keyboard: true [2021-02-05 11:55:43.606] [info] [observer] is_pointing_device: false [2021-02-05 11:55:43.606] [info] [observer] rescan devices... [2021-02-05 11:55:43.608] [info] [observer] (vendor_id:0x5ac, product_id:0x8600) (device_id:4294969610) is observed. [2021-02-05 11:56:51.128] [info] [session_monitor] version 13.3.0 [2021-02-05 11:56:51.186] [info] [session_monitor] receiver is initialized [2021-02-05 11:56:51.187] [info] [session_monitor] session_monitor_receiver_client is started. [2021-02-05 11:56:51.189] [info] [session_monitor] on_console_changed: true [2021-02-05 11:56:51.189] [info] [session_monitor] receiver: bound [2021-02-05 11:56:51.189] [info] [session_monitor] session_monitor_receiver_client is connected. [2021-02-05 11:56:51.190] [info] [grabber] current_console_user_id: 1586178661 [2021-02-05 11:56:51.190] [info] [grabber] receiver is terminated [2021-02-05 11:56:51.190] [info] [grabber] receiver is initialized [2021-02-05 11:56:51.190] [info] [grabber] receiver: bound [2021-02-05 11:56:51.190] [info] [grabber] receiver: chown socket: 1586178661 [2021-02-05 11:56:51.337] [info] [console_user_server] version 13.3.0 [2021-02-05 11:56:51.631] [info] [observer] device_id:4294969054 is terminated. [2021-02-05 11:56:51.632] [info] [observer] rescan devices... [2021-02-05 11:56:51.632] [info] [observer] device_id:4294969034 is terminated. [2021-02-05 11:56:51.634] [info] [observer] rescan devices... [2021-02-05 11:56:51.636] [error] [observer] grabber_client error: Connection reset by peer [2021-02-05 11:56:51.636] [info] [observer] grabber_client is closed. [2021-02-05 11:56:51.693] [info] [observer] device_id:4294969042 is terminated. [2021-02-05 11:56:51.696] [info] [observer] rescan devices... [2021-02-05 11:56:51.699] [info] [observer] matching device: [2021-02-05 11:56:51.699] [info] [observer] registry_entry_id: 4294969944 [2021-02-05 11:56:51.699] [info] [observer] manufacturer: Logitech [2021-02-05 11:56:51.699] [info] [observer] product: G403 HERO Gaming Mouse [2021-02-05 11:56:51.699] [info] [observer] vendor_id: 1133 [2021-02-05 11:56:51.699] [info] [observer] product_id: 49295 [2021-02-05 11:56:51.699] [info] [observer] location_id: 0x14123100 [2021-02-05 11:56:51.699] [info] [observer] serial_number: 116C39563638 [2021-02-05 11:56:51.705] [info] [observer] is_keyboard: false [2021-02-05 11:56:51.705] [info] [observer] is_pointing_device: true [2021-02-05 11:56:51.706] [info] [observer] rescan devices... [2021-02-05 11:56:51.711] [info] [observer] G403 HERO Gaming Mouse (device_id:4294969944) is observed. [2021-02-05 11:56:51.737] [info] [observer] matching device: [2021-02-05 11:56:51.737] [info] [observer] registry_entry_id: 4294969946 [2021-02-05 11:56:51.737] [info] [observer] manufacturer: Logitech [2021-02-05 11:56:51.737] [info] [observer] product: G403 HERO Gaming Mouse [2021-02-05 11:56:51.737] [info] [observer] vendor_id: 1133 [2021-02-05 11:56:51.737] [info] [observer] product_id: 49295 [2021-02-05 11:56:51.737] [info] [observer] location_id: 0x14123100 [2021-02-05 11:56:51.737] [info] [observer] serial_number: 116C39563638 [2021-02-05 11:56:51.740] [info] [observer] is_keyboard: true [2021-02-05 11:56:51.742] [info] [observer] is_pointing_device: false [2021-02-05 11:56:51.744] [info] [observer] rescan devices... [2021-02-05 11:56:51.750] [info] [observer] G403 HERO Gaming Mouse (device_id:4294969946) is observed. [2021-02-05 11:56:51.796] [info] [observer] matching device: [2021-02-05 11:56:51.796] [info] [observer] registry_entry_id: 4294969972 [2021-02-05 11:56:51.796] [info] [observer] manufacturer: Metadot - Das Keyboard [2021-02-05 11:56:51.796] [info] [observer] product: Das Keyboard Model S [2021-02-05 11:56:51.796] [info] [observer] vendor_id: 9456 [2021-02-05 11:56:51.796] [info] [observer] product_id: 311 [2021-02-05 11:56:51.796] [info] [observer] location_id: 0x14123200 [2021-02-05 11:56:51.799] [info] [observer] is_keyboard: true [2021-02-05 11:56:51.800] [info] [observer] is_pointing_device: false [2021-02-05 11:56:51.800] [info] [observer] rescan devices... [2021-02-05 11:56:51.803] [info] [observer] Das Keyboard Model S (device_id:4294969972) is observed. [2021-02-05 11:56:52.571] [info] [observer] grabber_client is connected. [2021-02-05 11:56:52.572] [info] [observer] rescan devices... [2021-02-05 11:57:01.709] [info] [console_user_server] receiver is initialized [2021-02-05 11:57:01.709] [info] [console_user_server] receiver: bound [2021-02-05 11:57:01.709] [info] [console_user_server] grabber_client is started. [2021-02-05 11:57:01.709] [info] [console_user_server] grabber_client is connected. [2021-02-05 11:57:02.088] [info] [grabber] karabiner_console_user_server is connected. [2021-02-05 11:57:02.088] [info] [grabber] console_user_server_client is connected. (uid:1586178661) [2021-02-05 11:57:02.089] [info] [grabber] device_grabber is started. [2021-02-05 11:57:02.096] [info] [console_user_server] Load /Users/ndingle/.config/karabiner/karabiner.json... [2021-02-05 11:57:02.101] [info] [console_user_server] core_configuration is updated. [2021-02-05 11:57:02.118] [info] [grabber] event_tap_monitor initialized [2021-02-05 11:57:02.118] [info] [grabber] Load /Users/ndingle/.config/karabiner/karabiner.json... [2021-02-05 11:57:02.121] [info] [grabber] core_configuration is updated. [2021-02-05 11:57:02.121] [info] [grabber] system_preferences is updated. [2021-02-05 11:57:02.125] [info] [grabber] virtual_hid_device_serviceclient connected [2021-02-05 11:57:02.125] [info] [virtual_hid_device_service] io_service_client::async_start [2021-02-05 11:57:02.268] [info] [console_user_server] Check for updates... [2021-02-05 11:57:03.093] [warning] [virtual_hid_device_service] driverversion is mismatched: client expected: 10300, actual dext: std::nullopt [2021-02-05 11:57:03.127] [warning] [grabber] virtual_hid_keyboard is not ready. Please wait for a while. [2021-02-05 11:57:03.128] [info] [grabber] caps lock is found on Das Keyboard Model S [2021-02-05 11:57:03.132] [info] [grabber] caps lock is found on Apple Internal Keyboard / Trackpad

marcfitt commented 3 years ago

Same issue here.

tsuliwaensis commented 3 years ago

This issue cropped up again when I installed Big Sur 11.3 beta 1. Looks like whatever Apple did to make it work with 11.2 broke again.

marcfitt commented 3 years ago

Yeah. If someone knows how to fix it, it would be nice.

tsuliwaensis commented 3 years ago

Disabling SIP worked for me.

doraemoso commented 3 years ago

But Disabling SIP can’t run iOS apps in m1 mac.

BOPOHOP commented 3 years ago

But Disabling SIP can’t run iOS apps in m1 mac.

Simple key remapping can be programmed via hidutil https://developer.apple.com/library/archive/technotes/tn2450/_index.html But settings made via hdiutil disappear from time to time. Karabiner is much more stable.

marcfitt commented 3 years ago

I see. Do you guys know why the windows fn key can't be used on Mac? It was also an issue I was facing.

I'll try to disable SIP this morning.

tominabox1 commented 3 years ago

Disabled SIP and confirmed latest beta works.13.3.1 on 11.3 beta

ogomez92 commented 3 years ago

Has this been fixed yet?

zecanard commented 3 years ago

You’ll have to report it to Apple and wait for the next beta, or the final release. Apple didn’t fix it until very late in the 11.2 testing cycle.

nickdingle commented 3 years ago

Disabled SIP and confirmed latest beta works.13.3.1 on 11.3 beta

I tried the latest beta and am still experiencing the error.

Definitely sounds like it's some configuration of my Mac, but if anyone could suggest other things I could try, I would appreciate it. I'm not super familiar with the command line of macos, so I don't know where to look.

Splaktar commented 3 years ago

I can't activate on MacOS Catalina 10.15.7 (19H512) with Karabiner 13.3.0. I've rebooted and tried the recommended steps a ton of times.

[2021-02-09 09:14:25.716] [warning] [virtual_hid_device_service] driver_version_ is mismatched: client expected: 10300, actual dext: std::nullopt
Splaktar commented 3 years ago

Installing the 13.3.1 beta version with the driver disabled seems to have fixed it (finally got the prompt to "Allow").

Splaktar commented 3 years ago

This issue cropped up again when I installed Big Sur 11.3 beta 1. Looks like whatever Apple did to make it work with 11.2 broke again.

@tsuliwaensis This issue is for Catalina (10.15.7) and not Big Sur.

nickdingle commented 3 years ago

Installing the 13.3.1 beta version with the driver disabled seems to have fixed it (finally got the prompt to "Allow").

@Splaktar Can you tell me the exact steps you tried, including rebooting, and I'll do the same? I tried:

  1. Installed 13.3.0
  2. Rebooted
  3. Launched Karabiner, clicked "Deactivate Driver"
  4. rebooted
  5. Launched Karabiner, closed the driver alert, Clicked "Misc->Check for beta updates" to install 13.3.1
  6. Followed the installation process.
  7. rebooted
  8. Launched 13.3.1
  9. Clicked "activate"

I still get the "error: 1" and do not see anything in system preferences.

Splaktar commented 3 years ago
  1. Restored from time machine backup with 13.3.0 installed
  2. Rebooted many times
  3. Each time on boot, it would say that the driver needed to be allowed and that I should deactivate it, reboot, and reactivate. But the "Allow" request never showed up.
  4. Clicked "Deactivate Driver"
  5. rebooted
  6. Verified that the "Allow" request wasn't there
  7. Clicked "activate" -> "error: 1"
  8. Repeated the above many times with the same results
  9. Launched Karabiner, closed the driver alert, Clicked "Misc->Check for beta updates" to install 13.3.1
  10. Followed the installation process.
  11. rebooted
  12. Got the popup to enable Input Monitoring for the grabber and observer, clicked to open preferences
  13. Checked both boxes
  14. Opened Security & Privacy -> General and finally saw the "Allow" request for Karabiner
  15. Clicked "Allow"
  16. Opened Karabiner Elements and saw no more permission popups
  17. Verified that key mappings were working
arduinotech commented 3 years ago

I confirm, installing beta 13.3.1 helped even without rebooting.

nickdingle commented 3 years ago

I finally got Karabiner 12.10 working. Not sure if it was luck or what.

One thing I did notice was that clicking the "uninstall karabiner" button does NOT remove karabiner_grabber and karabiner_observer from the "input monitoring" section of the privacy settings. I had to remove those manually.

I don't know if doing that was what finally got the installation working, but I'm too scared to try it on another version. I've turned off auto-updates until this issue has been guaranteed addressed.

nickdingle commented 3 years ago

My company upgraded the Macbook to Big Sur 11.3 beta, and now I'm experiencing this error again.

:( :( :( :( :( :( :( :( :( :( :( :( :(

I have tried every version of Karabiner, re-installed countless times, disabled SIP, cleared my kextcache, cleared my NVRAM. Nothing works.

Is there no way to "activate" the driver other than via System Preferences? Is there a way to do it via the command line?

I'm desperate ... I need this app. I would pay money if it would help fix this issue quicker.

miaachan commented 3 years ago
  1. Restored from time machine backup with 13.3.0 installed
  2. Rebooted many times
  3. Each time on boot, it would say that the driver needed to be allowed and that I should deactivate it, reboot, and reactivate. But the "Allow" request never showed up.
  4. Clicked "Deactivate Driver"
  5. rebooted
  6. Verified that the "Allow" request wasn't there
  7. Clicked "activate" -> "error: 1"
  8. Repeated the above many times with the same results
  9. Launched Karabiner, closed the driver alert, Clicked "Misc->Check for beta updates" to install 13.3.1
  10. Followed the installation process.
  11. rebooted
  12. Got the popup to enable Input Monitoring for the grabber and observer, clicked to open preferences
  13. Checked both boxes
  14. Opened Security & Privacy -> General and finally saw the "Allow" request for Karabiner
  15. Clicked "Allow"
  16. Opened Karabiner Elements and saw no more permission popups
  17. Verified that key mappings were working

Followed the exact same procedure many times with 13.3.0, 13.3.1, 13.3.9 (I can actually see the 'Allow' for all the versions and the driver did show activated, but the alert prompt just won't go away and no mapping works)

mbp16" 2019 10.15.7

miaachan commented 3 years ago
  1. Restored from time machine backup with 13.3.0 installed
  2. Rebooted many times
  3. Each time on boot, it would say that the driver needed to be allowed and that I should deactivate it, reboot, and reactivate. But the "Allow" request never showed up.
  4. Clicked "Deactivate Driver"
  5. rebooted
  6. Verified that the "Allow" request wasn't there
  7. Clicked "activate" -> "error: 1"
  8. Repeated the above many times with the same results
  9. Launched Karabiner, closed the driver alert, Clicked "Misc->Check for beta updates" to install 13.3.1
  10. Followed the installation process.
  11. rebooted
  12. Got the popup to enable Input Monitoring for the grabber and observer, clicked to open preferences
  13. Checked both boxes
  14. Opened Security & Privacy -> General and finally saw the "Allow" request for Karabiner
  15. Clicked "Allow"
  16. Opened Karabiner Elements and saw no more permission popups
  17. Verified that key mappings were working

Followed the exact same procedure many times with 13.3.0, 13.3.1, 13.3.9 (I can actually see the 'Allow' for all the versions and the driver did show activated, but the alert prompt just won't go away and no mapping works)

mbp16" 2019 10.15.7

Just tried 12.10 and everything works like a charm!

But then I realised the capslock delay is still there :(

FreedomKnight commented 3 years ago

I encountered the same situation on big sur 11.5.2 and Karabiner 13.5.0 it's fine at first but it will tell me, reactivate the driver after 10 minutes. I cannot reactivate in 2 minutes. I need to wait and retry. I'd tried disable csrutil but not work

zecanard commented 3 years ago

Try the beta track. I haven’t had any issues with 13.5.4.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.