Date: Tue, 14 Sep 2010 20:25:46 +0000 From: Alexander Best <arundel@freebsd.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB_VERBOSE and vendor-/productnames Message-ID: <20100914202546.GA80216@freebsd.org> In-Reply-To: <201009141400.00427.hselasky@c2i.net> References: <20100914002017.GA97489@freebsd.org> <201009141400.00427.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. ah i understand. indeed that's a good reason. > > > > > 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. also i've been wondering why freebsd keeps its own set of a usb device db? the databse at http://www.linux-usb.org/usb-ids.html seems very active. can't we just use a script to create usbdevs from that db? that's how pci ids are mapped to vendors/products on freebsd (see http://www.mail-archive.com/freebsd-current@freebsd.org/msg124948.html). cheers. alex > > --HPS -- a13x
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100914202546.GA80216>