From owner-freebsd-multimedia@freebsd.org Thu May 21 10:50:12 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 CBB3C2C9342 for ; Thu, 21 May 2020 10:50:12 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49SRGX3zKRz4lDd for ; Thu, 21 May 2020 10:50:12 +0000 (UTC) (envelope-from fbl@aoek.com) Received: by mailman.nyi.freebsd.org (Postfix) id 887A72C9341; Thu, 21 May 2020 10:50:12 +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 8843C2C92B2 for ; Thu, 21 May 2020 10:50:12 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (mail.yourbox.net [IPv6:2001:41d0:1:767d::1]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.yourbox.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49SRGW1KNWz4lRT for ; Thu, 21 May 2020 10:50:10 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail.yourbox.net (8.15.2/8.15.2) with ESMTP id 04LAo36Q089442 for ; Thu, 21 May 2020 12:50:03 +0200 (CEST) (envelope-from fbl@aoek.com) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 21 May 2020 12:49:58 +0200 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: multimedia@freebsd.org Subject: USB webcam not attaching: proposed patch Message-ID: <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net> X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.2.0 X-Rspamd-Queue-Id: 49SRGW1KNWz4lRT X-Spamd-Bar: - X-Spamd-Result: default: False [-1.97 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[aoek.com:s=mailbox]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.93)[-0.927]; DKIM_TRACE(0.00)[aoek.com:+]; DMARC_POLICY_ALLOW(-0.50)[aoek.com,reject]; NEURAL_HAM_SHORT(-0.31)[-0.315]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(1.25)[subject]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; RCVD_COUNT_TWO(0.00)[2] 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 10:50:12 -0000 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? Thank you. BR, -- José Pérez