Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 13:59:48 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: ugen and devd
Message-ID:  <201011121359.48863.hselasky@c2i.net>
In-Reply-To: <20101112133026.438109f9@davenulle.org>
References:  <20101112133026.438109f9@davenulle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Built-in iSight Apple Inc.> 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  <Apple Inc.>
>   iProduct = 0x0002  <Built-in iSight>
>   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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011121359.48863.hselasky>