-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen Sharing is Not Working - NOT Wayland #1331
Comments
Thanks for reporting. The following line seems to indicate is something to do with wayland.
https://askubuntu.com/questions/1510794/chrome-124-hangs-doesnt-attach-to-wayland says using the https://github.com/IsmaelMartinez/teams-for-linux/tree/develop/app/config#electron-cli-flags Looking at the logs, your config should be under If you need to try multiple options, enable the |
In my case (which may or may not be the same; the symptoms are identical except that it only happens 50-60% of the time) this issue isn't likely to be wayland-related as my desktop environment is wmaker under X11, with wayland not installed. I do also get that ScreenSaver error line. Explicitly setting |
Maybe the app is incorrectly thinking is wayland. You should be able to play with the same settings as chrome, that most are supported (I think) |
Yea, I'm not running Wayland either but X11 and XFCE4. I'll do some testing with the links that you posted. I am running the nVidia driver though. Not sure if that would cause a problem or not. |
While I'm not on X and am using Wayland, since Devuan is based on Debian I assume it comes with the exact same packages as the current stable (Bookworm). For Debian 12 stable running Sway on Wayland, I was able to get screensharing working after using a backported version of Pipewire since it seems the version packaged in Bookworm was too old. Current stable Pipewire: 0.3.65
Also compared to screensharing on windows, there doesn't seem to be a preview on what is being shared for the host while on screensharing on Linux. So to avoid wondering why screensharing is seemingly not working, you should send a meeting invite to yourself and open it via a browser to get a guest view of the screen being shared. Extra notes:
|
Yea, Devuan pretty much uses 98% of all the Debian packages. Though dbus is modified by the Devuan group:
Upgrading pipewire didn't seem to fix anything. I have not had time to dig into those two links that IsmaelMartinez posted yet. I'm hoping to work on that today. |
I'm on Ubuntu which uses Wayland by default. Teams is running in XWayland on my setup hence this is impossible to share screen, since XWayland windows cannot get the screen of Wayland. In order for this to work the electron-app has to run in wayland. As already shared by Ismael I have no Idea how to implement this in this repo with snap/flatpak etc. |
I was facing the same problem with screen sharing on Ubuntu 22.04.4 with wayland installing this app trough snap. I've uninstalled it and installed with apt repo and now my screen sharing is working. |
I'm not sure about Snaps, but Flatpak users can install Flatseal to make Teams run on Wayland. Specifically, they would need to add I've attached images showing what Flatseal options I've enabled to force the Flatpak into Wayland mode. Maybe this info could be added to the wiki/description since some other issues have noted problems with screensharing on the Flatpak version as well. Also to verify that the Flatpak is running on Wayland, Sway users can add |
Thank you XZ02R! Can't this env be set somewhere by default? |
As far as I can tell from the documentation, setting "auto" shouldn't cause a problem for X11, though I doubt it will solve this issue there either (unfortunately I won't be able to test it either way for a few weeks now) |
I had some time to test today. Adding option results in a crash. I tried x11 and auto. Running chromium manually doesn't work either "chromium --ozone-platform=auto". Doing some googling it says to try hint, so "chromium --ozone-platform-hint=auto" does open chromium, but =xll does not. It ends up throwing an error about Invalid ozone platform:
Using the hint in the config file My config.json file:
Web Debug:
When I clicked to share my screen, the "Failed to query for child windows for screen 0" occurred. So not sure what the problem is. Could be the whole proprietary nVidia driver. |
@Ryushin It's hard to judge what's wrong on your side. From a higher level I would check the following:
Getting it to run with wayland and having the portal thing installed in my experience it should just work. |
I am starting to think this is many issues group together... I can try to merge the wayland fix soon (probably not today) and see if that helps but I suspect the problem is more on the auto detect if it is wayland or x11. If that is the case, it might be better warning the user to use the appropriate config (and for us to find that) instead of trying to hardcode it. I don't have experience in x11/wayland and xwayland and can't test the different (stuck on a mac), so I will see if I can get an old laptop configured and can test this in linux. |
I'm still using X11. Still rocking my original Debian Potato install and apt-get dist-upgrade all these years and switched to Devuan when Jessie was out and the whole system init thing happened in Debian. xdg-desktop-portal is installed. @IsmaelMartinez is probably right, there is probably multiple problems here. |
My comment isn't directed at I joined a meeting with both Chromium and Firefox but was unable to share my screen. The option to show "tab, window, desktop" shows up and I click share but then nothing happens. On Firefox it even shows the "stop sharing" but nothing is actually shared. My comment is just a suggestion for other people to check if they can share their screen with the browser. Maybe that can help in figuring out the root cause. |
For a while now, I have a similar problem with Arch Linux and Hyprland (wayland). When I try screen sharing there pops up a prompt to select the shared window. After choosing it, the window closes, but nothing is shared. I also tried using flags like The debug log: (at the end there are related ERROR messages)
|
I can confirm I recently have started having this issue (Fedora 40) and it also affects Chromium, so likely not a specific app issue. Setting |
I am having issues with screen sharing using the snap package in Ubuntu 24.04 under Wayland. I have tested under X11 and it works fine. Under Wayland I get a message saying "Your video isn't working" "We couldn't access your camera". Just to be clear, webcam works just fine. I am quite sure this is a Wayland issue. I also tested with the latest/edge release v. 1.9.0, same problem. |
You aren't alone reporting issues with wayland. It is pretty difficult to understand what the issue is, to be honest, as some solutions works for some people, while for others seems like nothing works. One of those mad linux env configuration issues I think. |
Hi, I have the same problem with the snap v1.9.6 |
Hi @sebma , have you tried the multiple options provided? Most users seem to have got it working with the solutions provided. Otherwise, can you open a new issue and fill the template with logs and as much info as possible. Thanks |
I've recently upgraded to I've not incounted any side effects yet since. But there does seem to be an issue using the wayland default |
Sorry to hear. This issue is related to screen sharing not working for non wayland, but glad you got it working. |
@Ryushin , did you manage to get this working? Maybe is your chromium that needs to be clean and re-installed. Re-reading your messages, if chromium doesn't work, teams will struggle to work (as it uses your chromium in some systems - I think). Hope helps |
So I did more testing, afraid the same problem is still occurring. I apt purged and re-installed chrome:
The debug looks interesting now, perhaps that will help. "The window is no longer valid" occurred when I tried to share my screen.
|
From this https://bugzilla.mozilla.org/show_bug.cgi?id=1151189 I found this page: https://mozilla.github.io/webrtc-landing/gum_test.html Can you see what you get in there? Maybe check in chromium to see if you get the same error. If that is the case then we know is something todo with Chromium and/or your graphic card drivers |
Launching Chromium and going to the gum_test page shows everything is working that that it is sharing my screen. I can move my mouse and switch windows and I can see the demo site display everything. Not sure if this will help you, but when I select screen share, then it shows the Entire Screen window, I can see my mouse move in the tiny window. As soon as I click on it, the mouse no longer moves. Pulling up the Share Screen window again, and not clicking on the Entire Screen, but clicking on the X on the right can't close it either and the mouse also stops moving. I can click the screen share again, switch between Screens and Windows fine, but as soon as I click on any item, nothing happens and I can't close the share screen bar. I have to Ctrl+Q to quit it. If you like, we can do a video session or something else so you can see the behavior. |
On Ubuntu 24.04 after I run this command, it started to work again: |
Afraid I don't have gnome installed as I use XFCE4. But reading it, it's a front end for xdg-desktop-portal, which according to the "apt-cache show xdg-desktop-portal"
So that is probably why it now works for you. Just have no idea why the deb package works for you and not for me. The gum test works for me using Chrome: |
I encountered the same issues when using Teams-for-Linux with Ubuntu 24.04, which I had installed via the App Center using snap. I resolved the issue by following these steps:
Source: https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop |
Just going to leave some steps I've discovered here in case it helps someone get it working. But since my last comments here there are instances where screen sharing doesn't work. One of the solutions that got it working was to The other solution took a bit of head scratching to find but if you can screen share with the Mozilla screen sharing test and teams-for-linux either freezes the preview or doesn't display anything at all while screen sharing, there's a chance that it's actually working but you're not seeing any indicator. I only discovered this while testing a meeting with calendar -> meet now and inviting myself to the meeting from a laptop while my desktop attempts screen sharing. My main machine showed no indication of the screen being shared, but my laptop was able to see the screen being shared. |
Also confirming the issue, with Ubuntu 24.04 I get a message saying "Your video isn't working" "We couldn't access your camera" when using teams-for-linux snap. (was working until around 2 weeks ago) |
this looks more a graphics card drivers update. Try with the --disableGpu option and see if that does the trick, and check your graphics drivers. The libraries probably updated not long ago. |
Does not fix. Still the same issue |
that smells like drivers to me, and on that I don't know if I will be able to help much. can you open another issue so I can look into that in more detail? Fill the template with as many info you got. |
Your trick above solved 90 % of my screen sharing problem. Impressive & thanks, Samuel-Duhaime (& IsmaelMartinez) ! Explaining:
(Screenshot while sharing --> can not see the screen of the window/application in Teams I am sharing) However, to me this is just a "Feature", since sharing works ok.
With deep gratitude, Mikko P.S. Previously I was forced to use The Intentionally-Leaky Göögle Chröme in meetings where I needed to share my screen. Not any more :) |
thanks for sharing! The "see what I am sharing" is a feature that is been open for a bit #1354 . I need to move how the handling of windows work in our app as electron is deprecating the current way, then I will see if/when I can add this. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Bump to keep this ticket open. |
Describe the bug
Clicking share screen brings up the option to share screen and click on it:
Shows the option to select the Entire Screen and clicking on it never results in sharing the screen. You can't close this bottom panel either and I have exit the application to get it to go away:
I have been using teams-for-linux since late last year. Screen sharing has never worked for me. If I need to share my screen I've been having to use Microsoft's abandoned v1.5 Teams Preview.
Desktop (please complete the following information):
Debug
The text was updated successfully, but these errors were encountered: