Ubuntu 20.04 中无法识别相机

Ubuntu 20.04 中无法识别相机

我的笔记本电脑有一个集成的网络摄像头。它在以前的 ubuntu 版本中可以正常工作。在 20.04 下,当我运行 cheese 时,它​​显示“未找到设备”。以下是输出v4l2-ctl --list-devices

erik@laptop:~$ v4l2-ctl --list-devices
Cannot open device /dev/video0, exiting.

我该如何解决这个问题?

编辑:我将自己添加到了该video小组,但问题并没有得到解决。

编辑#2:根据评论的要求:

erik@laptop:~$ sudo /bin/ls -l /dev/video*
/bin/ls: cannot access '/dev/video*': No such file or directory

erik@laptop:~$ sudo lshw -class video
  *-display                 
       description: VGA compatible controller
       product: WhiskeyLake-U GT2 [UHD Graphics 620]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 resolution=1920,1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:400-3ff irq:146 memory:6000000000-6000ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff
   
erik@laptop:~$ sudo v4l2-ctl --list-devices
Cannot open device /dev/video0, exiting.

编辑#3

输出lsusb

erik@laptop:~$ lsusb | grep -i camera
Bus 001 Device 003: ID 04f2:b649 Chicony Electronics Co., Ltd Chicony USB2.0 Camera

部分输出sudo journalctl -b 0

Aug 07 22:37:59 laptop kernel: usb 1-7: new high-speed USB device number 3 using xhci_hcd
Aug 07 22:37:59 laptop kernel: usb 1-7: New USB device found, idVendor=04f2, idProduct=b649, bcdDevice=54.03
Aug 07 22:37:59 laptop kernel: usb 1-7: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Aug 07 22:37:59 laptop kernel: usb 1-7: Product: Chicony USB2.0 Camera
Aug 07 22:37:59 laptop kernel: usb 1-7: Manufacturer: Sonix Technology Co., Ltd.
Aug 07 22:37:59 laptop kernel: usb 1-10: new full-speed USB device number 4 using xhci_hcd
Aug 07 22:37:59 laptop kernel: usb 1-10: New USB device found, idVendor=8087, idProduct=0025, bcdDevice= 0.02
Aug 07 22:37:59 laptop kernel: usb 1-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Aug 07 22:37:59 laptop kernel: hid: raw HID events driver (C) Jiri Kosina
Aug 07 22:37:59 laptop kernel: usbcore: registered new interface driver usbhid
Aug 07 22:37:59 laptop kernel: usbhid: USB HID core driver
Aug 07 22:37:59 laptop kernel: input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:093A:2510.>
Aug 07 22:37:59 laptop kernel: hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on us>

编辑#4:根据以下评论的建议,我遵循了这个问题的答案:

笔记本电脑的网络摄像头显示空白屏幕

最佳答案说要做ls -l /dev/video*,这是我的输出:

erik@laptop:~$ ls -l /dev/video*
ls: cannot access '/dev/video*': No such file or directory

我应该更改该目录的权限,但它不存在。

接受的答案说要nomodeset在 grub 中添加,我试过了。即在文件中/etc/default/grub,我编辑了此行...

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

...并nomodeset在最后添加。然后我重新启动,问题仍然存在。

相关内容