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 Answers 3


An alternative solution, from:

sudoedit /etc/gdm3/custom.conf

Uncomment the line


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.

  • 3
    This is the only solution that worked for me. My system is running Ubuntu 21.10 with an nvidia graphics card. Jan 6, 2022 at 14:01
  • 3
    This works for on 22.04 LTS too
    – Waqas
    May 30, 2022 at 11:28
  • 4
    This works for me also, ubuntu 22.04LTS Jun 13, 2022 at 15:27
  • 1
    This works for me also, ubuntu 22.10
    – sundowatch
    Jul 7, 2022 at 17:02

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.


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:


From the flag description:

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

  • It worked for me. Thanks. May 29, 2022 at 21:13
  • 1
    I tried @greenonline's solution and it worked, but my touchpad is not working. so I use your suggestion and solved blank screen issue and also my touchpad is working. I'm using ubuntu 22.04 Aug 8, 2022 at 8:18
  • Does something like this exist for Firefox too?
    Nov 13, 2022 at 11:03
  • @GRASBOCK - That seems like a good question to post Dec 29, 2023 at 23:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .