-
Notifications
You must be signed in to change notification settings - Fork 1
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 fails in Raspberry Pi OS #149
Comments
If this is the wrong bugtracker: Where is the bugtracker for Raspberry Pi OS? Didn't find the GitHub project in which Raspberry Pi OS is built. Any hints appreciated. Thanks! |
I've transferred this issue to bookworm-feedback. |
Thanks @popcornmix. I had looked for a project named "raspberry-pi-os" or similar. Maybe renaming "bookworm-feedback" would help others, too? |
see upstream issue regarding window sharing not being available in wlroots derived compositors (such as wayfire) |
Last time I tested Raspberry Pi OS with default GUI (Wayfire) on Raspberry Pi 5b, it seems sharing screen is okay. |
For more information, when I tried sharing screen from chromium I got: And when I tried that from firefox, I got this: |
Both of these are expected with wayfire/labwc, as linked from here #149 (comment), it's complicated.
We don't officially support gnome so I can't spend much time digging into this, but it looks like what's going wrong is the dmabuf buffers being shared by GNOME are in a GPU tiled format (which is more efficient for the GPU to read and write). But webrtc doesn't know how to read these formats, so it gets all garbled. This looks similar to https://askubuntu.com/questions/1483678/has-anyone-actually-managed-to-use-zoom-screen-share-on-wayland-strictly-no-x11 , so it might help to uninstall xdg-desktop-portal-wlr (which implements screen sharing on wlroots-based compositors like labwc and wayfire) and install xdg-desktop-portal-gnome (which implements screen sharing for gnome). Otherwise, if you can convince gnome to use software rendering instead of hw-accelerated (i have no idea how) then that might fix it since that will use vanilla linear buffer formats. |
I have asked about screen sharing in #wayland on IRC oftc, and they suggest the issue is related to mutter in gnome, and they asked me to try the new release of it, so I went ahead to Ubuntu24.4 which has mutter46, and it's indeed, screen sharing has no issue. |
Thanks for the update, good to know it's not anything we've broken specifically. |
Describe the bug
Screen sharing fails in Raspberry Pi OS.
To reproduce
Flash Raspberry Pi OS and run it without any changes on Raspberry Pi 5.
Then try screen sharing using one of the two factory-provided web browsers, e.g., using https://meet.jit.si/.
Expected behaviour
Screen sharing works.
Actual behaviour
Here is the full experience on a factory fresh Raspberry Pi OS image:
https://www.youtube.com/watch?v=6gDzZbImFJY
I suspect these issues are caused by Wayland, which is the default session on Raspberry Pi OS, and is known for breaking screen sharing.
System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:
Raspberry Pi 5 4GB RAM
cat /etc/rpi-issue
)?Raspberry Pi reference 2023-10-10 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 962bf483c8f326405794827cce8c0313fd5880a8, stage4
vcgencmd version
)?2023/10/18 18:30:17
uname -a
)?Linux raspberrypi 6.1.0-rpi4-rpi-2712 raspberrypi/userland#1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux
The text was updated successfully, but these errors were encountered: