![联想 t410 中的集成网络摄像头无法在 12.04 版本上运行](https://linux22.com/image/818044/%E8%81%94%E6%83%B3%20t410%20%E4%B8%AD%E7%9A%84%E9%9B%86%E6%88%90%E7%BD%91%E7%BB%9C%E6%91%84%E5%83%8F%E5%A4%B4%E6%97%A0%E6%B3%95%E5%9C%A8%2012.04%20%E7%89%88%E6%9C%AC%E4%B8%8A%E8%BF%90%E8%A1%8C.png)
我有一台联想 T410,内置网络摄像头,但我一直无法让网络摄像头工作。我试过 skype、cheese,但都只给我一个黑色的窗口。顺便说一句,麦克风在 skype 上工作正常。有人能提供一些线索吗?网络摄像头在 bios 中已启用,但没有指示灯指示网络摄像头已打开(但不确定是否应该有)。我在 Kubuntu 11.10 上试过这个,并已升级到 12.04,结果相同。Fn-F6 键盘组合似乎也不起作用。
编辑:我更换了网络摄像头,看起来是硬件问题,因为它现在工作正常。谢谢大家。
$ ls /dev/v4l/*
/dev/v4l/by-id:
usb-Chicony_Electronics_Co.__Ltd._Integrated_Camera-video-index0
/dev/v4l/by-path:
pci-0000:00:1a.0-usb-0:1.6:1.0-video-index0
和 lsusb:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 001 Device 005: ID 17ef:480f Lenovo Integrated Webcam [R5U877]
Bus 002 Device 003: ID 05c6:9204 Qualcomm, Inc.
Bus 002 Device 004: ID 17ef:1003 Lenovo Integrated Smart Card Reader
这是 guvcview 的输出,减去了很多行描述可用的捕获格式。它显示“无法以最低设置启动。请重新连接您的相机。”。
guvcview 1.5.3
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
video device: /dev/video0
Init. Integrated Camera (location: usb-0000:00:1a.0-1.6)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/30,
....
{ discrete: width = 1600, height = 1200 }
Time interval between frame: 1/15,
vid:17ef
pid:480f
driver:uvcvideo
checking format: 1196444237
libv4l2: error setting pixformat: Device or resource busy
VIDIOC_S_FORMAT - Unable to set format: Device or resource busy
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
video device: /dev/video0
Init. Integrated Camera (location: usb-0000:00:1a.0-1.6)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
....
vid:17ef
pid:480f
driver:uvcvideo
checking format: 1448695129
libv4l2: error setting pixformat: Device or resource busy
VIDIOC_S_FORMAT - Unable to set format: Device or resource busy
Init v4L2 failed !!
ERROR: Minimum Setup Failed.
Exiting...
VIDIOC_REQBUFS - Failed to delete buffers: Invalid argument (errno 22)
cleaned allocations - 100%
Closing portaudio ...OK
Terminated.
答案1
尝试这个:
sudo apt-get 安装 guvcview