Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2021 17:41:27 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Jakob Alvermark <jakob@alvermark.net>, Steve Wills <steve@mouf.net>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: webcamd not started automatically
Message-ID:  <3f349e76-6b86-1a62-8c94-3ccecd88c736@selasky.org>
In-Reply-To: <7735a26c-198f-d2b3-3698-2d8274d179d6@alvermark.net>
References:  <69de9fde-4c3f-f909-359c-0156767b121c@alvermark.net> <8709cf86-0439-e3c8-a416-6c68c577939d@selasky.org> <2577c0ad-00aa-5da8-ab7f-98672c598674@alvermark.net> <037d398c-e6d0-f805-b5da-9c6a7ab6e097@mouf.net> <cc93dd95-0d9c-0f51-f1fc-e6f7fc0cc588@alvermark.net> <e74e6eb0-23f1-e68a-00df-a03557418645@selasky.org> <31d7c2f5-6d20-743e-f7d1-e735234f938f@alvermark.net> <27537651-0715-fe00-d583-4077735e694f@selasky.org> <7735a26c-198f-d2b3-3698-2d8274d179d6@alvermark.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/20/21 5:09 PM, Jakob Alvermark wrote:
> On 2/20/21 5:00 PM, Hans Petter Selasky wrote:
>> On 2/20/21 3:33 PM, Jakob Alvermark wrote:
>>> # service webcamd start ugen1.7
>>> webcamd 19267 - - Attached to ugen1.7[0]
>>> # ls /var/run/webcamd.*
>>> /var/run/webcamd.1.7.0.pid    /var/run/webcamd.2.4.0.pid
>>> # cat /var/run/webcamd.1.7.0.pid
>>
>> It might be something in the devd script which only starts the one 
>> webcam. Can you dump the USB device descriptor for both webcams?
>>
>> usbconfig -d X.Y dump_device_desc
>>
>> Where X.Y are the numbers after ugen.
>>
> $ usbconfig -d 1.7 dump_device_desc
> ugen1.7: <vendor 0x046d product 0x0825> at usbus1, cfg=0 md=HOST 
> spd=HIGH (480Mbps) pwr=ON (500mA)
> 
>    bLength = 0x0012
>    bDescriptorType = 0x0001
>    bcdUSB = 0x0200
>    bDeviceClass = 0x00ef  <Miscellaneous device>
>    bDeviceSubClass = 0x0002
>    bDeviceProtocol = 0x0001
>    bMaxPacketSize0 = 0x0040
>    idVendor = 0x046d
>    idProduct = 0x0825
>    bcdDevice = 0x0012
>    iManufacturer = 0x0000  <no string>
>    iProduct = 0x0000  <no string>
>    iSerialNumber = 0x0002  <AE73A920>
>    bNumConfigurations = 0x0001
> 
> $ usbconfig -d 2.4 dump_device_desc
> ugen2.4: <Chicony Electronics Co.,Ltd. Integrated Camera> at usbus2, 
> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
> 
>    bLength = 0x0012
>    bDescriptorType = 0x0001
>    bcdUSB = 0x0201
>    bDeviceClass = 0x00ef  <Miscellaneous device>
>    bDeviceSubClass = 0x0002
>    bDeviceProtocol = 0x0001
>    bMaxPacketSize0 = 0x0040
>    idVendor = 0x04f2
>    idProduct = 0xb681
>    bcdDevice = 0x6926
>    iManufacturer = 0x0003  <Chicony Electronics Co.,Ltd.>
>    iProduct = 0x0001  <Integrated Camera>
>    iSerialNumber = 0x0002  <6926>
>    bNumConfigurations = 0x0001
> 

Also dump the configuration descriptor:

usbconfig -d X.Y dump_curr_config_desc

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3f349e76-6b86-1a62-8c94-3ccecd88c736>