On Tue Sep 14 10, Hans Petter Selasky wrote:
> 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.

does "usbdevs" actually get compiled into the kernel if USB_VERBOSE has been
defined? that would explain the extra size. why not do it like the pci
database? simply add usbdevs to /usr/share/misc and look for entries in that
file for each request.


> > 
> > 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

freebsd-usb@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to