From owner-freebsd-usb@FreeBSD.ORG Fri Nov 12 12:58:48 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 4455C106566C for ; Fri, 12 Nov 2010 12:58:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id C5D818FC1B for ; Fri, 12 Nov 2010 12:58:47 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=NpqMJV8o276tPQQ85h4A:9 a=haFmZ0II-M9V3sDQct-Or8ROneoA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 48945622; Fri, 12 Nov 2010 13:58:45 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 12 Nov 2010 13:59:48 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101112133026.438109f9@davenulle.org> In-Reply-To: <20101112133026.438109f9@davenulle.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: <201011121359.48863.hselasky@c2i.net> Cc: Subject: Re: ugen and devd 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: Fri, 12 Nov 2010 12:58:48 -0000 On Friday 12 November 2010 13:30:26 Patrick Lamaiziere wrote: > (8.1-STABLE/i386) > > Hello, > > I'm playing with the built-in camera of my laptop. > > Using usbconfig, if I issue a power_off and then a power_on on the > device, I don't have any ugen device attached. > > Is it normal? > > # usbconfig -u 6 -a 2 dump_device_desc > ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ef > bDeviceSubClass = 0x0002 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x05ac > idProduct = 0x8502 > bcdDevice = 0x0155 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <9063CC366CC23E8C (03.00)> > bNumConfigurations = 0x0001 > > # usbconfig -u 6 -a 2 power_off > devd => > !system=DEVFS subsystem=CDEV type=DESTROY cdev=usb/6.2.2 > !system=DEVFS subsystem=CDEV type=DESTROY cdev=usb/6.2.1 > > # usbconfig -u 6 -a 2 power_on > devd=> > ? at bus=1 hubaddr=4 port=6 devaddr=2 interface=0 vendor=0x05ac > product=0x8502 devclass=0xef devsubclass=0x02 sernum="9063CC366CC23E8C > (03.00)" release=0x0155 intclass=0x0e intsubclass=0x01 on uhub6 > > and in the console: > Unknown USB device: vendor 0x05ac product 0x8502 bus uhub6 > > When I boot the laptop ugen6.2 is attached and works fine with webcamd. Yes, this is normal. You need to reboot the computer or reset the parent HUB of your device to recover the device. --HPS