DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Brent Vanwildemeersch
Brent Vanwildemeersch

Posted on • Updated on

Fix Microsoft Teams screen sharing on Ubuntu 22.04

Problem

When you install Microsoft Teams on Linux Ubunut 22.04, screen/desktop sharing doesn't work (v1.5.00.10453)
When you open the sharing tray on the native or the web-client of MS teams, its empty as shown below.

Screenshot empty sharing tray MS Teams

Cause

The origin of this problem is that Linux Ubuntu 22.04 uses Wayland as main communication protocol between a display server and its clients. And the Elektron version that Teams is currently using doesn't support Wayland as it should.

Solution

Source

Solving the screen sharing issue is easily resolved by just disabling Wayland in your display manager

Assuming GDM3 is your default display manager, editing the config can disable Wayland

 sudoedit /etc/gdm3/custom.conf
Enter fullscreen mode Exit fullscreen mode

Image config Wayland enabled
Uncomment #WaylandEnable=false and save your changes

Restart your device or restart GDM3

sudo systemctl restart gdm3
Enter fullscreen mode Exit fullscreen mode

After restart, this should resolve the issues with MS Teams screen sharing

Latest comments (5)

Collapse
 
bigkrp profile image
bigkrp

But if I want use wayland, are there any options?

Collapse
 
vanwildemeerschbrent profile image
Brent Vanwildemeersch Author

Unfortunately, I haven't found a way to use Wayland successfully share screens with Microsoft Teams

Collapse
 
hamzadlm profile image
HamzaDLM

Fixed sharing problem but disabled my second monitor

Collapse
 
darrenhall profile image
Darren Hall

Worked perfectly, thanks!

Collapse
 
n3o_ profile image
N3o

Thanks a lot, you saved my life

What are you learning?

Each week we have a Welcome Thread where we'd love to hear about it.