Translation(s): English - French - Italiano - Русский

(!) ?Discussion

How to identify a device > USB


How to list and identify the USB devices that are connected to you computer.

/!\ Make sure the device is powered-up and enabled before listing the devices.

Device are mainly identified using a pair of hexadecimal numbers, like 04b3:3108.

See references for more information.

Most of the devices (device-ids) handled by Debian are listed in the page : DeviceDatabase/USB.

Many people simply use lsusb, which is available on almost every Debian system, to list the devices on their computer. Gnome users can install and use the hardinfo method. KDE user can use kinfocenter.

lsusb

lsusb (package:usbutils) is the standard tool to query the connected USB devices.

#lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 006: ID 0a5c:2110 Broadcom Corp.
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

To get something slightly more verbose, but still readable, I use :

#lsusb -v | grep -E '\<(Bus|iProduct|bDeviceClass|bDeviceProtocol)' 2>/dev/null
Bus 005 Device 001: ID 0000:0000
  bDeviceClass            9 Hub
  bDeviceProtocol         1 Single TT
  iProduct                2 EHCI Host Controller
Bus 004 Device 006: ID 0a5c:2110 Broadcom Corp.
  bDeviceClass          224 Wireless
  bDeviceProtocol         1 Bluetooth
  iProduct                2 BCM2045B
  (Bus Powered)
Bus 004 Device 001: ID 0000:0000
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed hub
  iProduct                2 UHCI Host Controller
Bus 001 Device 001: ID 0000:0000
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed hub
  iProduct                2 UHCI Host Controller
Bus 002 Device 001: ID 0000:0000
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed hub
  iProduct                2 UHCI Host Controller
Bus 003 Device 001: ID 0000:0000
  bDeviceClass            9 Hub
  bDeviceProtocol         0 Full speed hub
  iProduct                2 UHCI Host Controller

{i} man lspci(8)

Under Gnome : hardinfo

Gnomes's System Information (Hardinfo in Menu Applications/System Tools, from package:hardinfo) has an information page on the "USB" cards.

hardinfo.png
note the "Vendor" and "Product ID".

Under KDE : KInfocenter

KDE's KInfoCenter (in K Menu / System / KInfoCenter Info Center, from package:kcontrol) has an information page on the "USB" cards.

KInfoCenter.png

discover

The discover package has a nice command too:

discover --vendor-id --model-id usb
0000 0000 unknown unknown
0000 0000 unknown unknown
0a5c 2110 unknown unknown
0000 0000 unknown unknown
0000 0000 unknown unknown
0000 0000 unknown unknown

{i} man (1)discover
{i} discover uses its own files : /lib/discover/usb-busclass.xml, /lib/discover/usb-device.xml, /lib/discover/usb-vendor.xml

Digging by hand

/proc/bus/usb/devices

If lsusb isn't available (!), you can display the contents of /proc/bus/usb/devices to list vendor and device IDs and other technical details:

#use grep to filter important line.
cat /proc/bus/usb/devices | grep -E "^([TSPD]:.*|)$"
T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-4-686 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:1d.7

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-4-686 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.3

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0a5c ProdID=2110 Rev= 1.00
S:  Manufacturer=Broadcom Corp
S:  Product=BCM2045B

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-4-686 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.2

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-4-686 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.1

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-4-686 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.0

References