So I have a fresh install of Fedora 36 workstation. When I try to share my entire screen or just a single-window. I get a distorted output ( not a black screen ).
Screen sharing works fine in a Xorg session. Here is the output of journalctl while I tried to screen share in firefox https://pastebin.com/KvE0K4Q9
The only lines that look interesting to me are:
fedora firefox[3158]: gdk_wayland_window_configure: assertion 'height > 0' failed
fedora gnome-shell[1681]: ATK Bridge is disabled but a11y has already been enabled.
fedora xdg-desktop-por[2178]: Unhandled parent window type
fedora xdg-desktop-por[2178]: Failed to associate portal window with parent window
fedora wireplumber[1642]: <WpPortalPermissionStorePlugin:0x5570828c71c0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
As a reference, before installing Fedora, I tried OpenSUSE tumbeweed and the screen-sharing was perfectly fine there.
I’d be grateful if anyone could help me out with this issue. If any other details / logs are needed please let me know. Thanks.
Indeed it is quite vague, I just wanted to add it as a reference. But yes, I did make sure that it was a wayland session. And it was Gnome on Tumbleweed.
By the way, I have now tried Fedora Kde Spin Live ISO and the issue is there as well.
Yes as mentioned in other topics people do have this problem that it not works with Wayland. But I’m not really sure if it is because screen-sharing is not working or because they use also NVIDIA drivers who are not configured as expected.
Could you please give us more info’s as : inxi -Fzx in terminal and post the output as </> Preformatted text here.
I found an older article about screen-sharing and Wayland … there it mentions tools how to debug. If you want to give this a try:
This may seem obvious, but I have to ask.
Was suse running gnome 42 as is running in fedora 36 or was it some other version?
Was suse running the same version of the kernel and wayland as fedora?
Knowing that the screen sharing works in suse just leads to a lot of questions about what may have been different between fedora 36 and suse tumbleweed that made screen sharing work with wayland on one system but not on the other.
Keep in mind that wayland is a DE that is still under development while xorg is a seasoned veteran and almost all conditions have been considered and the fixes are already in place for X.
Could this be related to graphics drivers? I noticed that screen sharing works fine on my laptop with same software setup (Fedora 36, Wayland, Gnome 42), but not on my PC. On my PC I have an Nvidia graphics card, but I think it’s not recognized properly, as I can’t use hardware acceleration in programs like Firefox, VLC, Handbrake, etc. Any ideas how to further debug this?
So it seems this is an issue on the PC.
A quick check for the problem with nvidia GPU there would start with checking if the nvidia modules are loaded or if it is using the nouveau drivers.
Did you install the nvidia drivers from rpmfusion?
What is the output of lsmod | grep -iE 'nouveau|nvidia'? (please post that)
If #2 shows nvidia then we can do some further trouble shooting. If it shows nouveau then please install the nvidia drivers since AFAIK nouveau does not support hardware accelleration.
If the nvidia drivers are installed but not shown as loaded in #2 then it is likely an issue with secure boot, but we can drill down there if needed.
I’m using an old AMD hardware and I got the issue as well. I think it’s a driver issue, as I found the problem seems to occur on newer kernel. It works fine on kernel version 5.15 LTS.