-1
我想要一個命令輸出USB端口類型(OHCI,UHCI,EHCI,XHCI,...)和連接到的設備(如果有的話)以及實際速度(HS,FS,SS, ...)的Linux。最好全部在一條線上。如何列出USB端口類型與連接設備的速度?
我想快速瞭解所有設備是否以最高可能的速度運行。
我想要一個命令輸出USB端口類型(OHCI,UHCI,EHCI,XHCI,...)和連接到的設備(如果有的話)以及實際速度(HS,FS,SS, ...)的Linux。最好全部在一條線上。如何列出USB端口類型與連接設備的速度?
我想快速瞭解所有設備是否以最高可能的速度運行。
我剛剛發現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。
SO用於編程問題,而不是關於使用或配置Linux的問題。 SuperUser.com或unix.stackexchange.com會是這樣的問題的更好的地方。 – Barmar
我的問題不在於使用或配置Linux。 –
那麼它是什麼呢?這不是關於你寫的程序,因爲你沒有發佈任何代碼。 – Barmar