-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error reading from event1: read /dev/input/event1: invalid argument #3
Comments
Hi @queez0405, my pleasure! I'm glad you are finding this useful 😊 This might be related to input event size and structure on 32-bit systems. So far I've only tried it on 64-bit. I'll try to add some better debugging controls here. In the meantime, could you share the output for these commands?
The second command will wait for the input and then pipe the result to hexdump (part of bsdmainutils package) -Bahador |
I just pushed a new changeset This includes a potential fix (use 32bit int for event time instead of 64bit) for the issue you encountered, and a few other cleanup and improvements. Please give it a shot when you have a chance and let me know how it goes and if you'd need further assistance. Cheers |
Thank you for your quick response @bahaaador! I've reinstalled the software for 32-bit OS, but I'm still experiencing issues. The output of I've included screenshots for reference. Thanks again for your help! |
Thanks for sharing the screenshots, @queez0405. Based on the first one, it seems like the event is being correctly mapped now (16 bytes with 32-bit architecture), which is great. A quick heads-up that I'm planning to update the code so that the even size is set dynamically depending on the Architecture, so keep an eye on this and let me know if the invalid Regarding the other issue you mentioned, from the logs that you shared, I don't see any error or crash report. Could you share more details about what you are encountering? I've also added two new tools to help with troubleshooting and testing, with the latest code you should be able to run them through |
Thanks for sharing the all of this @queez0405 . The good news is that alsmost everything on the HID seems to be working as expected. We just have to figure out what's going on in the host machine that the USB port is connected to. I don't think you've mentioned what machine you're trying it on I've tested with Mac and Windows machines. In macOS and linux you can run Try to gather some more information using those and share it to see if that would give us any clue. If you can access other machines, try it with those as well. To make this easier, you can run |
Thank you for this wonderful project. I am currently using a Raspberry Pi Zero 2W running Bullseye Raspberry Pi OS 32-bit. I installed the code using Golang and Task, and connected a Bluetooth keyboard to the RPi. However, after running task run, whenever I press any key on the Bluetooth keyboard, I get an "invalid argument" error as shown in the image above. Any hints or pointers regarding this issue would be greatly appreciated.
Environment:
The text was updated successfully, but these errors were encountered: