If you are a Linux user, then you've likely used the GNOME Desktop Environment at least once.
The latest GNOME DE (Desktop Environment) uses Wayland nowadays. And while it's possible to remove Wayland and select Xorg if you want, most users are starting to use Wayland as their daily driver.
And if you still use the Chrome or Chromium browsers, you'll often face the black screen issue during screen sharing.
If you typically use Wayland on your desktop, you'll have these issues while screen sharing, especially in Google Meet.
In this article, I will show you a very simple trick that will help you solve the black screen issue during screen sharing on any kind of Chromium browser including the most popular browser, Google Chrome.
I have used Ubuntu for writing this article, but the same process is applicable to all other Linux OS distros running on Wayland.
The Black Screen Issue
If you're having the black screen issue in Google Meet in a Chromium browser (Chrome, Brave, Vivaldi, etc), it probably looks like this:
Sometimes it might happen because screen sharing in Wayland gets broken or because of other issues. A lot of users also say it happens as developers are trying hard to increase the security level.
The issue of screen sharing might become common for many people in the usual way. A lot of users go back to X11 only for this issue or try the pipewire solution to fix this.
I will show you the solution using the pipewire technology so that you do not need to go back to X11 only for solving this issue. 😊
chrome://flags/#enable-webrtc-pipewire-capturer using the address bar of your browser.
You will get a long list, but we are interested in WebRTC PipeWire Support. You will see that the option is on the Default mode right now.
We need to change it to Enabled.
Simply click the drop down menu, and click Enabled.
Now you will see a prompt on the below right side to relaunch the browser so this can take effect.
Click on Relaunch. It will simply restart your browser.
The issue has been solved! ✌️
How to Test Screen Sharing
Now if you want to share your screen as usual, you can definitely do that.
Whenever you want to share the screen, a prompt will appear and will request you to select the monitor. You have to share the monitor. If you have only one monitor like I do, then you would get one monitor. Simply click on that and click Share.
You will also get to see the preview of the screen sharing.
You may need to select the monitor again in the prompt. Simply select the monitor and click Share as earlier.
From now on, you can share your screen on Google Meet from Wayland.
If this article helps you resolve the black screen issue for your Linux DE, then I've been successful. 😊
I also want to thank you for reading the entire article till now.
If you like to contribute to open source, then you can also follow me on GitHub as I contribute regularly on that platform. Maybe you'll notice that I've already contributed to your favourite project as well, who knows! 😅
One more thing, I have two YouTube channels where I talk about programming stuff. If you like those content in English, then you can check out my English Brand channel.
If you are a Bangladeshi, then I also have another Brand channel for the Bangladeshi community. You can check out my Bengali Brand channel as well.
Thank you so much! 😋