Finding hardware identifier

sktsee sktsee at tulsaconnect.com
Sat May 3 21:14:09 UTC 2008


On Sat, 2008-05-03 at 07:23 -0500, Wade Smart wrote: 
> 20080503 0720 GMT-6
> 
> 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.
> 
> Is there a command to list this information.
> I have a logitech quick cam in my usb port that I would like to get this 
> information on.
> 
> Wade
> 

I would use either lshw, or hwinfo.

Hwinfo gives reasonably detailed information about your hardware and how
it is recognized by the kernel. It's in the universe repository. Here's
an example:

$ hwinfo --cdrom
14: SCSI 100.0: 10602 CD-ROM (DVD)                              
  [Created at block.226]
  UDI: /org/freedesktop/Hal/devices/storage_model_DVD_RW_ND_3550A
  Unique ID: twPO.P8a3SEOFJb1
  Parent ID: 3p2J.e++Y6XyJWV8
  SysFS ID: /block/sr0
  SysFS BusID: 1:0:0:0
  SysFS Device
Link: /devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0
  Hardware Class: cdrom
  Model: "_NEC DVD_RW ND-3550A"
  Vendor: "_NEC"
  Device: "DVD_RW ND-3550A"
  Revision: "1.05"
  Driver: "ata_piix", "sr"
  Driver Modules: "ata_piix"
  Device File: /dev/sr0 (/dev/sg1)
  Device
Files: /dev/sr0, /dev/scd0, /dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0, /dev/cdrom, /dev/cdrw, /dev/dvd, /dev/dvdrw
  Device Number: block 11:0 (char 21:1)
  Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL
  Drive status: no medium
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #5 (IDE interface)
  Drive Speed: 48

lshw provides a subset of what hwinfo presents:

$ sudo lshw --class disk
...
*-cdrom
       description: DVD writer
       product: DVD_RW ND-3550A
       vendor: _NEC
       physical id: 1
       bus info: scsi at 1:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/dvd
       logical name: /dev/scd0
       logical name: /dev/sr0
       version: 1.05
       serial: [_NEC    DVD_RW ND-3550A 1.0505091000
       capabilities: removable audio cd-r cd-rw dvd dvd-r
       configuration: ansiversion=5 status=open

-- 
sktsee





More information about the ubuntu-users mailing list