47

Screen share shows just a black screen after the upgrade from Ubuntu 20.10 to 21.04. It was working fine until 20.10.

Tried in Google Chrome, Firefox, etc. all of them shows just the black screen. It is not related to the browser.

Any idea how to fix this?

enter image description here

3 Answers3

51

An alternative solution, from:

sudoedit /etc/gdm3/custom.conf

Uncomment the line

#WaylandEnable=false

and save the change. This will enable the Xorg display manager.

Then either

sudo systemctl restart gdm3

Or just reboot the system.


This reportedly works on the following versions:

  • 18.04
  • 20.04
  • 21.10
  • 22.04 LTS
  • 22.10

Note: When switching back to X11, make sure that you have the package xserver-xorg-input-all installed - otherwise your mouse and keyboard will not work.

Greenonline
  • 2,081
18

Looks like Ubuntu 21.04 defaults to Wayland - when I switch to Xorg, screenshare works fine.

If anyone wants to try this, these are the steps:

  1. In the login screen, click the setting icon
  2. Choose "Ubuntu On Xorg" instead of "Ubuntu"
  3. Now login

Screenshare should work now.

Greenonline
  • 2,081
17

If you are using Chrome and prefer to use Wayland and do not want to switch back to Xorg, activate the following flag in the browser:

chrome://flags/#enable-webrtc-pipewire-capturer

From the flag description:

When enabled the WebRTC will use the PipeWire multimedia server for capturing the desktop content on the Wayland display server

4ndt3s
  • 291