You are not logged in.

#1 2024-05-05 23:25:41

elintendo
Member
Registered: 2023-12-21
Posts: 20
Website

Headache with Chicony Webcam, part 2

The problem has come again.

The laptop is Lenovo S340-14IIL.
The camera is:

~ lsusb | grep -i cam
Bus 001 Device 007: ID 04f2:b61e Chicony Electronics Co., Ltd Integrated Camera

The issue is the following:
About 1-2 years ago, I could use my camera for 10-15 minutes, then the image disappeared.

For last ~6 months, when I try to run something that uses the camera (like Zoom or Skype), the indicator light flashes for a split second. Most of the time I get no image at all, but sometimes I get a partial ghost image that lingers for up to maybe ten seconds before going entirely black. (I took this description from another guy, my problem is totally the same).

My current setup is: linux-lts + xorg-server + herbsluftwm + alsa + google-chrome

What I see in journal:

May 06 01:56:37 yoshi kernel: usb 1-6: Product: Integrated Camera
May 06 01:56:37 yoshi kernel: usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
May 06 01:56:37 yoshi kernel: usb 1-6: SerialNumber: 0001
May 06 01:56:38 yoshi kernel: usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
......... (here I try to access camera via Zoom/Skype/Chrome)
May 06 01:58:16 yoshi kernel: usb 1-6: USB disconnect, device number 2
May 06 01:58:17 yoshi kernel: usb 1-6: new high-speed USB device number 4 using xhci_hcd
May 06 01:58:17 yoshi kernel: usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
May 06 01:58:17 yoshi kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
May 06 01:58:17 yoshi kernel: usb 1-6: Product: Integrated Camera
May 06 01:58:17 yoshi kernel: usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
May 06 01:58:17 yoshi kernel: usb 1-6: SerialNumber: 0001
May 06 01:58:17 yoshi kernel: usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
May 06 01:58:50 yoshi kernel: usb 1-6: USB disconnect, device number 4
May 06 01:58:50 yoshi kernel: uvcvideo 1-6:1.1: Failed to resubmit video URB (-19).
May 06 01:58:51 yoshi kernel: usb 1-6: new high-speed USB device number 5 using xhci_hcd
May 06 01:58:51 yoshi kernel: usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
May 06 01:58:51 yoshi kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
May 06 01:58:51 yoshi kernel: usb 1-6: Product: Integrated Camera
May 06 01:58:51 yoshi kernel: usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
May 06 01:58:51 yoshi kernel: usb 1-6: SerialNumber: 0001
May 06 01:58:51 yoshi kernel: usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
May 06 01:58:53 yoshi kernel: usb 1-6: USB disconnect, device number 5
May 06 01:58:53 yoshi kernel: uvcvideo 1-6:1.1: Failed to resubmit video URB (-19).
May 06 01:58:54 yoshi kernel: usb 1-6: new high-speed USB device number 6 using xhci_hcd
May 06 01:58:54 yoshi kernel: usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
May 06 01:58:54 yoshi kernel: usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
May 06 01:58:54 yoshi kernel: usb 1-6: Product: Integrated Camera
May 06 01:58:54 yoshi kernel: usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
May 06 01:58:54 yoshi kernel: usb 1-6: SerialNumber: 0001
May 06 01:58:54 yoshi kernel: usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)

dmesg output (later tries)

[  499.758107] usb 1-6: USB disconnect, device number 4
[  500.143097] usb 1-6: new high-speed USB device number 5 using xhci_hcd
[  500.329937] usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
[  500.329947] usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[  500.329950] usb 1-6: Product: Integrated Camera
[  500.329952] usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
[  500.329954] usb 1-6: SerialNumber: 0001
[  500.335712] usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
[  519.900860] usb 1-6: USB disconnect, device number 5
[  519.902960] uvcvideo 1-6:1.1: Failed to resubmit video URB (-19).
[  520.286439] usb 1-6: new high-speed USB device number 6 using xhci_hcd
[  520.473954] usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
[  520.473971] usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[  520.473974] usb 1-6: Product: Integrated Camera
[  520.473976] usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
[  520.473978] usb 1-6: SerialNumber: 0001
[  520.480029] usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)
[  544.449372] usb 1-6: USB disconnect, device number 6
[  544.451673] uvcvideo 1-6:1.1: Failed to resubmit video URB (-19).
[  544.836356] usb 1-6: new high-speed USB device number 7 using xhci_hcd
[  545.026235] usb 1-6: New USB device found, idVendor=04f2, idProduct=b61e, bcdDevice= 4.25
[  545.026244] usb 1-6: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[  545.026247] usb 1-6: Product: Integrated Camera
[  545.026249] usb 1-6: Manufacturer: Chicony Electronics Co.,Ltd.
[  545.026251] usb 1-6: SerialNumber: 0001
[  545.031849] usb 1-6: Found UVC 1.00 device Integrated Camera (04f2:b61e)

Installed packages:

~ pacman -Qe
alsa-utils 1.2.11-1
autorandr 1.15-1
base 3-2
base-devel 1-1
brightnessctl 0.5.1-2
btop 1.3.2-1
efibootmgr 18-3
eza 0.18.14-6
feh 3.10.2-1
firefox 125.0.3-2
fish 3.7.1-2
flameshot 12.1.0-3
git 2.45.0-1
github-cli 2.49.0-1
google-chrome 124.0.6367.118-1
grub 2:2.12-2
helix 24.03-1
herbstluftwm 0.9.5-1
i3lock 2.15-1
kitty 0.33.1-4
linux-firmware 20240409.1addd7dc-1
linux-lts 6.6.30-1
lshw B.02.20-1
networkmanager 1.46.0-2
noto-fonts 1:24.5.1-1
noto-fonts-cjk 20230817-1
noto-fonts-emoji 1:2.042-1
noto-fonts-extra 1:24.5.1-1
openssh 9.7p1-2
parcellite 1.2.2-1
parted 3.6-1
paru-bin 2.0.3-3
paru-bin-debug 2.0.3-3
polybar 3.7.1-1
qbittorrent 4.6.4-1
rofi 1.7.5-2
telegram-desktop 5.0.1-1
ttf-0xproto-nerd 3.2.1-1
ttf-jetbrains-mono-nerd 3.2.1-1
usbutils 017-1
xdg-desktop-portal 1.18.4-1
xdg-desktop-portal-gtk 1.15.1-2
xorg-server 21.1.13-1
xorg-xev 1.2.6-1
xorg-xinit 1.4.2-1
xorg-xset 1.2.5-1

Xinitrc (executable file):

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps
if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xrdb ~/.Xresources
parcellite &
flameshot &
exec herbstluftwm --locked

I have tried the following, nothing helped:
- switch to linux-lts back and forth
- test camera both in Chrome/Cheese and Firefox
- both with xdg-desktop-portal (+/- gtk backend) and without it
- switch from pipewire to plain ALSA

Two people reporting the same problem, no one could help them.
https://askubuntu.com/questions/1476195 … a-crashing
https://forum.endeavouros.com/t/issue-w … /21?page=2

Many people reporting the same bug on Linux (the link of the very similar case to mine):
https://bugs.launchpad.net/ubuntu/+sour … comments/9

Any help is appreciated.

Last edited by elintendo (2024-05-05 23:44:16)

Offline

#2 2024-05-08 09:45:50

elintendo
Member
Registered: 2023-12-21
Posts: 20
Website

Re: Headache with Chicony Webcam, part 2

Even suggestions are very welcome big_smile

Offline

#3 2024-05-08 22:23:53

seth
Member
Registered: 2012-09-03
Posts: 52,255

Re: Headache with Chicony Webcam, part 2

https://bbs.archlinux.org/viewtopic.php … 4#p2149974
Seems the flicker is back?

The disconnects have nothing to do w/ some userspace stack (wireplumber, your browser etc.)
Does this only happen on battery or also on external power supply?

B/c of "zoom or skype", do you use wifi or bluetooth at the time?
Can you try w/o either?

Online

#4 2024-05-13 03:40:18

elintendo
Member
Registered: 2023-12-21
Posts: 20
Website

Re: Headache with Chicony Webcam, part 2

seth wrote:

https://bbs.archlinux.org/viewtopic.php … 4#p2149974
Seems the flicker is back?

The disconnects have nothing to do w/ some userspace stack (wireplumber, your browser etc.)
Does this only happen on battery or also on external power supply?

B/c of "zoom or skype", do you use wifi or bluetooth at the time?
Can you try w/o either?

I do not use bluetooth. I use wifi only (have no ethernet). I tried 4 possible combinations of wifi and power supply, camera seems to not work anyway.

Offline

#5 2024-05-13 06:29:40

seth
Member
Registered: 2012-09-03
Posts: 52,255

Re: Headache with Chicony Webcam, part 2

https://wiki.archlinux.org/title/Power_ … utosuspend ?
Adding "usbcore.autosuspend=-1" to the https://wiki.archlinux.org/title/Kernel_parameters will disable that globally but the kernel setting can and will be overridden by power maangement tools like TLP at runtime and therefore has to be configured there (as well).

Online

Board footer

Powered by FluxBB