-
Notifications
You must be signed in to change notification settings - Fork 150
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: Some keyboards may not be recognized #261
Comments
Can you please post the full output of |
Or if I
|
Thanks.
Your hypothesis is likely correct.
Indeed. There are some non keyboard things which can produce key events (e.g programmable mice). The point of the check was originally to try and segregate 'real keyboards' from such devices, but it invariably produces some false negatives and may not be strictly necessary anymore as a result of changes to the input logic. Can you pull the latest version and post the output of |
Here you go!
|
Can you post the full output of |
👍
|
Some devices don't have exotic keys like minus :/, so we simply check for the presence of alphanumeric keys.
Sorry, I had earmarked this and then promptly forgot about it :P. It looks like your keyboard is missing some keys (notably a minus key). I've simplified the check so it should work now. Can you give the latest commit a try? |
Awesome! I will give this a try ASAP and get back to you. |
Any update? |
Closing due to inactivity. |
I have a pinephone with the keyboard case accessory (I do not recommend either) which I wished to use with keyd.
evtest
identifies the devices as follows:/etc/keyd/default.conf:
However, when keyd is launched as
sudo keyd -m
, it does not report adding the pinephone keyboard.Having examined the source code, my hypothesis is that the issue lies in the way keyboards are detected. I don't fully understand the code in question, but looking at
resolve_device_type
, I suspect that the absence of many common keys (e.g. hyphen, equals, backslash) may be causing the keyboard not to be recognized? If my hypothesis is correct, this could conceivably affect other keyboards. Or perhaps I'm barking up the wrong tree... What exactly is the interpretation of the variablemask
? If I understand correctly, it is a bit-mask related to the key event codes that the device may produce?Thanks for this splendid project!
The text was updated successfully, but these errors were encountered: