85

I'm trying to share my screen using Google Chrome or Microsoft Teams and I only can share the browser, I can't share my entire screen, it appears black:

Trying to select share full screen but it's black :

enter image description here

I thought the issues was due to having 3 monitors, but I disconnected both and still have the same issue. I'm using the latest version of Ubuntu and Google chrome, I also tried with chromium, and nothing.

I use this laptop for my work and I don't want to switch back to Windows... Programming on Windows is painfull, I need to get this to work.

UPDATE I finally could fix it, seems like the issue is with wayland, switching to X.org fixes it.

This is the post that helped me: https://askubuntu.com/a/968265/1024151

muru
  • 207,228
redigaffi
  • 971

5 Answers5

97

Search for the file.conf in /etc/gdm3/ in my case, Ubuntu 20, 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 "

Works on: Ubuntu 20/21/22

Khyar Ali
  • 1,102
  • 8
  • 8
48

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

After reboot Chrome, now the connection works well. Using the same test tools as before, now Chrome use the system selection window for share the screen or a window. Also Teams works well in Chrome over Wayland, and the black screen + mouse is now solved.

Source: https://github.com/IsmaelMartinez/teams-for-linux/issues/455

2

I also faced the same issue, I resolved it by following below steps:

Just go to the chrome browser search bar and enter: "chrome://flags/#enable-webrtc-pipewire-capturer" -> Now set "WebRTC PipeWire support" flag to Enabled -> Relaunch chrome.

Now screen share will work. source

enter image description here

ratnesh
  • 121
  • 3
0

That's a Chrome bug, also happens for me in Ubuntu 20.04.

Workaround: While you are in the meeting, join the same meeting from another browser window/tab but this time as presenter. It will allow you to share things as expected: A whole screen, an application, Chrome tab, a specific window.

see below both windows enter image description here Left one as regular invited, right one as presenter, both in the same meeting.

Actually even after any fix, I will keep using it in this way since I can see what I'm sharing to others as others would see it, very convenient ;)

I know the answer is kind of late, but hope it helps to others with the same issue.

tinlyx
  • 3,328
Knache
  • 1
0

Screen sharing on Google Meet was not working on Ubuntu using LAN cable internet, although it was working when I connected 4g internet of my mobile device on my PC. I didn't find any proper solution for my problem, because in windows 11 screen sharing on Google Meet was working using the same cable internet connection.

After few days of research on this issue, I found my solution that IPv6 was disabled when I installed Ubuntu 24.04, then I changed it to Automatic from Disable as shown in the following image.

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332