2017-08-17 79 views
-1

我想要一个命令输出USB端口类型(OHCI,UHCI,EHCI,XHCI,...)和连接到的设备(如果有的话)以及实际速度(HS,FS,SS, ...)的Linux。最好全部在一条线上。如何列出USB端口类型与连接设备的速度?

我想快速了解所有设备是否以最高可能的速度运行。

+0

SO用于编程问题,而不是关于使用或配置Linux的问题。 SuperUser.com或unix.stackexchange.com会是这样的问题的更好的地方。 – Barmar

+0

我的问题不在于使用或配置Linux。 –

+0

那么它是什么呢?这不是关于你写的程序,因为你没有发布任何代码。 – Barmar

回答

0

我刚刚发现USB Port Speed Linux和解决方案lsusb -t(之前我不知道,因为它记录不准确)。以下是一个输出示例:

> lsusb -t 
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M 
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M 
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M 
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M 
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M 
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M 
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M 
    |__ Port 3: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 480M 
    |__ Port 6: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M 
     |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M 
     |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M 
     |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M 
     |__ Port 4: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M 
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M 

也指https://askubuntu.com/questions/598022/how-to-find-usb-hub-speed