-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
hotplugtest
example enhancement: to be able to list all the devices attached/detched
#1441
Comments
hotplugtest
results are not predictable under Linux for external USB hubshotplugtest
results are not predictable for external USB hubs
This is probably a side effect of PR #1350. We can either live with this or maybe mention in the |
This may well happen under macOS as well but there is a current issue with macOS. |
Note that hotplugtest is a bit primitive. It will quit after two events, whether attach or detach. Try changing Also, it keeps one handle, from the last device that was attached (whether it was able to open it or not), and then when a device is detached, it will close that handle, regardless of which device was detached. It is strictly meant to be used with one device, specified on the command line (VID and optionally PID). And this device should be attached, then detached. So (un)plugging several devices at a time, without filtering, causes various issues. |
That is why I think PR #1350 is wrong. |
hotplugtest
results are not predictable for external USB hubshotplugtest
example enhancement
This seems to work for my Ubuntu 20.04 system, with a nested external hubs setup. Before attached the external hubs.
After attaching the USB hubs.
Change number
And indeed
|
Maybe hotplugtest can be enhanced to be able to list all the devices attached/detched. |
hotplugtest
example enhancementhotplugtest
example enhancement: to be able to list all the devices attached/detched
BTW, #1425 is also good to have. |
From here:
#1425 (comment)
Somehow I think the output of hotplugtest is not predictable under Linux for external hubs.
Adding a USB 3.0 USB Mass Storage to the USB Type-C hub.
The USB Type-C hub will show as two devices.
Detaching the hub -- only shows PICKit 4 and the associated USB 2.0 hub device.
Attaching the hub: only shows the associated USB 2.0 hub and USB 3.0 Hub.
The text was updated successfully, but these errors were encountered: