Issue with USB webcam (uvcvideo)

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
phalanx81

Issue with USB webcam (uvcvideo)

Post by phalanx81 »

Hello,

I'm facing weird behaviour with my new webcam (an USB camera from YGTek) using 64-bits kernels 5.8.0-33, 5.8.0-29, 5.4.0-59 and 5.4.0-58. Regardless of kernel version, I get following following logs ~90% of times:

Code: Select all

[  109.385127] usb 3-11: new high-speed USB device number 6 using xhci_hcd
[  109.534824] usb 3-11: New USB device found, idVendor=1d6d,
idProduct=0105, bcdDevice= 0.10
[  109.534829] usb 3-11: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[  109.534832] usb 3-11: Product: webcam
[  109.534835] usb 3-11: Manufacturer: YGTek
[  109.534837] usb 3-11: SerialNumber: YG_U700.2020.0904.1200
[  109.536190] uvcvideo: Unknown video format
35363248-0000-0010-8000-00aa00389b71
[  109.536201] uvcvideo: Found UVC 1.00 device webcam (1d6d:0105)
[  109.538890] input: webcam: WEBCAM as
/devices/pci0000:00/0000:00:14.0/usb3/3-11/3-11:1.0/input/input26
[  120.107848] uvcvideo: Failed to query (129) UVC probe control : -32
(exp. 26).
[  134.661008] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[  134.664254] uvcvideo: Failed to set UVC commit control : -71 (exp. 26)
Of course, at this point, no software is able to use camera.

10% of time, behaviour is a bit different:
* camera is detected again and again according to logs (eg. as
input/input26, then input/input27, etc.),
* camera is detected by software as "cheese" (usually just on first run),
* yet, it sustains about 1 FPS...

I never get sound from camera (which is not a problem for my usage but I precise this if this may impact kernel in some ways).

Anyone can provide any support/direction?
Thanks!

"phalanx" -
---

Code: Select all

$ inxi -Fxxxrz
System:
  Kernel: 5.8.0-33-generic x86_64 bits: 64 compiler: N/A Console: tty 0 
  dm: LightDM 1.30.0 Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Desktop Mobo: MSI model: Z97 GAMING 3 (MS-7918) v: 1.0 serial: N/A 
  UEFI: American Megatrends v: 2.6 date: 12/24/2014 
CPU:
  Topology: Quad Core model: Intel Core i7-4790K bits: 64 type: MT MCP 
  arch: Haswell rev: 3 L1 cache: 256 KiB L2 cache: 8192 KiB 
  L3 cache: 8192 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 63995 
  Speed: 2764 MHz min/max: 800/4400 MHz Core speeds (MHz): 1: 2764 2: 2720 
  3: 2752 4: 3929 5: 2962 6: 2184 7: 2387 8: 3019 
Graphics:
  Device-1: NVIDIA GM206 [GeForce GTX 960] vendor: Micro-Star MSI 
  driver: nvidia v: 455.45.01 bus ID: 01:00.0 chip ID: 10de:1401 
  Display: server: X.org 1.20.9 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa tty: 80x24 
  Message: Advanced graphics data unavailable in console for root. 
Audio:
  Device-1: Intel 9 Series Family HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:8ca0 
  Device-2: NVIDIA GM206 High Definition Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:0fba 
  Device-3: Ensoniq ES1370 [AudioPCI] driver: snd_ens1370 v: kernel 
  bus ID: 05:01.0 chip ID: 1274:5000 
  Sound Server: ALSA v: k5.8.0-33-generic 
Network:
  Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet 
  vendor: Micro-Star MSI driver: alx v: kernel port: d000 bus ID: 03:00.0 
  chip ID: 1969:e091 
  IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IF-ID-1: br-5c351423d7dd state: down mac: <filter> 
  IF-ID-2: br-9acf0896eee3 state: down mac: <filter> 
  IF-ID-3: docker0 state: down mac: <filter> 
  IF-ID-4: docker_gwbridge state: up speed: 10000 Mbps duplex: unknown 
  mac: <filter> 
  IF-ID-5: veth1a2bba8 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-6: veth292699d state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-7: veth41bccac state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-8: veth562c912 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-9: veth7f4a3af state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-10: veth8c43b94 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-11: veth93f3552 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-12: vethafd444c state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-13: vethbb56ab3 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-14: vethbdd1e40 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-15: vethc9b86a3 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-16: vetheb8e1a7 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
  IF-ID-17: vethed6c443 state: up speed: 10000 Mbps duplex: full 
  mac: <filter> 
Drives:
  Local Storage: total: 2.15 TiB used: 862.94 GiB (39.3%) 
  ID-1: /dev/sda vendor: Kingston model: SV300S37A120G size: 111.79 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: BBF0 temp: 23 C scheme: MBR 
  ID-2: /dev/sdb vendor: Seagate model: ST2000DM001-1ER164 size: 1.82 TiB 
  speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: CC43 temp: 26 C 
  scheme: MBR 
  ID-3: /dev/sdc vendor: PNY model: CS900 240GB SSD size: 223.57 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 0813 temp: 33 C scheme: MBR 
Partition:
  ID-1: / size: 101.22 GiB used: 48.71 GiB (48.1%) fs: ext4 dev: /dev/sda6 
Sensors:
  System Temperatures: cpu: 26.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/alexlarsson-flatpak-focal.list 
  1: deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/insync.list 
  1: deb http://apt.insync.io/mint ulyana non-free contrib
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://mirror6.layerjet.com/linuxmint/packages ulyana main upstream import backport
  2: deb http://fr.archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://fr.archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://fr.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 335 Uptime: 3h 31m Memory: 7.72 GiB used: 3.55 GiB (46.0%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: tty 0 inxi: 3.0.38
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
neilunoi
Level 1
Level 1
Posts: 4
Joined: Wed Jan 13, 2021 6:17 pm

Re: Issue with USB webcam (uvcvideo)

Post by neilunoi »

Hi, I have the same issue on Debian, have you found a solution ?
phalanx81

Re: Issue with USB webcam (uvcvideo)

Post by phalanx81 »

I have a Linux Mint 20.1 . No solution up to now.
phalanx81

Re: Issue with USB webcam (uvcvideo)

Post by phalanx81 »

I yet noticed that other users were facing same issue (https://bbs.archlinux.org/viewtopic.php?id=250667).

And it seems this behaviour might also be a kind of regression as some users reported such behaviour years ago, which had been fixed previously: https://bugs.launchpad.net/ubuntu/+sour ... ug/1362358 , or more recently, maybe here https://lore.kernel.org/linux-media/201 ... 98@debian/ and https://askubuntu.com/questions/1238151 ... oded-dmesg .
phalanx81

Re: Issue with USB webcam (uvcvideo)

Post by phalanx81 »

This might be a general UVC problem as another brand-new camera (different manufacturer) produces very comparable results:

Code: Select all

[20074.660530] usb 3-8: new high-speed USB device number 26 using xhci_hcd
[20074.809829] usb 3-8: New USB device found, idVendor=1d6c, idProduct=0103, bcdDevice= 0.10
[20074.809832] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20074.809833] usb 3-8: Product: PC-LM1E
[20074.809834] usb 3-8: Manufacturer: PC-LM1E
[20074.809834] usb 3-8: SerialNumber: PC-LM1E
[20074.810956] uvcvideo: Found UVC 1.00 device PC-LM1E (1d6c:0103)
[20074.813218] input: PC-LM1E: PC-LM1E as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/input/input40
[20085.092901] usb 3-8: USB disconnect, device number 26
[20085.404429] usb 3-8: new high-speed USB device number 27 using xhci_hcd
[20085.553636] usb 3-8: New USB device found, idVendor=1d6c, idProduct=0103, bcdDevice= 0.10
[20085.553641] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20085.553643] usb 3-8: Product: PC-LM1E
[20085.553644] usb 3-8: Manufacturer: PC-LM1E
[20085.553645] usb 3-8: SerialNumber: PC-LM1E
[20085.554832] uvcvideo: Found UVC 1.00 device PC-LM1E (1d6c:0103)
[20085.556970] input: PC-LM1E: PC-LM1E as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/input/input41
[20096.392522] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).
[20096.900394] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).

Yet, this camera just works from times to times.
neilunoi
Level 1
Level 1
Posts: 4
Joined: Wed Jan 13, 2021 6:17 pm

Re: Issue with USB webcam (uvcvideo)

Post by neilunoi »

Tried with latest Ubuntu release, same problem.

Contacted the support, they didn't have any solution, just a refund, but they give me the camera, I will continue to search for a solution.
neilunoi
Level 1
Level 1
Posts: 4
Joined: Wed Jan 13, 2021 6:17 pm

Re: Issue with USB webcam (uvcvideo)

Post by neilunoi »

Hi, I have found a workaround : uvdvideo driver allows some quirks to manage buggy devices.

For this, this is what works for me :

1- Unload the driver : rmmod uvcvideo
2- Reload the driver with the correct quirks : modprobe uvcvideo quirks=4

Cheese does not allow more than 1024x576 for now, but the webcam works, that's better.
neilunoi
Level 1
Level 1
Posts: 4
Joined: Wed Jan 13, 2021 6:17 pm

Re: Issue with USB webcam (uvcvideo)

Post by neilunoi »

With the creation of this file : /etc/modprobe.d/uvcvideo.conf

You can fix the quirks options automatically for next reboots.

Currently the content of this file is for me :

options uvcvideo quirks=0x0104
snoopyonline78
Level 1
Level 1
Posts: 13
Joined: Fri May 20, 2022 9:03 pm

Re: Issue with USB webcam (uvcvideo)

Post by snoopyonline78 »

Hallo, i have a similar issue, with the Suyin CN0316.

The quirks workaround on mint 19.3 dosen’t work. Have you pleas found a driver that works?

Thanks a lot! I have a acer aspire one zG8
Reddog1
Level 7
Level 7
Posts: 1939
Joined: Wed Jun 01, 2011 2:12 pm

Re: Issue with USB webcam (uvcvideo)

Post by Reddog1 »

Maybe it is the program you are using to access the camera. If you are using Cheese, install and try guvcview instead. Lately, I've encountered problems accessing webcams with Cheese, and guvcview just worked. No guarantee in your case, but worth a try.
Locked

Return to “Hardware Support”