uhubctl
uhubctl copied to clipboard
Working Hub: ikuai Aluminium 7-Port USB Hub
Thanks for this project, was exactly what I was looking for.
I recently bought the ikuai Aluminium 7-Port Powered USB 3.0 Hub from Amazon. It works perfectly for what I am using it for (controlling a light bar over a 3d printer). The ports have LEDs to indicate if they are on and those also show when the status is toggles.
It does show up as separate USB 2 and 3 hubs, but like I said seems to work fine. One thing to note, the ports by default come with the power off, took me a while to realize this :)
vID:pID
0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub - USB 2.1 0bda:0411 Realtek Semiconductor Corp. Hub - USB 3.2
dmesg
[ 1.981013] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 2.016551] usb 4-2: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 0.04
[ 2.016554] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.016556] usb 4-2: Product: USB3.2 Hub
[ 2.016557] usb 4-2: Manufacturer: Generic
[ 2.021492] hub 4-2:1.0: USB hub found
[ 2.024082] hub 4-2:1.0: 4 ports detected
[ 2.136317] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[ 2.297463] usb 3-2: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 0.04
[ 2.297466] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.297468] usb 3-2: Product: USB2.1 Hub
[ 2.297469] usb 3-2: Manufacturer: Generic
[ 2.299212] hub 3-2:1.0: USB hub found
[ 2.300380] hub 3-2:1.0: 4 ports detected
--
[ 2.372991] usb 4-2.4: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.408535] usb 4-2.4: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 0.04
[ 2.408540] usb 4-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.408542] usb 4-2.4: Product: USB3.2 Hub
[ 2.408544] usb 4-2.4: Manufacturer: Generic
[ 2.415991] hub 4-2.4:1.0: USB hub found
[ 2.417990] hub 4-2.4:1.0: 4 ports detected
--
[ 3.884341] usb 3-2.4: new high-speed USB device number 10 using xhci_hcd
[ 3.996837] usb 3-2.4: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 0.04
[ 3.996843] usb 3-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.996845] usb 3-2.4: Product: USB2.1 Hub
[ 3.996846] usb 3-2.4: Manufacturer: Generic
[ 3.998603] hub 3-2.4:1.0: USB hub found
[ 3.999732] hub 3-2.4:1.0: 4 ports detected
lsusb output
Bus 004 Device 003: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x0411 Hub
bcdDevice 0.04
iManufacturer 1 Generic
iProduct 2 USB3.2 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x001f
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 19
Transfer Type Interrupt
Synch Type None
Usage Type Feedback
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 8
bMaxBurst 0
Hub Descriptor:
bLength 12
bDescriptorType 42
nNbrPorts 4
wHubCharacteristic 0x0009
Per-port power switching
Per-port overcurrent protection
bPwrOn2PwrGood 0 * 2 milli seconds
bHubContrCurrent 8 milli Ampere
bHubDecLat 0.2 micro seconds
wHubDelay 3202 nano seconds
DeviceRemovable 0x00
Hub Port Status:
Port 1: 0000.02a0 lowspeed L1
Port 2: 0000.02a0 lowspeed L1
Port 3: 0000.02a0 lowspeed L1
Port 4: 0000.02a0 lowspeed L1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 1023 micro seconds
Container ID Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 4
bReserved 0
ContainerID {20b9cde5-7039-e011-a935-0002a5d5c51b}
Device Status: 0x000d
Self Powered
U1 Enabled
U2 Enabled
Bus 004 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x0411 Hub
bcdDevice 0.04
iManufacturer 1 Generic
iProduct 2 USB3.2 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x001f
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 19
Transfer Type Interrupt
Synch Type None
Usage Type Feedback
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 8
bMaxBurst 0
Hub Descriptor:
bLength 12
bDescriptorType 42
nNbrPorts 4
wHubCharacteristic 0x0009
Per-port power switching
Per-port overcurrent protection
bPwrOn2PwrGood 0 * 2 milli seconds
bHubContrCurrent 8 milli Ampere
bHubDecLat 0.2 micro seconds
wHubDelay 3202 nano seconds
DeviceRemovable 0x00
Hub Port Status:
Port 1: 0000.02a0 lowspeed L1
Port 2: 0000.02a0 lowspeed L1
Port 3: 0000.00a0 L1
Port 4: 0000.0263 lowspeed L1 enable connect
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 1023 micro seconds
Container ID Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 4
bReserved 0
ContainerID {20b9cde5-7039-e011-a935-0002a5d5c51b}
Device Status: 0x000d
Self Powered
U1 Enabled
U2 Enabled
Bus 003 Device 010: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 2 TT per port
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x5411 RTS5411 Hub
bcdDevice 0.04
iManufacturer 1 Generic
iProduct 2 USB2.1 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0029
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 1 Single TT
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 2 TT per port
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 4
wHubCharacteristic 0x00a9
Per-port power switching
Per-port overcurrent protection
TT think time 16 FS bits
Port indicators
bPwrOn2PwrGood 0 * 2 milli seconds
bHubContrCurrent 100 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0000.0100 power
Port 4: 0000.0100 power
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 1023 micro seconds
Container ID Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 4
bReserved 0
ContainerID {20b9cde5-7039-e011-a935-0002a5d5c51b}
Device Status: 0x0001
Self Powered
Bus 003 Device 003: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 2 TT per port
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x5411 RTS5411 Hub
bcdDevice 0.04
iManufacturer 1 Generic
iProduct 2 USB2.1 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0029
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 1 Single TT
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 2 TT per port
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x 1 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 4
wHubCharacteristic 0x00a9
Per-port power switching
Per-port overcurrent protection
TT think time 16 FS bits
Port indicators
bPwrOn2PwrGood 0 * 2 milli seconds
bHubContrCurrent 100 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0503 highspeed power enable connect
Port 2: 0000.0503 highspeed power enable connect
Port 3: 0000.0000
Port 4: 0000.0507 highspeed power suspend enable connect
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 1023 micro seconds
Container ID Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 4
bReserved 0
ContainerID {20b9cde5-7039-e011-a935-0002a5d5c51b}
Device Status: 0x0001
Self Powered
This hub: ikuai A107-5 is made by Shenzhen Rong Sheng Hui (aka RSHTech, aka Rosonway), appears to be identical to Rosonway RSH-A107.
Perhaps we should add it as one device into the table?
I think that makes sense.
The 4-port version supposedly only properly turns off devices connected via USB 2.0 (https://github.com/mvp/uhubctl/issues/434), and I suspect your light bar is only a USB 2 device.
Have you checked if it works with USB 3 devices?
The RSH-A107 does not seem to be identical to the ikuai A107-5, or there are two identical versions with a different chip.
The RSH-A107 is in fact
- 2109:2822 VIA Labs, Inc. USB2.0 Hub
- 2109:0822 VIA Labs, Inc. USB3.1 Hub
Unfortunately that chip is not working as expected. While ports can be toggled via uhubctl, they only disconnect data while power remains active and the blue light indicating power status remains unaffected as well.