USB webcam not attaching: proposed patch
Hans Petter Selasky
hps at selasky.org
Thu May 21 11:23:47 UTC 2020
On 2020-05-21 12:49, José Pérez via freebsd-multimedia wrote:
> Hi,
> I am trying to have a Logitech webcam work with FreeBSD,
> while audio works ok (has an integrated mic that gets
> identified as uaudio), video does not because it requires
> manual start of webcamd.
>
> I find this annoying (I mean, I know you can add an rc.conf
> entry with webcamd_0_flags, but this is not idiot proof),
> and looked for a way to make it start automatically.
>
> usbconfig reports:
> ...
> bInterfaceClass = 0x000a <CDC-data>
> ...
>
> So I updated webcamd.conf to identify this kind of
> interfaces, as follows:
> --------------------------- CUT ---------------------------
> --- webcamd.conf 2020-05-21 12:42:09.519165000 +0200
> +++ webcamd.conf.orig 2020-05-21 12:41:25.844895000 +0200
> @@ -7,15 +7,6 @@
> action "/usr/local/etc/rc.d/webcamd start $cdev";
> };
>
> -# Vendor specific USB webcams.
> -notify 100 {
> - match "system" "USB";
> - match "subsystem" "INTERFACE";
> - match "type" "ATTACH";
> - match "intclass" "0x0a";
> - action "/usr/local/etc/rc.d/webcamd start $cdev";
> -};
> -
> # Vendor specific USB webcams and DVB devices.
> notify 100 {
> match "system" "USB";
> --------------------------- CUT ---------------------------
>
> This works for me, does anybody knows whether the interface
> class 0x0a is used in others webcams? Can this patch be pushed up?
>
Hi,
The match rule must be narrowed down a bit.
Can you dump the full configuration and device descriptor for this
device? 0x0a is not correct interface class. This will make trouble for
USB ethernet devices.
--HPS
More information about the freebsd-multimedia
mailing list