From owner-freebsd-multimedia@freebsd.org Wed Mar 25 15:57:22 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 44A182A4E32 for ; Wed, 25 Mar 2020 15:57:22 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.20.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48nXmq34HWz4KNk for ; Wed, 25 Mar 2020 15:56:59 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: by h2.pinyon.org (Postfix, from userid 58) id B106816A8; Wed, 25 Mar 2020 08:48:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1585151287; bh=Rypgh8MKyttwnBHcV75mkyWc4EPJIlzdQ1++7VgMi6M=; h=Subject:To:References:From:Date:In-Reply-To; b=oZS8PITJEKDKdV9NSqCg8EhsEw9R1XD9UqrQO97HjaioyeCmYMtCFd4g39v4z6PYW KXasqmNBn8is76LLfaL4dyhlw/YpUTKOKKVYGscVWZRZeeARVEgbYoC0w0sVpafg12 9ulxUE0jaMsY+Ws/icrjH8vhQDWsnm4kjPl7Y3yY= X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on h2.pinyon.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.4 Received: from [10.0.10.15] (unknown [10.0.10.15]) (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 h2.pinyon.org (Postfix) with ESMTPSA id 35BDB16A2; Wed, 25 Mar 2020 08:48:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pinyon.org; s=DKIM; t=1585151286; bh=Rypgh8MKyttwnBHcV75mkyWc4EPJIlzdQ1++7VgMi6M=; h=Subject:To:References:From:Date:In-Reply-To; b=Swvdo3wbSMZx8cg1Uj+8xxuCBp+bb1P3qsDCCUMAf+4Hf0xWTR9+tLOzT9vyMzPSQ 2c8l7MaPQg/HW4Mf3G6U9lKWZIaBBXIWh4l7Rj4KGPxDv7XWkqWVOFgO/mcBzmdX7w BLWffxkGp3AFur84OQOsUCALu6DIiO0NZi5xJ+4A= Subject: Re: Logitech HD Pro Webcam C920 To: Hans Petter Selasky , freebsd-multimedia@freebsd.org References: <104d42cb-43f4-573c-9a0f-f1892ca40e2f@pinyon.org> From: "Russell L. Carter" Message-ID: Date: Wed, 25 Mar 2020 08:48:05 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48nXmq34HWz4KNk X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=temperror (DNS error when getting key) header.d=pinyon.org header.s=DKIM header.b=oZS8PITJ; dkim=pass header.d=pinyon.org header.s=DKIM header.b=Swvdo3wb; dmarc=none; spf=pass (mx1.freebsd.org: domain of rcarter@pinyon.org designates 65.101.20.170 as permitted sender) smtp.mailfrom=rcarter@pinyon.org X-Spamd-Result: default: False [-5.25 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[pinyon.org:s=DKIM]; URIBL_BLOCKED(0.00)[pinyon.org.multi.uribl.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[pinyon.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[pinyon.org:?,pinyon.org:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.75)[ip: (-9.31), ipnet: 65.101.0.0/18(-4.27), asn: 209(-0.10), country: US(-0.05)]; R_DKIM_TEMPFAIL(0.00)[pinyon.org:s=DKIM]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.101.0.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 15:57:22 -0000 On 2020-03-25 01:02, Hans Petter Selasky wrote: > On 2020-03-24 21:10, Russell L. Carter wrote: >> Greetings, >> >> I have a shiny new Logitech C920S USB webcam which identifies as a >> [-d ugen5.9] vendor-0x046d-HD-Pro-Webcam-C920 -S E0E2DC0F >> when running webcamd as root.  I can't get /dev/video0 created. >> >> I have put in the mandatory 4 hours or so on my own with google and >> the man pages as my helpers, and I think I'm close, but so far >> no joy. >> >> I can get it specifically matched with devd via >> /usr/local/etc/devd/webcamd.conf (though no actions work). >> >> So for example, if I run, as root: >> root@feyerabend> webcamd -d ugen5.9 -N >> vendor-0x046d-HD-Pro-Webcam-C920 -S E0E2DC0F -M 0 >> webcamd: Cannot find USB device >> >> Alternatively: >> >> root@feyerabend> /usr/local/etc/rc.d/webcamd start ugen5.9 >> Attached to ugen5.9[0] >> root@feyerabend> >> >> But no /dev/video0 creation, no running webcamd, nothing in >> /var/log/messages etc. >> >> When I plug in the cam, I get the following in /var/log/messages: >> Mar 24 13:07:56 feyerabend kernel: ugen5.9: > Webcam C920> at usbus5 (disconnected) >> Mar 24 13:08:23 feyerabend kernel: usb_alloc_device: Failure selecting >> configuration index 0:USB_ERR_TIMEOUT, port 4, addr 8 (ignored) >> Mar 24 13:08:23 feyerabend kernel: ugen5.9: > Webcam C920> at usbus5 >> >> Not sure if that long timeout is significant. >> >> Any help is much appreciated. >> > > Try: > > usbconfig -d 5.9 set_config 0 Did this, and I tried a variety of combinations, eg: $ webcamd -d 5.11 -N vendor-0x046d-HD-Pro-Webcam-C920 -S E0E2DC0F -M 0 webcamd: Cannot find USB device (It's at 5.11 now) > > The error message above means your webcam is not working properly. Can > you also show the output from usbconfig. root@feyerabend> usbconfig ugen5.11 dump_all_desc ugen5.11: at usbus5, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x046d idProduct = 0x0892 bcdDevice = 0x0019 iManufacturer = 0x0000 iProduct = 0x0002 iSerialNumber = 0x0001 bNumConfigurations = 0x0001 root@feyerabend> Thanks, Russell > --HPS >