我有一台 HP Notebook-15-ac603tu,从 Windows 转换到 Ubuntu 后,相机停止工作了。
我已经运行以下命令并得到输出:
- 系统盘:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 042: ID 0bda:57d6 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0bda:b006 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 25a7:fa23
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- v4l2-ctl --列表设备:
HP Truevision HD: HP Truevision (usb-0000:00:14.0-5):
/dev/video0
- ls -ltr /dev/video*:
crw-rw----+ 1 root video 81, 0 Mar 22 11:59 /dev/video0
- 奶酪:
(cheese:6397): Gtk-WARNING **: 12:11:18.227: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version
** (cheese:6397): CRITICAL **: 12:11:18.789: cheese_preferences_dialog_on_source_change: assertion '_tmp2_ > ((guint) 0)' failed
(cheese:6397): cheese-CRITICAL **: 12:11:18.789: cheese_camera_device_get_name: assertion 'CHEESE_IS_CAMERA_DEVICE (device)' failed
(cheese:6397): GLib-CRITICAL **: 12:11:18.790: g_variant_new_string: assertion 'string != NULL' failed
(cheese:6397): GLib-CRITICAL **: 12:11:18.790: g_variant_ref_sink: assertion 'value != NULL' failed
(cheese:6397): GLib-GIO-CRITICAL **: 12:11:18.790: g_settings_schema_key_type_check: assertion 'value != NULL' failed
(cheese:6397): GLib-CRITICAL **: 12:11:18.790: g_variant_get_type_string: assertion 'value != NULL' failed
(cheese:6397): GLib-GIO-CRITICAL **: 12:11:18.790: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given
(cheese:6397): GLib-CRITICAL **: 12:11:18.791: g_variant_unref: assertion 'value != NULL' failed
** (cheese:6397): CRITICAL **: 12:11:18.791: cheese_preferences_dialog_setup_resolutions_for_device: assertion 'device != NULL' failed
** (cheese:6397): CRITICAL **: 12:11:20.317: cheese_preferences_dialog_on_source_change: assertion '_tmp2_ > ((guint) 0)' failed
(cheese:6397): cheese-CRITICAL **: 12:11:20.318: cheese_camera_device_get_name: assertion 'CHEESE_IS_CAMERA_DEVICE (device)' failed
我几乎尝试了所有方法,但我不知道如何继续(基本上是个新手用户)。请帮我操作我的网络摄像头。
答案1
错误消息cheese
与此报告中的类似:
sudo
解决办法是在调用时使用cheese
。
链接中的其他用户建议在cheese
不起作用时使用其他可以起作用的软件包。
也就是说,使用以下命令确保网络摄像头已连接:
$ sudo apt install hwinfo
$ hwinfo --usb
11: USB 00.0: 0000 Unclassified device
[Created at usb.122]
Unique ID: X7GA.tCH1FaBg9PD
Parent ID: k4bc.2DFUsyrieMD
SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0
SysFS BusID: 1-7:1.0
Hardware Class: unknown
Model: "Sunplus Innovation Integrated_Webcam_HD"
Hotplug: USB
Vendor: usb 0x1bcf "Sunplus Innovation Technology Inc."
Device: usb 0x2b8c "Integrated_Webcam_HD"
Revision: "47.14"
Driver: "uvcvideo"
Driver Modules: "uvcvideo"
Device File: /dev/input/event8
Device Files: /dev/input/event8, /dev/input/by-id/usb-SunplusIT_Inc_Integrated_Webcam_HD-event-if00, /dev/input/by-path/pci-0000:00:14.0-usb-0:7:1.0-event
Device Number: char 13:72
Speed: 480 Mbps
Module Alias: "usb:v1BCFp2B8Cd4714dcEFdsc02dp01ic0Eisc01ip00in00"
Driver Info #0:
Driver Status: uvcvideo is active
Driver Activation Cmd: "modprobe uvcvideo"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #14 (Hub)
您可以获得大量相同的信息,lsbusb -v
但它不会以相同的方式简明扼要地提供这些信息。
答案2
我在 Acer 笔记本电脑上安装的 Ubuntu 18.04 发行版中遇到了类似的网络摄像头问题,并发布了类似的问题2 个月前。该笔记本使用了 Realtek Semiconductor Corp. 的网络摄像头。我发现它不是可识别的USB 视频类 Linux 设备。因此,这种不兼容性导致 cheese 应用程序出现如您所展示的空白屏幕。
我怀疑你的笔记本电脑网络摄像头设备
Bus 001 Device 042: ID 0bda:57d6 Realtek Semiconductor Corp., or
Bus 001 Device 003: ID 0bda:b006 Realtek Semiconductor Corp.
不管怎样,它们似乎也不是 USB 视频类 Linux 设备。如果是,则uvcvideo
无法初始化它,这就是为什么 cheese 应用程序显示为空白,如您的屏幕截图所示。
因此,在您的网络摄像头设备成为 USB 视频类 Linux 设备之前,它可能无法与 兼容uvcvideo
。
答案3
检查您的用户 ID 是否在“视频”组中。我有一台装有相同摄像头的 HP 笔记本电脑,据我所知,它使用标准的“uvcvideo”驱动程序模块。但您不能从不在视频组中的用户使用它。