View previous topic :: View next topic |
Author |
Message |
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 179
|
Posted: Tue May 17, 2022 10:55 pm Post subject: [SOLVED] OBS not detecting screen on Wayland |
|
|
Hi. I am on running Sway. I was trying to make OBS screen sharing work. As stated in this section of the guide I added the relevant USE flags (sorry for the messy make.conf, the flag is in there):
Code: | sicro@sicro ~ $ cat /etc/portage/make.conf
...
INPUT_DEVICES="libinput mouse keyboard synaptics"
USE="elogind -systemd swaybar wayland X xorg dbus wifi hwaccel jpeg git ssh threads persist postproc cups text bluetooth icu nss pulseaudio minizip -kde gui curl gnuplot opengl readline vulkan googledrive cairo egl pdf acpi alsa speex v4l lua screencast x264 npm gtk gtk3 -doc udev -networkmanager"
VIDEO_CARDS="amdgpu radeonsi radeon"
...
sicro@sicro ~ $ cat /etc/portage/package.use/obs-studio
media-video/obs-studio pipewire
|
I also have the following line in the Sway config file:
Code: | sicro@sicro ~ $ cat .config/sway/config
...
exec gentoo-pipewire-launcher
exec --no-startup-id /usr/libexec/xdg-desktop-portal -r
...
|
After re-emerging everything, OBS only shows the following sources:
- Audio Capture Device (ALSA)
- Audio Input Capture (PulseAudio)
- Audio Output Capture (PulseAudio)
- Color Source
- Image
- Image Slide Show
- Media Source
- Scene
- Video Capture Device (V4L2)
- Groups
I don't have the source for the screen or any other applications.
I verified, and wf-recorder records my screen without any issues.
How can I make OBS work with Wayland? |
|
Back to top |
|
|
sicr0 Apprentice
Joined: 23 Mar 2022 Posts: 179
|
Posted: Wed May 18, 2022 8:15 pm Post subject: |
|
|
I don't know exactly how I solved it, I called in the Sway config file xdg-desktop-portal-wlr instead of xdg-desktop-portal- and emerge Wireplumber and at the next boot it worked on OBS and Firefox. Discord still doesn't work but after months of trying to solve this I'm just gonna celebrate this and fix it later |
|
Back to top |
|
|
|