![Ubuntu 20.04 上无法识别东芝 USB 网络摄像头](https://linux22.com/image/1025690/Ubuntu%2020.04%20%E4%B8%8A%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E4%B8%9C%E8%8A%9D%20USB%20%E7%BD%91%E7%BB%9C%E6%91%84%E5%83%8F%E5%A4%B4.png)
我有一个东芝 USB 网络摄像头,但我无法让它在我的 Ubuntu 20.04 机器上运行。
这里我放置了一些可能有用的命令输出:
$> hwinfo --usb
03: USB 00.2: 11200 TV Card
[Created at usb.122]
Unique ID: WiL4.3qstbdAw+R6
Parent ID: k4bc.2DFUsyrieMD
SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2
SysFS BusID: 1-2:1.2
Hardware Class: tv card
Model: "Pixart Imaging PAC731x Trust Webcam"
Hotplug: USB
Vendor: usb 0x093a "Pixart Imaging, Inc."
Device: usb 0x2621 "PAC731x Trust Webcam"
Revision: "1.00"
Driver: "snd-usb-audio"
Driver Modules: "snd_usb_audio"
Speed: 12 Mbps
Module Alias: "usb:v093Ap2621d0100dc00dsc00dp00ic01isc02ip00in02"
Driver Info #0:
Driver Status: gspca_pac7311 is active
Driver Activation Cmd: "modprobe gspca_pac7311"
Driver Info #1:
Driver Status: gspca_pac7302 is active
Driver Activation Cmd: "modprobe gspca_pac7302"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #8 (Hub)
$> ls /dev/video*
/dev/video0 /dev/video1 /dev/video2
当拔下相机时,该命令只输出两个结果。
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so cheese
使用最后这条命令,Cheese 识别了我的相机。但是当我选择它时,一切都是黑色的。
有两件事值得注意:
- 我的笔记本电脑有一个集成网络摄像头(它们会互相冲突吗?)
- 当 USB 摄像头插入其他设备时,它会亮起蓝色 LED。在我的 Ubuntu 机器上,此 LED 熄灭。
$> LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so fswebcam --device /dev/video2 dd.jpg
--- Opening /dev/video2...
Trying source module v4l2...
/dev/video2 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 640x480.
libv4l2: error turning on stream: Protocol error
Error starting stream.
VIDIOC_STREAMON: Protocol error
Unable to use mmap. Using read instead.
--- Capturing frame...
libv4l2: error dequeuing buf: Invalid argument
VIDIOC_DQBUF: Invalid argument
No frames captured.
执行此命令后ls /dev/video*
输出的条目会减少一个。此外,Cheese 无法使用上述第三个命令识别相机。此外,蓝色 LED 保持亮起。如果拔下电源,行为将恢复到文章开头所述的状态。
如果您想查看另一个命令的输出,请告诉我!