-
Notifications
You must be signed in to change notification settings - Fork 61
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
Blank screen when sharing through browser. #273
Comments
Yes, I'm also facing a similar issue. Firefox is just completely broken as far as sharing goes. With chrome (using ozone) I'm facing the issue that when other participants share screen I only see a black screen. When I try to share, I'm unable to share, but restarting xdg-desktop-portal-wlr.service allows me to share screen. But, even after restarting the service incoming shared screen stream is blank. |
For me, restarting xdg-desktop-portal-wlr doesn't make screen sharing work. Also worth noting that I'm able to share some windows (the x-based windows I guess). My current workaround is using obs to view the screen, then sharing the obs window from my browser. |
While configuring Sway on Ubuntu, I noted that the environment variables |
Thanks for the comment. I had I just tried |
@alanxoc3 are you using vulkan by any chance? |
Looks like it:
I'm guessing that's problematic? EDIT: I didn't have any hard dependencies on vulkan, so I tried removing it & rebooting my laptop. I still have the issue though :( EDIT AGAIN: Actually, I have 2 more vulkan dependencies:
Looks like wlroots depends on |
Sorry, I meant if you were using WLR_RENDERER=vulkan with sway. I've experienced instability with xdg-desktop-portal-wlr when using vulkan renderer. Doesn't sound like that is the case for you. |
Oh no. I don't have that env var set. Thanks for the suggestion though. |
I'm also running into this. There is a "monitor" I can select to screen share, but there's nothing visible. Interestingly, the pw-dump command returns nothing. Edit: Not sure what changed, but restarting several times with systemd made it work again...but I saw this message in the log for xdg-desktop-portal: |
I'm pretty sure this is an issue with pipewire or something else upstream rather than with XDPW. EDIT: So like I said, probably an issue somewhere upstream. |
I don't have |
With firefox it seems to get into a loop like this. Maybe of some help in debugging:
|
@erahhal did you get anywhere? I'm currently also running i3 just because of this.. |
@francocalvo It ended up being a bug in pipewire. With 0.3.77 I no longer had the problem. |
Updating to pipewire 0.3.77 doesn't fix the black screen sharing for me :(. Still having issues with both firefox & chrome screensharing. |
Worth trying the latest Firefox 117 beta - I had an issue with 116, which turned to be related to the sharing indicator window. I had a rule in sway to kill (close) those windows immediately, and apparently that stopped the screensharing and left it in a weird state. Firefox 117 doesn't use indicator windows at all, so the problem is gone - and I also got rid of the sway config rules. |
oddly, it works for me in 116 where the indicator window shows up. On Nightly, there is no indicator window and Firefox apparently only shares the first 'frame' of the shared display. It does not update. It is almost as if you are sharing a screenshot of your display. I've switched back to 116 for screensharing. Hopefully, the nightly behavior won't make it into 117... |
I'm testing in Firefox, Brave and Chromium, and non of those work. I can share a tab in Chromium based browsers tho. @erahhal I'm still with the same problem. I scoured your nix config and tried to replicate some of your tweaks, but the result hasn't changed. |
@francocalvo Does desktop sharing in OBS work for you? If so, then it's likely an issue with pipewire or whatever is setting up connections to xdg-desktop-portal-wlr. |
It's not working with OBS using PipeWire nor XSHM. |
So I had been getting around this for the past year by screen sharing an OBS window with my browser. However that stopped working 1-2 weeks ago. I tried downgrading related packages, rechecked my xdg related config, etc. I don't see any errors in the logs:
I'm using river, but I also tried sway with the same issue. OBS and wl-mirror can show the screen in their windows, but chrome/firefox/qutebrowser/slack shares the screen as a blank screen and can't find the OBS window anymore. I have no ideas for a solution at this point besides trying xorg or a re-install. Anyone have a tip? |
Hi, I haven't been able to screen share with either firefox or chromium for a while now. I have tried everything in the guide a few months ago and again today:
https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
In firefox, the screen is just blank with a mouse. Chromium doesn't even let me share the screen. OBS Studio does work however, which I find very odd.
My setup is:
I've tried with both wireplumber and pipewire-media-session.
This command is in the guide and outputs for me:
Please let me know which commands I should run to provide more information.
The text was updated successfully, but these errors were encountered: