-
Notifications
You must be signed in to change notification settings - Fork 50
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
Some hardware testing, mixed results #5
Comments
How could I troubleshoot issues on Win10 and Mac? |
Thanks for this. do you mind sharing how you configured the devices on web UI? There was another source of latency I had when was developing the app - Bluetooth. There were occasional periods of lags, particularly when there were several hosts connected (even though I send to only one host at a time). When I investigated I realised that if the Raspberry pi is in Bluetooth slave mode (the way Bluetooth piconets are designed) it is basically waiting for too long until Bluetooth master(s) tell the raspberry it can send the Bluetooth packets. I dealt with it by setting raspberry to master mode for all its connections over here. Maybe still worth checking if it actually works on your setup and that raspberry in master mode (run 'sudo hcitool con' to see status of the connections). As for other set ups, are you trying them one at the time or they are all hosts connected at the same time? It may be that it's just not active hosts? (currently host switching is implemented in A1314 keyboard filter over here. I probably need to generalise the host switching to other keyboards, which I will be able to do in few days. But for now to test it you can just make sure you have only one host connected (or paired) at the time, so the hub will surely be sending hid reports to this host and not another. |
Also, looking at your screenshot from issue#4, I see you use the default filter. Would be interesting to see the hid descriptor of your K400 Plus. could you pull one, using hid-tools? Thanks |
While I was taking screenshots I found a compatibility mode that I somehow missed. It was disabled. I don't get it though – why did it start working?
|
So after reading the nice article about HID descriptors you suggested I start to understand why it worked with compat mode (or more like why it didn't with the Default filter) After that I tried using my Apple Magic Keyboard A1644 with A1314 filter – idea was that Apple devices could work similarly – but without luck. |
Thinking more about supporting different devices in more generic way:
|
As for Logitech K400 Plus descriptor:
|
Indeed, a good summary of options. option 2 - latency testing - good question. I reckon that by using evdev I am not losing an ability to get read hidraw. Possibly just trace timestamps of the events as they come to hidraw vs when you get evdev event. Or just create a hidraw filter for the same device and compare how it feels. As I mentioned before, I have done some tracing with hidraw filter-based implementation before. I remember it has been single milliseconds from the time hidraw file is read to the time Bluetooth packet is pushed to the socket in bluez (if in Bluetooth master mode). the third option is something I also have been thinking of. there are couple of possible issues on this path:
|
I have now done my first subjective testing of the compatibility mode on raspberry pi zero + windows as a host. And I cannot say I notice any lag or difference with the hidraw mode. |
Yeah, I was running compat mode with keyboard only for two days now, works ok. Even for gaming |
similar issue, latency around few seconds and totally not usable, maybe I will take some time to troubleshoot this or just implement something totally different from this (guess a implementation of OS-less version would be more handy.) |
Could someone with the latency issue confirm if this is still an issue with the current code? If you ssh into the RPi, you should be able to update with:
I've fixed an issue with it not going back to master mode when reconnecting to the host, so this may be the same issue that others are reporting. |
Thanks for this great tool! I wanted use it for switching my keyboard/mouse between my work Macbook and home PC.
So I tested it in the following setup:
Raspberry Pi Zero W + Apple Magic Keyboard A1644 + Tecknet M003 mouse
Worked perfectly on:
No mouse, but I'm not sure if mouse should've worked on phones
Windows 10:
Problems:
Mac OS on MacBook Pro (15-inch, 2019)
Problems:
Ubuntu 20.04 on Intel NUC 7i3BNK
Problems:
The text was updated successfully, but these errors were encountered: