Closed tinnocente closed 7 years ago
I guess you'll need to debug this - I don't have this hardware in my posession...
You might be able to get it to work by using -R
option - it attempts to reset usb devices connected to hub in question.
Fact that you cannot kill it suggests that this might be kernel USB hub driver issue.
All uhubctl functionality about turning power on or off is basically done in this call:
https://github.com/mvp/uhubctl/blob/master/uhubctl.c#L601lL605
rc = libusb_control_transfer(devh,
LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_OTHER,
request, USB_PORT_FEAT_POWER,
port, NULL, 0, USB_CTRL_GET_TIMEOUT
);
libusb_control_transfer
is eventually calling kernel USB hub driver to get this work done.
Can you try adding some printf
statements before and after this call?
Closing for inactivity. Please reopen if you have more details about this freeze. Would be also interesting if you could try this on different Linux distro like Ubuntu, and/or perhaps different compatible USB hub - it works for me very reliably, I'm using Ubuntu 16.04 and DLink DUB-H7. Thanks!
Seems the software is buggy on my system. Using the Amazon Basics 7 port hub on Debian Jesse 8.7 (3.16 kernel). All commands are being run as root user
These commands work as expected:
This command hangs:
The scary part is when it hangs I cannot kill it with CTRL+C or even with kill -9 PID
Any ideas would be much appreciated - thanks!