Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5719 closed enhancement (fixed)

usbutils-008

Reported by: Fernando de Oliveira Owned by: bdubbs@…
Priority: normal Milestone: 7.7
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Change History (12)

comment:1 by Fernando de Oliveira, 9 years ago

Owner: changed from blfs-book@… to Fernando de Oliveira
Status: newassigned

comment:2 by Fernando de Oliveira, 9 years ago

At first sight, 5 minutes of work, but..

his is a very difficult one. Systemd strikes again?

https://lkml.org/lkml/2014/10/21/771

...
It's been over a year since the 007 release, and a bunch of small
bugfixes have piled up, along with a much larger change of now using the
hwdb instead of the old usb.ids file (a patch which almost all distros
using systemd have been shipping for a while), so it's time for a new
release.
...

Particularly, it means not installing usb.ids nor update-usbids.

Bad result is that I only get

$ lsusb
Bus 001 Device 003: ID 0e0f:0002  
Bus 001 Device 002: ID 0e0f:0003  
Bus 001 Device 001: ID 1d6b:0001  

While previously we had:

$ lsusb
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

By hwdb, Arch Linux seems to think about

https://www.archlinux.org/packages/core/any/hwids/

But this only installs usb.ids and pci.ids.

First problem, a new package? Not necessarily, couçd just be extra download.

Second problem if installing both ids, it overwrites the ones by pciutils.

Third problem, I couldn't make lsusb grab the descriptors from hwids.

comment:3 by Fernando de Oliveira, 9 years ago

It is difficult, but I will try a first version of both: usbutils and ne package hwids. New ticket for the latter: #5724.

comment:4 by Fernando de Oliveira, 9 years ago

Almost fixed at r14706.

Leaving open until we finish the discussion about #5724.

comment:5 by Fernando de Oliveira, 9 years ago

Bruce, script lsusb.py needs python2 at runtime.

BTW, I wrote:

lsusb.py      is a more human and limited form of lsusb.

In the script, we have:

# lsusb.py
# Displays your USB devices in reasonable form.

Perhaps, what I wrote could be modified.

Finally, using

lsusb.py usage

or

lsusb.py -h

gives the options. Particularly interesting is the last sentence of the help output:

Use lsusb.py -ciu to get a nice overview of your USB devices.

What do you think, some comments in the page?

Shall I do them, or you will do together with hwids?

comment:6 by Fernando de Oliveira, 9 years ago

Some fixes described above done at r14710.

comment:7 by bdubbs@…, 9 years ago

Owner: changed from Fernando de Oliveira to bdubbs@…
Status: assignednew

I'll take a look and update as needed.

comment:8 by bdubbs@…, 9 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 14722.

comment:9 by Fernando de Oliveira, 9 years ago

Bruce, thanks for solving this.

You missed the command "udevadm hwdb --update". Was it intentional? Any problem if I add it to the Configuration section?

If the user needs wget, is it required option?

comment:10 by Fernando de Oliveira, 9 years ago

OK, just seen LFS commit 10779.

So, just left the question about adding wget as required for configuration. If you agree and don't have time I can do it.

comment:11 by bdubbs@…, 9 years ago

Go ahead if you want. It's really optional. Only those using the py version need it.

comment:12 by Fernando de Oliveira, 9 years ago

Done at r14731.

Note: See TracTickets for help on using tickets.