我使用的是 Ubuntu 20.04,我的电脑有一个网络摄像头,它已经出故障一段时间了。在睡眠/挂起时,我看到了很多usb 1-8: device descriptor read/8, error -71
错误。我查看了dmesg
输出,发现摄像头似乎不断断开/重新连接。dmesg
输出如下所示:
[ +4.783224] usb 1-8: device descriptor read/8, error -71
[ +0.125049] usb 1-8: device descriptor read/8, error -71
[ +0.107840] usb usb1-port8: unable to enumerate USB device
[ +0.275899] usb 1-8: new high-speed USB device number 54 using xhci_hcd
[ +5.264005] usb 1-8: device descriptor read/64, error -71
[ +5.131901] usb 1-8: device descriptor read/64, error -71
[ +0.232009] usb 1-8: new high-speed USB device number 55 using xhci_hcd
[ +8.888373] usb 1-8: device descriptor read/all, error -71
[ +0.000095] usb usb1-port8: attempt power cycle
[ +0.415538] usb 1-8: new high-speed USB device number 56 using xhci_hcd
[ +4.314715] usb 1-8: New USB device found, idVendor=174f, idProduct=2435, bcdDevice= 0.22
[ +0.000004] usb 1-8: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ +0.000001] usb 1-8: Product: Integrated Camera
[ +0.000001] usb 1-8: Manufacturer: Sonix Technology Co., Ltd.
[ +0.002496] uvcvideo: Found UVC 1.00 device Integrated Camera (174f:2435)
[ +0.006175] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input51
[ +7.039354] usb 1-8: USB disconnect, device number 56
[ +0.313458] usb 1-8: new high-speed USB device number 57 using xhci_hcd
我认为这还会产生下游影响:lsusb
运行需要整整十秒钟,我插入的 USB 设备有时需要几分钟才能被识别。我打算发送此信息以查看端口本身,但与此同时,我如何禁用端口?我尝试了这个问题,但问题之一是,在 中/sys/bus/usb/devices/
,故障 USB 设备的符号链接和文件夹有时候存在,有时候不存在,所以我无法使用tee
基于 的解决方案,而udev
基于 的解决方案不起作用。