There is an updated pull request by Logarithmus against master on the void-packages repository https://github.com/Logarithmus/void-packages libpipewire02 https://github.com/void-linux/void-packages/pull/26144 chromium: enable WebRTC screen sharing via PipeWire [ci skip] **UPD**: Chromium 87 has just been released. All the tests were done for Chromium 86, so additional testing is needed now. - [x] libpipewire0.2 - [x] patch chromium's template - [x] test for all archs: - [ ] x86_64 - works for Chromium 86: https://youtu.be/AgyxEC7SfGk - [ ] i686 - works for Chromium 86: https://youtu.be/j0MY9C1CwV4 - [x] aarch64 - ignoring because `nocross=yes` - [x] armv7l - ignoring because `nocross=yes` - [x] x86_64-musl - works for Chromium 87: https://youtu.be/ZJorRl_7Sh4 There are minor issues though: * you have to kill `xdg-desktop-portal*` processes sometimes, probably caused by some sort of race condition; * also you may need to start/restart screensharing for it to work. ✔️ https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing ✔️ https://zoom.us (in-browser version) ✔️ https://discord.com (in-browser version) - [x] aarch64-musl - ignoring because `nocross=yes` Currently I'm investigating these stability issues with `pipewire`. It seems that `pipewire` is trying to use `rtkit` to make audio/video processing run in real time. Unfortunately, it fails to do so: ``` 2020-11-16T03:49:59.73350 daemon.err: Nov 16 03:49:59 rtkit-daemon[3165]: Failed to make ourselves RT: Function not implemented 2020-11-16T03:49:59.73602 daemon.warn: Nov 16 03:49:59 rtkit-daemon[3165]: Warning: failed to read scheduler policy: Function not implemented 2020-11-16T03:49:59.73620 daemon.debug: Nov 16 03:49:59 rtkit-daemon[3165]: Supervising 0 threads of 0 processes of 1 users. 2020-11-16T03:49:59.73645 daemon.debug: Nov 16 03:49:59 rtkit-daemon[3165]: Supervising 0 threads of 0 processes of 1 users. 2020-11-16T03:49:59.74118 daemon.err: Nov 16 03:49:59 rtkit-daemon[3165]: Failed to make ourselves RT: Function not implemented ``` After a bit of searching, I've found these bugs: https://bugzilla.redhat.com/show_bug.cgi?id=1229700 https://bugs.gentoo.org/show_bug.cgi?id=569546 I've built `linux5.9` for `x86_64` with `CONFIG_RT_GROUP_SCHED` disabled. For some strange reason, nothing changed, the error persists. Luckily, screen sharing works without `rtkit`. I guess that those rare issues with screen sharing, which were described above, may be caused by `rtkit` not working. A patch file from https://github.com/void-linux/void-packages/pull/26144.patch is attached