当我启动 ubuntu 12.04 时,我可以通过 cheese、skype 等看到我的网络摄像头的输出...但随后它冻结了,在 dmesg 中显示已断开连接,并且它在 lsusb 中消失。此外,/dev/video* 也消失了。
之前可以正常工作,但不知为何现在出现了这个问题。我认为是更新导致的...
如果您需要更多信息,请与我们联系。
提前致谢。
以下是一些输出。
dmesg:
~$ dmesg | grep video
[ 1.246713] pci 0000:00:02.0: Boot video device
[ 31.964037] Linux video capture interface: v2.00
[ 31.964925] uvcvideo: Found UVC 1.00 device HP Webcam-50 (05c8:0222)
[ 31.972137] usbcore: registered new interface driver uvcvideo
~$ dmesg | grep Webcam
[ 31.964925] uvcvideo: Found UVC 1.00 device HP Webcam-50 (05c8:0222)
[ 31.971458] input: HP Webcam-50 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input6
问题发生时出现的dmesg行:
Nov 17 18:46:39 XXXX kernel: [ 146.380681] usb 2-1.5: USB disconnect, device number 3
lsusb 中出现问题后消失的行:
Bus 002 Device 003: ID 05c8:0222 Cheng Uei Precision Industry Co., Ltd (Foxlink)
luvcview 输出:
~$ luvcview
luvcview 0.2.6
SDL information:
Video driver: x11
A window manager is available
Device information:
Device path: /dev/video0
ERROR opening V4L interface: No such file or directory
没有 video0 文件。
~$ ls -lha /dev/video*
ls: cannot access /dev/video*: No such file or directory
~$ ls /dev/video*
ls: cannot access /dev/video*: No such file or directory
ker.log 输出:
~$ more /var/log/kern.log | grep video
Nov 17 08:06:25 bones-lp kernel: [49207.763326] PM: resume of drv:uvcvideo dev:2-1.5:1.0 complete after 446.656 msecs
Nov 17 08:06:25 bones-lp kernel: [49207.763329] PM: resume of drv:uvcvideo dev:2-1.5:1.1 complete after 446.620 msecs
Nov 17 08:06:25 bones-lp kernel: [49208.704020] video LNXVIDEO:00: Restoring backlight state
Nov 17 13:59:19 bones-lp kernel: [65285.984306] PM: resume of drv:uvcvideo dev:2-1.5:1.1 complete after 177.736 msecs
Nov 17 13:59:19 bones-lp kernel: [65285.984334] PM: resume of drv:uvcvideo dev:2-1.5:1.0 complete after 177.808 msecs
Nov 17 13:59:19 bones-lp kernel: [65287.193393] video LNXVIDEO:00: Restoring backlight state
Nov 17 15:49:43 bones-lp kernel: [ 1.242691] pci 0000:00:02.0: Boot video device
Nov 17 15:49:43 bones-lp kernel: [ 34.506239] Linux video capture interface: v2.00
Nov 17 15:49:43 bones-lp kernel: [ 34.506715] uvcvideo: Found UVC 1.00 device HP Webcam-50 (05c8:0222)
Nov 17 15:49:43 bones-lp kernel: [ 34.514181] usbcore: registered new interface driver uvcvideo
Nov 17 16:57:35 bones-lp kernel: [ 4104.806501] usbcore: deregistering interface driver uvcvideo
Nov 17 16:57:35 bones-lp kernel: [ 4104.907525] Linux video capture interface: v2.00
Nov 17 16:57:35 bones-lp kernel: [ 4104.916846] usbcore: registered new interface driver uvcvideo
Nov 17 17:00:30 bones-lp kernel: [ 4279.157010] usbcore: deregistering interface driver uvcvideo
Nov 17 17:06:18 bones-lp kernel: [ 4627.158181] Linux video capture interface: v2.00
Nov 17 17:06:39 bones-lp kernel: [ 4647.411770] usbcore: registered new interface driver uvcvideo
Nov 17 17:26:49 bones-lp kernel: [ 5855.992986] usbcore: deregistering interface driver uvcvideo
Nov 17 17:27:14 bones-lp kernel: [ 5880.845078] usbcore: registered new interface driver uvcvideo
Nov 17 18:44:48 bones-lp kernel: [ 1.246713] pci 0000:00:02.0: Boot video device
Nov 17 18:44:48 bones-lp kernel: [ 31.964037] Linux video capture interface: v2.00
Nov 17 18:44:48 bones-lp kernel: [ 31.964925] uvcvideo: Found UVC 1.00 device HP Webcam-50 (05c8:0222)
Nov 17 18:44:48 bones-lp kernel: [ 31.972137] usbcore: registered new interface driver uvcvideo
答案1
我认为网络摄像头确实坏了!我的 Compaq CQ100 笔记本电脑也无缘无故出现了这种情况,我没有进行任何更新或操作!在谷歌上搜索相同问题时发现了这个帖子。
每当我尝试初始化摄像头时,旁边的 LED 都会短暂亮起然后熄灭。没有视频。再次尝试应用程序 (guvcview) 告诉我未检测到摄像头。查看 dmesg 输出,我可以看到,只要我尝试启动摄像头,它就会断开连接。
sudo rmmod uvcvideo && sudo modprobe uvcvideo
带/dev/video0
回来但仍然失败......
[ 74.525794] usb 1-4: USB disconnect, device number 3
[ 74.526429] uvcvideo: Failed to resubmit video URB (-19).
[ 74.724449] hub 1-0:1.0: unable to enumerate USB device on port 4
[ 74.996089] usb 1-4: new high-speed USB device number 5 using ehci-pci
[ 75.160048] usb 1-4: New USB device found, idVendor=10f1, idProduct=1a13
[ 75.160063] usb 1-4: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 75.160074] usb 1-4: Product: HP Webcam-50
[ 75.160084] usb 1-4: Manufacturer: importek
[ 75.162549] uvcvideo: Found UVC 1.00 device HP Webcam-50 (10f1:1a13)
[ 75.200842] input: HP Webcam-50 as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/input/input11
[ 144.715843] usbcore: deregistering interface driver uvcvideo
[ 150.517385] uvcvideo: Found UVC 1.00 device HP Webcam-50 (10f1:1a13)
[ 150.555981] input: HP Webcam-50 as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/input/input12
[ 150.561353] usbcore: registered new interface driver uvcvideo
[ 150.561364] USB Video Class driver (1.1.1)