My built-in webcam isn't working because of this error: usb usb1-port5: unable to enumerate USB device

Hi!
My laptop's built-in webcam isn't working. I got some error logs in journalctl which I cannot understand. The errors are given below:

[Jun13 10:49] usb 1-5: device descriptor read/64, error -71
[  +0.229991] usb 1-5: device descriptor read/64, error -71
[  +0.353343] usb 1-5: device descriptor read/64, error -71
[  +0.230000] usb 1-5: device descriptor read/64, error -71
[  +1.163302] usb 1-5: device not accepting address 4, error -71
[  +0.536157] usb 1-5: device not accepting address 5, error -71
[  +0.000114] usb usb1-port5: unable to enumerate USB device

My system information given below:

inxi -Fxxxza --no-host
System:
  Kernel: 5.7.0-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 
  root=UUID=93b587c9-40a1-4a58-833f-5a1f1803bdf7 rw quiet splash 
  pcie_aspm=off 
  Desktop: KDE Plasma 5.18.5 tk: Qt 5.14.2 info: latte-dock wm: kwin_x11 
  dm: SDDM Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: P553UJ v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: P553UJ v: 1.0 serial: <filter> UEFI: ASUSTeK 
  v: P553UJ.305 date: 04/20/2019 
Battery:
  ID-1: BAT0 charge: 20.8 Wh condition: 57.9/72.4 Wh (80%) volts: 10.8/10.8 
  model: ASUSTeK ASUS Battery type: Li-ion serial: <filter> 
  status: Discharging cycles: 577 
CPU:
  Topology: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP 
  arch: Skylake family: 6 model-id: 4E (78) stepping: 3 microcode: D6 
  L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 19204 
  Speed: 800 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 800 2: 801 
  3: 800 4: 802 
  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: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: ASUSTeK 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1916 
  Device-2: NVIDIA GK208BM [GeForce 920M] vendor: ASUSTeK driver: nouveau 
  v: kernel bus ID: 01:00.0 chip ID: 10de:1299 
  Display: x11 server: X.Org 1.20.8 driver: intel,nouveau 
  unloaded: modesetting alternate: fbdev,nv,vesa compositor: kwin_x11 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.0.7 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d70 
  Device-2: NVIDIA GK208 HDMI/DP Audio driver: snd_hda_intel v: kernel 
  bus ID: 01:00.1 chip ID: 10de:0e0f 
  Sound Server: ALSA v: k5.7.0-3-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: AzureWave driver: ath10k_pci v: kernel port: d000 bus ID: 03:00.0 
  chip ID: 168c:0042 
  IF: wlp3s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 94.08 GiB (10.1%) 
  ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS541010A7E630 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B 
  speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: A4A0 scheme: GPT 
Partition:
  ID-1: / raw size: 931.22 GiB size: 915.60 GiB (98.32%) 
  used: 94.08 GiB (10.3%) fs: ext4 dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: N/A gpu: nouveau temp: 39 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 195 Uptime: 7h 41m Memory: 7.67 GiB used: 1.44 GiB (18.8%) 
  Init: systemd v: 245 Compilers: gcc: 10.1.0 Shell: bash v: 5.0.17 
  running in: konsole inxi: 3.0.37 

My usb ports are working fine.

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 13d3:3491 IMC Networks 
Bus 001 Device 044: ID 258a:0001 SINO WEALTH USB KEYBOARD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

uname -r
5.7.0-3-MANJARO

I've tried different kernels like linux419, linux414, linux54 but couldn't be able to resolve the issue. Please help me.

Make sure you disable Fast Boot and Secure Boot from BIOS.
In some cases adding usbcore.old_scheme_first=1 as kernel boot parameter can help, but maybe better investigate this first:


Also, because now you use

maybe is worth to check


You will have better performance over nouveau drivers.

1 Like

I've tried to install the nvidia nonfree driver following these commands:

sudo mhwd -f -r pci video-linux
sudo mhwd -f -i pci video-hybrid-intel-nvidia-390xx-bumblebee
sudo gpasswd -a $USER bumblebee
reboot

But in the inxi -G command it's showing driver:N/A

inxi -Gx
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: ASUSTeK 
  driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GK208BM [GeForce 920M] driver: N/A bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.8 driver: intel resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.0.7 
  direct render: Yes 

mhwd -li:

mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI


Warning: No installed USB configs!

Please help me resolving the issue here :frowning:

That looks fine for the GPU part. If you want to open an application using the dGPU just run it like this:
optirun <application>
or
primusrun <application>

Regarding the USB device descriptor, have you tried to add those custom kernel boot parameters i mentioned?
Have you tried different kernels too?

Edited for a typo!

1 Like

How can I set the OpenGL renderer to Nvidia graphics? Or should I leave it as it is. I can't understand if my machine is using the Nvidia graphics card or not.

For the usb descriptor part, I haven't tried the kernel boot parameter yet! I will let you know about that.

I'm not aware of a way to set OpenGL renderer to Nvidia in a bumblebee scenario. You have to set it to use PRIME (do not confuse with prime-offload)


With that the system will always run trough the dGPU aka nvidia GPU, but battery will not last long.

Otherwise, like i said, using for example:
optirun glxinfo | grep OpenGL
and
optirun glxspheres64
will run trough the nvidia GPU

optirun glxinfo | grep OpenGL
[ 2739.939440] [ERROR]Cannot access secondary GPU - error: Could not enable discrete graphics card

[ 2739.939589] [ERROR]Aborting because fallback start is disabled.


But with this we now go full stop for a totally different issue than the title presents ... and the steps to fix things should start from proper kernel boot parameters for that asus laptop model.

1 Like

Buddy, I really messed up with the X11 driver. Please help me here. My screen resolution gone crazy due to this. I know this is beyond the scope of my topic but I'm afraid I had to ask you this.
inxi -Gx:

inxi -Gx
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: ASUSTeK 
  driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GK208BM [GeForce 920M] vendor: ASUSTeK driver: nouveau 
  v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.8 driver: none tty: N/A 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.0.7 
  direct render: Yes 

it's showing the x11 driver is none. How can I reset everything back to normal. Please help me out.

You (re)installed video-linux and you did not remove the video-hybrid-intel-nvidia-390xx-bumblebee, or you installed video-modesetting ... or you installed something trough pacman or pamac and not trough mhwd.
To get it back as it was it should be:
sudo mhwd -r pci video-hybrid-intel-nvidia-390xx-bumblebee

1 Like

I've tried the kernel boot parameter as you told me to do. But it didn't resolve the issue. The errors are still there and I can't use the webcam. :frowning:

Please take another look in BIOS setup for your machine. Something about USB might be off or set to disable it.

1 Like

I've checked everything in BIOS. There's nothing wrong with BIOS. Because few days ago everything was fine. There was no usb error and my webcam was working just fine. The webcam was working fine in windows too. Is it something to do with the pcie? I'm a noob.

Ok, let's get back one step. What changed since then? Did you change the kernel, did you updated the system?
Make sure your Windows doesn't have the Fast Boot option ON. Disable it.


Everything i thought to be related i mentioned already, but could be something i don't get. Maybe someone else will pass by with an opinion.

2 Likes

I don't dual boot. Manjaro kde is my daily driver. I used to use Windows on this machine. Back then the webcam never had any problem in windows. After switching to Manjaro everything was fine until last week when I got those usb enumeration error. When I opened Cheese it said me "No device is found". I thought it was Cheese issue so I uninstall it and install GuVCView but it said me the same message. "No device is found".

Try to boot from Live Media, even if you test with different distribution. That way you can know is something is wrong with the installed system, or something else.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by