USB_VERBOSE and vendor-/productnames

Hans Petter Selasky hselasky at c2i.net
Tue Sep 14 12:04:03 UTC 2010


On Tuesday 14 September 2010 02:20:17 Alexander Best wrote:
> hi there,
> 
> a lot of people report issues where usbconfig doesn't show a vendor or
> device name, although an usbdevs entry exists. i found a few replies to
> those reports by hps@ stating that USB_VERBOSE needs to be enabled.
> 
> could anybody explain why? if that option needs to be enabled in order to
> see vendor and device names in usbconfig how come that even without it i
> see most of the vendor and device names with usbconfig:

Hi,

The reason the option is not default, is that the verbose database consume a 
couple of hundred kilobytes.

> 
> ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=SAVE ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=SAVE ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST
> spd=FULL (12Mbps) pwr=SAVE ugen3.1: <EHCI root HUB Intel> at usbus3, cfg=0
> md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: <UHCI root HUB Intel> at
> usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: <UHCI root HUB
> Intel> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: <UHCI
> root HUB Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE
> ugen7.1: <EHCI root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=SAVE ugen3.2: <product 0x2514 vendor 0x0424> at usbus3, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=SAVE ugen1.2: <Dell USB Keyboard Dell> at usbus1,
> cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.3: <Razer 1600dpi Mouse
> Razer> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
> 
> my guess would be that these devices are missing the iManufacturer and/or
> iProduct string, but that's just a wild guess.
> 
> if that is the case wouldn't it be possible to check for a usbdevs entry in
> case one of those strings don't exist and if there's an entry in usbdevs
> use it?
> 
> i think the option USB_VERBOSE is not really accurate in this particular
> case. people who want usbconfig to output the vendor and product name
> actually want less verbosity (i.e. no product/vendor hex ids).

I'm not sure if compiling this information into usbdevs will be any better.

--HPS


More information about the freebsd-usb mailing list