3

If I want to share the screen in Chromium, I see only black screens.

I can share the screen, but the other participants only see a black screen.

Sharing a window or chromium tab works fine.

I use Ubuntu 21.10

chromium-share-screen

Is there a way to make sharing a screen work again?

It is not related to microsoft-teams, since it is the same issue if I use the web version of slack.

Chromium    95.0.4638.69 (Offizieller Build) snap (64-Bit)
Überarbeitung   6a1600ed572fedecd573b6c2b90a22fe6392a410-refs/branch-heads/4638@{#984}
Betriebssystem  Linux
JavaScript  V8 9.5.172.25
User-Agent  Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Befehlszeile    /snap/chromium/1810/usr/lib/chromium-browser/chrome --password-store=basic --flag-switches-begin --flag-switches-end --origin-trial-disabled-features=CaptureHandle
Programmdateipfad   /snap/chromium/1810/usr/lib/chromium-browser/chrome
Profilpfad  /home/guettli/snap/chromium/common/chromium/Default
Varianten   c4c83305-6ce6e1ee
Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
guettli
  • 1,777

1 Answers1

3

Ubuntu 21.10 uses Wayland by default. Wayland is still being actively developed, and certain features like screen sharing do not function properly.

In your login screen, you can switch to the "Ubuntu"/"Ubuntu on X.Org" session, and screen sharing should work there.

enter image description here Image source: OMG! Ubuntu!

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212
  • After logging in again without Wayland it works. Thank you very much. – guettli Nov 24 '21 at 12:08
  • I haven't tested your solution, but I have tried sharing my screen in Firefox, and that works /fine/ on Ubuntu with Wayland. I am not completely satisfied with this answer. Perhaps it is a bug on the side of Chrome/Chromium? – Kai Feb 10 '22 at 08:23
  • And indeed, moving to "Ubuntu XORG" fixes it, but why has Firefox a working method, and Chrom(e|ium) not ;) – Kai Feb 10 '22 at 10:02
  • May it have something to do with the permission restrictions of snap? So that Chromium is not allowed to access the Wayland resources necessary to share anything outside of itself? – Torsten Bronger May 12 '22 at 14:47
  • 1
    @TorstenBronger No it's not about snap. Wayland disables the ability of one app to see other apps (and the whole screen) for the sake of security, but here it becomes a bug rather than a feature. – Archisman Panigrahi May 13 '22 at 01:33