我有 Razer Kiyo Pro 网络摄像头,它在 Windows 10 计算机上运行良好,但无法在我的 Xubuntu 笔记本电脑上运行。
这是我将相机连接到笔记本电脑时的 dmesg 输出:
[ 232.440554] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 232.465286] usb 2-1: New USB device found, idVendor=1532, idProduct=0e05, bcdDevice= 8.21
[ 232.465293] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 232.465295] usb 2-1: Product: Razer Kiyo Pro
[ 232.465297] usb 2-1: Manufacturer: Razer Inc
[ 232.468819] usb 2-1: Found UVC 1.00 device Razer Kiyo Pro (1532:0e05)
[ 232.470407] uvcvideo 2-1:1.1: Failed to set UVC probe control : -32 (exp. 26).
[ 232.471069] input: Razer Kiyo Pro as /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/input/input38
[ 233.076954] usb 2-1: current rate 16000 is different from the runtime rate 24000
[ 233.078675] usb 2-1: current rate 16000 is different from the runtime rate 32000
[ 233.683972] usb 2-1: current rate 16000 is different from the runtime rate 48000
[ 235.015361] usb 2-1: current rate 16000 is different from the runtime rate 48000
[ 235.621541] usb 2-1: current rate 16000 is different from the runtime rate 48000
[ 236.329730] usb 2-1: current rate 16000 is different from the runtime rate 48000
[ 430.669902] usb 2-1: USB disconnect, device number 2
[ 436.241633] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 441.617556] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 441.825686] usb 2-1: device not accepting address 3, error -62
[ 447.249525] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 452.625409] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 452.833422] usb 2-1: device not accepting address 4, error -62
[ 452.841384] usb usb2-port1: attempt power cycle
[ 453.776288] usb 2-1: Device not responding to setup address.
[ 453.988287] usb 2-1: Device not responding to setup address.
[ 454.193359] usb 2-1: device not accepting address 5, error -71
[ 454.404406] usb 2-1: Device not responding to setup address.
[ 454.615899] usb 2-1: Device not responding to setup address.
[ 454.821370] usb 2-1: device not accepting address 6, error -71
[ 454.829394] usb usb2-port1: unable to enumerate USB device
当我运行时,出现消息“USB 断开连接,设备编号 2” v4l2-ctl --list-devices
。其他消息在无需我干预的情况下快速连续出现。
v4l2-ctl --list-devices
输出:
❯ v4l2-ctl --list-devices
Razer Kiyo Pro (usb-0000:00:14.0-1):
/dev/video3
HP HD Camera: HP HD Camera (usb-0000:00:14.0-2):
/dev/video0
/dev/video1
我第一次运行该命令时,输出中只列出了 Razer Kiyo Pro。在后续运行中,只列出了 HP HD 摄像头(这是内置笔记本电脑摄像头)。
有人能告诉我该怎么做才能让我笔记本电脑上的网络摄像头正常工作吗?我花了一些时间在谷歌上搜索错误消息,特别是“无法设置 UVC 探测器控制”和“设备不接受地址”,但我还没有找到可行的解决方案。
UPD1:我在虚拟机中安装了 Windows 10,并将网络摄像头传递到虚拟机,然后我停止了虚拟机,摄像头也开始在 Linux(在主机上)中工作。但过了一段时间它就停止工作了,我所有的 USB 设备都断开连接,直到我重新启动笔记本电脑才开始工作:
[ 7061.230704] xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command.
[ 7061.230709] xhci_hcd 0000:00:14.0: USBSTS:\x9c\xff\xff\xc0M
[ 7061.230716] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[ 7061.230727] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[ 7061.230739] xhci_hcd 0000:00:14.0: HC died; cleaning up
[ 7061.230765] usb 1-2: USB disconnect, device number 2
[ 7061.286939] usb 1-6: USB disconnect, device number 3
[ 7061.286944] usb 1-6.2: USB disconnect, device number 7
[ 7061.286945] usb 1-6.2.1: USB disconnect, device number 8
[ 7061.286947] usb 1-6.2.1.4: USB disconnect, device number 11
[ 7061.536274] usb 1-6.2.2: USB disconnect, device number 9
[ 7061.587552] usb 1-6.2.3: USB disconnect, device number 10
[ 7061.646762] usb 2-1: device not accepting address 8, error -108
[ 7061.646843] usb usb2-port1: couldn't allocate usb_device
[ 7061.720337] usb 1-6.5: USB disconnect, device number 5
[ 7061.721357] usb 1-7: USB disconnect, device number 4
[ 7061.721764] usb 1-10: USB disconnect, device number 6
相机已连接至usb2-port1
。