From owner-freebsd-usb@FreeBSD.ORG Tue Sep 14 12:04:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6097910656AB; Tue, 14 Sep 2010 12:04:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id BDA958FC36; Tue, 14 Sep 2010 12:04:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=mP0fIXPs66IAoGKMhYEg+JOAm42C+ILCAHtGwqW+990= c=1 sm=1 a=r3edfxhs0h0A:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=GWGI_bcx_1NSPwfQ2S0A:9 a=qR3YipdA7okdkx1t8PhPsUPJ5XAA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 21221611; Tue, 14 Sep 2010 14:03:26 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 14 Sep 2010 14:00:00 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100914002017.GA97489@freebsd.org> In-Reply-To: <20100914002017.GA97489@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009141400.00427.hselasky@c2i.net> Cc: Alexander Best Subject: Re: USB_VERBOSE and vendor-/productnames X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2010 12:04:03 -0000 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: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=SAVE ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=SAVE ugen3.1: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.1: at > usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: Intel> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: root HUB Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=SAVE ugen3.2: at usbus3, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, > cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.3: 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