当前位置: 首页>>技术问答>>正文


如何确定我的系统是否有USB 3.0端口?

,

问题描述

我想买一个外置USB 3.0驱动器,我想知道如何弄清楚我的笔记本电脑是否有这样的端口(或只有2.0)。

lsusb -v/proc/bus/input/devices都没有提供任何明显的提示,尽管前者说很多2.0 root hub可能意味着v2而不是v3。对?

最佳解决办法

lsusb会显示内核是否支持usb 3.0。

对比这个non-USB3系统:

$ lsusb 
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1210:2604 DigiTech 
Bus 002 Device 003: ID 0a5c:219c Broadcom Corp. 

有了这个,它支持USB3:

$ lsusb 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 08ff:168b AuthenTec, Inc. 
Bus 001 Device 004: ID 04f2:b1d6 Chicony Electronics Co., Ltd 
Bus 002 Device 015: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth

USB3具有“3.0根集线器”。

也就是说,我同意确定您的硬件是否为USB3的最佳方法是查看端口本身; USB3通常是color-coded并且是蓝色的,并且有一些额外的导体(但是有点难以看到)。如果USB 3.0端口不是蓝色,你很可能会在旁边看到短语”SS”,如下所示:

usb,ubuntu

次佳解决办法

USB 3端口为蓝色。只需看看笔记本电脑上的端口即可。如果它们不是蓝色,则它们不是USB 3端口。可能有一些终端命令来确定这一点,但只是目视检查端口将是最简单的。

编辑:匿名用户建议一个有用的编辑被拒绝,但我认为这是有帮助的,因为它证明我的答案不是100%正确。我将在下面逐字复制并希望它证明有用:

I have read many places that the UBS 3.0 ports are blue, but that is not true in my experiences. I have a Dell Latitude E6430 that does have two 2.0 USB ports and two 3.0 USB ports. They are labeled with the above mentioned SS marking, but there is no blue parts of any kind visible from the outside of the laptop.

I have been researching this subject for a bit and I’m seeing the, sometimes condescending, but not in this case, comments about just looking. They are not always blue and as a matter of fact I’m a software test engineer and I work with numerous computers through the day and I have yet to find one where the port had any blue showing externally. I have seen a device with some blue but not the computer port.

Thanks for listening!

第三种解决办法

USB主机控制器是PCI设备,因此您可以使用lspci查看它们。寻找USB3的’xHCI’:

$ lspci | grep USB
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)

lsusb -t还将显示任何xhci控制器或集线器:

$ lsusb -t | grep xhci
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M

运行速度显示在每行的末尾。 USB3应该是5000M。

第四种办法

您应该能够通过使用UsbView等程序找到答案,该程序提供了非常详细的技术信息。正如github site所述,

USBView is a small GTK application to show what the device tree of the USB bus looks like. It shows…the topology of the USB bus. It also displays information on each individual device on the bus.

它最近是updated,编译和运行简单。这是怎么做的:

首先安装一些基本程序和gtk依赖项

sudo apt-get install git build-essential libgtk2.0-dev libgtk-3-dev

然后输入

git clone git://github.com/gregkh/usbview.git

cdusbview文件夹并运行

./autogen.sh && ./configure

然后

make

您可以根据使用情况运行sudo make installsudo checkinstall

运行程序时,您需要使用gksudo,因为它会进行探测:

gksudo usbview

您将看到下面的屏幕截图,详细说明您的USB功能:列出的主机控制器将显示您拥有的功能:我没有usb 3主机控制器。

usb,ubuntu

第五种办法

如果lsusb的输出显示具有不同USB通信的端口,并且您在将每条线路与机器的相应USB端口匹配时遇到问题,请尝试以下操作:在相关端口插入 memory 棒。然后运行lsusb -t并查找短语”Mass Storage”。此节点的父节点对应于您插入 memory 棒的USB端口。正如Bain所说,该行末尾的传输速度告诉你USB版本(USB 1是12M,USB 2是480M,USB 3是我机器上的5000M)。

(对不起,我试着给贝恩的回答添加评论,但我没有足够的声誉。)

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1450.html,未经允许,请勿转载。