From owner-freebsd-multimedia@freebsd.org Thu May 21 11:23:47 2020 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7C58E2CA7CD for ; Thu, 21 May 2020 11:23:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49SS1H1ZjHz4pNk for ; Thu, 21 May 2020 11:23:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id 33FEA2CAB40; Thu, 21 May 2020 11:23:47 +0000 (UTC) Delivered-To: multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 32AF02CAC22 for ; Thu, 21 May 2020 11:23:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49SS1G0BzSz4pRB for ; Thu, 21 May 2020 11:23:45 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1ED5E2601DC; Thu, 21 May 2020 13:23:38 +0200 (CEST) Subject: Re: USB webcam not attaching: proposed patch To: =?UTF-8?B?Sm9zw6kgUMOpcmV6?= , multimedia@freebsd.org References: <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net> From: Hans Petter Selasky Message-ID: Date: Thu, 21 May 2020 13:23:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 49SS1G0BzSz4pRB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.05 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-0.81)[-0.808]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-0.90)[-0.901]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.04)[-0.038]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2020 11:23:47 -0000 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  > ... > > 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