Debugging Webcam/Microphone in Cheese Flatpak

Aloha,
I’m running Silverblue based on Fedora 35 and am unable to get my microphone/webcam to show up as devices in Cheese whereas they show up in Zoom properly.

While piping dmesg into less I get:

[  624.506840] videodev: Linux video capture interface: v2.00
[  624.520925] usb 3-7: Found UVC 1.00 device Laptop Camera (0bda:5634)
[  624.525511] input: Laptop Camera: Laptop Camera as /devices/pci0000:00/0000:00:14.0/usb3/3-7/3-7:1.0/input/input24
[  624.525561] usbcore: registered new interface driver uvcvideo
~

showing me that the video capture interface is showing up successfully.

When I do a list for /dev/video*, I get:

$ ls /dev/video*
/dev/video0 /dev/video1

Everything seems to point towards the webcam being available. Indeed, opening up Zoom installed through Flatpak shows everything functioning normally. The webcam behaves as expected on Fedora workstation.

Why is it that when I open up Cheese, I get No Device Found?

Is your Flatpak from Flathub or from Fedora?
One possibility is that they do not have the same permissions granted and thus the issue. You can take a look at the permissions granted to Zoom and try applying those to Cheese.

1 Like

Can confirm that using the Flathub Flatpak instead of the Fedora-packaged version resolves this issue. Thank you!

Thanks for the confirmation. If you have some time to compare the two Flatpaks, it would be great to find the exact issue to be able to solve it for everyone by default.

I have both flatpaks installed and the permissions are the same. What else should I check?

The Fedora-packaged one:

$ flatpak info --system org.gnome.Cheese

Cheese - Take photos and videos with your webcam, with fun graphical effects

          ID: org.gnome.Cheese
         Ref: app/org.gnome.Cheese/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.38.0
     License: GPL-2.0+
      Origin: fedora
  Collection: 
Installation: system
   Installed: 17.1 MB
     Runtime: org.fedoraproject.Platform/x86_64/f35
         Sdk: org.fedoraproject.Sdk/x86_64/f35

      Commit: a8aee28b51dc608dbe561a5d98d3d22f5750c0bbdb908529cc9cf4238a048e5f
     Subject: Export org.gnome.Cheese
        Date: 2021-11-03 10:05:35 +0000
      Alt-id: 2958e4c952c5de34df7e626d4e9c98a79bfd3b3fab6358c6e546bb172faeaed7

$ flatpak info --system --show-permissions org.gnome.Cheese
[Context]
shared=ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;
devices=all;
filesystems=xdg-pictures;xdg-videos;

The Flathub-packaged one:

$ flatpak info --user org.gnome.Cheese

Cheese - Take photos and videos with your webcam, with fun graphical effects

          ID: org.gnome.Cheese
         Ref: app/org.gnome.Cheese/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.38.0
     License: GPL-2.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 5.5 MB
     Runtime: org.gnome.Platform/x86_64/41
         Sdk: org.gnome.Sdk/x86_64/41

      Commit: 9f1588fe94471b48b63975547856cb2614384e1b35cc917622ccdfc8c8b4d41d
      Parent: 918b7eee539cd91fbef6372b925b34bbb32ade5fcfbcec722d79fa375aead9d7
     Subject: remove checker support for video effects (51a2ba38)
        Date: 2021-12-12 10:33:58 +0000

$ flatpak info --user --show-permissions org.gnome.Cheese
[Context]
shared=ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;
devices=all;
filesystems=xdg-pictures;xdg-videos;
1 Like

Also, for comparison, here is the Zoom flatpak info:

$ flatpak info us.zoom.Zoom 

Zoom - Video Conferencing, Web Conferencing, Webinars, Screen Sharing

          ID: us.zoom.Zoom
         Ref: app/us.zoom.Zoom/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 5.8.6.739
     License: LicenseRef-proprietary
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 146.9 kB
     Runtime: org.freedesktop.Platform/x86_64/21.08
         Sdk: org.freedesktop.Sdk/x86_64/21.08

      Commit: ff86c2ba7eb5322d2cbd32b4b6378e243ad40938867657ff4af5e45fd6ad7053
      Parent: c3fb82e300cdf0eb0f9040e4d72372e8f1c0a2d5d5be7f67dca3ede4a16665d0
     Subject: Update zoom.tar.xz to 5.8.6.739 (9c832b5a)
        Date: 2021-11-30 11:56:48 +0000

And permissions:

$ flatpak info --show-permissions us.zoom.Zoom 
[Context]
shared=network;ipc;
sockets=x11;pulseaudio;
devices=all;
filesystems=xdg-run/pipewire-0;~/Documents/Zoom:create;~/.zoom:create;

[Session Bus Policy]
org.gnome.Shell=talk
org.kde.*=own
org.freedesktop.ScreenSaver=talk

[Environment]
QT_QPA_PLATFORM=
1 Like

OK, that’s weird. I’ll try to take a look.

See 2035106 – Cheese Flatpak is missing camera permissions & Camera not detected by system - #12 by nreynolds