Run hidtest for no more than 10 seconds when no hid_read data #440
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!440
Loading…
Reference in a new issue
No description provided.
Delete branch "hidtest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Avoid infinite reading from the device if the device doesn't send any interrupt reports.
Otherwise hidtest has to be stopped by Ctrl+C interruption, which doesn't give a chance to close the device properly,
as a result this has negative side-effects when using LIBUSB backed.
As a follow-up from the previous conversation, @Julusian may I ask you to try running libusb backand before hidraw and check if kernel driver is reattached properly?
Don't use Ctrl+C, just wait 5 seconds for the
hidtestto run.@mcuee, same request to you.
Thanks.
@Youw
The change to hidtest is good to have so that user do not need to hit CTRL-C.
But somehow the kernerl driver does not seem to re-attach.
The change is good to have.
Even though it does not sort out the kernel driver re-attach issue (probably another issue to sort out), this chage itself is good to have.
thanks