From owner-freebsd-usb@FreeBSD.ORG Wed Mar 30 21:56:42 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 13A761065670 for ; Wed, 30 Mar 2011 21:56:42 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71]) by mx1.freebsd.org (Postfix) with ESMTP id B94C28FC19 for ; Wed, 30 Mar 2011 21:56:41 +0000 (UTC) Received: from pool-141-154-217-103.bos.east.verizon.net ([141.154.217.103] helo=homobox.opal.com) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q52fS-000P9O-WC for freebsd-usb@freebsd.org; Wed, 30 Mar 2011 21:11:07 +0000 Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.4/8.14.4) with ESMTP id p2ULUZGn083513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 30 Mar 2011 17:30:37 -0400 (EDT) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([173.77.113.38] helo=shibato.opal.com) with IPv4:587 by opal.com; 30 Mar 2011 17:30:35 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 141.154.217.103 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/fCDStshC5VINVbV7YEN4c Date: Wed, 30 Mar 2011 17:30:32 -0400 From: "J.R. Oldroyd" To: freebsd-usb@freebsd.org Message-ID: <20110330173032.65721bb9@shibato.opal.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: 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: Wed, 30 Mar 2011 21:56:42 -0000 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: # /usr/local/sbin/webcamd -d 3.3 -i 0 Attached ugen3.3[0] to cuse unit 0 Creating /dev/video0 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. 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