Score:0

How to check what speed a USB device is trained to?

in flag

What command or where in Ubuntu can you check the speed that USB devices are trained? Not the capability of the USB device but the actual trained speed of the current link.

For example we I plug in a USB3.1 Gen2 (10Gbps) hub to my desktop but the signal integrity is bad (to much insertion loss from a long cable) the hub trains at USB3.1 Gen (5Gbps) instead of Gen2

core avatar
in flag
Thanks for asking, I have added an example. I want to know where I can find the trained speed in the example.
sudodus avatar
jp flag
Maybe you want a test method. A simple method is included in Disks alias `gnome-disks`. See [this link](https://unix.stackexchange.com/questions/41339/how-to-check-test-internal-card-reader-speed/552967#552967).
Score:5
zw flag

You have to run lsusb -t to get full tree of USB hubs.
Below is the example from my USB 3.0 capable laptop:

$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
   |__ Port 2: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
   |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
   |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
   |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
       |__ Port 5: Dev 126, If 0, Class=Video, Driver=, 12M
       |__ Port 5: Dev 126, If 1, Class=Video, Driver=, 12M
       |__ Port 6: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
       |__ Port 6: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
   |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
       |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M

Above you can see 5000M hub port with USB 3.0 device - USB 3.0 flash.
Also there are slower devices with 480M and 12M speeds.

core avatar
in flag
Thanks this is what I am looking for. The speed shown is the speed that the USB py actually trained to.
Score:3
in flag

The command sudo lsusb -v lists significant information about connected devices including speed capability. (Although I'm not sure if it lists actual speed.)

The sudo usbview command is a graphical browser, and one of the top items in its list seems to be the current speed of a device.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.