Finding hardware identifier

NoOp glgxg at sbcglobal.net
Sat May 3 19:17:23 UTC 2008


On 05/03/2008 06:09 AM, Nils Kassube wrote:
> Wade Smart wrote:
>> Im was reading in the Ubuntu forums about tweaking my web cam and they
>> keep talking about this hardware identifier. As an example:
>> Vender Name		VenderID 	Product	ID
>> Logitech 	48 	0x046d 		0x0890
>>
>> But none of these posts every say how they find this out.
> 
> In a terminal type this command:
> 
> lsusb
> 
> Then look for the line which seems to be the device in question. Another 
> option would be to compare the output of the lsusb command with and 
> without the device plugged in. The line which has changed is for the 
> device in question.
> 
> 
> Nils
> 

Adding to that; after you've found the device, you can then use the
verbose mode to show you more info on the device itself. Example:

$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 09da:0006 A4 Tech Co., Ltd Optical Mouse WOP-35 /
Trust 450L Optical Mouse
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

So I want to see the added info on the mouse (Bus 001 Device 002: ID
09da:0006), so I ask for the verbose output of the device on Bus 002:

~$ lsusb -s 002 -v

Bus 001 Device 002: ID 09da:0006 A4 Tech Co., Ltd Optical Mouse WOP-35 /
Trust 450L Optical Mouse
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x09da A4 Tech Co., Ltd
  idProduct          0x0006 Optical Mouse WOP-35 / Trust 450L Optical Mouse
  bcdDevice            0.01
  iManufacturer           1 A4Tech
  iProduct                2 USB Optical Mouse
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3 HID-Compliant Mouse
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      52
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)







More information about the ubuntu-users mailing list