Upgrading to the -r1 revision removed the ability to play any sound. I couldn't identify exactly what's wrong, but Plasma's sound applet shows no sound cards and aplay seems to block trying to play anything. Couldn't find any useful error mesages in any log files. Reverting to media-video/pipewire-0.3.70 restores things to normal. Reproducible: Always
Created attachment 861434 [details] emerge --info
flexibeast, can you take a look? thanks
Well, looking in the changes made for #904851 I found the issue: only pipewire is running, no wireplumber. Looking further into what might start pipewire alone before the script is run.
Turns out I had a $HOME/.xprofile that started pipewire, probably some leftover from my early experiments with pipewire. So, what could be considered a bug in the Gentoo scripts is that the error messages are not redirected to stderr. That made them not appear in the session log.
Created attachment 861457 [details, diff] Patch that redirects error messages to stderr
(In reply to Andrei Slavoiu from comment #4) > Turns out I had a $HOME/.xprofile that started pipewire, probably some > leftover from my early experiments with pipewire. > > So, what could be considered a bug in the Gentoo scripts is that the error > messages are not redirected to stderr. That made them not appear in the > session log. Sorry for the hassle! Thanks for tracking down the issue, and for the patch; yes, i think directing the error messages to stderr is the way to go, as i feel the pre-r1 behaviour of unconditionally terminating existing PW/WP sessions (and thus perhaps unnecessarily disrupting one or more active audio streams) was incorrect.
Thanks both.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fa782429b4f607f8a1dc0e41e5cbe1bd94b35c3 commit 5fa782429b4f607f8a1dc0e41e5cbe1bd94b35c3 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-11 00:48:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-11 00:48:00 +0000 media-video/pipewire: write error messages from gentoo-pipewire-launcher to stderr Thanks to Andrei Slavoiu and flexibeast. Bug: https://bugs.gentoo.org/904851 Closes: https://bugs.gentoo.org/906070 Signed-off-by: Sam James <sam@gentoo.org> media-video/pipewire/files/gentoo-pipewire-launcher.in-r1 | 8 ++++---- .../{pipewire-0.3.70-r1.ebuild => pipewire-0.3.70-r2.ebuild} | 0 2 files changed, 4 insertions(+), 4 deletions(-)