You are not logged in.
I am running arch linux with kernel version 5.10.5 (i already tried this on the zen kernel and lts 5.4.86 with the exact same result). The webcam is a "Logitech StreamCam", plugged into my ASUS ROG Maximus VIII Hero's USB-C Port.
The Problem is that the USB-Controller fails when I set the webcam resolution to anything higher than 480p in obs-studio (26.1.0-2) , after that the USB port is dead (no usb device that i tried will show up) until I reboot.
I already updated my mainboard firmware and i still get the same result. The webcam is known good and works as expected on my laptop (also running arch), but produces the same current rate/runtime rate complaints in the dmesg output.
This is the verbose lsusb output of the USB "Device" before I plug in the webcam: http://paste.debian.net/hidden/f962f1ea
After the failure the output stops after the "Device Descriptor" section and does not incluce the "Hub Descriptor" section.
This is the relevant dmesg output:
[ 506.979147] usb 4-2: USB disconnect, device number 2
[ 510.260259] usb 4-2: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 510.280546] usb 4-2: New USB device found, idVendor=046d, idProduct=0893, bcdDevice= 3.17
[ 510.280551] usb 4-2: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[ 510.280554] usb 4-2: Product: Logitech StreamCam
[ 510.280556] usb 4-2: SerialNumber: B58C4E25
[ 510.299106] usb 4-2: current rate 16000 is different from the runtime rate 24000
[ 510.306083] usb 4-2: current rate 16000 is different from the runtime rate 32000
[ 510.313096] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 510.356201] hid-generic 0003:046D:0893.0006: hiddev99,hidraw5: USB HID v1.11 Device [Logitech StreamCam] on usb-0000:04:00.0-2/input5
[ 510.413365] videodev: Linux video capture interface: v2.00
[ 510.428787] uvcvideo: Found UVC 1.00 device Logitech StreamCam (046d:0893)
[ 510.444830] input: Logitech StreamCam as /devices/pci0000:00/0000:00:1c.0/0000:04:00.0/usb4/4-2/4-2:1.0/input/input41
[ 510.444869] usbcore: registered new interface driver uvcvideo
[ 510.444869] USB Video Class driver (1.1.1)
[ 510.462036] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 510.474013] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 510.486035] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 531.593265] usb 4-2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 543.665519] xhci_hcd 0000:04:00.0: xHCI host not responding to stop endpoint command.
[ 543.665524] xhci_hcd 0000:04:00.0: USBSTS:
[ 543.665552] xhci_hcd 0000:04:00.0: xHCI host controller not responding, assume dead
[ 543.665555] xhci_hcd 0000:04:00.0: HC died; cleaning up
[ 543.665568] usb 4-2: USB disconnect, device number 3
however dmesg sometimes spams this after the inital complaints about a differing runtime rate:
[ 42.643026] xhci_hcd 0000:04:00.0: Looking for event-dma 000000007eb35010 trb-start 000000007eb35000 trb-end 000000007eb35000 seg-start 000000007eb35000 seg-end 000000007eb35ff0
[ 42.643031] xhci_hcd 0000:04:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 13
Last edited by Kieldozer (2021-01-07 20:00:10)
Offline
Do you maybe use a USB2 port?
lsusb -tv
(before stuff breaks)
Offline
Do you maybe use a USB2 port?
No, it seems to connect with the proper 3.0 speed.
`--> lsusb -tvv
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/sys/bus/usb/devices/ /dev/bus/usb/004/001
|__ Port 2: Dev 2, If 0, Class=Video, Driver=uvcvideo, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
|__ Port 2: Dev 2, If 1, Class=Video, Driver=uvcvideo, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
|__ Port 2: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
|__ Port 2: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
|__ Port 2: Dev 2, If 4, Class=Vendor Specific Class, Driver=, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
|__ Port 2: Dev 2, If 5, Class=Human Interface Device, Driver=usbhid, 5000M
ID 046d:0893 Logitech, Inc.
/sys/bus/usb/devices/4-2 /dev/bus/usb/004/002
(this is with the webcam connected, but before using it and causing the controller to fail)
Offline
The BrioCam (I understand that you've a "StreamCam") has a bunch of similar google hits that were fixed w/ a firmware update to the camera.
Do you get a stream of -110 errors and re-connects of the device?
Offline
I do not see anything that hints to constant re-connects.
Unfortunately the firmware thing only applies to the BRIO, not the StreamCam. Logitech does not seem to offer updated firmware for this model.
The proprietary firmware is of course probably far from perfect, but even if, I don't see how just defective firmware could crash the USB-Controller and result in
[ 510.462036] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 510.474013] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 510.486035] usb 4-2: current rate 16000 is different from the runtime rate 48000
[ 531.593265] usb 4-2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 543.665519] xhci_hcd 0000:04:00.0: xHCI host not responding to stop endpoint command.
[ 543.665524] xhci_hcd 0000:04:00.0: USBSTS:
[ 543.665552] xhci_hcd 0000:04:00.0: xHCI host controller not responding, assume dead
[ 543.665555] xhci_hcd 0000:04:00.0: HC died; cleaning up
[ 543.665568] usb 4-2: USB disconnect, device number 3
I am beginning to suspect that at least part of the blame needs to go towards my mobo-firmware.
Offline
Which host controller?
Does the system have a second (USB2) one that you could try? (Assuming the video is h264, the transfer rate will be sufficient)
Offline
Ok the USB-C to A adapter has arrive and I tried the camera works as (well as could be) expected in my regular USB 3.0 5 Gbit/s port.
I am still initially getting
current rate 16000 is different from the runtime rate 48000
when I plug it in and some UVC errors
[14031.151799] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 3: -32 (exp. 2).
[14031.154615] uvcvideo: Failed to query (SET_CUR) UVC control 4 on unit 1: -32 (exp. 4).
[14031.157462] uvcvideo: Failed to query (SET_CUR) UVC control 6 on unit 1: -32 (exp. 2).
I don't know what to make of this though:
[14025.027603] usb 2-6: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
(this gets printed before the uvc errors)
Offline
current rate 16000 is different from the runtime rate 48000
is the audio frequency - if the camera has a mic, it's not exactly HiFi but that's not a problem.
"-32" is EPIPE (broken pipe) and probably a direct consequence of the reset and the latter might be due to the adapter.
Does it happen when using the adapter alone?
And when adding the camera some seconds after the adapter?
Offline