From nobody Mon Jul 20 15:35:40 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h3l352jykz6m83s for ; Mon, 20 Jul 2026 15:35:45 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h3l352BvFz3CHd; Mon, 20 Jul 2026 15:35:45 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784561745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NoAY1WVvLmNb76dkJe7uewcYF4QeRm8inSujJGk/7E4=; b=xdUZyQ1eargZl2igQ2FfqUSxDP3ExiiAOZIE8z89ZO/tGoycbWXHjZjWLsfniqMyt+PkZa dfU8qvlAthvMCsUyTcnbzE+iC7lun6K1vXq945WhMZ4w/9aEseHcueQdqfnankBr+QJdlc 2ghvxMKx7bHxKP4cy/ERW/moF8bZGCgXjGlKubzDBSfKmnSTq3lBBKE/FmUCCIK9AMDJrN SACvuWm1+b9eISzQD1hoBsMBbGtTZDsGC5mBEnCkGfDpOIJZDTKz34nIYvC2T4pSoiwbcL 9y/m8/E9/gpRPYA6nlur7ax8GUzcY2IY9/x5cm81osAxwFClXkoHVOemCX3oEg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784561745; a=rsa-sha256; cv=none; b=IDqX8EDtoY0HEN5zoW5fDhngOacDZ+hlZRPoyTjMxKZeMLl5iNWdzvF8IFMr53GbBCE7C3 5T38UDweOmdff7pbAExy1X2TVRHu65fTRJ/SwFG8Aaa5j5rGV7622lGzCXr2mZc9MI2QFw +vKXXZOyrElPXrvcdLOaJyqSYdqIjEWt+En5Dp/swk2K0VQ24gVBtLx72vryUATIiOzsiG IcF3jL1m7dp0urFmhfBXU9Kjc36aSl+gPB1jZMBsvgnOuiq81On0i0VvBn6vc3T5MP6WF3 cYPcHS71IpPd/SA9FV5WsAaFuxR/xvHtCNbCze/F/jtHPyuaXyMtGaweyWWFyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784561745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NoAY1WVvLmNb76dkJe7uewcYF4QeRm8inSujJGk/7E4=; b=xsPQbjcMUxAreFpWO01HAQVbbpTLwgvRVPKaYVao5Dk7i5pdFC60AWbIUmpvXHLz3JyPTT YAh79kaLIXnsySqCgSCjPRUnQs4RIb0rKJczKRKZxZ7PsbDCihvXLhA/w/pjlzIILHOx+W /sq/OJSoPXEA67+M7ShA93LZLtPodr9EchrHmrM/7ojYvlRUhDIfblyrFWam584Cy33TZS J0n3+Jx+VrwCfaG9cEIXbAJeKAdB1Q2H5DiESHk3M+e+V9OGgdORCsey1tC3mdfGKPpgSm FxChGHuUfEPA6LHVNIhZX1Y52ghO2qH8l6O67ee9iZ4ht/IBo4BLAFvjSVA5Vg== Received: from b.nours.eu (b.nours.eu [IPv6:2001:41d0:303:5e39::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 did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4h3l346gz7z1DZh; Mon, 20 Jul 2026 15:35:44 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by b.nours.eu (Postfix, from userid 1001) id 232A67E9D0; Mon, 20 Jul 2026 17:35:40 +0200 (CEST) Date: Mon, 20 Jul 2026 17:35:40 +0200 From: Baptiste Daroussin To: Nilton Jose Rizzo Cc: freebsd-current@freebsd.org Subject: Re: uvideo not wrok fine Message-ID: References: <9fe285ad-e92c-468c-a3b1-4539acef7064@rizzo.eng.br> <22C82D84-9DA8-473F-88A9-7DAE88F234BD@nours.eu> <43193a69-cd0f-474a-9626-44421ad39316@rizzo.eng.br> <18807C4E-3294-4A9D-A8A4-B9D5989B8F79@nours.eu> <5f70832a-a9fc-4cc2-85c9-143690e56da1@rizzo.eng.br> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon 20 Jul 14:24, Baptiste Daroussin wrote: > On Sun 19 Jul 14:03, Nilton Jose Rizzo wrote: > > Em 19/07/2026 13:49, Baptiste Daroussin escreveu: > > > > > > Le 18 juillet 2026 23:45:58 GMT+02:00, Nilton Jose Rizzo a écrit : > > > > Em 18/07/2026 02:36, Baptiste Daroussin escreveu: > > > > > Le 14 juillet 2026 01:42:07 GMT+02:00, Nilton Jose Rizzo a écrit : > > > > > > Hi all, > > > > > > > > > > > > I upgraded my desktop last weekend and decided to try the new *uvideo*driver from OpenBSD. > > > > > > > > > > > > When I run |pwcview|, the image is displayed incorrectly: it is horizontally duplicated and shows interlaced lines. > > > > > > > > > > > > If I switch back to |webcamd|, the webcam works normally. > > > > > > > > > > > > I also tested it with *Google Meet*and *Jitsi Meet*in Firefox. > > > > > > > > > > > > On Google Meet, I receive a warning indicating that my webcam is not functioning properly. > > > > > > > > > > > > Has anyone experienced this issue or have any suggestions on how to troubleshoot it? > > > > > > > > > > > > My web cam is HD Pro C920 USB > > > > > > > > > > > > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > > > > > > > > > > > $ usbconfig -v -d ugen0.2 > > > > > > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > > > > > ugen0.2.2: uaudio0: > > > > > > > > > > > >   bLength = 0x0012 > > > > > >   bDescriptorType = 0x0001 > > > > > >   bcdUSB = 0x0200 > > > > > >   bDeviceClass = 0x00ef  > > > > > >   bDeviceSubClass = 0x0002 > > > > > >   bDeviceProtocol = 0x0001 > > > > > >   bMaxPacketSize0 = 0x0040 > > > > > >   idVendor = 0x046d > > > > > >   idProduct = 0x082d > > > > > >   bcdDevice = 0x0011 > > > > > >   iManufacturer = 0x0000  > > > > > >   iProduct = 0x0002  > > > > > >   iSerialNumber = 0x0001  <1BC69C1F> > > > > > >   bNumConfigurations = 0x0001 > > > > > > > > > > > > When uvideo load, show this message > > > > > > > > > > > > uvideo0 on uhub1 > > > > > > uvideo0: on usbus0 > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: too many PU descriptors found! > > > > > > uvideo0: 3 format(s), iface_index=1, endpoint=0x81, psize=3060, isoc > > > > > > uvideo0: default format: pixfmt=0x56595559, 640x480, max_fbuf=4147200 > > > > > > uvideo0: UVC camera on /dev/video0 > > > > > > > > > > > > > > > > > try updating UVIDEO_MAX_PU and UVIDEO_MAX_CT from 8 to 32. > > > > > > > > > > in sys/dev/usb/video/uvideo.c > > > > > > > > > > best regards, > > > > > Bapt > > > > I change these values, PU warnings was gone. > > > > > > > > My Webcam not work fine yet. > > > > > > > > See this jpeg screenshot from pwcview using default values to fps and resolution (sif). > > > > > > > > https://imgur.com/a/YG89hK5 > > > > > > > > > > > > ugen0.2: at usbus0 > > > > uvideo0 on uhub1 > > > > uvideo0: on usbus0 > > > > uvideo0: 3 format(s), iface_index=1, endpoint=0x81, psize=3060, isoc > > > > uvideo0: default format: pixfmt=0x56595559, 640x480, max_fbuf=4147200 > > > > uvideo0: UVC camera on /dev/video0 > > > > uaudio0 on uhub1 > > > > uaudio0: on usbus0 > > > > uaudio0: No playback. > > > > uaudio0: Record[0]: 32000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer. (selected) > > > > uaudio0: Record[0]: 24000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer. > > > > uaudio0: Record[0]: 16000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer. > > > > uaudio0: No MIDI sequencer. > > > > pcm6 on uaudio0 > > > > uaudio0: No HID volume keys found. > > > > uvideo0: stream open: nframes=51, psize=3060, maxVideoFrameSize=153600, maxPayloadSize=800, alt=11, isoc > > > > uvideo0: stream open: nframes=51, psize=3060, maxVideoFrameSize=153600, maxPayloadSize=800, alt=11, isoc > > > > > > > > > > > > > > > on linux it has quirks for this model, I need to implement some. I ll come back with a patch soon > > > > > > bapt > > > > I'd be happy to help improve this driver by providing more information about > > this camera. Let me know what information would be useful. > > > > Thank you Baptiste. > > > > -- > > ************************** > > * Dr. Nilton Jose Rizzo * > > * Engenheiro Eletrônico * > > * Doutor pela COPPE/UFRJ * > > * Telegram: @njrizzo * > > ************************** > > I have pushed the quirks infrastructure from openbsd, can you try the following > patch on top of it? this is quirks I found for your model in linux uvc driver: > > https://people.freebsd.org/~bapt/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch > > Best regards, > Bapt > Actually try this version of the patch: https://bapt.nours.eu/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch Best regards, Bapt