-
Notifications
You must be signed in to change notification settings - Fork 139
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: Doesn't seem to work on all connected keyboards #1268
Comments
For whatever reason your usb keyboard may not be getting auto-detected. You can try using the linux- device defcfg options to force kanata to find all desired devices. |
Thanks for the help! Unfortunately it doesn't work, the init logs show the following, I've marked the keyboard that doesn't work but is included:
I also checked with
I pressed |
It seems isolated to this one keyboard, at work I'm using a KeyCron, which remaps just fine :-) |
How strange. Perhaps the outputs are actually coming from a different device that doesn't have the expected name? You can try using |
I've added the output below! :-) and I've seen something really odd (for me, I don't know if it does make sense in keyboard world) The non-functional keyboard seems to be split in 2 keyboards:
So it seems some of the keys are on input 10, see below for the ones
And this is the same output for the other 'half' of the keyboard (device 9):
|
Yea some keyboards are split into multiple input devices at the kernel level. If you tell Kanata to capture both |
Sorry for the delay... I haven't used that keyboard in a while (busy at home with other stuff...) No, it still doesn't work as expected. I had the default config of capturing all keyboards and this has worked for most other keyboards:
I haven't tried the 'standard' membrane keyboards yet, but I never encounter them :-) I did try a configuration where I explicitly told kanata to use the two Keyed-Up devices to no avail. Could this happen because the remapped key is on the other device? From what the |
I have a similar issue. My keyboard is also split into multiple input files. Fortunately, according to evtest, capslock and escape are assigned to the same file. Despite, kanata doesn't automatically register this file. I tried I don't know how the detection and classification of keyboards is implemented, but let me know if I could provide you with some properties of the keyboard, so it could be improved. |
There is an by-name detection change in the latest main/prerelease if you could test that to see if it fixes the issue |
Unfortunately, main branch gives the same results, but I learned why. I would expect Footnotes |
Swapping the first, mentioned match cases, and appending |
Sounds like a good PR to me, thanks for the investigation! |
Requirements
Describe the bug
Hi there,
I've been using kanata for a while now and I seem to be hitting a snag using it with multiple keyboard. When I run it and use the laptop's keyboard, it works just fine, but the same config does not seem to apply to any USB connected external keyboards.
I tried validating my config in the simulator and it agrees with me that it should work..
Also, the keyboard itself works just fine, kanata detects it during startup, but there's no logging at all for this device (whereas my bluetooth mouse and laptop keyboard do generate output)
Relevant kanata config
To Reproduce
caps
on both keyboards, it should show you that you pressedescape
Expected behavior
I want
caps
to be remapped regardless of the keyboard that provides the keypress.Kanata version
kanata 1.6.1
Debug logs
Operating system
Fedora 40, running wayland
Additional context
No response
The text was updated successfully, but these errors were encountered: