Laptop webcam not detected anymore

Hello,

well sorry to be posting so soon again with a request for help.
I have just noticed that my laptop webcam is no longer detected. I don’t know if it’s due to the an update or user error.

So first my inxi -Fazy output:

system info

System:
Kernel: 5.4.64-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64
root=UUID=a921f289-11e7-44a1-ba84-12d281898128 rw quiet
resume=UUID=bd865a76-1f4e-41d5-918f-5a9d575ac35c fbcon=scrollback:1024k
Desktop: Xfce 4.14.2 tk: Gtk 3.24.20 info: xfce4-panel wm: xfwm4
dm: LightDM 1.30.0 Distro: Manjaro Linux
Machine:
Type: Laptop System: System76 product: Galago Pro v: galp3-b
serial: Chassis: type: 10 serial:
Mobo: System76 model: Galago Pro v: galp3-b serial:
UEFI: American Megatrends v: 1.05.02S76 date: 03/26/2018
Battery:
ID-1: BAT0 charge: 32.1 Wh condition: 32.1/35.3 Wh (91%) volts: 12.9/11.4
model: Notebook BAT type: Li-ion serial: status: Full
CPU:
Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP
arch: Kaby Lake family: 6 model-id: 8E (142) stepping: A (10) microcode: D6
L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 32012
Speed: 800 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800
4: 800 5: 800 6: 801 7: 800 8: 800
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel UHD Graphics 620 vendor: CLEVO/KAPOK driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:5917
Display: x11 server: X.Org 1.20.8 driver: intel unloaded: modesetting
alternate: fbdev,vesa display ID: :0.0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 157 size: 310x170mm (12.2x6.7")
diag: 354mm (13.9")
Monitor-2: DP1 res: 1920x1080 hz: 60 dpi: 163 size: 300x260mm (11.8x10.2")
diag: 397mm (15.6")
Monitor-3: HDMI2 res: 1920x1080 hz: 60 dpi: 81 size: 600x340mm (23.6x13.4")
diag: 690mm (27.2")
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.1.7
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: CLEVO/KAPOK
driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus ID: 00:1f.3
chip ID: 8086:9d71
Device-2: Logitech B525 HD Webcam type: USB driver: snd-usb-audio,uvcvideo
bus ID: 1-7:11 chip ID: 046d:0836 serial:
Sound Server: ALSA v: k5.4.64-1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: CLEVO/KAPOK driver: r8169 v: kernel port: e000 bus ID: 3a:00.1
chip ID: 10ec:8168
IF: enp58s0f1 state: up speed: 1000 Mbps duplex: full mac:
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: e000
bus ID: 3b:00.0 chip ID: 8086:24fd
IF: wlp59s0 state: down mac:
Drives:
Local Storage: total: 1.48 TiB used: 74.49 GiB (4.9%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/mmcblk0 vendor: Swissbit model: SF128 size: 119.08 GiB
block size: physical: 512 B logical: 512 B serial: scheme: MBR
ID-2: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB size: 465.76 GiB
block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
serial: rev: 2B2QEXE7 scheme: GPT
ID-3: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial:
rev: 2B6Q scheme: MBR
Partition:
ID-1: / raw size: 448.36 GiB size: 440.33 GiB (98.21%)
used: 68.04 GiB (15.5%) fs: ext4 dev: /dev/nvme0n1p2
Swap:
Kernel: swappiness: 10 (default 60) cache pressure: 100 (default)
ID-1: swap-1 type: partition size: 17.10 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3
Sensors:
System Temperatures: cpu: 61.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 237 Uptime: 12m Memory: 15.52 GiB used: 1.60 GiB (10.3%)
Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1253 lib: 393
Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.05

before posting, I checked this post where @bogdancovaciu provided some info, so I did the following:

sudo rmmod uvcvideo && sudo modprobe uvcvideo
I got no errors and no output, but still can’t see my webcam.

I then tried:
v4l2-ctl --list-devices
but got:
Cannot open device /dev/video0, exiting.

I should say my system is up-to-date via sudo pacman -Syyu too.

I then also read the arch-wiki and ran
sudo dmesg | grep usb
I don’t know what to look for in here though, perhaps the answer is here?

dmesg | grep usb output

[ 0.613219] usbcore: registered new interface driver usbfs
[ 0.613219] usbcore: registered new interface driver hub
[ 0.613219] usbcore: registered new device driver usb
[ 0.964673] usbcore: registered new interface driver usbserial_generic
[ 0.964677] usbserial: USB Serial support registered for generic
[ 1.368074] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 1.368076] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.368078] usb usb1: Product: xHCI Host Controller
[ 1.368085] usb usb1: Manufacturer: Linux 5.4.64-1-MANJARO xhci-hcd
[ 1.368087] usb usb1: SerialNumber: 0000:00:14.0
[ 1.369532] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 1.369534] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.369536] usb usb2: Product: xHCI Host Controller
[ 1.369538] usb usb2: Manufacturer: Linux 5.4.64-1-MANJARO xhci-hcd
[ 1.369540] usb usb2: SerialNumber: 0000:00:14.0
[ 1.370027] usb: port power management may be unreliable
[ 2.532799] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 3.492776] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 3.492810] usb usb1-port4: attempt power cycle
[ 4.773154] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 5.733029] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 5.733057] usb usb1-port4: unable to enumerate USB device
[ 5.856478] usb 1-5: new full-speed USB device number 6 using xhci_hcd
[ 5.998381] usb 1-5: New USB device found, idVendor=8087, idProduct=0a2b, bcdDevice= 0.10
[ 5.998388] usb 1-5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 7.278115] usbcore: registered new interface driver btusb
[ 457.277031] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 458.243736] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 458.243827] usb usb1-port4: attempt power cycle
[ 459.527109] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 460.490431] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 460.490528] usb usb1-port4: unable to enumerate USB device
[ 460.617099] usb 1-7: new high-speed USB device number 11 using xhci_hcd
[ 461.034879] usb 1-7: New USB device found, idVendor=046d, idProduct=0836, bcdDevice= 0.10
[ 461.034885] usb 1-7: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[ 461.034889] usb 1-7: Product: B525 HD Webcam
[ 461.034894] usb 1-7: SerialNumber: 4F9592B0
[ 461.762597] usb 1-7: Warning! Unlikely big volume range (=6144), cval->res is probably wrong.
[ 461.762599] usb 1-7: [5] FU [Mic Capture Volume] ch = 1, val = 1536/7680/1
[ 461.762919] usbcore: registered new interface driver snd-usb-audio
[ 461.800275] input: B525 HD Webcam as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.2/input/input24
[ 461.800333] usbcore: registered new interface driver uvcvideo
[ 470.767330] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 470.894237] usb 1-7: reset high-speed USB device number 11 using xhci_hcd
[ 472.003940] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 472.003974] usb usb1-port4: attempt power cycle
[ 473.280620] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 474.240615] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 474.240660] usb usb1-port4: unable to enumerate USB device
[ 490.587602] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 491.547630] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 491.547705] usb usb1-port4: attempt power cycle
[ 492.824303] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 493.787662] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 493.787737] usb usb1-port4: unable to enumerate USB device
[ 533.681635] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 534.641673] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 534.641742] usb usb1-port4: attempt power cycle
[ 535.914985] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 536.875293] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 536.875384] usb usb1-port4: unable to enumerate USB device
[ 978.685268] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 979.645331] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 979.645444] usb usb1-port4: attempt power cycle
[ 980.918615] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 981.878657] usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
[ 981.878750] usb usb1-port4: unable to enumerate USB device
[ 981.878791] usb 1-7: USB disconnect, device number 11
[ 1064.232231] usbcore: deregistering interface driver uvcvideo
[ 1064.273049] usbcore: registered new interface driver uvcvideo

obviously this:
usb usb1-port4: Cannot enable. Maybe the USB cable is bad?
doesn’t look good, but I don’t see how to fix this as the laptop hasn’t been knocked or damaged in any way and the webcam worked fine before the last update (of course correlation is not causation).

Well any help that can be provided would be very much appreciated as always.

Thank you for reading this whether you can help or not.

well… I did the windows thing, I rebooted, and now it’s working again.

I don’t know but I’d say it was probably what Bogdan recommended that solved the problem:

sudo rmmod uvcvideo && sudo modprobe uvcvideo with a reboot afterwards.

So in any case thanks to him and perhaps this will help someone else :man_shrugging:

So I’ve unmarked the solution - I hope that’s ok?

reason being I’m back with exactly the same problem. My inbuilt webcam once again is not being detected.