WebCam stopped working on Asus Laptop

Hello, everyone.

Problem

I have two Asus laptops with Manjaro XFCE, in both the integrated webcam stopped working suddenly.
I believe it’s related to an update but I’m not sure.

Webcam is not even detected now. (i.e. no /dev/video* file in fs)

note on more posts on this topic

I found a lot of post on this regard, but none of those helped me, so I’m posting a new one.

facts

Manjaro LiveCD (or USB stick) works Ok, it recognizes the webcam.

information

Here some information I collected from one of the two laptops ( ASUS ZenBook UM431D):

$ uname -r
5.15.21-1-MANJARO

$ yay -Q linux-headers
linux515-headers 5.15.21-1

$ v4l2-ctl -l
Cannot open device /dev/video0, exiting.

$ ls /dev/video*
ls: no se puede acceder a '/dev/video*': No existe el fichero o el directorio

$ sudo rmmod uvcvideo && sudo modprobe uvcvideo
$ sudo dmesg | grep uvc
[   10.392005] uvcvideo: probe of 3-2.1:1.0 failed with error -22
[   10.392097] usbcore: registered new interface driver uvcvideo
[  373.818573] usbcore: deregistering interface driver uvcvideo
[  373.933825] usbcore: registered new interface driver uvcvideo

$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
02:00.0 Non-Volatile memory controller: SK hynix BC501 NVMe Solid State Drive
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c1)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
03:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
04:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)



Thanks.

What about trying another kernel (5.10 ???)

How to increase your chances of solving your issue:

Please provide Information:

Hey, thanks, I tried… I downgraded to 5.10 but it was the same. (downgraded and installed the headers for the new kernel)

This is hard, typically webcams are connected through internal USB hub, and I don’t see one in your lsusb output. However, you haven’t scanned dmesg, which may have some info. Try:

$ dmesg | grep -i uvc

Thanks, @leledumbo , the output is already added to the OP.

I found a funny fact now. The problem is like this:

  • if I power on the laptop with the power cord in, the webcam works
  • if I power on the laptop without the power cord (aka on battery), the webcam does not work

I don’t know where to start looking for clues… if anyone can help I’ll appreciate it!