7

I was using Ubuntu 20.04 and everything was working just fine.

I installed Ubuntu 22.04 LTS (deleted everything, a fresh installation) and everything is OK except Google Meet's share screen.

I can join meetings, share my webcam, and send & receive audio & video.

But when I want to share my screen, it shows a black screen.

How can I fix this? Nothing has changed in my laptop hardware.

Melanie Shebel
  • 288
  • 1
  • 3
  • 14

3 Answers3

15

The solution is pretty simple, Step by step guide to fix screen sharing on Ubuntu 22.04.

Step 1: Check the Default Display Feature To check the current Ubuntu display, run the following command.

echo $XDG_SESSION_TYPE

If your system is Ubuntu 22.04, its display session is Wayland. Now you have to disable Wayland and enable “Xorg”(x11)

Step 2: Enable “Xorg” and disable “Wayland” Open gdm3 directory to edit the “custom.conf” file by the following command.

sudo vi /etc/gdm3/custom.conf

Uncomment the following line.

WaylandEnable=false

Step 3: Reboot the system Now reboot or restart your system to apply the changes. After rebooting you can share your screen on zoom, ms team, etc.

You can confirm the changes by running the following command again.

echo $XDG_SESSION_TYPE

If you correctly change the conf file, it will show you display x11.

DarkDiamond
  • 1,919
  • 11
  • 15
  • 21
Sumit Tiwari
  • 151
  • 3
9

Just type at chrome address bar...

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

And enable the first entry

Wayland suits best for most users. So, no Wayland give up is necessary.

Toto
  • 19,304
1

I was resolved by going to chrome://flags/#enable-webrtc-pipewire-capturer and changing the value from Default to Enabled.

then

Search for the file.conf in /etc/gdm3/ in my case, Ubuntu 22.04, it's custom.conf

sudo nano /etc/gdm3/custom.conf

uncomment the line

#WaylandEnable=false to be WaylandEnable=false

then reboot

"uncommenting that line will use the Xorg display manager instead of Wayland "