Re: uvideo not wrok fine
Nilton Jose Rizzo <[email protected]> Thu, 23 Jul 2026 10:28:12 -0300
| Newsgroups | gmane.os.freebsd.current |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------KnCMOALvDDaxMy40pgyA0Y3e Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Em 20/07/2026 12:35, Baptiste Daroussin escreveu: > 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<[email protected]> a écrit : >>>>> Em 18/07/2026 02:36, Baptiste Daroussin escreveu: >>>>>> Le 14 juillet 2026 01:42:07 GMT+02:00, Nilton Jose Rizzo<[email protected]> 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: <HD Pro Webcam C920 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) >>>>>>> >>>>>>> $ usbconfig -v -d ugen0.2 >>>>>>> ugen0.2: <HD Pro Webcam C920 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) >>>>>>> ugen0.2.2: uaudio0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> >>>>>>> >>>>>>> bLength = 0x0012 >>>>>>> bDescriptorType = 0x0001 >>>>>>> bcdUSB = 0x0200 >>>>>>> bDeviceClass = 0x00ef <Miscellaneous device> >>>>>>> bDeviceSubClass = 0x0002 >>>>>>> bDeviceProtocol = 0x0001 >>>>>>> bMaxPacketSize0 = 0x0040 >>>>>>> idVendor = 0x046d >>>>>>> idProduct = 0x082d >>>>>>> bcdDevice = 0x0011 >>>>>>> iManufacturer = 0x0000 <no string> >>>>>>> iProduct = 0x0002 <HD Pro Webcam C920> >>>>>>> iSerialNumber = 0x0001 <1BC69C1F> >>>>>>> bNumConfigurations = 0x0001 >>>>>>> >>>>>>> When uvideo load, show this message >>>>>>> >>>>>>> uvideo0 on uhub1 >>>>>>> uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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: <vendor 0x046d HD Pro Webcam C920> at usbus0 >>>>> uvideo0 on uhub1 >>>>> uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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 > Hi Baptiste, Sorry for the late reply. I applied the patch, but unfortunately it didn't solve the problem. After recompiling the kernel and rebooting the system, the webcam still doesn't work properly. I have to reset the USB bus manually using the following command: |usbconfig reset| After doing that, the webcam is detected again, but the image in |pwcview|remains unchanged and still has the same duplicated/interlaced appearance. Google Meet and Jitsi Meet in Firefox also behave the same way as before. The webcam's microphone works fine, but I still can't get any video from the camera in |pwcview|, Google Meet, or Jitsi Meet. Please let me know if you'd like me to test anything else or provide additional debugging information. More info about my system: dmesg: uvideo0 on uhub0 uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 1> 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 uhub0 uaudio0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 1> 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. umodem0 on uhub2 umodem0: <STMicroelectronics STM32 Virtual ComPort, class 2/2, rev 2.00/2.00, addr 4> on usbus1 umodem0: data interface 1, has no CM over data, has no break em0: link state changed to UP Security policy loaded: MAC/ntpd (mac_ntpd) WARNING: sysctl vfs.zfs.min_auto_ashift is deprecated. Use vfs.zfs.vdev.min_auto_ashift instead. uvideo0: stream open: nframes=51, psize=3060, maxVideoFrameSize=153600, maxPayloadSize=800, alt=11, isoc uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT uvideo0: could not SET probe: USB_ERR_TIMEOUT $ uname -a FreeBSD valfenda 16.0-CURRENT FreeBSD 16.0-CURRENT #19 main-4db3872aabc3-dirty: Thu Jul 23 01:07:56 -03 2026 rizzo@valfenda:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 -- ************************** * Dr. Nilton Jose Rizzo * * Engenheiro Eletrônico * * Doutor pela COPPE/UFRJ * * Telegram: @njrizzo * ************************** --------------KnCMOALvDDaxMy40pgyA0Y3e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html data-lt-installed="true"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body style="padding-bottom: 1px;"> <div class="moz-cite-prefix">Em 20/07/2026 12:35, Baptiste Daroussin escreveu:<br> </div> <blockquote type="cite" cite="mid:[email protected]"> <pre wrap="" class="moz-quote-pre">On Mon 20 Jul 14:24, Baptiste Daroussin wrote: </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">On Sun 19 Jul 14:03, Nilton Jose Rizzo wrote: </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">Em 19/07/2026 13:49, Baptiste Daroussin escreveu: </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre"> Le 18 juillet 2026 23:45:58 GMT+02:00, Nilton Jose Rizzo<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a> a écrit : </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">Em 18/07/2026 02:36, Baptiste Daroussin escreveu: </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">Le 14 juillet 2026 01:42:07 GMT+02:00, Nilton Jose Rizzo<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a> a écrit : </pre> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">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: <HD Pro Webcam C920 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) $ usbconfig -v -d ugen0.2 ugen0.2: <HD Pro Webcam C920 Logitech, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.2.2: uaudio0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef <Miscellaneous device> bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x046d idProduct = 0x082d bcdDevice = 0x0011 iManufacturer = 0x0000 <no string> iProduct = 0x0002 <HD Pro Webcam C920> iSerialNumber = 0x0001 <1BC69C1F> bNumConfigurations = 0x0001 When uvideo load, show this message uvideo0 on uhub1 uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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 </pre> </blockquote> <pre wrap="" class="moz-quote-pre">try updating UVIDEO_MAX_PU and UVIDEO_MAX_CT from 8 to 32. in sys/dev/usb/video/uvideo.c best regards, Bapt </pre> </blockquote> <pre wrap="" class="moz-quote-pre">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). <a class="moz-txt-link-freetext" href="https://imgur.com/a/YG89hK5">https://imgur.com/a/YG89hK5</a> ugen0.2: <vendor 0x046d HD Pro Webcam C920> at usbus0 uvideo0 on uhub1 uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 3> 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 </pre> </blockquote> <pre wrap="" class="moz-quote-pre">on linux it has quirks for this model, I need to implement some. I ll come back with a patch soon bapt </pre> </blockquote> <pre wrap="" class="moz-quote-pre"> 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 * ************************** </pre> </blockquote> <pre wrap="" class="moz-quote-pre"> 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: <a class="moz-txt-link-freetext" href="https://people.freebsd.org/~bapt/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch">https://people.freebsd.org/~bapt/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch</a> Best regards, Bapt </pre> </blockquote> <pre wrap="" class="moz-quote-pre">Actually try this version of the patch: <a class="moz-txt-link-freetext" href="https://bapt.nours.eu/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch">https://bapt.nours.eu/0001-uvideo-add-quirks-for-Logitech-C920-webcams.patch</a> Best regards, Bapt </pre> </blockquote> <p><br> </p> <p class="isSelectedEnd"><span>Hi Baptiste,</span></p> <p class="isSelectedEnd"><span>Sorry for the late reply.</span></p> <p class="isSelectedEnd"><span>I applied the patch, but unfortunately it didn't solve the problem.</span></p> <p class="isSelectedEnd"><span>After recompiling the kernel and rebooting the system, the webcam still doesn't work properly.</span></p> <p class="isSelectedEnd"><span>I have to reset the USB bus manually using the following command:</span></p> <pre dir="ltr"><code dir="ltr"><span>usbconfig reset</span></code></pre> <p class="isSelectedEnd"><span>After doing that, the webcam is detected again, but the image in </span><code dir="ltr"><span>pwcview</span></code><span> remains unchanged and still has the same duplicated/interlaced appearance.</span></p> <p class="isSelectedEnd"><span>Google Meet and Jitsi Meet in Firefox also behave the same way as before.</span></p> <p class="isSelectedEnd"><span>The webcam's microphone works fine, but I still can't get any video from the camera in </span><code dir="ltr"><span>pwcview</span></code><span>, Google Meet, or Jitsi Meet.</span></p> <p><span>Please let me know if you'd like me to test anything else or provide additional debugging information.</span></p> <p><br> </p> <p>More info about my system:</p> <p><br> </p> <p>dmesg:</p> <p>uvideo0 on uhub0<br> uvideo0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 1> on usbus0<br> uvideo0: 3 format(s), iface_index=1, endpoint=0x81, psize=3060, isoc<br> uvideo0: default format: pixfmt=0x56595559, 640x480, max_fbuf=4147200<br> uvideo0: UVC camera on /dev/video0<br> uaudio0 on uhub0<br> uaudio0: <vendor 0x046d HD Pro Webcam C920, class 239/2, rev 2.00/0.11, addr 1> on usbus0<br> uaudio0: No playback.<br> uaudio0: Record[0]: 32000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer. (selected)<br> uaudio0: Record[0]: 24000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer.<br> uaudio0: Record[0]: 16000 Hz, 2 ch, 16-bit S-LE PCM format, 2x4ms buffer.<br> uaudio0: No MIDI sequencer.<br> pcm6 on uaudio0<br> uaudio0: No HID volume keys found.<br> umodem0 on uhub2<br> umodem0: <STMicroelectronics STM32 Virtual ComPort, class 2/2, rev 2.00/2.00, addr 4> on usbus1<br> umodem0: data interface 1, has no CM over data, has no break<br> em0: link state changed to UP<br> Security policy loaded: MAC/ntpd (mac_ntpd)<br> WARNING: sysctl vfs.zfs.min_auto_ashift is deprecated. Use vfs.zfs.vdev.min_auto_ashift instead.<br> uvideo0: stream open: nframes=51, psize=3060, maxVideoFrameSize=153600, maxPayloadSize=800, alt=11, isoc<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> uvideo0: could not SET probe: USB_ERR_TIMEOUT<br> <br> </p> <p>$ uname -a<br> FreeBSD valfenda 16.0-CURRENT FreeBSD 16.0-CURRENT #19 main-4db3872aabc3-dirty: Thu Jul 23 01:07:56 -03 2026 <a class="moz-txt-link-abbreviated" href="mailto:rizzo@valfenda:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG">rizzo@valfenda:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG</a> amd64<br> <br> </p> <p><br> </p> <pre class="moz-signature" cols="72">-- ************************** * Dr. Nilton Jose Rizzo * * Engenheiro Eletrônico * * Doutor pela COPPE/UFRJ * * Telegram: @njrizzo * **************************</pre> </body> <lt-container></lt-container> </html> --------------KnCMOALvDDaxMy40pgyA0Y3e--