Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pipewire pulseaudio conflict
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ritzmax72
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2014
Posts: 101

PostPosted: Tue Jun 04, 2024 4:22 pm    Post subject: pipewire pulseaudio conflict Reply with quote

I have a fresh gentoo installation with plasma profile selected.
Before doing world update I had explicitly stated in make.conf "-pipewire"

I really don't want new things to be forced onto me like Windows

So plasma pulls in
Code:
media-sound/pulseaudio
package which shows
no files installed with
Code:
 equery d media-sound/pulseaudip
and it also installs
Code:
media-sound/pipewire
with
Code:
  sound-server
USE flag.

Either plasma itself did that or
Code:
 steam-launcher
did that. I doubt
steam pulled that out because most of the steam related USE flag changes are for 32-bit binaries of
specific packages. I can't say for sure.

Currently I can't set
Code:
 -sound-server

on
Code:
media-video/pipewire
because :
Code:

[ebuild   R    ] media-video/pipewire-1.0.5  USE="-sound-server*"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-video/pipewire:0

  (media-video/pipewire-1.0.5:0/0.4::gentoo, ebuild scheduled for merge) USE="X bluetooth dbus readline ssl -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -pipewire-alsa -roc (-selinux) -sound-server (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="(64) -32 (-x32)" pulled in by
    media-video/pipewire (Argument)

  (media-video/pipewire-1.0.5:0/0.4::gentoo, installed) USE="X bluetooth dbus readline sound-server ssl -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -pipewire-alsa -roc (-selinux) (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="(64) -32 (-x32)" pulled in by
    media-video/pipewire[sound-server(+)] required by (media-libs/libpulse-17.0:0/0::gentoo, installed) USE="X asyncns dbus glib gtk -doc (-selinux) -systemd -test -valgrind" ABI_X86="32 (64) (-x32)"
                                                               


Now what is even libpulse???

And then I cannot depclean media-video/pipewire and someone suggested in other posts because :

Code:


Calculating dependencies... done!
  media-video/pipewire-1.0.5 pulled in by:
    media-libs/libpulse-17.0 requires media-video/pipewire[sound-server(+)]
    media-video/wireplumber-0.4.17-r1 requires >=media-video/pipewire-0.3.68:=, >=media-video/pipewire-0.3.68:0/0.4=
    sys-apps/xdg-desktop-portal-1.18.4 requires >=media-video/pipewire-0.3:=, >=media-video/pipewire-0.3:0/0.4=




I want pulseaudio with daemon and no pipewire. How do I fix this? [/b]
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 101

PostPosted: Tue Jun 04, 2024 5:48 pm    Post subject: Reply with quote

The plasma profile enables pipewire's USE=sound-server by default:

https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/targets/desktop/plasma/package.use
Back to top
View user's profile Send private message
ritzmax72
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2014
Posts: 101

PostPosted: Wed Jun 05, 2024 5:44 am    Post subject: Reply with quote

xgivolari wrote:
The plasma profile enables pipewire's USE=sound-server by default:

https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/targets/desktop/plasma/package.use

Yes but what is the solution?

I don't want pipewire, just want pulseaudio daemon and alsa, like before.


This does not work either: https://www.gentoo.org/support/news-items/2022-07-29-pipewire-sound-server.html
Code:
 Section 2
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 348

PostPosted: Wed Jun 05, 2024 6:47 am    Post subject: Reply with quote

EDIT: Removed incorrect suggestion.

xgivolari understood the situation better than I did and gives the correct solution.
If it is any consolation to you, I switched (reluctantly) to pipewire when that news item came out. I have not had any major issues. The transition to pipewire has been in the works for some time. I finally learned to embrace it.


Last edited by rab0171610 on Thu Jun 06, 2024 5:11 am; edited 5 times in total
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 101

PostPosted: Wed Jun 05, 2024 8:29 am    Post subject: Reply with quote

pulseaudio was split into multiple packages a while ago to make the transition to pipewire easier. the pipewire dependency of libpulse is as follows:
Code:
PDEPEND="
    || (
        media-video/pipewire[sound-server(+)]
        media-sound/pulseaudio-daemon
    )
"

This means that libpulse either depends on pipewire with sound-server enabled, or on pulseaudio-daemon, which is the pulseaudio subpackage that provides, well, the daemon. To replace pipewire with pulseaudio daemon, disable the sound-server USE-flag on pipewire and run "emerge --oneshot pipewire pulseaudio-daemon". This will rebuild pipewire without sound server support and pull in pulseaudio-daemon to satisfy libpulse's dependency.

Of course it is none of my business how you run your system, but I would strongly recommend to at least give pipewire a try. Standalone pulseaudio is more or less dead. Pretty much all other distros have replaced pulseaudio-daemon with pipewire as well. Unless you have any specific issue with it, pipewire is considered superior to pulseaudio in every way.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21922

PostPosted: Wed Jun 05, 2024 11:52 am    Post subject: Reply with quote

rab0171610 wrote:
I think you would need to create the file
Code:
/etc/portage/profile/package.use.mask

which contains the line:
Code:
media-video/pipewire -sound-server

This should negate the pipewire +sound-server use flag enabled by your profile.
If that is correct, then you should be able to proceed with the setup of pulseaudio as instructed in the news item you referred to.
I think this is not the correct approach. If OP wants USE=-sound-server on pipewire, that should be done in package.use, not in profile/package.use.mask. I have no opinion on whether OP should disable USE=sound-server on pipewire. Per the post above mine, returning to pulseaudio may be a path to more work, not less.
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 101

PostPosted: Wed Jun 05, 2024 2:43 pm    Post subject: Reply with quote

rab0171610 wrote:
I think you would need to create the file
Code:
/etc/portage/profile/package.use.mask

which contains the line:
Code:
media-video/pipewire -sound-server

This should negate the pipewire +sound-server use flag enabled by your profile.
If that is correct, then you should be able to proceed with the setup of pulseaudio as instructed in the news item you referred to.


That would forcibly enable the flag. Profile-defined defaults can be overwritten via make.conf or package.use, unless defined in a *.force or *.mask file.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4446
Location: Bavaria

PostPosted: Wed Jun 05, 2024 3:56 pm    Post subject: Reply with quote

I am using also a kde/plasma profile. This profile sets the use-flag "pipewire" as default. The correct file (or directory) is - like @Hu already explained - /etc/portage/package.use and the the use-flag "sound-server" must be disabled with a minus-sign: media-video/pipewire -sound-server as explained in our news from: "2022-07-29 PipeWire sound server migration"

Dont try to disable "pipewire" completely because KDE needs it anyway.

(In my case: I have a pure ALSA configuration: no pipewire and no pulse-audio and therefore I have in my make.conf: USE="-pulseaudio..." (but no -pipewire) and in my package.use above setting for deselecting the sound-server of pipewire)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 348

PostPosted: Wed Jun 05, 2024 4:29 pm    Post subject: Reply with quote

xgivolari wrote:

That would forcibly enable the flag. Profile-defined defaults can be overwritten via make.conf or package.use, unless defined in a *.force or *.mask file.

You are correct. I will correct my original post.
Back to top
View user's profile Send private message
ritzmax72
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2014
Posts: 101

PostPosted: Sat Jun 08, 2024 12:50 pm    Post subject: Reply with quote

I now have pulseaudio as server and no pipewire sound server but media-video/pipewire is installed.
Here's what I learned; correct me if I am wrong. pulseaudio has
Code:
 media-sound/pulseaudio
It installs nothing
Code:
 media-libs/libpulse
Installs client pulseaudio libraries
Code:
 media-sound/pulseaudio-daemon
This seems like pulse audio server. Then what is the use of
"daemon" USE flag in
Code:
 media-sound/pulseaudio
?

wine definitely media-sound/pipewire but not necessarily with sound-server.

For pulseaudio server and no pipewire sound server one has to install pulseaudio-daemon, pulseaudio and libpulse.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21922

PostPosted: Sat Jun 08, 2024 4:30 pm    Post subject: Reply with quote

media-sound/pulseaudio is a transition package. media-sound/pulseaudio[daemon] depends on media-sound/pulseaudio-daemon, so that users will seamlessly migrate to the new package and not silently lose their sound daemon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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