question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken screen sharing on Linux Wayland

See original GitHub issue

Steps to reproduce

  1. Try to screen share on Linux Wayland with the new 1:1 calling feature.

What happened?

Sharing the full screen or most apps will not work. You might in some cases be able to share other xwayland Chromium based apps, but that’s a guess at best. This issue is not about group calls with embedded Jitsi, that is broken in all Element desktop builds due to https://github.com/vector-im/element-web/issues/4880.

What did you expect?

Chromium and Electron apps like Element currently require passing --enable-features=WebRTCPipeWireCapturer at runtime to enable PipeWire screen sharing on Wayland. This isn’t something most users will know exists, so screen sharing will simply be assumed to be broken with Element on Wayland.

Element should enable this flag at build time so .DEB and Flatpak users can screen share. Jitsi meet electron did so here (not the Jitsi embedded in Element, just a seperate Electron Jitsi package).

As far as I’ve seen, this flag does not cause regressions for X11 users. The expererience with it on Wayland can sometimes have issues, but I think mostly working screen sharing on Wayland by default is better than hardly anything at all.

One issue I noticed is Element seems to have a similar problem as Jitsi Meet Electron, where the preview image is broken even though the share button works.

As discussed extensively here, when on Wayland, devices with dedicated gpus (notably AMD) might experience segfaults when using experimental (not fully enabled by default in any distro I know of) DMA-BUF PipeWire screencasting. Since DMA-BUF screencasting will not be fully enabled by default until issues discussed there are fixed, I don’t see this as blocking for Element.

Operating system

Linux

Application version

Element version: 1.8.1 Olm version: 3.2.3

How did you install the app?

Flatpak, will affect DEB as well.

Have you submitted a rageshake?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vchernincommented, Aug 19, 2021

@SimonBrandner I’ve just tested build element-nightly-2021081901_amd64 and it works exactly as hoped! This issue can be closed.

Further info: I had to install Debian on a spare laptop, couldn’t find a live DEB-based distros with a live Wayland environment.

The UX isn’t perfect (as mentioned above) but it’s much better than nothing. I’ll open a follow up issue for improving that.

Thanks again!

1reaction
vchernincommented, Aug 18, 2021

You should also be able to do sudo apt install element-desktop-nightly (if on Debian)

I’m not actually on Debian, but I can easily test this in a VM when it’s ready.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Broken Screen Sharing on Linux Wayland #5350 - GitHub
I have searched open and closed issues for duplicates Bug Description Screen sharing on Linux X11 works, however Linux Wayland does not currently...
Read more >
Screensharing under Wayland - linux - Super User
Screen sharing in Wayland is known to be broken. You say that sharing works perfectly well in an X11 session, but you prefer...
Read more >
[SOLVED] Screen sharing broken in Wayland
I'm trying to share my screen from Google Meet in Chromium. I have one single screen, built in my laptop. pipewire is 0.3.2-1....
Read more >
Wayland screen sharing broken with GNOME 41 on Fedora 35
Not only screen sharing is broken on new Linux distros, but also sharing a single application window is not working under Wayland at...
Read more >
Broken screen sharing on Wayland + old AMD GPU, any idea?
Broken on both Firefox and Chromium. Seems to be linked to the kernel, because I tried using the 5.15 LTS kernel and it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found