Date: Thu, 21 May 2020 13:23:24 +0200 From: Hans Petter Selasky <hps@selasky.org> To: =?UTF-8?B?Sm9zw6kgUMOpcmV6?= <fbl@aoek.com>, multimedia@freebsd.org Subject: Re: USB webcam not attaching: proposed patch Message-ID: <a86d2328-0571-7be4-cf18-7b2241bef1a5@selasky.org> In-Reply-To: <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net> References: <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a86d2328-0571-7be4-cf18-7b2241bef1a5>