This will record information about sway's activity when it's running. Briefly reproduce your problem and exit sway. Upload this file, along with your config, to gist.github.com, and include this in a GitHub issue (or when asking for help on IRC). When preparing a debug log, make it brief - start up sway, do the minimum work necessary to reproduce the error, then close sway. Explain the steps you took in plain English in your GitHub issue as well.
If the problem isn't immediately obvious, you will likely be required to debug it yourself - we are volunteers and only have so much free time.
As long as it did not install pipewire-pulse pipewire-alsa should pipewire be only there for Screensharing on wayland(WebRTC in the Browser and with OBS 27 to capture the screen)https://wiki.archlinux.org/index.php/PipeWire#Audio
You can try in the terminal -> pactl info
if pipewire is used for audio/pulseaudio replacement will it show
systemctl --user status pipewire-media-session.service
to look if it is running. But AFAIK should it start automatic with the newer version of it pipewire.
OBS built from source and still there isn't PipeWire option there
will tomorrow(German time) test around in a vm with a clean arch install what dependencys are needed. i guess something is missing as i did only test on quite bloated install as i was lazy :)
Are you sure that build is made with my link? the Commit of your build is 28days old (Commits on Feb 26, 2021). did rebuild it and have a version that is 86commits newer than the one you did use in that log
Can you look into /etc/pipewire if there are pacnew files? And replace the old configs with the pacnew files? (keep the old config files as backup somewhere) As the last update did break pipewire for quite a lot arch users as the config did change and pipewire-media-sesion is its own package/deamon since the release 18days ago.
If you did that restart the PC and check with journalctl --this-boot --user-unit pipewire --follow
if there is "Started Multimedia Service"
In OBS you can right click on the PipewireDesktopCapture in the "sources" selector and >PropertiesIf you click in the new window [PipewireSelectMonitor], it should popup a new window that asks what screen you want to use (if not then it should print something to the terminal you did start OBS from. This would be good to have to find the source of your problem)
ok then i am out of ideas. Well i guess if you have no problem waiting for a bit you could wait till the pipewire stuff gets merged so you can use the usual obs-studio-git(as i would guess they would ad the dependencies to it). It"s hard to debug as i can't reproduce your problem on my test VM.
OK did test it in a EndeavourOS VM with GNOME-wayland. I hope it will work now for you.
Check if pipewire is installed(did add it to the PKGBUILD now) it looks like the pipewire support needs glib2(libgio-2.0) but that should be installed anyways.
Install all the dependency it does ask for(you should have them already as you did install obs-studio-git)
edit the PKGBILD from depends=('obs-studio-wayland' -> depends=('obs-studio'
and build it with
makepkg -sif
If it does ask what version of xdg-desktop portal you want take the xdg-desktop-portal-gtk for gnome
now start OBS with QT_QPA_PLATFORM=wayland obs
Add the source: PipewireDesktopCapture and then should the screenshare popup come where you can choose the display
That should be all. If it still does not work(try a reboot first). It could be that your pipewire could be broken as the update did AFAIK change the config and the settings could be saved as .pacnew in /etc/pipewire/ so could be that a cleanup of the configs could help. As others in this subreddit did have this problem.
do you have this xdg-desktop-portal-gtk and pipewire installed? (Onlcy the base package. pipewire-pulse should be not installed. That would replace pulseaudio)
and obs started with QT_QPA_PLATFORM=wayland obs
Can you describe what happens if you add the source PipewireDesktopCapture? If that is not there can you send the output that obs prints to the terminal.
I think discord can you ignore for now as that can only be fixed if Discord does update to a electron12 so it has Wayland support(or they find a way to use pipewire)
EDIT will look what dependency it needs so i can upload it to the AUR. If i get it on a fresh install to run will it most likely run on your system too.
I did write you in the other comment the old way with the xdg-portal. i have played a bit with the experimental pipewire screencapturing support https://github.com/obsproject/obs-studio/pull/4287 (did only remove the changes in /plugins/linux-capture/data/locale/en-US.ini as that did not build with it)
It feels smoother and seems like it has a lower latency than the old way https://youtu.be/-DtEeWmiEUQ . And Desktop audio does come from the same source. Will update my git repo if there are updates to the Pull request till it gets merged.
before building it as that would install the package that should no longer be needed(obs release with the wayland patches) and conflicts with the obs-git)
not 100% sure if you need to have an env set as i have many for my sway install and don't want to play arount with that right now :) Here proof https://youtu.be/B4vyoyxGOmA it does not run fluid for me right now but at least a working state.
Edit seems like with QT_QPA_PLATFORM=wayland obs
does it run a lot smoother for me
As i am a Sway user and there was a different way of doing OBS in sway. Will try to get it to work on Gnome and will report back if i got it to work :)
Xwayland windows can capture xwayland windows(i guess that is what you see that some windows work) and as electron has since version 12 Wayland support with
--enable-feature=UseOzonePlatform --ozone-platform=wayland
is there at least hope that they will enable pipewire screensharing with it
The issue is not CPU decoding power but battery life and heat.
It is in a way both. If your CPU is running at Max Speed does it take more Battery/produce more heat
To take the extreme example ". With the most recent version of dav1d you can get 887 FPS, albeit with a 3990X" This does mean if it will use all cores at max speed will it get 887 FPS but if you just decode a 1080p30fps video will that mean your CPU is not much in use. The same is with smartphones too.
The pixel 1 XL in that test should be mostly possible to decode the 1080p AV1 file but it will run at full speed that's why i said "that are stronger than the pixel 2"
The LG G3 is a ARMv7/32bit CPU not sure how good the support by dav1d is for that and the Mi A1 looks like it is more on the budget side of CPUs. But i think Av1 decoding with Dav1d should be in the same range as h265 software decode but not sure how good the 10bit decoder are of h264/265. Will look if i can make a test on the Odroid N2 h265 vs dav1d 8+10bit :)
We have seen so far announcements for TVs and Set-top box CPUs with AV1 Hardware decoder. I guess we need to wait for the Smartphone releases of this Year to know if they have support.
1080p30fps should be possible on smartphones (that are stronger than the pixel 2) without that the smartphone is running at full power for both 8bit and 10bit. lower resolutions even better.(But i think you need to use VLC or any other player on android that got build with a up to date dav1d, the build in decoder libgav1 is weaker)
There is a issue on Github where they are thinking about namechange/Fork https://github.com/wwmm/pulseeffects/issues/874
They have some changes in the pipeline to rename it to easyeffects
paru-git works for me. Hope there is a release soon
maybe try to start sway in debug mode.
AFAIK did with Gnome 40 break some Extension. There is work in Progress
https://github.com/micheleg/dash-to-dock/pull/1402
https://github.com/home-sweet-gnome/dash-to-panel/pull/1303
As long as it did not install pipewire-pulse pipewire-alsa should pipewire be only there for Screensharing on wayland(WebRTC in the Browser and with OBS 27 to capture the screen)https://wiki.archlinux.org/index.php/PipeWire#Audio
You can try in the terminal -> pactl info
if pipewire is used for audio/pulseaudio replacement will it show
-> Server Name: PulseAudio (on PipeWire 0.3.25)
No Problem :) good to hear that it works now as expected.
the aur got updated https://aur.archlinux.org/cgit/aur.git/log/?h=obs-studio-git maybe worth a try :)
i got it to run on a fresh arch install with only the "gnome" base packages installed over a minimal install with archfi
with "xdg-desktop-portal" installed from the repo (not the AUR) and then the obs-studio recompiled(pipewire was installed already)
The Pipewire option is there but only if it is run with QT_QPA_PLATFORM=wayland obs
And themes for flatpaks are there. OBS is a QT app so i guess this should work https://docs.flatpak.org/en/latest/desktop-integration.html#instructions-for-qt but never used flatpak with Themes yet
No problem. I have fun doing debuging/troubleshooting new stuff on linux :)
BTW https://github.com/obsproject/obs-studio/releases/tag/27.0.0-rc1 RC is out so soon :)
So you did replace/merge the pacnew files into the conf files?and i think pipewire does not like to be started as root so you need to start as --user
systemctl --user start pipewire-media-session.service
systemctl --user status pipewire-media-session.service
to look if it is running. But AFAIK should it start automatic with the newer version of it pipewire.
will tomorrow(German time) test around in a vm with a clean arch install what dependencys are needed. i guess something is missing as i did only test on quite bloated install as i was lazy :)
https://github.com/obsproject/obs-studio/pull/4287 the Pull request got merged so you don't need to use my link anymore and can just use obs-studio-git from the AUR.
Maybe the next OBS release is close https://github.com/obsproject/obs-studio/milestone/3 at least there is hope that it is the case :)
Any update if you could fix your problems? Can you try https://mozilla.github.io/webrtc-landing/gum_test.html the screenshare option on that page with your browser. to look if it is a problem with pipewire in general or a OBS problem https://wiki.archlinux.org/index.php/PipeWire#WebRTC_screen_sharing
Are you sure that build is made with my link? the Commit of your build is 28days old (Commits on Feb 26, 2021). did rebuild it and have a version that is 86commits newer than the one you did use in that log
> info: OBS 26.1.2.r290.ga52012e8c (linux)
Ok we are at least a step closer now :)
Can you look into /etc/pipewire if there are pacnew files? And replace the old configs with the pacnew files? (keep the old config files as backup somewhere) As the last update did break pipewire for quite a lot arch users as the config did change and pipewire-media-sesion is its own package/deamon since the release 18days ago.
https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting#pipewire-not-loading
https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave Did use pacdiff myself for this.
If you did that restart the PC and check with journalctl --this-boot --user-unit pipewire --follow
if there is "Started Multimedia Service"
In OBS you can right click on the PipewireDesktopCapture in the "sources" selector and >PropertiesIf you click in the new window [PipewireSelectMonitor], it should popup a new window that asks what screen you want to use (if not then it should print something to the terminal you did start OBS from. This would be good to have to find the source of your problem)
only
QT_QPA_PLATFORM=wayland obs
ok then i am out of ideas. Well i guess if you have no problem waiting for a bit you could wait till the pipewire stuff gets merged so you can use the usual obs-studio-git(as i would guess they would ad the dependencies to it). It"s hard to debug as i can't reproduce your problem on my test VM.
OK did test it in a EndeavourOS VM with GNOME-wayland. I hope it will work now for you.
Check if pipewire is installed(did add it to the PKGBUILD now) it looks like the pipewire support needs glib2(libgio-2.0) but that should be installed anyways.
Install all the dependency it does ask for(you should have them already as you did install obs-studio-git)
git clone https://gitlab.com/Toggleton/obs-pipewire-git
cd obs-pipewire-git
makepkg -sif
cd ../
After that do
git clone https://aur.archlinux.org/obs-xdg-portal-git.git
cd obs-xdg-portal-git
edit the PKGBILD from depends=('obs-studio-wayland' -> depends=('obs-studio'
and build it with
makepkg -sif
If it does ask what version of xdg-desktop portal you want take the xdg-desktop-portal-gtk for gnome
now start OBS with QT_QPA_PLATFORM=wayland obs
Add the source: PipewireDesktopCapture and then should the screenshare popup come where you can choose the display
That should be all. If it still does not work(try a reboot first). It could be that your pipewire could be broken as the update did AFAIK change the config and the settings could be saved as .pacnew in /etc/pipewire/ so could be that a cleanup of the configs could help. As others in this subreddit did have this problem.
do you have this xdg-desktop-portal-gtk and pipewire installed? (Onlcy the base package. pipewire-pulse should be not installed. That would replace pulseaudio)
and obs started with QT_QPA_PLATFORM=wayland obs
Can you describe what happens if you add the source PipewireDesktopCapture? If that is not there can you send the output that obs prints to the terminal.
I think discord can you ignore for now as that can only be fixed if Discord does update to a electron12 so it has Wayland support(or they find a way to use pipewire)
EDIT will look what dependency it needs so i can upload it to the AUR. If i get it on a fresh install to run will it most likely run on your system too.
I did write you in the other comment the old way with the xdg-portal. i have played a bit with the experimental pipewire screencapturing support https://github.com/obsproject/obs-studio/pull/4287 (did only remove the changes in /plugins/linux-capture/data/locale/en-US.ini as that did not build with it)
If you want to play around with it
git clone https://gitlab.com/Toggleton/obs-pipewire-git
cd obs-pipewire-git
makepkg -sif
GNOME-Wayland and KDE-wayland Work(in sway does it not work yet cause of a permission problem)
It feels smoother and seems like it has a lower latency than the old way https://youtu.be/-DtEeWmiEUQ . And Desktop audio does come from the same source. Will update my git repo if there are updates to the Pull request till it gets merged.
OK got it to work https://aur.archlinux.org/packages/obs-xdg-portal-git/ (install this but change the
depends=('obs-studio-wayland' -> obs-studio
before building it as that would install the package that should no longer be needed(obs release with the wayland patches) and conflicts with the obs-git)
installed xdg-desktop-portal-gtk and rebooted
set in OBS it to source: Desktop capture(x11/wayland) then it should show a popup that asks what screen you want to share like in the pictures here https://feaneron.com/2019/11/21/screencasting-with-obs-studio-on-wayland/
not 100% sure if you need to have an env set as i have many for my sway install and don't want to play arount with that right now :) Here proof https://youtu.be/B4vyoyxGOmA it does not run fluid for me right now but at least a working state.
Edit seems like with QT_QPA_PLATFORM=wayland obs
does it run a lot smoother for me
As i am a Sway user and there was a different way of doing OBS in sway. Will try to get it to work on Gnome and will report back if i got it to work :)
https://feaneron.com/2019/11/21/screencasting-with-obs-studio-on-wayland/ the needed stuff should be in the flatpak version of OBS or if you build the OBS from git as the wayland PRs are not in a release yet
https://github.com/obsproject/obs-studio/pull/2484
EDIT: https://wiki.archlinux.org/index.php/PipeWire#WebRTC_screen_sharing for Discord but i think the electron that the discord App uses is way to old so not sure if that works for this yet . So you could try if it works in the browser
Xwayland windows can capture xwayland windows(i guess that is what you see that some windows work) and as electron has since version 12 Wayland support with
--enable-feature=UseOzonePlatform --ozone-platform=wayland
is there at least hope that they will enable pipewire screensharing with it
(electron12 is not released on Arch yet and since more than a week in staging https://archlinux.org/packages/community-staging/x86_64/electron/
well here is a more up to date explanation (the rant you are quoting is from 2017) why the backend of sway (wlroots) does not support the EGLSTREAM stuff that NVIDIA is pushing https://github.com/swaywm/wlroots/pull/2769#issuecomment-792248443
but i guess you could try the fork (please report bugs to the fork not the main project) https://github.com/danvd/wlroots-eglstreams
The overview part should give a good picture why it was started https://en.wikipedia.org/wiki/Wayland_(display_server_protocol)#Overview
EDIT: this seems like a good explanation https://reddit.com/r/linux/comments/lnnm56/wayland_on_wine_an_exciting_first_update_windows/go3epye/
https://github.com/swaywm/sway/issues/5076 -> https://github.com/swaywm/sway/wiki/VRR-setups
KDE is working on it too https://invent.kde.org/plasma/kwin/-/merge_requests/718
It is in a way both. If your CPU is running at Max Speed does it take more Battery/produce more heat
To take the extreme example ". With the most recent version of dav1d you can get 887 FPS, albeit with a 3990X" This does mean if it will use all cores at max speed will it get 887 FPS but if you just decode a 1080p30fps video will that mean your CPU is not much in use. The same is with smartphones too.
The pixel 1 XL in that test should be mostly possible to decode the 1080p AV1 file but it will run at full speed that's why i said "that are stronger than the pixel 2"
The LG G3 is a ARMv7/32bit CPU not sure how good the support by dav1d is for that and the Mi A1 looks like it is more on the budget side of CPUs. But i think Av1 decoding with Dav1d should be in the same range as h265 software decode but not sure how good the 10bit decoder are of h264/265. Will look if i can make a test on the Odroid N2 h265 vs dav1d 8+10bit :)
We have seen so far announcements for TVs and Set-top box CPUs with AV1 Hardware decoder. I guess we need to wait for the Smartphone releases of this Year to know if they have support.
Don't think AV1 will be very niche with
netflix https://medium.com/@NetflixTechBlog/netflix-now-streaming-av1-on-android-d5264a515202
Google(Youtube has encodes so far per day alone in the "Popular right now" Playlist ~50/200 Videos <=1080p https://htmlpreview.github.io/?https://github.com/thulle/yt-av1/blob/master/yt-av1.html)
Vimeo(they encode nearly all staff pick videos in AV1 https://vimeo.com/blog/post/av1-new-standard-codecs/)
Facebook(https://engineering.fb.com/video-engineering/facebook-video-adds-av1-support/)
and Twitch (https://www.youtube.com/watch?v=K1Fzm7nINjM&start=909 not sure how this timeline is still true + they have a feature in AV1 they want to use https://www.youtube.com/watch?v=o5sJX6VA34o)
planing to use it.
The performance of dav1d on arm64 should be fine if your CPU is not that weak
It got tested tested on a Google pixel 1 xl, Pixel 2 , pixel3, xiaomi mi 9T pro and a Odroid N2
https://www.reddit.com/r/AV1/comments/gncplq/av1_multithreaded_decoder_comparison_2020may19/
1080p30fps should be possible on smartphones (that are stronger than the pixel 2) without that the smartphone is running at full power for both 8bit and 10bit. lower resolutions even better.(But i think you need to use VLC or any other player on android that got build with a up to date dav1d, the build in decoder libgav1 is weaker)
End of this list.
Back to top