View previous topic :: View next topic |
Author |
Message |
ritzmax72 Tux's lil' helper
Joined: 10 Aug 2014 Posts: 114
|
Posted: Tue Jun 04, 2024 4:22 pm Post subject: pipewire pulseaudio conflict |
|
|
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 USE flag.
Either plasma itself did that or 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
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 |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
|
Back to top |
|
|
ritzmax72 Tux's lil' helper
Joined: 10 Aug 2014 Posts: 114
|
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 423
|
Posted: Wed Jun 05, 2024 6:47 am Post subject: |
|
|
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 |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Wed Jun 05, 2024 8:29 am Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22657
|
Posted: Wed Jun 05, 2024 11:52 am Post subject: |
|
|
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 |
|
|
xgivolari Tux's lil' helper
Joined: 26 Jul 2021 Posts: 102
|
Posted: Wed Jun 05, 2024 2:43 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5110 Location: Bavaria
|
Posted: Wed Jun 05, 2024 3:56 pm Post subject: |
|
|
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 |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 423
|
Posted: Wed Jun 05, 2024 4:29 pm Post subject: |
|
|
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 |
|
|
ritzmax72 Tux's lil' helper
Joined: 10 Aug 2014 Posts: 114
|
Posted: Sat Jun 08, 2024 12:50 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22657
|
Posted: Sat Jun 08, 2024 4:30 pm Post subject: |
|
|
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 |
|
|
|