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

Bug: connect_failed asio.system:61 #1264

Closed
1 task done
aljustiet opened this issue Sep 29, 2024 · 15 comments
Closed
1 task done

Bug: connect_failed asio.system:61 #1264

aljustiet opened this issue Sep 29, 2024 · 15 comments
Assignees
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.

Comments

@aljustiet
Copy link

aljustiet commented Sep 29, 2024

Requirements

Describe the bug

Kanata: compiled from source
MacOS: macOS Sequoia 15.0
Having this output:

❯ sudo ./kanata --nodelay --cfg ~/Documents/dotfiles/Keyboard-Remapping/kanata.lsp
00:05:17.0982 [INFO] kanata v1.7.0-prerelease-1 starting
00:05:17.1002 [INFO] process unmapped keys: true
00:05:17.1010 [INFO] NOTE: kanata was compiled to never allow cmd
00:05:17.1077 [INFO] config file is valid
00:05:17.1078 [INFO] entering the processing loop
00:05:17.1078 [INFO] entering the event loop
00:05:17.1079 [INFO] Starting kanata proper
00:05:17.1079 [INFO] You may forcefully exit kanata by pressing lctl+spc+esc at any time. These keys refer to defsrc input, meaning BEFORE kanata remaps keys.
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
00:05:20.5301 [INFO] Entered layer:

(deflayer lalt_layer_g
_     _    _    _    _    _    _    _    _    _    _    _    _
grv  1  2  3  4  5  6  7  8  9  0 @A-- @A-+ bspc
tab b   l    d  w    z    @'    f    o  u      j  ;     _    _
_   n     r  t  s g    y  h @A-a  e   i        _     _
lsft     x     m    c  v    q    @A-k  p    .    @-   @/ _     up
_   @ascl @alctl          @spcq               @nav lalt lft down rght
)
00:05:20.5562 [INFO] pressed LControl+Space+Escape, exiting
thread 'main' panicked at src/kanata/mod.rs:2140:17:
pressed LControl+Space+Escape, exiting
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
zsh: abort      sudo ./kanata --nodelay --cfg

Relevant kanata config

https://rentry.co/u2n3666v/raw

To Reproduce

  1. Run kanata with given config on macOS 15.0

Expected behavior

Should work

Kanata version

Source

Debug logs

Description.

Operating system

MacOS

Additional context

No response

@aljustiet aljustiet added the bug Something isn't working label Sep 29, 2024
@jtroo jtroo added the macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it. label Sep 29, 2024
@aljustiet
Copy link
Author

What else information can I share?

@jtroo
Copy link
Owner

jtroo commented Sep 30, 2024

Can you try looking at kmonad/kmonad#730 and the other linked threads

@aljustiet
Copy link
Author

Can you try looking at kmonad/kmonad#730 and the other linked threads

I tried them. But it didn't work. I tried to activate manually using the virtualhid binary. But it didn't work out too. Basically the virtualhiddevice doesn't show up here:
image

@aljustiet
Copy link
Author

aljustiet commented Oct 8, 2024

Does kanata work with the newer version of the karabiner virtualhiddevice 5.0.0?

@osel2
Copy link

osel2 commented Oct 8, 2024

Bit of a caveman solution, but I quit karabiner, deleted .Karabiner-VirtualHIDDevice-Manager from Applications, installed the version linked in kanata's latest release, activated it, then reran kanata. Works flawlessly now. Must be kanata and karabiner fighting over it/the new pkg not properly installing over the more recent version.

@aljustiet
Copy link
Author

Bit of a caveman solution, but I quit karabiner, deleted .Karabiner-VirtualHIDDevice-Manager from Applications, installed the version linked in kanata's latest release, activated it, then reran kanata. Works flawlessly now. Must be kanata and karabiner fighting over it/the new pkg not properly installing over the more recent version.

Are you on MacOS 15?

@osel2
Copy link

osel2 commented Oct 8, 2024

Bit of a caveman solution, but I quit karabiner, deleted .Karabiner-VirtualHIDDevice-Manager from Applications, installed the version linked in kanata's latest release, activated it, then reran kanata. Works flawlessly now. Must be kanata and karabiner fighting over it/the new pkg not properly installing over the more recent version.

Are you on MacOS 15?

Yep, 15.0.1. Running the provided kanata_macos_x86_64 binary from the latest release. For what it's worth, my karabiner is also up to date, but that shouldn't matter much since I replaced the .Karabiner-VirtualHIDDevice-Manager with the kanata-recommended version.

@aljustiet
Copy link
Author

aljustiet commented Oct 9, 2024

@jtroo Is there a tool like evtest, but for macOS except --debug flag?
P.S.
I found that I can use accessibility keyboard for this purpose, which is located in the Accessibility>Keyboard.
Also It's possible to use the karabiner EventViewer, but it didn't work for me because of permission issues ig.

@aljustiet
Copy link
Author

Bit of a caveman solution, but I quit karabiner, deleted .Karabiner-VirtualHIDDevice-Manager from Applications, installed the version linked in kanata's latest release, activated it, then reran kanata. Works flawlessly now. Must be kanata and karabiner fighting over it/the new pkg not properly installing over the more recent version.

Are you on MacOS 15?

Yep, 15.0.1. Running the provided kanata_macos_x86_64 binary from the latest release. For what it's worth, my karabiner is also up to date, but that shouldn't matter much since I replaced the .Karabiner-VirtualHIDDevice-Manager with the kanata-recommended version.

Thanks, works.

@aljustiet
Copy link
Author

Do you know guys know how to make the launchd service which runs kanata?

@aljustiet
Copy link
Author

Is it possible to run kanata without superuser priviliges?

@osel2
Copy link

osel2 commented Oct 10, 2024

Do you know guys know how to make the launchd service which runs kanata?

Nicest solution is likely to set it up via https://github.com/rszyma/kanata-tray. You could maybe try adding this to macos' startup apps. You shouldn't be restarting macos a lot, and to me restarting once in a while and having to start kanata again is completely fine.

@osel2
Copy link

osel2 commented Oct 10, 2024

Is it possible to run kanata without superuser priviliges?

Probably not. I would be scared if you could tbh.

@aljustiet
Copy link
Author

aljustiet commented Oct 10, 2024

Is it possible to run kanata without superuser priviliges?

Probably not. I would be scared if you could tbh.

For example, in Linux I can create group uinput, and give it proper permissions, then add myself to that group.

@jtroo
Copy link
Owner

jtroo commented Nov 11, 2024

I think this is related to #1317. Latest main now uses karabiner driver v5.

@jtroo jtroo closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.
Projects
None yet
Development

No branches or pull requests

3 participants