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.85k 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.

Vxider commented 5 years ago

Update: "shell_command", like "open '/Applications/Safari.app'", stops working after few minutes. Keyboard rebinding countinues to work. Any way to troubleshoot "shell_command" issue? Some logs or anything?

Same problem from public beta1 to beta3, any ideas?

p3nj commented 5 years ago

Can confirm this problem still exist in Catalina beta4 (19A512f) with Karabiner-Elements 12.5.0 / 12.5.3, disable built-in keyboard option is still broken with all workaround above.

log:

[warning] [grabber] HHKB Professional (device_id:4296082982) is not observed yet. Please wait for a while.
[warning] [grabber] Apple Internal Keyboard / Trackpad (device_id:4295022378) is not observed yet. Please wait for a while.
[info] [grabber] (vendor_id:0x5ac, product_id:0x8600) (device_id:4295022412) is ignored.
[warning] [grabber] Apple Internal Keyboard / Trackpad (device_id:4295022386) is not observed yet. Please wait for a while.
r3volution11 commented 5 years ago

I'm on the latest beta utilizing a bluetooth keyboard. The problem occurs more frequently now but the command line fix still works for me. For both disabling the internal keyboard and caps lock hyper key.

JG-Park commented 5 years ago

I can also see the same message and the function does not work.

Version 12.3.0 / Catalina Beta4(19A512f)

log : `[2019-07-26 18:51:14.707] [error] [observer] grabber_client error: Connection reset by peer [2019-07-26 18:51:14.707] [info] [observer] grabber_client is closed. [2019-07-26 18:51:14.858] [info] [observer] grabber_client is connected. [2019-07-26 18:51:14.858] [info] [observer] rescan devices... [2019-07-26 18:51:15.292] [warning] [grabber] Magic Keyboard (device_id:4295212220) is not observed yet. Please wait for a while. [2019-07-26 18:51:15.292] [warning] [grabber] USB Receiver (device_id:4294968430) is not observed yet. Please wait for a while. [2019-07-26 18:51:15.293] [warning] [grabber] Magic Mouse 2 (device_id:4294968730) is not observed yet. Please wait for a while. [2019-07-26 18:51:15.293] [warning] [grabber] USB Receiver (device_id:4294968428) is not observed yet. Please wait for a while.

revolter commented 5 years ago

I too get

[2019-07-27 14:45:20.729] [warning] [grabber] Apple Internal Keyboard / Trackpad (device_id:4294968385) is not observed yet. Please wait for a while. [2019-07-27 14:45:20.729] [warning] [grabber] Apple Internal Keyboard / Trackpad (device_id:4294968175) is not observed yet. Please wait for a while.

and it doesn't work, even after trying all the workarounds mentioned here.

I'm on macOS 10.15 Beta (19A512f)

neominik commented 5 years ago

Has anyone tried Karabiner Beta v12.5.5? The release notes say, it is supposed to support Catalina. I'd try it myself, but would like to prevent 6 hours of TimeMachine rollback, if possible ;-)

revolter commented 5 years ago

I will. Where could I download the beta from?

Yes, it finally works ❤️ But I had to add back my modification as the old one I think it was linked to a keyboard "instance" (physically, it's the same one) the Elements is not recognising it anymore:

image
alikulov commented 5 years ago

@revolter beta works fine for me

bomtailey commented 5 years ago

It's working for me as well. Haven't tried restarting without doing the "sudo killall" action. Great thanks to whomever fixed this.

ppolang commented 5 years ago

12.5.5 beta seems to work great even after waking up from sleeps. However, it doesn't seem to work when it wakes up from sleeps longer than 5 minutes or so. Here is the log message where grabber failed.

[2019-07-29 16:35:10.301] [warning] [grabber] Apple Internal Keyboard / Trackpad (device_id:4294984559) is not observed yet. Please wait for a while. [2019-07-29 16:35:11.161] [warning] [grabber] (vendor_id:0x5ac, product_id:0x8600) (device_id:4294984647) is not observed yet. Please wait for a while.

It starts to work again after sudo killall. AND it works if device is put to sleep for a short period of time, where observer and grabber aren't invoked.

p3nj commented 5 years ago

12.5.5 fix the issue, devices are grabbed properly.

onemanstartup commented 5 years ago

Yeah. Sometimes latest beta stop working

bomtailey commented 5 years ago

I also am finding that I need to periodically re-issue sudo killall to re-initiate grabbing

jhoareau commented 5 years ago

In 12.5.6, I still have to kill the processes after my Mac wakes up from sleep.

krzysiek33plpl commented 5 years ago

Hello, the same here. After MacBook is up i need to restart. Sudo kill command does not work at all.

krzysiek33plpl commented 5 years ago

Update! The newest beta seems to address the issue...

naefl commented 5 years ago

19A526H newest MacOS beta, still have to kill the processes on every wake

EDIT: With the Karabiner beta version 12.5.9, I no longer have to do it after every wake but only once on device start - big improvement

Sn-Kinos commented 5 years ago

If it didn't work with adding karabiner_grabber and karabiner_observer on Accessibility from /Library/....

NOT /Users/foobar/Library/...

It works on my mac.

say8425 commented 5 years ago
sudo killall karabiner_observer karabiner_grabber

Should I kill these process each time?

robinjection commented 5 years ago

In 12.5.6, I still have to kill the processes after my Mac wakes up from sleep.

Where does one download these betas? (relative n00b here)

revolter commented 5 years ago

@robinjection https://pqrs.org/osx/karabiner/document.html#check-for-updates

say8425 commented 5 years ago

Support macOS Catalina. - Version 12.6.0

Now I think this issue was fixed on version 12.6.0. Please close this issue.

krzysiek33plpl commented 5 years ago

Negative - It's still required the sudo kill command :( K.

gdbing commented 5 years ago

Latest update (12.6.0) fixed it for me, without having to manually kill processes.

krzysiek33plpl commented 5 years ago

Nevertheless, I had to sudo kill this morning after opened my MacBook :(

onep1usone commented 5 years ago

Had no issues after updating to 12.6 but today had to Sudo kill

On Tue, 20 Aug 2019 at 4:59 pm, krzysiek33plpl notifications@github.com wrote:

Nevertheless, I had to sudo kill this morning after opened my MacBook :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tekezo/Karabiner-Elements/issues/1867?email_source=notifications&email_token=AHR7GVDF5VK4MXL4MZN4AWLQFOI5DA5CNFSM4HSWDIS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4VIYUQ#issuecomment-522882130, or mute the thread https://github.com/notifications/unsubscribe-auth/AHR7GVFOSELLCGB5COTU5CDQFOI5DANCNFSM4HSWDISQ .

krzysiek33plpl commented 5 years ago

Had no issues after updating to 12.6 but today had to Sudo kill

So this means you HAVE the issue :)

onep1usone commented 5 years ago

Yes but I had put it to sleep after installing 12.6 but once left to sleep overnight the issue came back

On Tue, 20 Aug 2019 at 6:04 pm, krzysiek33plpl notifications@github.com wrote:

Had no issues after updating to 12.6 but today had to Sudo kill … <#m-760039347688248913>

So this means you HAVE the issue :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tekezo/Karabiner-Elements/issues/1867?email_source=notifications&email_token=AHR7GVCIMXJS7QN5XPSHGILQFOQQVA5CNFSM4HSWDIS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4VN3VY#issuecomment-522902999, or mute the thread https://github.com/notifications/unsubscribe-auth/AHR7GVCGDDONSDDXPHNHD2LQFOQQVANCNFSM4HSWDISQ .

tekezo commented 5 years ago

An issue around sleep: #1932

gondalez commented 5 years ago

I can confirm this is fixed for me as of v12.6.2 mentioned in #1932. It survives a sleep for the first time since installing Catalina beta 1 😌

I don't think it's necessary to reinstall to see the fix, but this was my process in case others are interested:

It's worth mentioning my keyboard settings were preserved after the reinstall.

Thanks @tekezo 🙏

willyuewu commented 5 years ago

I can confirm this is fixed for me as of v12.6.2 mentioned in #1932. It survives a sleep for the first time since installing Catalina beta 1 😌

I don't think it's necessary to reinstall to see the fix, but this was my process in case others are interested:

  • (Catalina beta 6)
  • remove Karabiner by pressing uninstall in karabiner elements > preferences > misc
  • remove all manually added karabiner_* processes from Input Monitoring in system prefs
  • install Karabiner from the latest dmg
  • install the latest beta

It's worth mentioning my keyboard settings were preserved after the reinstall.

Thanks @tekezo 🙏

Really seems working on my machine! Amazing!

say8425 commented 5 years ago

After my MacBook sleep 2days, then my karabiner did not work. But I can found log from karabiner elements.

[2019-09-02 10:22:10.288] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:11.728] [error] [console_user_server] grabber_client error: No buffer space available
[2019-09-02 10:22:11.898] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:13.454] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:15.073] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:16.726] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:18.315] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:19.826] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:21.453] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:23.660] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:25.232] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:27.602] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:29.136] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:30.708] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:32.310] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:33.961] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:35.600] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:37.195] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:38.857] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:40.541] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:42.131] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:43.713] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:45.344] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:46.976] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:48.668] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:50.233] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:51.881] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:53.473] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:55.064] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:56.706] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:58.219] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:22:59.829] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:01.452] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:03.110] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:04.685] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:06.327] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:07.969] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:09.550] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:11.219] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:12.845] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:14.445] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:16.047] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:17.689] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:19.260] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:20.892] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:22.547] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:24.081] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:25.759] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:27.309] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:28.951] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:30.522] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:32.154] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:33.749] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:35.327] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:36.959] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:38.520] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:40.102] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:42.735] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:44.320] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:45.885] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:47.453] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:48.752] [error] [console_user_server] grabber_client error: No buffer space available
[2019-09-02 10:23:49.101] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:50.667] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:52.398] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:53.935] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:55.637] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:57.289] [error] [observer] grabber_client error: No buffer space available
[2019-09-02 10:23:58.867] [error] [observer] grabber_client error: No buffer space available

Fortunately killing process fix this issue sudo killall karabiner_observer karabiner_grabber

cumanzor commented 5 years ago

FYI: my configs were not applying when I upgraded to Catalina Beta 7 because I my .config folder was symlinked to another folder within my iCloud Drive. Grabber was failing with this message:

[2019-09-08 14:55:48.973] [error] [grabber] failed to open /Users/john/.config/karabiner/karabiner.json

Had to move the .config folder back to ~. This used to work on Mojave, so it may be a change regarding iCloud Drive permissions, or something else.

codeek commented 5 years ago

I still got no buffer space available error after i tried all of the solutions above.BTW,I upgraded to Catalina Beta 8

paradoxally commented 5 years ago

Still broken on Catalina b8, no buffer size available.

ManuelAlanis commented 5 years ago

Run xcode-select --install

gibfahn commented 5 years ago

Working for me on Catalina 10.15 (GA release).

abduramann commented 5 years ago

I upgraded my Mac to Catalina on Friday. I tried the steps below sequentially. 1- Update Karabiner to 12.7. Not worked 2- sudo things. The system couldn't find grabber and observer so I think no effect. Not worked 3- Update Karabiner to 12.7.2 Not worked 4- Restart Mac :) Worked

FYI

silbernagel commented 5 years ago

I've upgraded to Catalina as well.

Simple and complex modifications do not work. But I can get the function keys to be F* as standard. So at least something works.

pascal468 commented 5 years ago

Hi. I've upgraded specifically to Catalina to try to get Karabiner working, but no, still no result. Get also the message "EventViewer failed to observe keyboard devices" but have both Karabiner_grabber" and "observer" added to the Input monitoring, did the sudo killall for both, did a restart, but still this message when opening the Karabiner Eventviewer. So tips are welcome!

Thanks, Pascal

fabOnReact commented 5 years ago

I did not have karabiner_observer in the list. Somehow closing all the apps, killing processes and maybe even restarting the system made it show up in the list of setting and karabiner re-started to work

abduramann commented 5 years ago

OK, discovered my issue. After sleep, Karabiner does not work. I restarted many times, did sudo kill things. No way.

nealeyoung commented 5 years ago

FYI: my configs were not applying when I upgraded to Catalina Beta 7 because I my .config folder was symlinked to another folder within my iCloud Drive. Grabber was failing with this message:

[2019-09-08 14:55:48.973] [error] [grabber] failed to open /Users/john/.config/karabiner/karabiner.json

Had to move the .config folder back to ~. This used to work on Mojave, so it may be a change regarding iCloud Drive permissions, or something else.

There is a workaround that allows you to keep the .config in the cloud, see this issue: https://github.com/tekezo/Karabiner-Elements/issues/2032

azinoviev commented 5 years ago

OK, discovered my issue. After sleep, Karabiner does not work. I restarted many times, did sudo kill things. No way.

Same here. Works after reboot and stop working after sleep.

iamWing commented 5 years ago

OK, discovered my issue. After sleep, Karabiner does not work. I restarted many times, did sudo kill things. No way.

Same here. Works after reboot and stop working after sleep.

Same here, so as the bluetooth keyboard disconnected and reconnected.

dzawadzk commented 5 years ago

The same happens to me when switching between different OS users.

zenVentzi commented 5 years ago

Did a restart and it worked. Made it sleep from the sleep menu button on top, but then it worked again.

Interesting, I haven't re-installed Karabiner since the Catalina update, but I had to re-install XCode. So I guess for some this would fix it.

bugtype commented 4 years ago

Yes, you do, based on the TCC warnings. I didn't care enough to add it, since it wasn't essential to getting Karabiner working (and sudo killall karabiner_observer, etc.)

Thanks. it's work on!

rr326 commented 4 years ago

If anyone still has this problem - I found uninstall (under Misc) and then reinstall worked for me.

lazywhite commented 4 years ago

How to add anything into the "Input monitoring"? there is no "+" button like in other categories:

Screenshot 2019-06-04 at 08 02 14

maybe your mac system preference apps has a problem just remove /Library/Application\ Support/com.apple.TCC/TCC.db and reboot