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

Handle duplicated keyboard names on multiple device paths. #49

Open
mschout opened this issue May 22, 2024 · 0 comments
Open

Handle duplicated keyboard names on multiple device paths. #49

mschout opened this issue May 22, 2024 · 0 comments

Comments

@mschout
Copy link

mschout commented May 22, 2024

I have a new keyboard (Wobkey Rainy 75) that, when in wired mode, exposes itself with the exact same name on multiple device paths:

e.g.:

$ sudo evtest
...
/dev/input/event2:	RDR Rainy 75
...
/dev/input/event4:	RDR Rainy 75

kbct seems to always pick event4 and the last one wins, but the one that actually receives the key events is on /dev/input/event2.

I made a patch to work around this by checking if there is already a keyboard with the current name in the device map, and if so, append the device number to the end. So after the patch, the second one becomes RDR Rainy 75-4, and I can stick RDR Rainy 75 in the list of keyboards and it works.

I will push a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant