Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Cannot Screen Share with OBS Studio or Zoom / Pipewire / Wayland (Read 389 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Cannot Screen Share with OBS Studio or Zoom / Pipewire / Wayland

Hi, I'm running Artix OpenRC with KDE6 and Pipewire. This stuff used to work some time ago. But right now I can't get it to work under Wayland. I can screen share via X11 using XSHM , but if I try pipewire via OBS it exhibits same behavior.

I use AMD / MESA

Anyway, I followed the Artix Pipewire wiki: https://wiki.artixlinux.org/Site/PipewireInsteadPulseaudio
I also read the Arch pipewire wiki: https://wiki.archlinux.org/title/PipeWire

Furthermore, I read these threads and tried their suggestions to no avail:


I have noted two behaviors:

1. When I try to screenshare, I receive error
Code: [Select]
Failed to connect PipeWire context
2. When I try to screenshare I just get a black screen

I have behavior #1 if I use /usr/share/pipewire/pipewire.conf to launch pipewire by uncommenting fields under context.exec. = [ .
I have behavior #1 if I use pipewire-autostart from AUR
I have behavior #1 if I exec a script containing
Code: [Select]
/usr/bin/pipewire & /usr/bin/pipewire-pulse & /usr/bin/wireplumber
via .bash_profile

Conversely,
I have behavior #2 I install pipewire-openrc and wireplumber-openrc and add those to default or boot
I have behavior #2 if I use artix-pipewire-loader


Code: [Select]
pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 152
Tile Size: 65472
User Name: user
Host Name: ursar
Server Name: PulseAudio (on PipeWire 1.0.7)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51
Default Source: alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51.monitor
Cookie: 2a33:bf6a

Code: [Select]
echo $XDG_CURRENT_DESKTOP
KDE

Looking forward to clarification on this matter. Thanks.

 

Re: Cannot Screen Share with OBS Studio or Zoom / Pipewire / Wayland

Reply #1
I've resolved the issue as follows:

in /home/user/.config/plasma-workspace/env/ create an empty file called pipewire.sh

within pipewire.sh paste:

Code: [Select]
#!/bin/sh
/usr/bin/pipewire &
/usr/bin/pipewire-pulse &
/usr/bin/wireplumber &

no aur packages are needed for this to work