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.86k stars 838 forks source link

Does not work on MacOS Catalina #1867

Closed phoffer closed 4 years ago

phoffer commented 5 years ago

When opening the KeyEventViewer, I am prompted to allow permission for "Input Monitoring" in the Privacy settings. This appears to be a new category. Opening Karabiner-Elements does not trigger this prompt. Even after manually adding Elements to the list, it still does not work.

Is there any other info I can provide or anything I can do to assist? I can attach my modifications if helpful, I have 1 simple and 1 complex. FWIW, Event Viewer does detect key presses.

EDIT: @saagarjha has figured out a workaround that gets it to work. Unless requested, I'll leave this open until it's officially fixed, hopefully that will help people find it.

Workaround: add /Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_grabber to the list.

Oh, and sudo killall karabiner_grabber.

genesy commented 4 years ago

Is this issue resolved? I'm on the fence with buying a new macbook pro because it comes preinstalled with catalina and theres no way to downgrade it

robinjection commented 4 years ago

It is not resolved. Some people say its fixed, some say its still broken. I got a Mac with Catalina installed and it works until I put it to sleep.

On Feb 18, 2020, at 3:58 PM, Gene Sy notifications@github.com wrote:

Is this issue resolved? I'm on the fence with buying a new macbook pro because it comes preinstalled with catalina and theres no way to downgrade it

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867?email_source=notifications&email_token=AEMJA2XJEAKZWZM26XJDCD3RDRDYLA5CNFSM4HSWDIS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEME3ARY#issuecomment-587837511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMJA2R4C7G74JDMZPOOUKDRDRDYLANCNFSM4HSWDISQ.

gibfahn commented 4 years ago

I haven't seen this at all on Catalina, I did re-grant permissions when I updated, but since then everything has been working, and I use a bunch of complex modifications (and put it to sleep all the time) without any issues. Also installed on a new 16" MBP and everything works fine there too.

genesy commented 4 years ago

@gibfahn does that include when coming back from sleep? people are saying it happens after waking up

gibfahn commented 4 years ago

Yep, no issues resuming from sleep either. Not sure what issues others are seeing, but probably needs more info than just "broken for me on Catalina".

robinjection commented 4 years ago

Can you elaborate on what you mean by re-grant permissions? This is in the security system preferences? I did that as well and still have problems coming back from Sleep. karabiner_grabber and karabiner_observer are in my input monitoring and Karabiner-Elements.app has full disc access. Is there any other permission I need to set?

On Feb 20, 2020, at 5:30 AM, Gibson Fahnestock notifications@github.com wrote:

I haven't seen this at all on Catalina, I did re-grant permissions when I updated, but since then everything has been working, and I use a bunch of complex modifications (and put it to sleep all the time) without any issues. Also installed on a new 16" MBP and everything works fine there too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867?email_source=notifications&email_token=AEMJA2S4JLARQQRNMDFWEODRDZLTRA5CNFSM4HSWDIS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMNDTZA#issuecomment-588921316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMJA2VHO6LY4JFCZD3G673RDZLTRANCNFSM4HSWDISQ.

gibfahn commented 4 years ago

karabiner_grabber and karabiner_observer are in my input monitoring and Karabiner-Elements.app has full disc access

That's all I have as far as I can tell. By re-grant permissions I mean that on the update they added karabiner_grabber and karabiner_observer to the Input Monitoring, and I had to grant those.

Short of uninstalling and reinstalling (and maybe removing and re-adding to System Preferences), I don't have any other ideas.

crumley commented 4 years ago

I continue to have a similar issue with Catalina, however sleeping is not a requirement. Specifically:

  1. External usb Keyboard is plugged in and working great with Karabiner.
  2. External keyboard is unplugged, then plugged in again.
  3. External keyboard key strokes are not detected.
  4. External keyboard is not listed under "devices" tab of karabiner.
  5. Quit Karabiner. killall karabiner_grabber && killall karabiner_observer.
  6. Unplug keyboard. Plug back in.
  7. Keyboard key strokes now work.
  8. Start karabiner and all is fine again.
iRonin commented 4 years ago

I have the same issue. Karabiner was working now it's not, all seems to be set up correctly:

image

chenminhua commented 4 years ago

Have the same issue.

kopiro commented 4 years ago

Same issue after upgrade to 10.15.4

chanw9 commented 4 years ago

Adding grabber & observer did not help, log shows the keyboard is observed but it is not appearing in the device tab, any workarounds?

Screen Shot 2020-04-04 at 3 56 54 pm Screen Shot 2020-04-04 at 3 56 38 pm Screen Shot 2020-04-04 at 3 57 20 pm
Nowaker commented 4 years ago

I'm literally waiting for people to report there's no issues on Catalina any more, and dang, it's been a long wait... Still on Mojave.

kkarakk commented 4 years ago

@Nowaker it works fine now. it's just that there are two types of prompts and one prompt doesn't do anything. another prompt shows up when you try and add keybinds to karabiner and that correctly adds karabiner_observer and karabiner_grabber to input monitoring section for you to activate.

i'm on 12.9.3

mkleehammer commented 4 years ago

I can confirm that I've seen no problems with 10.15.5 Beta (19F62f). I avoided it for a year or so, but thought I'd try again when I got a new Mac.

zecanard commented 4 years ago

I haven’t experienced a single issue on Catalina from 10.15.0 to 10.15.4.

robinjection commented 4 years ago

I just updated to 10.15.4, and since a restart a few days ago, I haven’t had issues with it.

But in the past, sometimes when my computer awakes from sleep is when the functions stop working.

On Apr 17, 2020, at 10:30 AM, Phong Le notifications@github.com wrote:

I haven’t experienced a single issue on Catalina from 10.15.0 to 10.15.4.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867#issuecomment-615276701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMJA2REZLTS32YR4F4J4ITRNBRXFANCNFSM4HSWDISQ.

spacesuitdiver commented 4 years ago

Fresh install (12.9.0), new here, same issue with grabber not showing up, had to manually add it.

EDIT I found the two permission dialogs buried behind all my other windows, this workaround is not necessary if you are diligent about that. It does seem like the permissions are being asked in sequence instead of parallel so there might be an improvement from a code perspective to at least prevent having to do this work around and having it show up in the list.

iRonin commented 4 years ago

Upgrading to 10.15.4 solved the issue for me (without touching Karabiner).

txchen commented 4 years ago

Seems 10.15.4 fixed the issue, haven't got it repro for a couple days.

Nowaker commented 4 years ago

Thanks for all the feedback, guys! Since it appears it's finally working, I'll be updating my wife's old laptop to Catalina first to test everything, and if it works fine, update my main laptop.

Nowaker commented 4 years ago

I upgraded my two old laptops and they are doing fine on Catalina. However, my 2018 MBP is not doing that great on Catalina. More details in this ticket: https://github.com/pqrs-org/Karabiner-Elements/issues/2274. (The problem described in the ticket happened 5 times while typing this comment. 4 erroneous repetitions and 1 unregistered event)

prohtex commented 4 years ago

Workaround: add /Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_grabber to the list.

Thank you! And Dear Apple, FUCK you for these insane restrictions.

Dionisiy commented 4 years ago

almost all applications don't work after update to 10.15.5 wtf?

rhalukongor commented 4 years ago

@Dionisiy

almost all applications don't work after update to 10.15.5 wtf?

I don't experience any issues with 10.15.5

Nic0S commented 4 years ago

I'm missing the + button on the Input Monitoring list, can't get it to show up. EventViewer crashes every time I open it. Any solution here?

SHxKM commented 4 years ago

After over a year of working perfectly, I'm getting logs for the correct key in EventViewer, I've registered non_us_backslash to be replaced with grave_accent_and_tilde()`, but suddenly nothing is happening and I'm getting §.

RustleThyJimmies commented 4 years ago

I don't know what everyone else usually uses Karabiner for, but I am a student trying to get this to work with Anki (spaced repetition flashcards program) and I bought an 8BitDo M30 Bluetooth controller from Amazon: https://www.amazon.com/gp/product/B07MSN1NPC/

I read through ALL the comments and tried everything--enabled all devices (No product name & Apple Internal Keyboard) under the Devices tab in the program, enabled all permissions under Input Monitoring in Settings (for both Elements & EventViewer), restarted Mac (Catalina 10.15.5), reinstalled Karabiner. I know my controller is working because this Gamepad Tester website (https://gamepad-tester.com/) is registering all my commands perfectly while the controller is connected via Bluetooth. I just can't get Karabiner to register my inputs even though the test website does. I am supposed to get something like an option to add the buttons as I press them under Karabiner-EventViewer, but the program doesn't register them. Unlike the person who posted these screenshots for a similar scenario: https://www.reddit.com/r/medicalschoolanki/comments/bksddz/anki_mac_os_13_one_handed_controller/

Any help or suggestions would be much appreciated. Thanks!

TechnotronicOz commented 4 years ago

After over a year of working perfectly, I'm getting logs for the correct key in EventViewer, I've registered non_us_backslash to be replaced with grave_accent_and_tilde()`, but suddenly nothing is happening and I'm getting §.

This... Why is this happening?

GuiSim commented 4 years ago

I just installed Karabiner Elements. Even though the guide says to check 'karabiner_grabber' under Privacy > Input Monitoring, it was not in the list.

Manually adding the grabber to the list solved it.

bomtailey commented 4 years ago

Installed everything as specified AFIK, still the Windows button on my Microsoft Sculpt Comfort Mouse is not getting captured (as it used to be). Running Big Sur

On Sep 20, 2020, at 3:25 AM, Guillaume Simard notifications@github.com wrote:

I just installed Karabiner Elements. Even though the guide says to check 'karabiner_grabber' under Privacy > Input Monitoring, it was not in the list.

Manually adding the grabber to the list solved it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867#issuecomment-695787040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGKLMA3SGJVWWLMSCS5EY3SGX7EDANCNFSM4HSWDISQ.

bomtailey commented 4 years ago

Sent the previous without completion. I’m running Big Sur 11.0 and if I go to System Preferences Keyboard, it does not recognize a virtual keyboard and if I run Karabiner-DriverKit-VirtualHIDDeviceClient, I get the display below. Any ideas or how I can see the report?

Thanks

On Sep 20, 2020, at 3:25 AM, Guillaume Simard notifications@github.com wrote:

I just installed Karabiner Elements. Even though the guide says to check 'karabiner_grabber' under Privacy > Input Monitoring, it was not in the list.

Manually adding the grabber to the list solved it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867#issuecomment-695787040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGKLMA3SGJVWWLMSCS5EY3SGX7EDANCNFSM4HSWDISQ.

tekezo commented 4 years ago

@bomtailey Did you enable your mouse? https://karabiner-elements.pqrs.org/docs/manual/configuration/configure-devices/

bomtailey commented 4 years ago

Finally got it working, the last problem was the karabiner.json file (whose syntax I still don’t understand) and when I copied from an earlier machine, finally everything worked. My goal was to get the widows button on a Microsoft mouse to work. Thanks for all who helped and suggested. Tom

On Sep 29, 2020, at 2:52 PM, Takayama Fumihiko notifications@github.com wrote:

@bomtailey https://github.com/bomtailey Did you enable your mouse? https://karabiner-elements.pqrs.org/docs/manual/configuration/configure-devices/ https://karabiner-elements.pqrs.org/docs/manual/configuration/configure-devices/ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pqrs-org/Karabiner-Elements/issues/1867#issuecomment-701096089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGKLMFNWVTIDAO2DRHFUNDSIJ6OJANCNFSM4HSWDISQ.

SHxKM commented 4 years ago

After over a year of working perfectly, I'm getting logs for the correct key in EventViewer, I've registered non_us_backslash to be replaced with grave_accent_and_tilde()`, but suddenly nothing is happening and I'm getting §.

This... Why is this happening?

Issue went away for a while but now it's back. Weird thing is that EventViewer is recognizing § as tilde, so from its perspective all is fine. (non_us_backslash is mapped to grace_accent_and_tilde)

phoffer commented 4 years ago

Issue creator here, I'm going to close because it's become a dumping ground for any random problem and the original issue of working on Catalina has long been fixed.

Any new issues, use issue search or create if necessary 👍

jm9151821 commented 4 years ago

I can confirm it works, make sure you find all dialogue boxes asking for permission and enabling it on input monitoring

isokrates commented 4 years ago

I'm on Catalina 10.15.7 and Karabiner-Elements 13.1.0, and have tried to follow these instructions to no avail. Here's what I did:

https://dl.dropboxusercontent.com/s/8z2hjgw4t94cs1f/Screenshot%202020-11-08%20at%2010.53.06.png?raw=1

So I can't get it to work with any of the above steps. Anyone got any ideas?

tekezo commented 4 years ago

@isokrates I cannot reproduce the System Preferences button issue, but I guess that is caused by corrupted macOS cache.

Does starting up in Safe Mode to clear cache solve the issue? https://support.apple.com/kb/ht1455

isokrates commented 4 years ago

@tekezo going into safe mode worked—I am now very happy again! Thank you so much for your help, and for creating this amazing piece of software in the first place! 🤩

For anyone with the same problem: I rebooted into safe mode, then pressed 'Activate driver', and got the success message (rather than the error code 1 message I was getting before). I then opened preferences and could click 'Allow'. I then rebooted to get out of safe mode, and it now works again!

rfarine commented 3 years ago

I've tried everything from this thread, including doing what @isokrates did...and also tried rebooting in safe mode. I've even tried building the repo locally to install, but I still never get the "Allow" button to show up in my System Preferences! Any help with this would be much appreciated!

jm9151821 commented 3 years ago

@rfarine what mac os version are you using? I dont think it works on big sur.

rfarine commented 3 years ago

@rfarine what mac os version are you using? I dont think it works on big sur.

I'm on Catalina -- 10.15.7 ... :/

jm9151821 commented 3 years ago

@rfarine hmmm, okay, this may sound odd, but you have to be inside 'security and privacy' and then perhaps switch to the option that says 'allow apps downloaded from app store and identified developers' - then when you click to install karabiner elements it should pop up (inside the security and privacy) to ask you to allow the app.

Hope this can help.

rfarine commented 3 years ago

@rfarine hmmm, okay, this may sound odd, but you have to be inside 'security and privacy' and then perhaps switch to the option that says 'allow apps downloaded from app store and identified developers' - then when you click to install karabiner elements it should pop up (inside the security and privacy) to ask you to allow the app.

Hope this can help.

Ah, that has been the case the entire time I've been debugging. That doesn't help unfortunately. I've tried everything in this thread. 😓

7ynk3r commented 3 years ago

@rfarine in my case the solution was to downgrade to 12.0.0, nothing else worked

From the docs

macOS Catalina Note #2
The problem is caused by macOS Catalina issues around DriverKit driver.

Karabiner-Elements v12.10.0 uses a legacy kernel extension, so it is not affected by the macOS issues. So, downgrading to Karabiner-Elements 12.10.0 also solves the issue.
gaurav21r commented 3 years ago

Tried the kilall and adding the apps from /Library..., still wasn't working.

The only thing more I needed to do was to Add my Device to the list. In my case it was a VR BOX.

image