Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] webcam device disappears, returns when (un)plugged
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 443

PostPosted: Tue Apr 23, 2024 3:42 am    Post subject: [SOLVED] webcam device disappears, returns when (un)plugged Reply with quote

When I use my webcam for an extended period, the device disappears from /dev, and software using the camera loses the video feed. It's a razer kiyo, and the device shows up as /dev/video0 and /dev/video1. If I unplug the camera's USB jack and plug it back in immediately, the device returns immediately. At first, I suspected that the camera might not be getting enough power, so I tried plugged it into a powered USB hub, but the results were the same. Does anyone have any ideas?

Here's the output of dmesg from right around the time the camera disappears. There's a ton of errors, but I'm not sure how to diagnose the problem.


Code:
[652847.224758] No Sense: No additional sense information
[652847.224774] scsi cmd done, result=0x2
[652847.224779] *** thread sleeping
[652911.323989] usb 1-1: reset high-speed USB device number 60 using xhci_hcd
[652916.443028] usb 1-1: device descriptor read/64, error -110
[652922.074949] usb 1-1: device descriptor read/64, error -71
[652922.291027] usb 1-1: reset high-speed USB device number 60 using xhci_hcd
[652922.405123] usb 1-1: device descriptor read/64, error -71
[652922.627026] usb 1-1: device descriptor read/64, error -71
[652922.844078] usb 1-1: reset high-speed USB device number 60 using xhci_hcd
[652922.844239] usb 1-1: Device not responding to setup address.
[652923.049159] usb 1-1: Device not responding to setup address.
[652923.256998] usb 1-1: device not accepting address 60, error -71
[652923.371004] usb 1-1: reset high-speed USB device number 60 using xhci_hcd
[652923.371166] usb 1-1: Device not responding to setup address.
[652923.577168] usb 1-1: Device not responding to setup address.
[652923.784993] usb 1-1: device not accepting address 60, error -71
[652923.785276] usb 1-1: USB disconnect, device number 60
[652923.901801] usb 1-1: new high-speed USB device number 62 using xhci_hcd
[652924.015823] usb 1-1: device descriptor read/64, error -71
[652924.234948] usb 1-1: device descriptor read/64, error -71
[652924.450991] usb 1-1: new high-speed USB device number 63 using xhci_hcd
[652924.564999] usb 1-1: device descriptor read/64, error -71


Last edited by jyoung on Sun Apr 28, 2024 4:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1397
Location: Germany

PostPosted: Tue Apr 23, 2024 5:32 am    Post subject: Reply with quote

Does this device is plugged in directly to your PC? I do suspect kind of power thing. I had a webcam pluged in into my mintor and then connected into my PC. Kept failing as yours. Movin it into a direct and only used port solved it.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 443

PostPosted: Wed Apr 24, 2024 8:54 pm    Post subject: Reply with quote

The camera is plugged into the computer via a USB extension cable. The extension cable is plugged directly into the computer, and not through the monitor or the like. Unfortunately, the cable really isn't optional for my setup (I'm watching wild life in the backyard).

However, your suggestion did get me thinking that maybe running the connection through the cable is a power drain, so now I'm doing another test: I've plugged the camera into the power USB hub at the location of the camera, and then connected the hub to the computer with the extension cable. Before, when I tried the hub, it was at the computer. So far, this seems to be working. I'm going to give it another day or so and then report back.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1397
Location: Germany

PostPosted: Thu Apr 25, 2024 7:27 am    Post subject: Reply with quote

This sound like it could be the problem. There are cable length specifications[1] and the effects vary depending on the cable and device used

[1] https://www.yourcablestore.com/USB-Cable-Length-Limitations-And-How-To-Break-Them_ep_42-1.html
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 443

PostPosted: Sun Apr 28, 2024 4:09 am    Post subject: Reply with quote

That was it! Putting the power supply at the camera end solved this. Thanks for helping me diagnose this problem!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum