联想 L490 上的 Ubuntu 18.04 中的相机显示黑色

联想 L490 上的 Ubuntu 18.04 中的相机显示黑色

我的相机工作正常。我用 18.04 已经两年了。我最近换了笔记本电脑,IT 部门把我的 ssd 换成了新的。我从联想 L480 换成了 L490

最初,相机工作正常,但 10 天以来它只显示黑色。相机被 Linux 识别,如下所示:

    localuser > lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 5986:2113 Acer, Inc 
Bus 001 Device 006: ID 8087:0025 Intel Corp. 
Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 localuser > dmesg | grep uvc
[    3.610934] uvcvideo: Found UVC 1.00 device Integrated Camera (5986:2113)
[    3.632137] usbcore: registered new interface driver uvcvideo

 localuser > ls -ltrh /dev/video*
crw-rw----+ 1 root video 81, 1 Dec  2 16:40 /dev/video1
crw-rw----+ 1 root video 81, 0 Dec  2 16:40 /dev/video0
 localuser > lspci
00:00.0 Host bridge: Intel Corporation Device 3e34 (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Device 3ea0 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Device 9df9 (rev 30)
00:14.0 USB controller: Intel Corporation Device 9ded (rev 30)
00:14.2 RAM memory: Intel Corporation Device 9def (rev 30)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device 9de8 (rev 30)
00:15.2 Serial bus controller [0c80]: Intel Corporation Device 9dea (rev 30)
00:16.0 Communication controller: Intel Corporation Device 9de0 (rev 30)
00:1d.0 PCI bridge: Intel Corporation Device 9db0 (rev f0)
00:1d.3 PCI bridge: Intel Corporation Device 9db3 (rev f0)
00:1d.7 PCI bridge: Intel Corporation Device 9db7 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 9d84 (rev 30)
00:1f.3 Audio device: Intel Corporation Device 9dc8 (rev 30)
00:1f.4 SMBus: Intel Corporation Device 9da3 (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 9da4 (rev 30)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6) I219-V (rev 30)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981
05:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)

你能帮我解决这个问题吗?我可以看到相机被识别了,但奶酪上显示空白

编辑1:

根据 waltinator 的建议,我检查了我的用户组,我的组中确实有视频,所以这不是问题,但这是消除可能原因的好方法

 localuser > id
uid=1000(localuser) gid=1000(localuser) groups=1000(localuser),4(adm),24(cdrom),27(sudo),30(dip),44(video),46(plugdev),116(lpadmin),126(sambashare),999(docker)

答案1

所以问题在于这台笔记本电脑中有一个物理开关,可以关闭摄像头镜头。
摄像头已打开: 相机镜头已打开

相机已关闭: 在此处输入图片描述

答案2

摄像机 ( /dev/video*) 的所有者和组为[root,video],并且允许rw所有者和组访问。

在您的新系统上,您可能不在该video组中。

使用id命令检查。

让您的 IT 部门将您添加到该video组中或者sudo adduser $USER video

相关内容