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

Karabiner completely broken on macOS Big Sur #2331

Open
MperorM opened this issue Jun 22, 2020 · 87 comments
Open

Karabiner completely broken on macOS Big Sur #2331

MperorM opened this issue Jun 22, 2020 · 87 comments
Labels

Comments

@MperorM
Copy link

MperorM commented Jun 22, 2020

It seems the beta broke Karabiner completely. The program opens and runs, but doesn't actually modify any keys.

Re-entering configurations does not fix it, nor does messing around with permissions to my knowledge.

@cmsj
Copy link

cmsj commented Jun 22, 2020

Looks like the kext isn't loading, but this is all probably expected. @tekezo has been working on a DriverKit version for a while already, so we likely just need to be patient while that develops over the summer :)

@saagarjha
Copy link
Contributor

saagarjha commented Jun 23, 2020

Well, actually:

$ kextstat | grep Karabiner
  159    0 0xffffff7f9f095000 0x2000     0x2000     org.pqrs.driver.Karabiner.VirtualHIDDevice.v061000 (6.10.0) 4D004D1A-ED2F-3780-AD53-A10F286EC759 <51 6 5 3 1>

(I guess I should clarify at this point that this is with SIP off, which lets the kext load, but it still does nothing useful except steal all keyboard input and make it really annoying to make the computer usable again.)

@scootermafia
Copy link

Yep, I'll be waiting on a workaround. It's all that works with my spacebar broken.

@949nb
Copy link

949nb commented Jun 23, 2020

I have a similar problem!!!

@hiroshihorie
Copy link

Workaround pls

@whymidnight
Copy link

[2020-06-22 20:52:50.513] [info] [grabber] Load /Users/ddigiacomo/.config/karabiner/karabiner.json... [2020-06-22 20:52:50.513] [info] [console_user_server] Load /Users/ddigiacomo/.config/karabiner/karabiner.json... [2020-06-22 20:53:08.232] [error] [grabber] console_user_server_client error: Connection reset by peer [2020-06-22 20:53:08.232] [info] [grabber] console_user_server_client is closed. (uid:501) [2020-06-22 20:53:08.232] [info] [grabber] event_tap_monitor terminated [2020-06-22 20:53:08.235] [info] [grabber] device_grabber is stopped. [2020-06-22 20:53:08.235] [info] [grabber] device_grabber is started. [2020-06-22 20:53:08.238] [info] [grabber] event_tap_monitor initialized [2020-06-22 20:53:08.239] [info] [grabber] virtual_hid_device_client is started. [2020-06-22 20:53:08.239] [info] [grabber] Load /Library/Application Support/org.pqrs/config/karabiner.json... [2020-06-22 20:53:08.239] [info] [grabber] core_configuration is updated. [2020-06-22 20:53:09.247] [warning] [grabber] virtual_hid_device_client is not connected yet. Please wait for a while. [2020-06-22 20:53:44.695] [info] [grabber] version 12.9.6 [2020-06-22 20:53:44.720] [info] [grabber] device_open_permitted [2020-06-22 20:53:44.722] [info] [grabber] task_policy_set is called. [2020-06-22 20:53:44.730] [info] [grabber] session_monitor_receiver is initialized [2020-06-22 20:53:44.732] [info] [grabber] device_grabber is started. [2020-06-22 20:53:44.732] [info] [grabber] receiver is initialized [2020-06-22 20:53:44.737] [info] [grabber] virtual_hid_device_client is started. [2020-06-22 20:53:44.737] [info] [grabber] receiver: bound [2020-06-22 20:53:44.737] [info] [grabber] receiver: chown socket: 0 [2020-06-22 20:53:44.737] [info] [grabber] Load /Library/Application Support/org.pqrs/config/karabiner.json... [2020-06-22 20:53:44.738] [info] [grabber] core_configuration is updated. [2020-06-22 20:53:44.738] [info] [grabber] session_monitor_receiver: bound [2020-06-22 20:53:45.447] [info] [kextd] version 12.9.6 [2020-06-22 20:53:45.450] [info] [observer] version 12.9.6 [2020-06-22 20:53:45.506] [info] [observer] device_open_permitted [2020-06-22 20:53:45.508] [info] [observer] device_observer is started. [2020-06-22 20:53:45.509] [info] [observer] grabber_client is started. [2020-06-22 20:53:45.510] [info] [observer] matching device: [2020-06-22 20:53:45.510] [info] [observer] registry_entry_id: 4294968232 [2020-06-22 20:53:45.510] [info] [observer] product: Apple Internal Keyboard / Trackpad [2020-06-22 20:53:45.510] [info] [observer] vendor_id: 1452 [2020-06-22 20:53:45.510] [info] [observer] product_id: 632 [2020-06-22 20:53:45.510] [info] [observer] location_id: 0x1000000 [2020-06-22 20:53:45.511] [info] [observer] is_keyboard: true [2020-06-22 20:53:45.512] [info] [observer] is_pointing_device: false [2020-06-22 20:53:45.512] [info] [observer] rescan devices... [2020-06-22 20:53:45.512] [info] [observer] grabber_client is connected. [2020-06-22 20:53:45.512] [info] [observer] rescan devices... [2020-06-22 20:53:45.512] [info] [observer] matching device: [2020-06-22 20:53:45.512] [info] [observer] registry_entry_id: 4294968239 [2020-06-22 20:53:45.512] [info] [observer] product: Apple Internal Keyboard / Trackpad [2020-06-22 20:53:45.512] [info] [observer] vendor_id: 1452 [2020-06-22 20:53:45.512] [info] [observer] product_id: 632 [2020-06-22 20:53:45.512] [info] [observer] location_id: 0x1000000 [2020-06-22 20:53:45.516] [info] [observer] is_keyboard: false [2020-06-22 20:53:45.517] [info] [observer] is_pointing_device: true [2020-06-22 20:53:45.517] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294968232) is observed. [2020-06-22 20:53:45.517] [info] [observer] rescan devices... [2020-06-22 20:53:45.523] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294968239) is observed. [2020-06-22 20:53:45.748] [warning] [grabber] virtual_hid_device_client is not connected yet. Please wait for a while. [2020-06-22 20:53:52.065] [info] [observer] matching device: [2020-06-22 20:53:52.065] [info] [observer] registry_entry_id: 4294969090 [2020-06-22 20:53:52.065] [info] [observer] vendor_id: 1452 [2020-06-22 20:53:52.065] [info] [observer] product_id: 34304 [2020-06-22 20:53:52.066] [info] [observer] is_keyboard: true [2020-06-22 20:53:52.067] [info] [observer] is_pointing_device: false [2020-06-22 20:53:52.067] [info] [observer] rescan devices... [2020-06-22 20:53:52.071] [info] [observer] (vendor_id:0x5ac, product_id:0x8600) (device_id:4294969090) is observed. [2020-06-22 20:53:58.756] [info] [observer] matching device: [2020-06-22 20:53:58.756] [info] [observer] registry_entry_id: 4294969264 [2020-06-22 20:53:58.756] [info] [observer] manufacturer: Apple [2020-06-22 20:53:58.756] [info] [observer] product: Magic Keyboard [2020-06-22 20:53:58.756] [info] [observer] vendor_id: 76 [2020-06-22 20:53:58.756] [info] [observer] product_id: 615 [2020-06-22 20:53:58.756] [info] [observer] location_id: 0x46eb9ce3 [2020-06-22 20:53:58.756] [info] [observer] serial_number: [redacted] [2020-06-22 20:53:58.757] [info] [observer] is_keyboard: true [2020-06-22 20:53:58.757] [info] [observer] is_pointing_device: false [2020-06-22 20:53:58.758] [info] [observer] rescan devices... [2020-06-22 20:53:58.759] [info] [observer] Magic Keyboard (device_id:4294969264) is observed. [2020-06-22 20:54:04.944] [info] [kextd] KextManagerLoadKextWithURL: kOSReturnSuccess [2020-06-22 20:54:43.948] [info] [console_user_server] version 12.9.6 [2020-06-22 20:54:43.969] [info] [session_monitor] version 12.9.6 [2020-06-22 20:54:43.971] [info] [session_monitor] receiver is initialized [2020-06-22 20:54:43.972] [info] [session_monitor] session_monitor_receiver_client is started. [2020-06-22 20:54:43.980] [info] [session_monitor] on_console_changed: true [2020-06-22 20:54:43.981] [info] [session_monitor] receiver: bound [2020-06-22 20:54:43.985] [info] [grabber] current_console_user_id: 501 [2020-06-22 20:54:43.985] [info] [session_monitor] session_monitor_receiver_client is connected. [2020-06-22 20:54:43.986] [info] [grabber] event_tap_monitor terminated [2020-06-22 20:54:43.991] [info] [grabber] device_grabber is stopped. [2020-06-22 20:54:43.991] [info] [grabber] receiver is terminated [2020-06-22 20:54:43.991] [info] [grabber] device_grabber is started. [2020-06-22 20:54:43.991] [info] [grabber] receiver is initialized [2020-06-22 20:54:44.001] [info] [grabber] event_tap_monitor initialized [2020-06-22 20:54:44.001] [info] [grabber] virtual_hid_device_client is started. [2020-06-22 20:54:44.001] [info] [grabber] receiver: bound [2020-06-22 20:54:44.001] [info] [grabber] receiver: chown socket: 501 [2020-06-22 20:54:44.001] [info] [grabber] Load /Library/Application Support/org.pqrs/config/karabiner.json... [2020-06-22 20:54:44.003] [info] [grabber] core_configuration is updated. [2020-06-22 20:54:44.312] [info] [console_user_server] receiver is initialized [2020-06-22 20:54:44.313] [info] [console_user_server] receiver: bound [2020-06-22 20:54:44.313] [info] [console_user_server] grabber_client is started. [2020-06-22 20:54:44.313] [info] [console_user_server] grabber_client is connected. [2020-06-22 20:54:45.013] [warning] [grabber] virtual_hid_device_client is not connected yet. Please wait for a while. [2020-06-22 20:54:45.103] [error] [observer] grabber_client error: Connection reset by peer [2020-06-22 20:54:45.103] [info] [observer] grabber_client is closed. [2020-06-22 20:54:46.112] [info] [observer] grabber_client is connected. [2020-06-22 20:54:46.112] [info] [observer] rescan devices... [2020-06-22 20:54:50.610] [info] [grabber] karabiner_console_user_server is connected. [2020-06-22 20:54:50.610] [info] [grabber] console_user_server_client is connected. (uid:501) [2020-06-22 20:54:50.612] [info] [grabber] event_tap_monitor terminated [2020-06-22 20:54:50.620] [info] [grabber] device_grabber is stopped. [2020-06-22 20:54:50.620] [info] [grabber] device_grabber is started. [2020-06-22 20:54:50.621] [info] [grabber] system_preferences is updated. [2020-06-22 20:54:50.622] [info] [grabber] event_tap_monitor initialized [2020-06-22 20:54:50.622] [info] [grabber] virtual_hid_device_client is started. [2020-06-22 20:54:50.622] [info] [grabber] Load /Users/ddigiacomo/.config/karabiner/karabiner.json... [2020-06-22 20:54:50.624] [info] [grabber] core_configuration is updated. [2020-06-22 20:54:50.690] [info] [console_user_server] Load /Users/ddigiacomo/.config/karabiner/karabiner.json... [2020-06-22 20:54:50.692] [info] [console_user_server] core_configuration is updated. [2020-06-22 20:54:50.856] [info] [console_user_server] Check for updates... [2020-06-22 20:54:51.632] [warning] [grabber] virtual_hid_device_client is not connected yet. Please wait for a while.

Just want to add my log to this issue - the kext isn't loading either for me. For the affected who map ESC to Caps Lock, you can remap this in Keyboard Prefs -> Modifier Keys... -> Select Keyboard -> toggle from Caps Lock to Escape.

@MperorM
Copy link
Author

MperorM commented Jun 23, 2020

BetterTouchTool also allows for creating keyboard hotkeys, which can be used as a replacement for some cases.

For example I created hotkeys for option + hjkl as arrow keys, which I did through karabiner before. Hopefully that makes it less painful for some of you :)

@joshrdavis
Copy link

Any alt for disabling internal keyboard?

@b-
Copy link

b- commented Jun 23, 2020

For me, upon upgrading to Big Sur I could not whitelist kexts — the option is there, and it asked me to do so and reboot afterwards, but it seems kind of broken (upon boot the kexts would remain disabled).

However, I tried disabling SIP (reboot into recovery, open terminal, csrutil disable;reboot) and it did let me whitelist the kext. After that, though, karabiner actually was stuck in an odd state where the keyboard was effectively no longer working, but Karabiner could not communicate with its kext. I will reply with the log when I get around to it, but it was a different error than shown in the other log posted.

I had to remove Karabiner to regain use of my keyboard (which itself was also a hassle, as upgrading somehow made /Applications read-only, even to root, even in recovery…)

@jakecast
Copy link

For me, upon upgrading to Big Sur I could not whitelist kexts — the option is there, and it asked me to do so and reboot afterwards, but it seems kind of broken (upon boot the kexts would remain disabled).

However, I tried disabling SIP (reboot into recovery, open terminal, csrutil disable;reboot) and it did let me whitelist the kext. After that, though, karabiner actually was stuck in an odd state where the keyboard was effectively no longer working, but Karabiner could not communicate with its kext. I will reply with the log when I get around to it, but it was a different error than shown in the other log posted.

I had to remove Karabiner to regain use of my keyboard (which itself was also a hassle, as upgrading somehow made /Applications read-only, even to root, even in recovery…)

I hit this same issue.. you can also pull up the onscreen keyboard if you have a trackpad or a mouse that is still working via
system preferences > accessibility > keyboard > accessibility keyboard

thats how I was able to uninstall and get my keyboard to work again.

image

looks like disabling SIP does allowed kernel extensions to work for the beta period though. that said, currently karabiner-elements will effectively disable your keyboard from what I can see

@saagarjha
Copy link
Contributor

With SIP off the extension does load (as it should) but Karabiner doesn't like the that KextManagerLoadKextWithURL is returning (-603979775).

@jakecast
Copy link

jakecast commented Jun 23, 2020

With SIP off the extension does load (as it should) but Karabiner doesn't like the that KextManagerLoadKextWithURL is returning (-603979775).

dang. looks like that maps to Internal OSMetaClass run-time error. from libkern_metaclass_err(1)
#define kOSMetaClassInternal libkern_metaclass_err(1) // runtime internal error
https://opensource.apple.com/source/xnu/xnu-344.2/libkern/libkern/OSReturn.h.auto.html

https://stackoverflow.com/questions/13548957/translate-osreturn-value-to-human-readable-definition/51303759

@saagarjha
Copy link
Contributor

Oh, huh, interesting. I wonder if that is coming from the kernel or in userspace from IOKit/KernelManagement.framework?

@scootermafia
Copy link

Anyone know another way to map space to right command? That was my workaround for a badly broken space bar.

@chuyeow
Copy link

chuyeow commented Jun 24, 2020

If you are doing only simple remapping, you can use Apple's built-in hidutil tool.

This was good enough for me (I only have 2 simple remaps - Caps Lock to Esc, and Esc to backtick). You can refer to this gist - I linked to an explainer blog post that I wrote from the gist in case you need a little bit more help.

@saagarjha
Copy link
Contributor

Wow, TIL! Thanks for sharing, it works great :)

@hiroshihorie
Copy link

@chuyeow Thanks for sharing! But I can't figure out how to map "fn" key since it doesn't seem to have a code.

@chuyeow
Copy link

chuyeow commented Jun 24, 2020

But I can't figure out how to map "fn" key since it doesn't seem to have a code.

@hiroshihorie Hmm I won’t be at a Mac for awhile so I can’t test it, but I did find this: https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-308/IOHIDFamily/AppleHIDUsageTables.h. Don’t know if 0x0003 will work but worth a try.

@nickokgo
Copy link

@chuyeow the command keys are called "GUI" in the table. The function key may also have a counter-intuitive name 🤷‍♀️

@jakecast
Copy link

Oh, huh, interesting. I wonder if that is coming from the kernel or in userspace from IOKit/KernelManagement.framework?

yeah I'm also curious. was looking backwards in the commit history to see if another method for the kext load might work
trying to use a computer without karabiner installed is brutal

@k-rakestraw
Copy link

k-rakestraw commented Jun 24, 2020

Wanted to point out other issues I’ve encountered:
Same as above, installs and opens but no functionality.
First few installs it would disable my internal keyboard along with any keyboard that was plugged in at boot up. (Keyboard will work fine if connected after MacOS/Karabiner boots up)
Can confirm kext issues as I had to do a clean install of Big Sur. The first install would fail during kext loading.

I’m not super familiar with the code as I’m a measly web dev. but hope this helps.

@jakecast
Copy link

With SIP off the extension does load (as it should) but Karabiner doesn't like the that KextManagerLoadKextWithURL is returning (-603979775).

Hm. I don't actually think this is the case. I built and ran the current build and got the following output

[2020-06-24 15:30:34.635] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294969063) is observed.
[2020-06-24 15:30:34.636] [info] [observer] matching device:
[2020-06-24 15:30:34.636] [info] [observer]   registry_entry_id: 4294969059
[2020-06-24 15:30:34.636] [info] [observer]   manufacturer: Apple Inc.
[2020-06-24 15:30:34.636] [info] [observer]   product: Apple Internal Keyboard / Trackpad
[2020-06-24 15:30:34.636] [info] [observer]   vendor_id: 1452
[2020-06-24 15:30:34.636] [info] [observer]   product_id: 832
[2020-06-24 15:30:34.636] [info] [observer]   location_id: 0xffffffff80500000
[2020-06-24 15:30:34.636] [info] [observer]   serial_number: FM79412098FHYYKAB+TWZ
[2020-06-24 15:30:34.639] [info] [observer]   is_keyboard: false
[2020-06-24 15:30:34.640] [info] [observer]   is_pointing_device: true
[2020-06-24 15:30:34.640] [info] [observer] rescan devices...
[2020-06-24 15:30:34.653] [info] [observer] Apple Internal Keyboard / Trackpad (device_id:4294969059) is observed.
[2020-06-24 15:30:34.825] [info] [kextd] KextManagerLoadKextWithURL: kOSReturnSuccess

It should be noted that if I do not have Karabiner 'grabbing' any input devices (all the devices in the Devices tab are unchecked) it does not break key input.
However, as soon as I check my keyboard the input is broken.

[2020-06-24 15:36:15.008] [info] [grabber] Apple Internal Keyboard / Trackpad (device_id:4294969063) is grabbed.

that is the last line of karabiner's log.

Also worth noting, despite the initialize_virtual_hid_keyboard appearing to work in the log, it does not appear in the System Prefs -> Modifier Keys -> Devices dropdown.

[2020-06-24 15:30:58.226] [info] [observer] grabber_client is closed.
[2020-06-24 15:30:58.342] [info] [grabber] karabiner_console_user_server is connected.
[2020-06-24 15:30:58.342] [info] [grabber] console_user_server_client is connected. (uid:501)
[2020-06-24 15:30:58.343] [info] [grabber] device_grabber is started.
[2020-06-24 15:30:58.344] [info] [grabber] `system_preferences` is updated.
[2020-06-24 15:30:58.352] [info] [grabber] event_tap_monitor initialized
[2020-06-24 15:30:58.352] [info] [grabber] virtual_hid_device_client is started.
[2020-06-24 15:30:58.353] [info] [grabber] virtual_hid_device_client is opened.
[2020-06-24 15:30:58.353] [info] [grabber] virtual_hid_device_client_ is connected
[2020-06-24 15:30:58.353] [info] [grabber] initialize_virtual_hid_keyboard
[2020-06-24 15:30:58.353] [info] [grabber]   country_code:0
[2020-06-24 15:30:58.356] [info] [observer] matching device:
[2020-06-24 15:30:58.356] [info] [observer]   registry_entry_id: 4294970350
[2020-06-24 15:30:58.356] [info] [observer]   manufacturer: pqrs.org
[2020-06-24 15:30:58.356] [info] [observer]   product: Karabiner VirtualHIDKeyboard
[2020-06-24 15:30:58.356] [info] [observer]   vendor_id: 5824
[2020-06-24 15:30:58.356] [info] [observer]   product_id: 10203
[2020-06-24 15:30:58.356] [info] [observer]   location_id: 0x0
[2020-06-24 15:30:58.356] [info] [observer]   serial_number: pqrs.org:org_pqrs_driver_Karabiner_VirtualHIDDevice_VirtualHIDKeyboard_v061500
[2020-06-24 15:30:58.358] [info] [observer]   is_keyboard: true
[2020-06-24 15:30:58.362] [info] [grabber] Load /Users/jake/.config/karabiner/karabiner.json...
[2020-06-24 15:30:58.364] [info] [grabber] core_configuration is updated.
[2020-06-24 15:30:58.376] [info] [console_user_server] Load /Users/jake/.config/karabiner/karabiner.json...
[2020-06-24 15:30:58.377] [info] [observer]   is_pointing_device: false
[2020-06-24 15:30:58.377] [info] [observer] rescan devices...
[2020-06-24 15:30:58.377] [info] [console_user_server] core_configuration is updated.
[2020-06-24 15:30:58.384] [info] [observer] Karabiner VirtualHIDKeyboard (device_id:4294970350) is observed.
[2020-06-24 15:30:58.497] [info] [console_user_server] Check for updates...
[2020-06-24 15:30:58.525] [info] [observer] grabber_client is connected.
[2020-06-24 15:30:58.525] [info] [observer] rescan devices...

*please ignore the v061500 build number for the virtualHIDKeyboard. I was building it locally to see if I had any success with debugging.

@saagarjha
Copy link
Contributor

Look up.

@hologerry
Copy link

If you are doing only simple remapping, you can use Apple's built-in hidutil tool.

This was good enough for me (I only have 2 simple remaps - Caps Lock to Esc, and Esc to backtick). You can refer to this gist - I linked to an explainer blog post that I wrote from the gist in case you need a little bit more help.

Is there a way to map Caps Lock to Command + Shift + Control + Option?

@munkychop
Copy link

If you are doing only simple remapping, you can use Apple's built-in hidutil tool.

@chuyeow thank you so much for this info! Now I can set it and forget it 😃 ‎ (at least for the foreseeable future!)

@k-rakestraw
Copy link

But I can't figure out how to map "fn" key since it doesn't seem to have a code.

@hiroshihorie Hmm I won’t be at a Mac for awhile so I can’t test it, but I did find this: https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-308/IOHIDFamily/AppleHIDUsageTables.h. Don’t know if 0x0003 will work but worth a try.

this one didn't work for me. I've been looking but haven't found anything. Does you know if karabiner-eventViewer is having issues as well? Could possibly test the fn key there?

@zhigang1992
Copy link

There is a note on https://karabiner-elements.pqrs.org since yesterday

image

Is it related?

Are we going through what happened from Karabiner to Karabiner-Elements again? 😭

@jakecast
Copy link

There is a note on https://karabiner-elements.pqrs.org since yesterday

image

Is it related?

Are we going through what happened from Karabiner to Karabiner-Elements again? 😭

I don't think it is quite the same. The legacy kext should actually still work with Big Sur, I'm wondering if maybe its a macOS beta bug or if something is hanging after the karabiner_grabber notification is posted.

That said, it looks like quite a bit of progress has been made on the DriverKit version of the dext
https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice

I downloaded and ran the client app and the macOS 11 beta was already recognizing the virtual device so I wouldn't be too worried.

@quantumgolem
Copy link

Will it be possible to remap the function key with Karabiner Elements in the future on Big Sur? I'm hoping they didn't remove that functionality...

@xyoun
Copy link

xyoun commented Jun 29, 2020

for those who are looking for a short term solution. you can also try Keyboard Maestro, BetterTouchTool is good, but it doesn't follow the system key repeat and delay setting when you want to use ctrl+hjkl to navigate, it's still very slow after you set to the shortest repeat time.

@saagarjha
Copy link
Contributor

Ok, let's break atasync_virtual_hid_pointing_ready:

(lldb) b async_virtual_hid_pointing_ready
Breakpoint 1: where = Karabiner-DriverKit-VirtualHIDDeviceClient`io_service_client::async_virtual_hid_pointing_ready(), address = 0x00000001040f820c
(lldb) c
Process 19000 resuming
Process 19000 stopped
* thread #2, stop reason = breakpoint 1.1
    frame #0: 0x00000001040f820c Karabiner-DriverKit-VirtualHIDDeviceClient`io_service_client::async_virtual_hid_pointing_ready()
Karabiner-DriverKit-VirtualHIDDeviceClient`io_service_client::async_virtual_hid_pointing_ready:
->  0x1040f820c <+0>:  sub    sp, sp, #0x50             ; =0x50 
    0x1040f8210 <+4>:  stp    x20, x19, [sp, #0x30]
    0x1040f8214 <+8>:  stp    x29, x30, [sp, #0x40]
    0x1040f8218 <+12>: add    x29, sp, #0x40            ; =0x40 
Target 0: (Karabiner-DriverKit-VirtualHIDDeviceClient) stopped.

this seems to be nullptr:

(lldb) p $x0
(unsigned long) $0 = 0

If you go up a frame, there's a a test and a load from it (the nullptr check, and the vtable call, from this code apparently) so that must have worked:

(lldb) up
frame #1: 0x00000001040f7d6c Karabiner-DriverKit-VirtualHIDDeviceClient`pqrs::dispatcher::extra::timer::call_function(int) + 76
Karabiner-DriverKit-VirtualHIDDeviceClient`pqrs::dispatcher::extra::timer::call_function:
->  0x1040f7d6c <+76>: ldr    x20, [x19]
    0x1040f7d70 <+80>: adr    x8, #0x19790              ; vtable for std::__1::__function::__func<pqrs::dispatcher::extra::timer::call_function(int)::'lambda'(), std::__1::allocator<pqrs::dispatcher::extra::timer::call_function(int)::'lambda'()>, void ()> + 16
    0x1040f7d74 <+84>: nop    
    0x1040f7d78 <+88>: mov    w9, w21
(lldb) x/10i $pc-16
    0x1040f7d5c: 0xb4000080   cbz    x0, 0x1040f7d6c           ; <+76>
    0x1040f7d60: 0xf9400008   ldr    x8, [x0]
    0x1040f7d64: 0xf9401908   ldr    x8, [x8, #0x30]
    0x1040f7d68: 0xd63f0100   blr    x8
->  0x1040f7d6c: 0xf9400274   ldr    x20, [x19]
    0x1040f7d70: 0x100cbc88   adr    x8, #0x19790              ; vtable for std::__1::__function::__func<pqrs::dispatcher::extra::timer::call_function(int)::'lambda'(), std::__1::allocator<pqrs::dispatcher::extra::timer::call_function(int)::'lambda'()>, void ()> + 16
    0x1040f7d74: 0xd503201f   nop    
    0x1040f7d78: 0x2a1503e9   mov    w9, w21
    0x1040f7d7c: 0xa900cfe8   stp    x8, x19, [sp, #0x8]
    0x1040f7d80: 0x910023f5   add    x21, sp, #0x8             ; =0x8 

So I would guess a missing lock?

@tekezo
Copy link
Member

tekezo commented Sep 10, 2020

@saagarjha Thank you for feedback!
I released new version (12.93.0) which fixed a bug. Please confirm it.
https://karabiner-elements.pqrs.org/docs/macos-big-sur/

@saagarjha
Copy link
Contributor

Guess who can't read? Yep, it's me. Thanks for finding the actual fix, @tekezo :P 12.93.0 is looking good from my side; I'm glad to have Karabiner back :)

@cumanzor
Copy link

cumanzor commented Sep 10, 2020

@saagarjha Thank you for feedback!
I released new version (12.93.0) which fixed a bug. Please confirm it.
https://karabiner-elements.pqrs.org/docs/macos-big-sur/

Confirming it works on Beta 8 6. Thanks!!!!!

@saagarjha
Copy link
Contributor

Beta 8

Do you mean beta 6, or…

@cumanzor
Copy link

cumanzor commented Sep 10, 2020

Beta 8

Do you mean beta 6, or…

Beta 6 yeah, sorry, too excited!

@gondalez
Copy link

Thanks for the release, I can confirm this works on Big Sur beta 6 also 🏅

Initially I got a "something went wrong" error when trying to open the Security & Privacy prefpane to allow access.
After jumping through some hoops I got it running.

The hoops, for future travellers:

  • Install Karabiner
  • Try to open Security & Privacy pref pane
  • error
  • Open Karabiner preferences
  • click deactivate driver
  • Open Security & Privacy pref pane
  • (no error)
  • Leave pref pane open
  • Click Activate in Karabiner preferences
  • Click allow in lower part of pref pane
  • Karabiner dialog disappears
  • Karabiner now working again 😌

@mrmurphy
Copy link

mrmurphy commented Sep 10, 2020

🎉🎉🎉🎉 aaahhh it's so nice to have karabiner back finally!

@rileytwo
Copy link

Also working on Catalina and seems to have fixed this issue where the system would hang when shutting down or restarting

This was referenced Sep 15, 2020
@bosr
Copy link

bosr commented Sep 17, 2020

@tekezo On the latest beta (7), Karabiner-Elements reloads without a problem on reboot. 🥳

@theniceboy
Copy link

Hi, should I clone this repo and build from source for now, or should I download v12.10.0? I'm on Big Sur beta 7.

Thank y'all for the great work btw!

@saagarjha
Copy link
Contributor

saagarjha commented Sep 18, 2020

Use version 12.93.0 posted above.

Edit: there's a 12.94.0, use that

@bosr
Copy link

bosr commented Sep 18, 2020

Hi, you can get the link to the beta here above: #2331 (comment)

@theniceboy
Copy link

Thank you! @saagarjha @bosr

@gregkerr
Copy link

For me, @gondalez solution worked because I (1) uninstalled all traces of Karabiner, (2) THEN opened Security and Privacy AND LEFT IT OPEN, (3) installed Karabiner 12.95.0. Previously, if the Sec and Priv was not already open, the Karabiner installation would fail because opening Sec and Priv crashed.

@vviikk
Copy link

vviikk commented Sep 28, 2020

On Big Sur Beta 8, I needed to open Karabiner, check for beta updates, install, and that was it. Everything worked!

Oh and not sure if it's related, but if your on board keyboard is unresponsive, reset the PRAM (Cmd + Opt + P + R) and you're good to go. Yay. Everything seems to work. Even after reboot.

EDIT: Although after an update, you need to do the above steps from @gondalez again.

@huangzonghao

This comment has been minimized.

@mathsmathsmaths
Copy link

If you are doing only simple remapping, you can use Apple's built-in hidutil tool.

This was good enough for me (I only have 2 simple remaps - Caps Lock to Esc, and Esc to backtick). You can refer to this gist - I linked to an explainer blog post that I wrote from the gist in case you need a little bit more help.

This is useful except there is one simple remap that I cannot live with: fn to left mouse click. Any way to accomplish this? Thanks

@rublev
Copy link

rublev commented Feb 10, 2021

On Big Sur Beta 8, I needed to open Karabiner, check for beta updates, install, and that was it. Everything worked!

Oh and not sure if it's related, but if your on board keyboard is unresponsive, reset the PRAM (Cmd + Opt + P + R) and you're good to go. Yay. Everything seems to work. Even after reboot.

EDIT: Although after an update, you need to do the above steps from @gondalez again.

You're able to shutdown/restart just fine? I literally cant turn my macbook off or sleep it, even after removing KArabiner. Its basically always on. No idea how to fix this. I'm on a macbook air M1 with big sur and the latest karabiner.

@ghost
Copy link

ghost commented Feb 13, 2021

@rublev Please follow along under issue #2519 for sleep issues, #2517 for shutdown issues.

@rublev
Copy link

rublev commented Feb 16, 2021

@rublev Please follow along under issue #2519 for sleep issues, #2517 for shutdown issues.

thx

@oushu1huangweiyang1
Copy link

If you are doing only simple remapping, you can use Apple's built-in hidutil tool.

This was good enough for me (I only have 2 simple remaps - Caps Lock to Esc, and Esc to backtick). You can refer to this gist - I linked to an explainer blog post that I wrote from the gist in case you need a little bit more help.

Thanks for your brilliant idea, it helps me.

@stale
Copy link

stale bot commented Jan 9, 2022

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.

@imfycc
Copy link

imfycc commented Jan 9, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests