![USB 集线器不工作。lsusb -v 和 dmesg 对其是自供电还是总线供电存在分歧](https://linux22.com/image/1029430/USB%20%E9%9B%86%E7%BA%BF%E5%99%A8%E4%B8%8D%E5%B7%A5%E4%BD%9C%E3%80%82lsusb%20-v%20%E5%92%8C%20dmesg%20%E5%AF%B9%E5%85%B6%E6%98%AF%E8%87%AA%E4%BE%9B%E7%94%B5%E8%BF%98%E6%98%AF%E6%80%BB%E7%BA%BF%E4%BE%9B%E7%94%B5%E5%AD%98%E5%9C%A8%E5%88%86%E6%AD%A7.png)
我正在尝试使用Sabrent HB-BU10在戴尔 7490 笔记本上运行 Ubuntu 22.10。
如果 USB 中未插入任何设备,系统会使用 lsusb -v 报告以下内部集线器:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
仅将带电集线器(未连接任何设备)插入系统时,lsusb -v 报告两个新集线器(显然 USB2 和 USB3 均已枚举)。我从长列表中插入了几行附加内容:
Bus 002 Device 029: ID 0bda:0411 Realtek Semiconductor Corp. Hub (2)
iProduct 2 USB3.2 Hub
bmAttributes 0xe0
Self Powered
MaxPower 0mA
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub (105) Native
Bus 001 Device 030: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub (1017)
iProduct 2 USB2.1 Hub
MaxPower 0mA
bmAttributes 0xe0
Self Powered
Remote Wakeup
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub (1390) Native
该集线器被正确识别为“自供电”,因为它有一个提供 60W 的外部电源。
但是,当仅将集线器(无设备)插入计算机上的任何 USB 端口时,会出现以下情况:
$ sudo dmesg
[51415.379442] usb 1-2: new high-speed USB device number 33 using xhci_hcd
[51415.543357] usb 1-2: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 0.02
[51415.543370] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[51415.543377] usb 1-2: Product: USB2.1 Hub
[51415.543381] usb 1-2: Manufacturer: Generic
[51415.547300] hub 1-2:1.0: USB hub found
[51415.548519] hub 1-2:1.0: 4 ports detected
[51415.663869] usb 2-3: new SuperSpeed USB device number 32 using xhci_hcd
[51415.699153] usb 2-3: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 0.02
[51415.699157] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[51415.699159] usb 2-3: Product: USB3.2 Hub
[51415.699160] usb 2-3: Manufacturer: Generic
[51415.706866] hub 2-3:1.0: USB hub found
[51415.708501] hub 2-3:1.0: 4 ports detected
[51415.847274] usb 1-2.4: new high-speed USB device number 34 using xhci_hcd
[51415.959902] usb 1-2.4: can't connect bus-powered hub to this port
[51416.045174] usb 2-3.4: new SuperSpeed USB device number 33 using xhci_hcd
[51416.071928] usb 2-3.4: can't connect bus-powered hub to this port
此外,如果有任何设备插入集线器,那么也会记录此消息:
usb 2-3.2: rejected 1 configuration due to insufficient available bus power
为什么系统认为集线器是总线供电的,具有功率限制,而实际上它是自供电的,并且在 lsusb 中正确识别?
答案1
答案是轮毂有问题。目前还不清楚具体是部件有问题,还是设计有问题。
在搜索和研究了 USB 子系统几个小时后,我一无所获。在得出结论:集线器报告自己为总线供电,而实际上它是自供电的之后,我去买了一个新的集线器。我从凡泰克具有类似能力。
一切运行正常。dmesg 中未报告任何错误:
[59222.814154] usb 2-4.1.1: Product: USB3.0 Hub
[59222.814155] usb 2-4.1.1: Manufacturer: VIA Labs, Inc.
[59222.814157] usb 2-4.1.1: SerialNumber: 000000000
[59222.816135] hub 2-4.1.1:1.0: USB hub found
[59222.816286] hub 2-4.1.1:1.0: 4 ports detected