From owner-freebsd-usb@FreeBSD.ORG Thu Mar 31 07:27:06 2011 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 A7E61106566C for ; Thu, 31 Mar 2011 07:27:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 3B68E8FC16 for ; Thu, 31 Mar 2011 07:27:05 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=oR3+9dOmPeF3nZCt5Gxyvf/bIpfj8bfjGZkkfp/xES8= c=1 sm=1 a=IU0TiZmyZPMA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=HKXC_1Ve92_-8OOvz_IA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 107811301; Thu, 31 Mar 2011 09:27:04 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 31 Mar 2011 09:26:14 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <20110330173032.65721bb9@shibato.opal.com> In-Reply-To: <20110330173032.65721bb9@shibato.opal.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103310926.14184.hselasky@c2i.net> Cc: Subject: Re: webcamd quirkyness 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: Thu, 31 Mar 2011 07:27:06 -0000 On Wednesday 30 March 2011 23:30:32 J.R. Oldroyd wrote: > I'm playing with a built-in webcam here, a Sonix Technology Co CNF9055 > with usb-ID 04f2:b1d6. This ID isn't listed in the webcamd man pages, > but the camera does work... sort of. > > If I run webcamd in the foreground, about 7-8 times out of 10, I get: > Hi, > # /usr/local/sbin/webcamd -d 3.3 -i 0 > Attached ugen3.3[0] to cuse unit 0 > Creating /dev/video0 > Compile the webcamd port with debugging option set. Then use the -s and -m options to enable debugging in the various drivers. > And the video works. Cool! > > But sometimes, about 25% of the time, it hangs at: > > # /usr/local/sbin/webcamd -d 3.3 -i 0 > Attached ugen3.3[0] to cuse unit 0 > > with no creation of the video device. Probably some USB request is hanging. > > If I run it in the background, it fails 100% of the time: > > # /usr/local/sbin/webcamd -B -d 3.3 -i 0 > Attached ugen3.3[0] to cuse unit -1 > # > > which also means it fails to start if webcamd is started from its rc.d > script at boot time. > > Webcamd version is 0.1.23, cuse is 0.1.13. System is 8.2-release amd64. > > ugen3.3: at usbus3, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ef > bDeviceSubClass = 0x0002 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x04f2 > idProduct = 0xb1d6 > bcdDevice = 0x2613 > iManufacturer = 0x0002 > iProduct = 0x0001 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > What other info can I provide to debug this? > > -jr --HPS