LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   How to verify which USB port is USB version 2 or 3 (http://www.linuxquestions.org/questions/showthread.php?t=4175449786)

johnabraham 02-12-2013 04:38 AM

How to verify which USB port is USB version 2 or 3
 
Hi guys

I want to verify all the USB port version whether it is USB 2 or USB 3 on CentOS5. how can i check it?

thanks

shivaa 02-12-2013 05:06 AM

After connecting USB to your system, invoke,
Code:

~$ dmesg | grep -i 'usb'
Also check manual of your machine, as it should have details of various USB ports and what version of USB they support.

unSpawn 02-12-2013 08:14 AM

Apparently USB 1.x uses OHCI or UHCI, 2.0 uses EHCI and 3.0 the XHCI kernel module:
Code:

lspci -v | egrep -e "USB.[1-3]\.[0,1]"

johnabraham 02-12-2013 11:18 AM

thanks a lot guys.

lleb 02-17-2013 05:17 PM

question about the outputs. on my older box it only has USB1.1 and USB2.0 ports, no 3.0 on this rig. unSpawn, why would yours not show the difference between the 1 and 2? should i have placed a space between 3]\.[ so 3]\ .[

sorry im a bit slow on this, but if i enterprit your egrep correctly it is looking for USB.<any number between 1 and 3 to include both those numbers> then a .0 or .1 so it should be looking for USB.1.1 or USB.2.0 or USB.3.0 am i correct?

Code:

[root@centos ~]# dmesg | grep -i 'usb'
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32-279.22.1.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: 0000:00:02.1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32-279.22.1.el6.x86_64 ohci_hcd
usb usb2: SerialNumber: 0000:00:02.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
usb 1-2: new high speed USB device number 2 using ehci_hcd
usb 1-2: New USB device found, idVendor=1e3d, idProduct=4082
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: Flash Disk
usb 1-2: Manufacturer: ChipsBnk
usb 1-2: SerialNumber: 013244704081
usb 1-2: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi10 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb 1-2: USB disconnect, device number 2
[root@centos ~]# lspci -v | egrep "USB.[1-3]\.[0,1]"
[root@centos ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



All times are GMT -5. The time now is 11:51 PM.