LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-12-2013, 04:38 AM   #1
johnabraham
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Rep: Reputation: Disabled
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
 
Old 02-12-2013, 05:06 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 02-12-2013, 08:14 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,447
Blog Entries: 54

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
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]"
 
1 members found this post helpful.
Old 02-12-2013, 11:18 AM   #4
johnabraham
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
thanks a lot guys.
 
Old 02-17-2013, 05:17 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,554

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB peripheral device not found on USB OTG port with Linux 3.0.0 kernel lmorda Linux - Embedded & Single-board computer 1 04-28-2012 11:56 AM
A rabbit chewed through a USB cable, overloading USB port. How to reset? GrapefruiTgirl Linux - Hardware 23 12-05-2010 12:00 PM
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
Any problems with USB-port PCMCIA cards and USB Floppy Drives? DreameR-X Linux - Laptop and Netbook 9 05-14-2005 01:37 PM
linux locks up when usb mouse attached to usb port during startup. BGuy891653 Linux - Hardware 0 02-08-2004 05:26 PM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration