Why are there two usb.ids and pci.ids files on my system?

Asked by Adam Buchbinder

I recently connected a new TomTom ONE 130 GPS device to my laptop; while the device is mounted properly and appears as a mass storage device, the lsusb command doesn't display it.

$ lsusb|grep -v "Device 001" #exclude hubs
Bus 002 Device 003: ID 1390:0001

However, there are two different copies of usb.ids on the system, owned by the hwdata and usbutils packages, respectively.

$ locate usb.ids|xargs ls -l
-rw-r--r-- 1 root root 153943 2008-01-21 11:45 /usr/share/hwdata/usb.ids
lrwxrwxrwx 1 root root 21 2008-08-05 20:56 /usr/share/misc/usb.ids -> /var/lib/misc/usb.ids
-rw-r--r-- 1 root root 171981 2008-02-24 15:21 /var/lib/misc/usb.ids
$ locate usb.ids|xargs dpkg -S
hwdata: /usr/share/hwdata/usb.ids
usbutils: /usr/share/misc/usb.ids
usbutils: /var/lib/misc/usb.ids

Why are there two copies? The hwdata copy carries revision ID 1.230, 2006/12/12, while the usbutils copy carries revision ID 1.285, 2007/10/21. Is there a reason why the same file is distributed twice, under different names? Is this an oversight which should be considered a bug? hwdata says it's only there for kudzu; is it obsolete at this point?

There's a similar situation with pci.ids:

$ locate pci.ids|xargs ls -l
-rw-r--r-- 1 root root 456807 2008-01-21 11:45 /usr/share/hwdata/pci.ids
-rw-r--r-- 1 root root 529991 2008-08-22 19:53 /usr/share/misc/pci.ids
$ locate pci.ids|xargs dpkg -S
hwdata: /usr/share/hwdata/pci.ids
pciutils: /usr/share/misc/pci.ids

I'm running Hardy on the local machine, though the situation is still present in Intrepid.

Additionally, if lsusb isn't displaying my device, which package do I file the bug under?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Guillermo Belli
Solved:
Last query:
Last reply:
Revision history for this message
Best Guillermo Belli (glock24) said :
#1

Not directly answering what you asked, but you could try with a newer usb.ids file, to update it type this command:

sudo update-usbids

It will be downloaded to /var/lib/misc

To update the pci.ids:

sudo update-pciids

It will be downloaded to /usr/share/misc

I'm running Intrepid, and here I only have one of each file, and symlinks pointing to them.

Revision history for this message
Adam Buchbinder (adam-buchbinder) said :
#2

Hm. Well, I suppose that I don't actually need that hwdata package installed, and running the update-{pci,usb}ids scripts gets me the newest versions, which include my GPS device. Good enough for me. Thanks!

Revision history for this message
Adam Buchbinder (adam-buchbinder) said :
#3

Thanks Guillermo Belli, that solved my question.

Revision history for this message
Guillermo Belli (glock24) said :
#4

Good to hear that. Enjoy your Ubuntu.