You are not logged in.

#1 2025-01-29 00:46:28

Bepis
Member
Registered: 2023-10-05
Posts: 18

Built-in webcam disconnects when I try to use it

Hi all, hope you're doing great!

So I'm running into this issue where my laptop's built-in webcam will disconnect itself, then reconnect over and over when I try to use it, making it pretty much unusable.
I could not find a solution online even after looking at the issue myself for some time now so I am turning to the community for some help!

Let's say I am on a Discord call and want to turn on my webcam. As soon as I do, it loads for a few seconds before saying my camera is unavailable, and then the option comes back on. Rinse and repeat.

I tried to gather as much information as I could, so here is the dmesg output when it disconnects:

[  763.084161] usb 1-13: USB disconnect, device number 18
[  763.364705] usb 1-13: new high-speed USB device number 19 using xhci_hcd
[  763.511372] usb 1-13: New USB device found, idVendor=04f2, idProduct=b641, bcdDevice=52.10
[  763.511378] usb 1-13: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[  763.511380] usb 1-13: Product: HD Webcam
[  763.511382] usb 1-13: Manufacturer: Sonix Technology Co., Ltd.
[  763.513620] usb 1-13: Found UVC 1.00 device HD Webcam (04f2:b641)

I also tried looking for changes with the udevadm monitor command:

KERNEL[763.079903] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video6 (video4linux)
KERNEL[763.080388] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video7 (video4linux)
KERNEL[763.080482] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/media0 (media)
KERNEL[763.080551] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
KERNEL[763.080620] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
KERNEL[763.080680] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
KERNEL[763.080747] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
KERNEL[763.081328] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
KERNEL[763.081430] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
UDEV  [763.092238] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video6 (video4linux)
UDEV  [763.092575] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/media0 (media)
UDEV  [763.093168] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video7 (video4linux)
KERNEL[763.506826] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
KERNEL[763.508279] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
KERNEL[763.517556] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video5 (video4linux)
KERNEL[763.517578] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video7 (video4linux)
KERNEL[763.517625] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/media0 (media)
KERNEL[763.517648] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
KERNEL[763.517754] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
KERNEL[763.517773] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
KERNEL[763.517799] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
UDEV  [763.518217] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
UDEV  [763.518244] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
UDEV  [763.520057] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
UDEV  [763.520105] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
UDEV  [763.522218] unbind   /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
UDEV  [763.523789] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
KERNEL[763.669710] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [763.671173] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [764.208262] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)
KERNEL[764.363317] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [764.364843] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [764.709191] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
UDEV  [764.711647] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.1 (usb)
KERNEL[764.823498] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [764.825580] change   /devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight (backlight)
UDEV  [765.172607] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
UDEV  [765.176466] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/media0 (media)
UDEV  [765.179614] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video7 (video4linux)
UDEV  [765.180548] add      /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/video4linux/video5 (video4linux)
UDEV  [765.183054] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0 (usb)
UDEV  [765.187851] bind     /devices/pci0000:00/0000:00:14.0/usb1/1-13 (usb)

I could not find anything that could cause this in my udev rules, and I even tried stopping laptop-mode.service which did not fix the issue either.

I don't know where to look from there and I might need to use my webcam in the following weeks for Teams meetings. Any help will be greatly appreciated!

Some more information:
Laptop: CyberPowerPC TRACER IV GK7MR0R Standard
Kernel: 6.12.10-arch1-1
WM: I3wm
Webcam: Chicony Electronics Co., Ltd HD Webcam


vim

Offline

#2 2025-01-29 09:07:18

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

https://wiki.archlinux.org/title/Power_ … utosuspend ?
Otherwise we'll need to see the system journal for eg. kernel errors/warnings etc. - udev will show "that", but certainly not "why"

Offline

#3 2025-01-29 20:37:22

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

Hi Seth, I have double-checked my udev rules. My '50-usb_power_save.rules' file was all commented out, so I tried actively blacklisting my camera for autosuspend and it did not seem to. Here is the contents of this file now:

# blacklist for usb autosuspend
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04f2", ATTR{idProduct}=="b641", GOTO="power_usb_rules_end"

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"
LABEL="power_usb_rules_end"

And here is the output of 'journalctl -xe' as requested:

Jan 29 15:30:05 Bepis-Laptop kernel: usb 1-13: USB disconnect, device number 14
Jan 29 15:30:05 Bepis-Laptop kernel: uvcvideo 1-13:1.1: Failed to resubmit video URB (-19).
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: new high-speed USB device number 15 using xhci_hcd
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: New USB device found, idVendor=04f2, idProduct=b641, bcdDevice=52.10
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: Product: HD Webcam
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: Manufacturer: Sonix Technology Co., Ltd.
Jan 29 15:30:06 Bepis-Laptop kernel: usb 1-13: Found UVC 1.00 device HD Webcam (04f2:b641)
Jan 29 15:30:06 Bepis-Laptop mtp-probe[38238]: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13"
Jan 29 15:30:06 Bepis-Laptop mtp-probe[38238]: bus: 1, device: 15 was not an MTP device
Jan 29 15:30:06 Bepis-Laptop laptop-mode[38280]: enabled, not active
Jan 29 15:30:06 Bepis-Laptop laptop-mode[38555]: LCD Brightness Command succeeded.
Jan 29 15:30:06 Bepis-Laptop laptop-mode[38887]: enabled, not active
Jan 29 15:30:07 Bepis-Laptop laptop-mode[39164]: LCD Brightness Command succeeded.
Jan 29 15:30:07 Bepis-Laptop laptop-mode[39498]: enabled, not active
Jan 29 15:30:07 Bepis-Laptop laptop-mode[39773]: LCD Brightness Command succeeded.
Jan 29 15:30:07 Bepis-Laptop mtp-probe[40042]: checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13"
Jan 29 15:30:07 Bepis-Laptop mtp-probe[40042]: bus: 1, device: 15 was not an MTP device

There is indeed an error message regarding uvcvideo in here, which I will try to explore on my side as well.


vim

Offline

#4 2025-01-29 22:50:04

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

Please never use -x (or -r) w/ journalctl and also don't copy/paste it from the pager (-e just scrolls to the end)
Post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

The uvcvideo error is "ENODEV 19 No such device" (man errno) because the usb device is gone.
The cause for that isn't in that snippet.

If you don't use stuff like TLP, adding "usbcore.autosuspend=-1" will globally disable usb autosuspend, otherwise these tools can and will change all of this (incl the udev rules) during runtime.

Offline

#5 2025-01-30 03:15:53

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

My bad, I use journalctl this way out of habit. Here is the output of 'journalctl -b':

http://0x0.st/882o.txt

This is right after rebooting, loading uvcvideo and replicating the issue.
At this point I will try completely disabling USB autosuspend and see if it fixes my issue. Thanks for your help so far!


vim

Offline

#6 2025-01-30 03:27:09

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

I just tried disabling autosuspend globally as you suggested but unfortunately the issue persists.

I also forgot to mention that I am not using TLP, but I am using laptop-mode-tools, which I think could be related? I tried stopping its service but that did nothing, and it should have no control over USB autosuspend as per my configuration.
Should I just try removing it completely?


vim

Offline

#7 2025-01-30 08:17:44

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

I am using laptop-mode-tools, which I think could be related?

Yes is, but disabling usb autosuspend there would be expected to suffice.

Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: new high-speed USB device number 6 using xhci_hcd
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: New USB device found, idVendor=1532, idProduct=0503, bcdDevice= 1.07
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: Product: Razer Seiren
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: Manufacturer: Razer Inc.
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.1: SerialNumber: UC1709127402041
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: new full-speed USB device number 8 using xhci_hcd
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: New USB device found, idVendor=1532, idProduct=0527, bcdDevice=50.02
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: Product: Razer Kraken Ultimate
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: Manufacturer: Razer
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.2: SerialNumber: 00000000
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 10 using xhci_hcd
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.3: New USB device found, idVendor=1017, idProduct=8021, bcdDevice= 2.10
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.3: Product: USB Gaming Mouse
Jan 29 22:08:31 Bepis-Laptop kernel: usb 1-9.3: Manufacturer: SOAI
Jan 29 22:08:33 Bepis-Laptop kernel: usb 1-9.2: 2:1: cannot get freq at ep 0x1
Jan 29 22:08:39 Bepis-Laptop kernel: usb 1-9.2: 2:1: cannot get freq at ep 0x1
Jan 29 22:08:39 Bepis-Laptop kernel: usb 1-9.2: 1:1: cannot get freq at ep 0x81
Jan 29 22:09:31 Bepis-Laptop kernel: usb 1-9.3: reset full-speed USB device number 10 using xhci_hcd
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: reset full-speed USB device number 10 using xhci_hcd
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: reset full-speed USB device number 10 using xhci_hcd
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device not accepting address 10, error -71
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: WARN: invalid context state for evaluate context command.
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: reset full-speed USB device number 10 using xhci_hcd
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device not accepting address 10, error -71
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: USB disconnect, device number 10
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 11 using xhci_hcd
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:33 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:34 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 12 using xhci_hcd
Jan 29 22:09:34 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:34 Bepis-Laptop kernel: usb 1-9.3: device descriptor read/64, error -32
Jan 29 22:09:34 Bepis-Laptop kernel: usb 1-9-port3: attempt power cycle
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 13 using xhci_hcd
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: device not accepting address 13, error -71
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: WARN: invalid context state for evaluate context command.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 14 using xhci_hcd
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: Device not responding to setup address.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: device not accepting address 14, error -71
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9.3: WARN: invalid context state for evaluate context command.
Jan 29 22:09:35 Bepis-Laptop kernel: usb 1-9-port3: unable to enumerate USB device
Jan 29 22:09:39 Bepis-Laptop kernel: usb 1-9.3: new full-speed USB device number 15 using xhci_hcd
Jan 29 22:09:40 Bepis-Laptop kernel: usb 1-9.3: New USB device found, idVendor=1017, idProduct=8021, bcdDevice= 2.10
Jan 29 22:09:40 Bepis-Laptop kernel: usb 1-9.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 29 22:09:40 Bepis-Laptop kernel: usb 1-9.3: Product: USB Gaming Mouse
Jan 29 22:09:40 Bepis-Laptop kernel: usb 1-9.3: Manufacturer: SOAI

There's some noise on the bus from those devices (Razer Seiren/Kraken and a SOI "Gaming Mouse") - detach those and see whether the issue w/ the webcam remains.
On top of that there seems a related bogus udev script, /etc/udev/scripts/togTouchpad.sh - disable that as well.

And right before the webcam is a "Microsoft® Nano Transceiver", is that a dongle or built-in?
For a dongle: unplug that as well.

Offline

#8 2025-01-30 19:48:43

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

I have unplugged every external USB device from my laptop.

seth wrote:

On top of that there seems a related bogus udev script, /etc/udev/scripts/togTouchpad.sh - disable that as well.

This script goes with two simple udev rules that toggle my touchpad when my mouse is connected or disconnected. I just commented out those rules.

seth wrote:

And right before the webcam is a "Microsoft® Nano Transceiver", is that a dongle or built-in?

I am not sure what this is so I would assume it is built-in.

After unplugging everything I rebooted, replicated the issue again and pasted my journal again to compare.
http://0x0.st/884k.txt


vim

Offline

#9 2025-01-31 08:50:46

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

Jan 30 14:38:39 Bepis-Laptop sudo[3755]:    bepis : TTY=pts/0 ; PWD=/home/bepis ; USER=root ; COMMAND=/usr/bin/modprobe uvcvideo
Jan 30 14:38:39 Bepis-Laptop sudo[3755]: pam_unix(sudo:session): session opened for user root(uid=0) by bepis(uid=1000)
Jan 30 14:38:39 Bepis-Laptop kernel: mc: Linux media interface: v0.10
Jan 30 14:38:39 Bepis-Laptop kernel: videodev: Linux video capture interface: v2.00
Jan 30 14:38:39 Bepis-Laptop kernel: usb 1-13: Found UVC 1.00 device HD Webcam (04f2:b641)
Jan 30 14:38:39 Bepis-Laptop kernel: usbcore: registered new interface driver uvcvideo
Jan 30 14:38:39 Bepis-Laptop sudo[3755]: pam_unix(sudo:session): session closed for user root
Jan 30 14:38:41 Bepis-Laptop dbus-broker-launch[1659]: Activation request for 'org.bluez' failed: The systemd unit 'dbus-org.bluez.service' could not be found.
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: USB disconnect, device number 3
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: new high-speed USB device number 5 using xhci_hcd
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: New USB device found, idVendor=04f2, idProduct=b641, bcdDevice=52.10
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: Product: HD Webcam
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: Manufacturer: Sonix Technology Co., Ltd.
Jan 30 14:39:09 Bepis-Laptop kernel: usb 1-13: Found UVC 1.00 device HD Webcam (04f2:b641)
Jan 30 14:39:09 Bepis-Laptop mtp-probe[4912]: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13"
Jan 30 14:39:09 Bepis-Laptop mtp-probe[4912]: bus: 1, device: 5 was not an MTP device
Jan 30 14:39:09 Bepis-Laptop laptop-mode[4954]: enabled, not active
Jan 30 14:39:09 Bepis-Laptop laptop-mode[5232]: LCD Brightness Command succeeded.
Jan 30 14:39:10 Bepis-Laptop laptop-mode[5559]: enabled, not active
Jan 30 14:39:10 Bepis-Laptop laptop-mode[5839]: LCD Brightness Command succeeded.
Jan 30 14:39:10 Bepis-Laptop laptop-mode[6117]: enabled, not active
Jan 30 14:39:10 Bepis-Laptop laptop-mode[6393]: LCD Brightness Command succeeded.

You're loading uvcvideo and 30s later the device reconnects and then LMT goes into a brief frenzy.
I'd deactivate the latter to be sure.

The uvcvideo module has a bunch of quirks for nasty cams

#define UVC_QUIRK_STATUS_INTERVAL	0x00000001
#define UVC_QUIRK_PROBE_MINMAX		0x00000002
#define UVC_QUIRK_PROBE_EXTRAFIELDS	0x00000004
#define UVC_QUIRK_BUILTIN_ISIGHT	0x00000008
#define UVC_QUIRK_STREAM_NO_FID		0x00000010
#define UVC_QUIRK_IGNORE_SELECTOR_UNIT	0x00000020
#define UVC_QUIRK_FIX_BANDWIDTH		0x00000080
#define UVC_QUIRK_PROBE_DEF		0x00000100
#define UVC_QUIRK_RESTRICT_FRAME_RATE	0x00000200
#define UVC_QUIRK_RESTORE_CTRLS_ON_INIT	0x00000400
#define UVC_QUIRK_FORCE_Y8		0x00000800
#define UVC_QUIRK_FORCE_BPP		0x00001000
#define UVC_QUIRK_WAKE_AUTOSUSPEND	0x00002000
#define UVC_QUIRK_NO_RESET_RESUME	0x00004000
#define UVC_QUIRK_DISABLE_AUTOSUSPEND	0x00008000
#define UVC_QUIRK_INVALID_DEVICE_SOF	0x00010000
printf '0x%x' $((0x00008000|0x00004000|0x00002000|0x00000400))

Try "uvcvideo.quirks=0xe400" but looking at that list I realize that I haven't asked whether you've a parallel windows installation (and forgot to disable fast-start)…?

Offline

#10 2025-01-31 18:34:57

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

I have tried using the uvcvideo quirks as you suggested but unfortunately they still couldn't fix the issue.

And while Windows used to be installed on my second drive, I removed long ago.

At this point I will try completely uninstalling LMT and see where that takes me.

As usual I replicated the issue again after rebooting and kept logs:
http://0x0.st/88ll.txt

Edit: I uninstalled LMT completely but the issue is still there...
I did the same thing again and kept another journal if you want to take a look:
http://0x0.st/88l7.txt

Last edited by Bepis (2025-01-31 18:40:24)


vim

Offline

#11 2025-02-01 12:42:09

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

The disconnect timeout dropped from 30s to 23s,

Jan 31 13:36:56 Bepis-Laptop dbus-broker-launch[878]: Activation request for 'org.bluez' failed: The systemd unit 'dbus-org.bluez.service' could not be found.

remains inbetween…

I'll throw a curveball: what happens if you replace the deprecated PW-media-session w/ wireplumber?

Offline

#12 2025-02-02 17:12:42

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

Well this certainly is progress!

The camera seems to have stopped disconnecting, but now when I try to use it it just keeps loading forever whereas before there was a chance that it would be working for a couple seconds before disconnecting.
Also I don't know what bluez might have to do with this but I am getting a hard time connecting bluetooth devices as well (still trying to figure that one out, maybe the two are related?)


vim

Offline

#13 2025-02-02 21:09:32

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

Please post an updated journal so we can see what's going on now.

Offline

#14 2025-02-03 15:07:17

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

Oops, forgot to include it in the reply. Here it is:
http://0x0.st/8KMN.txt


vim

Offline

#15 2025-02-04 08:06:48

seth
Member
Registered: 2012-09-03
Posts: 60,859

Re: Built-in webcam disconnects when I try to use it

https://archlinux.org/packages/extra/x86_64/bluez/

Feb 03 10:05:12 Bepis-Laptop kernel: usb 1-13: Found UVC 1.00 device HD Webcam (04f2:b641)
Feb 03 10:05:12 Bepis-Laptop kernel: usb 1-13: Forcing device quirks to 0xe400 by module parameter for testing purpose.
Feb 03 10:05:12 Bepis-Laptop kernel: usb 1-13: Please report required quirks to the linux-media mailing list.

what if you remove them again?

Offline

#16 2025-02-04 21:54:50

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

I just tried removing the quirks, unfortunately this did not change anything.
Here is another journal: http://0x0.st/8K3G.txt

I will mention that this time the only USB device that is (externally) connected to my laptop is a USB wireless keyboard with touchpad.


vim

Offline

#17 2025-02-06 01:12:55

Bepis
Member
Registered: 2023-10-05
Posts: 18

Re: Built-in webcam disconnects when I try to use it

Hi again, I just noticed that what I said earlier about my camera not connecting at all might have been wrong. It seems that the issue has not changed from the initial issue, meaning that it is still disconnecting after a few seconds.

However, I do think I noticed a pattern. My camera seems to only start disconnecting consistently when my CPU's temperature is high enough ( > 90°C ). Otherwise it seems relatively fine.
I have just tried it with both Microsoft Teams and Discord and in both cases it appears to work fine at first until my CPU's temperature climbed up to ~95°C. I am pretty sure the camera is not the cause of the temperature change, rather the CPU usage of the software I use.


vim

Offline

Board footer

Powered by FluxBB