Skip to main content

Command Palette

Search for a command to run...

Screen Share Not working in Ubuntu: Fixed

Updated
1 min read
L

PHP Developer, Laravel Lover ❤️, Entrepreneur, Founder @ Bee Delivery

Ubuntu 22.04 has a bug which is we can’t share our screen on any platforms.

The issue with Ubuntu 22.04 is using a display feature called wayland. Wayland is not supporting to screen share by default. In previous ubuntu version we had xorg for display feature.

To solve this what we have to do is

  1. To check which display feature your ubuntu is using, enter the command below in terminal
echo $XDG_SESSION_TYPE

If the above command outputs, wayland, then your system is using wayland. Which is causing the problem. So we have to disable wayland and enable xorg(x11).

2. To change display settings from wayland to xorg(x11).

Go to file by entering the command below on terminal

sudo nano /etc/gdm3/custom.conf

You can use any of the editors like vim, nano etc…

3. Then, uncomment the line.

WaylandEnable=false

4. Save and then restart/reboot your system.

5. After restart, if we open up the terminal and type the command.

echo $XDG_SESSION_TYPE

We can see the output has changed from wayland to x11.

Now you can share your screen.

Reposted from lizenshakya

S
Sayan2y ago

While this solution will work for Ubuntu 22.04, since Ubuntu uses Wayland by default, this solution will stop working the moment Ubuntu stops shipping X11. In the worst case, the system will just boot to a tty terminal session and not load a GUI at all. SO I think you should put a disclaimer about this at the end..

L

Sayan De thanks, you are perfectly right about it.

1

More from this blog

Luan Rodrigues

14 posts