Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: carlosalvatore on 12 March 2018, 01:50:14

Title: lsusb not showing hwids info [solved]
Post by: carlosalvatore on 12 March 2018, 01:50:14
Hi everyone,

I'm been having this issue since from the start with Artix. When I execute lsusb (both as normal user or as superuser), the information regarding Bus and Device sections is presented as it should, also the vendor and device IDs are OK; however, there is no description displayed.

It currently shows:
Code: [Select]
$ lsusb
Bus 009 Device 001: ID 1d6b:0001 
Bus 004 Device 001: ID 1d6b:0002 
Bus 008 Device 001: ID 1d6b:0001 
Bus 007 Device 001: ID 1d6b:0001 
Bus 001 Device 003: ID 534d:0021 
Bus 001 Device 001: ID 1d6b:0002 
Bus 006 Device 003: ID 0a12:0001 
Bus 006 Device 001: ID 1d6b:0001 
Bus 005 Device 001: ID 1d6b:0001 
Bus 003 Device 002: ID 125f:a15a 
Bus 003 Device 001: ID 1d6b:0003 
Bus 002 Device 002: ID 2109:0811 
Bus 002 Device 001: ID 1d6b:0002

when it is supposed to show something like this:
Code: [Select]
$ lsusb
Bus 009 Device 001: ID 1d6b:0001  Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002  Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001  Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001  Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 534d:0021 
Bus 001 Device 001: ID 1d6b:0002  Linux Foundation 2.0 root hub
Bus 006 Device 003: ID 0a12:0001  Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 006 Device 001: ID 1d6b:0001  Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001  Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 125f:a15a  A-DATA Technology Co., Ltd.  DashDrive Durable HD710 portable HDD various size
Bus 003 Device 001: ID 1d6b:0003  Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 2109:0811  VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002  Linux Foundation 2.0 root hub

I've manually found the information in /usr/share/hwdate/usb.ids, so it is there; yet, lsusb is not using it and I don't know how to force it to it.

Any help will be really appreciated.

Regards.
Title: Re: lsusb not showing hwids info
Post by: robin0800 on 12 March 2018, 02:04:52
lsusb -t or lsusb -v or if you really want to know lsusb -h
Title: Re: lsusb not showing hwids info
Post by: carlosalvatore on 12 March 2018, 02:22:36
lsusb -t or lsusb -v or if you really want to know lsusb -h

Hi,

the flags you mention provide different output from the expected. For instance.
Code: [Select]
$ lsusb -t
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
    |__ Port 2: Dev 3, If 0, Class=, Driver=btusb, 12M
    |__ Port 2: Dev 3, If 1, Class=, Driver=btusb, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/3p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 3: Dev 3, If 0, Class=, Driver=usb-storage, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M

Title: Re: lsusb not showing hwids info
Post by: nous on 12 March 2018, 10:02:06
I'm been having this issue since from the start with Artix. When I execute lsusb (both as normal user or as superuser), the information regarding Bus and Device sections is presented as it should, also the vendor and device IDs are OK; however, there is no description displayed.

I've manually found the information in /usr/share/hwdate/usb.ids, so it is there; yet, lsusb is not using it and I don't know how to force it to it.

Show us the output of
Code: [Select]
alias | grep usb
and
Code: [Select]
pacman -Qi usbutils
Title: Re: lsusb not showing hwids info
Post by: fungalnet on 12 March 2018, 12:45:56
on usbutils there are several utils, lsusb is one of them.
$ usb-devices

Provides plenty of data.

There is an admin tool also
$ sudo /usr/bin/usbhid-dump --help
Title: Re: lsusb not showing hwids info
Post by: carlosalvatore on 12 March 2018, 20:43:46
Hi,
Code: [Select]
$ alias | grep usb

shows nothing, and
Code: [Select]
$ pacman -Qi usbutils
Name            : usbutils
Version         : 009-1
Description     : USB Device Utilities
Architecture    : x86_64
URL             : http://linux-usb.sourceforge.net/
Licenses        : GPL
Groups          : base
Provides        : None
Depends On      : libusb  hwids
Optional Deps   : python2: for lsusb.py usage [installed]
                  coreutils: for lsusb.py usage [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 283.00 KiB
Packager        : Artix Build Bot
Build Date      : Sat 25 Nov 2017 02:18:44 PM CST
Install Date    : Tue 28 Nov 2017 10:11:56 PM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : SHA-256 Sum

Title: Re: lsusb not showing hwids info
Post by: fungalnet on 14 March 2018, 04:22:45
on usbutils there are several utils, lsusb is one of them.
$ usb-devices

Provides plenty of data.

Title: Re: lsusb not showing hwids info
Post by: alex-s on 14 March 2018, 19:36:49
I've manually found the information in /usr/share/hwdate/usb.ids, so it is there; yet, lsusb is not using it and I don't know how to force it to it.

Current (009) version of lsusb relies completely on udevd to provide vendor and device strings. eudevd gets the strings from hwdb, not from usb.ids.
Check /usr/lib/udev/hwdb.d/ for *usb* files, and /run/udev/data/+usb* for ID_VENDOR_FROM_DATABASE keys.
Title: Re: lsusb not showing hwids info
Post by: carlosalvatore on 19 March 2018, 20:21:52
Hi, again!

Well, the files are there too:
Code: [Select]
$ find /usr/lib/udev/hwdb.d/ -name *usb* -type f
/usr/lib/udev/hwdb.d/20-usb-classes.hwdb
/usr/lib/udev/hwdb.d/20-usb-vendor-model.hwdb

$ find /run/udev/data/ -name *usb* -type f
/run/udev/data/+usb:6-2:1.0
/run/udev/data/+usb:6-2:1.1
/run/udev/data/+usb:2-1:1.0
/run/udev/data/+usb:8-0:1.0
/run/udev/data/+usb:2-0:1.0
/run/udev/data/+usb:9-0:1.0
/run/udev/data/+usb:7-0:1.0
/run/udev/data/+usb:6-0:1.0
/run/udev/data/+usb:3-0:1.0
/run/udev/data/+usb:1-0:1.0
/run/udev/data/+usb:4-0:1.0
/run/udev/data/+usb:5-0:1.0

What should I do now?

Regards.
Title: Re: lsusb not showing hwids info [solved]
Post by: carlosalvatore on 19 March 2018, 20:28:20
After doing some more research, I found this:
Code: [Select]
udevadm --debug hwdb --update
and voilĂ , it worked properly.
Code: [Select]
$ lsusb
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 013: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 2109:0811 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks to everyone who tried to assist me.
Best regards.