-
Notifications
You must be signed in to change notification settings - Fork 129
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
Bug: No keys are sending on Mac #1317
Comments
Maybe this can help: |
I am also encoutering this issue. #1211 doesn't seem to help with this. |
I'll give #1211 a try and also get some more debug logs to see where it might be going wrong EDIT: Already had both Kanata and iTerm in the input monitoring, so don't think it's that. EDIT 2: I do see this PR for the driverkit to bump it to version 5.0.0, which is what I have when I run the below command. So hoping that is just my issue and when that gets merged this hopefully will resolve
|
Confirming the last comment by @CampAsAChamp. I had this issue on MacOS 15.0.1 of key presses being detected but not being written. I repointed my local cargo.toml to the driverkit git repo mentioned in PR and rebuilt locally. Now works. |
@jtroo how should I resolve this? Close it and mention that this issue should be fixed when that above PR gets merged? Or how would you like? The only reason why I have version |
We can leave this open until we bump the dependency version in Kanata. |
I'm having trouble even with 5.0.0. On MacOS Sonoma 14.7. When I run kanata, my whole keyboard is unusable. |
@fearlessgeekmedia my understanding is that, having 5.0.0 is the problem (on kanata side) and kanata needs an updated dependency to work correctly. |
Oh, ok. So I just need to wait? |
You could:
|
Here's my build with updated driverkit dependency - it worked for me on 15.1, M1 Apple Silicon. (With the 5.0.0 Karabiner driver .pkg installed.) Took me a while to figure out I also needed to run the Karabiner daemon separately, e.g.
|
I tried an older Karabiner driver and compiled Kanata myself already.
Neither of those solved my problem. I ended up using claude.ai to convert
my Kanata config to a Karabiner Elements mod. It works. :)
…On Tue, Nov 5, 2024, 1:15 AM Matt Wilson ***@***.***> wrote:
Here's my build with updated driverkit dependenciy - it worked for me on
15.1, M1 Apple Silicon.
https://www.dropbox.com/scl/fi/4bsz4a2qih35ui9gp1fhe/kanata_w_kdk_5.0.0.zip?rlkey=g6139xiug7zcr1b9ccie15xwd&dl=0
Took me a while to figure out I also needed to run the Karabiner daemon
separately, e.g.
# in one tab
sudo '/Library/Application Support/org.pqrs/Karabiner-DriverKit-VirtualHIDDevice/Applications/Karabiner-VirtualHIDDevice-Daemon.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Daemon'
# in another tab
sudo ./kanata --cfg ~/.config/kanata.kb
—
Reply to this email directly, view it on GitHub
<#1317 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HGA5VEYY4MZAKMVKVEVP3Z7B5C5AVCNFSM6AAAAABQ7W2HBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGUYDMMRRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
When do you expect this to happen? |
I didn't specify earlier. I'm using one of the Intel Macs. |
You're asking for a time estimate from a free, donations-not-accepted, open source project 😂. Within |
Sorry, my intention wasn't to create any pressure or push. Just wanted to check if this is something you're planning to implement soon, so I can wait for it, or if not, I will try to do so locally. My bad for not taking enough time to write this properly 🙏 |
There's not much work to do in the Kanata repo. The blocker is having the updated dependency consumable via crates.io for use with cargo install. I'm not sure how active @psych3r is so it might be a while to get the pr merged and crate published. It may be desirable to: have a new maintainer for the dependency or vendor and maintain the dependency within the Kanata repo. |
I've been quite busy for the last month. |
I must have missed something but I couldn't get it to work. I git pulled and cargo build the latest kanata, installed Karabiner-DriverKit-VirtualHIDDevice-5.0.0.pkg, activated latter and still have given Terminal permission for Input Monitoring. But it is still not working, before my installation worked. Edit: |
I don't think you missed anything. We're essentially waiting.Or you could
do what I did and use Karabiner Elements.
…On Tue, Nov 12, 2024, 12:33 PM newsve ***@***.***> wrote:
I must have missed something but I couldn't get it to work. I git pulled
and cargo build the latest kanata, installed
Karabiner-DriverKit-VirtualHIDDevice-5.0.0.pkg, activated latter and still
have given Terminal permission for Input Monitoring. But it is still not
working, before my installation worked.
—
Reply to this email directly, view it on GitHub
<#1317 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HGA5WSOJZVNA5HX5ZKLPL2AJJXZAVCNFSM6AAAAABQ7W2HBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGQYDAMJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
While I run kanata, my keyboard and mouse not work anymore, I can only exit by |
Yeah, pretty much what was happening to me too. Granted I am only using it
for keyboard shortcuts and not anything with the mouse. So I didn't have
the mouse issues.
…On Tue, Nov 12, 2024 at 7:59 PM Lawrence Liu ***@***.***> wrote:
While I run kanata, my keyboard and mouse not work anymore, I can only
exit by Ctrl + Space + Esc. I tried Karabiner-VirtualHIDDevice-Manager
3.1 and 5.0, nothing changed. I do real not want turn back to karabiner,
the terrible config...
—
Reply to this email directly, view it on GitHub
<#1317 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HGA5QF74V2EGARDCD36KL2AK6BZAVCNFSM6AAAAABQ7W2HBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZSGI3DQMJUGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
If you're compiling the latest main then the assumption is it should work now. The dependency bump was merged. But something else might be broken; perhaps something specific to intel mac |
I have exactly the same paired with this contiunous
I am running it on a Silicon Mac (M2). My config again:
Please let me know if I can do/test anything more in order to help to find the cause. |
Sorry for spamming this thread but I found the issue. Contrary to the past versions, we need now to run that Karabiner daemon as well, another user gave that hint in #1317 (comment) So, all works fine now with the config I gave in the last comment. |
running the daemon in a seperate window works but should we keep one terminal always running for it? |
Is this fixed? or should we still keep running the daemon in another terminal? |
Is this something broken that needs to be "fixed" in the first place? I would guess running the daemon is the intended use case for working with the new karabiner. Seems there might be some improvements here though.
|
I believe we need to update the docs. |
Is there a hero write a applescript to run all of them? I try to run kanata by applescript, faild. |
This options would be actually pretty nice and would remove some friction in the UX. Edit: Or display an error if the daemon isn't installed. |
I experienced the issue with the keyboard not working when using the Kanata v1.7.0 release. I can confirm the fix:
|
I asked ChatGPT to write a shell script #!/bin/zsh
# Quick help/full install process:
# - Install Rust from rustup.rs
# - `git clone https://github.com/jtroo/kanata.git` in home (`~/`), then `cd kanata` and `cargo build`
# - Install https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice version: ^5.0.0
# - Allow Input Monitoring for latter somewhere in macOS' settings
# - `chmod +x kanata.sh` this file after creation!
# Checking if a parameter was provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <path_to_kbd_file>"
exit 1
fi
# Activate Karabiner-VirtualHIDDevice-Manager (actually needs to be done only once but yeah)
sudo /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager activate
# Run Karabiner-VirtualHIDDevice-Daemon
sudo '/Library/Application Support/org.pqrs/Karabiner-DriverKit-VirtualHIDDevice/Applications/Karabiner-VirtualHIDDevice-Daemon.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Daemon' &
# Execute kanata with the provided parameter
sudo ~/kanata/target/debug/kanata -nc "$1" Then, once... chmod +x kanata.sh ...and execute with... ./kanata.sh <path_to_kbd_file> Edit: Check ofc if your kanata install folder is the same as in the script! It is just the one when you do a Edit2, Alternative: You could also just cram the last two lines into one, have a hard-coded kbd-file and run that super long line every time (and since in the shell history you can easily access it with the arrow up or ctrl-r too, actually not much worse solution but this script is a bit cleaner and in case the history is not accessible nor available also much easier to remember). |
Requirements
Describe the bug
Keys are not being sent, but are being seen/heard by Kanata
Relevant kanata config
Using the
minimal.kbd
To Reproduce
minimal.kbd
(with sudo)Video:
Screen.Recording.2024-10-31.at.10.57.58.PM.1.mov
Expected behavior
Keys would be sent. Pressing any other keys (A-Z) with
process-unmapped-keys yes
I expected them to also send, but I got neither.Kanata version
kanata 1.70
Debug logs
No response
Operating system
MacOS 14.7
Additional context
No response
The text was updated successfully, but these errors were encountered: