Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OBS not detecting screen on Wayland
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 179

PostPosted: Tue May 17, 2022 10:55 pm    Post subject: [SOLVED] OBS not detecting screen on Wayland Reply with quote

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
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 179

PostPosted: Wed May 18, 2022 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum