Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Inadvertently installed pipewire, now sound gone...!
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
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Sat Nov 06, 2021 4:13 pm    Post subject: Inadvertently installed pipewire, now sound gone...! Reply with quote

On my foray back into linux on the desktop I decided I needed to use Gnome again. So switched (SDDM) into Gnome. Got scared (where's the familiar Gnome that I used to use ten years ago...). Switched back to XFCE but now my sound has gone.

I then find there's a new daemon running called pipewire? What on earth is this... :-) I did not worry too much,. but then found my sound has gone. Reset Pulseaudio but no help. Pavucontrol shows there's no output devices.

Turns out installing Gnome installed Pipewire and added a start file to SDDM.

So questions:

- Should I persevere with Pipewire and get it working? Is this the future of Linux audio (like PA, JACK, ALSA, OSS.....!).

or

- Should I trash Pipewire?

Thanks.
Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Sat Nov 06, 2021 4:46 pm    Post subject: Reply with quote

I removed the XDG autostart file for pipewire and now my sound has returned.

I'm still interested in whether people think it's a good idea to persevere with Pipewire or not?

Thanks.
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Mistwolf
Apprentice
Apprentice


Joined: 07 Mar 2007
Posts: 189
Location: Edmonton, AB

PostPosted: Sat Nov 06, 2021 5:44 pm    Post subject: Reply with quote

To get sound to work, you need to stop pulseaudio (see https://wiki.gentoo.org/wiki/PipeWire#Replacing_PulseAudio).

Pipewire has a plugin that replaces pulseaudio, only one can be running at the time.

Pipewire is the "new" sound architecture, supposed to be a drop in replacement for pulseaudio, jack, and others. Also has a component to be a drop in replacement for several video programs.

Pipewire is being integrated into more programs (Firefox I think uses it by default), and it works as a pulseaudio replacement, but the other features are still in flux.

To answer your question about keeping it or not, your choice, but it appears to be a better version of pulseaudio at the moment.
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Sun Nov 07, 2021 9:26 am    Post subject: Reply with quote

Thanks. Looks like I need to get with the times and configure Pipewire!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Mon Nov 08, 2021 10:07 am    Post subject: Reply with quote

Whoops! So I removed the pulseaudio useflag and added the pipewire one.

Serious package blockage ensued.

So I tried to manually removed the pulseaudio package..!

Even more blockage ensued...! So then I thought why not just keep pulseaudio and pipewire emerged but just only run one..!

Too late....! I now cannot emerge pulseadio as the alsa plugins are blocking them (which appear to be needed).

Eeeek! :-)

(this is a humorous post. I'm sure I'll fix it, but I was not expecting this!).

Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3339
Location: Rasi, Finland

PostPosted: Mon Nov 08, 2021 10:12 am    Post subject: Reply with quote

Pastebin your emerge output when the blockages happen. ;)
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Mon Nov 08, 2021 10:38 am    Post subject: Reply with quote

ferg wrote:
Whoops! So I removed the pulseaudio useflag and added the pipewire one.

Don't do that. pipewire acts as a drop-in replacement for PA and if you drop that support from packages, pipewire has nothing to drop in for.
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Mon Nov 08, 2021 1:18 pm    Post subject: Reply with quote

asturm wrote:
ferg wrote:
Whoops! So I removed the pulseaudio useflag and added the pipewire one.

Don't do that. pipewire acts as a drop-in replacement for PA and if you drop that support from packages, pipewire has nothing to drop in for.

Thanks for that. I'll work on keeping both useflags.
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Mon Nov 08, 2021 3:12 pm    Post subject: Reply with quote

Zucca wrote:
Pastebin your emerge output when the blockages happen. ;)


Thanks!

Here you go. This is with both the Pipewire and Pulseaudio useflags set.

https://gist.github.com/350d9041f532dbbb3b64b6e09fa167da

Many thanks, it looks a bit complicated to me.
Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Spanik
l33t
l33t


Joined: 12 Dec 2003
Posts: 942
Location: Belgium

PostPosted: Mon Nov 08, 2021 3:32 pm    Post subject: Reply with quote

Mistwolf wrote:
Pipewire is the "new" sound architecture, supposed to be a drop in replacement for pulseaudio, jack, and others. Also has a component to be a drop in replacement for several video programs.


I might be a replacement one day, but if I read the wiki you link to then pipewire is still in heavy development, can change a lot between minor versions, and generally is not yet ready. So I would not change a working audio setup with it until this can work flawless in RT.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Mon Nov 08, 2021 3:34 pm    Post subject: Reply with quote

Spanik wrote:
Mistwolf wrote:
Pipewire is the "new" sound architecture, supposed to be a drop in replacement for pulseaudio, jack, and others. Also has a component to be a drop in replacement for several video programs.


I might be a replacement one day, but if I read the wiki you link to then pipewire is still in heavy development, can change a lot between minor versions, and generally is not yet ready. So I would not change a working audio setup with it until this can work flawless in RT.


Bearing that in mind it does seem curious to me why the Gnome Desktop profile adds the pipewire useflag. I never knew that I was installing Pipewire on emerging Gnome until audio stopped working...!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Mon Nov 08, 2021 8:15 pm    Post subject: Reply with quote

I came across a recent bug report where developers are discussing how Pipewire can coexist alongside Pulseaudio.

This suggests a new PulseAudio useflag called daemon. If you disable it then it allows Pipewire to take its place.

So if I do this I no longer have Pipewire and alsa-plugins blocking each other:

Code:
 media-sound/pulseaudio abi_x86_32  -daemon


But instead I get a fairly messy unsatisfied requirement error:

Code:
!!! The ebuild selected to satisfy "media-sound/pulseaudio[abi_x86_32]" has unmet requirements.
- media-sound/pulseaudio-15.0-r1::gentoo USE="X alsa alsa-plugin asyncns bluetooth dbus elogind equalizer gdbm glib gstreamer gtk ipv6 orc sox ssl udev webrtc-aec zeroconf -daemon -doc -jack -lirc -native-headset -ofono-headset (-oss) (-selinux) (-system-wide) -systemd -tcpd -test" ABI_X86="32 (64) (-x32)"

  The following REQUIRED_USE flag constraints are unsatisfied:
    !daemon? ( !alsa !alsa-plugin !bluetooth !equalizer !gdbm !gstreamer !gtk !orc !sox !ssl !udev !webrtc-aec !zeroconf )

  The above constraints are a subset of the following complete expression:
    alsa-plugin? ( alsa ) bluetooth? ( dbus ) daemon? ( at-most-one-of ( elogind systemd ) ) !daemon? ( !alsa !alsa-plugin !bluetooth !equalizer !gdbm !gstreamer !gtk !jack !lirc !native-headset !ofono-headset !orc !oss !sox !ssl !system-wide !udev !webrtc-aec !zeroconf ) equalizer? ( dbus ) native-headset? ( bluetooth ) ofono-headset? ( bluetooth ) udev? ( any-of ( alsa oss ) ) zeroconf? ( dbus )

(dependency required by "@esteam" [set])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


TBH I've never been that good at working these out.
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Mistwolf
Apprentice
Apprentice


Joined: 07 Mar 2007
Posts: 189
Location: Edmonton, AB

PostPosted: Mon Nov 08, 2021 10:07 pm    Post subject: Reply with quote

Code:
!daemon? ( !alsa !alsa-plugin !bluetooth !equalizer !gdbm !gstreamer !gtk !orc !sox !ssl !udev !webrtc-aec !zeroconf )


This tells you that if daemon use flag is not set, you have to unset all the use flags in the parentheses.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Nov 08, 2021 10:58 pm    Post subject: Reply with quote

Something like this will leave enough of Pulseaudio behind that applications can link against

Code:
media-sound/pulseaudio -gconf -daemon -alsa -alsa-plugin -gdbm -gtk -udev -orc -ssl -webrtc-aec -X -elogind -asyncns -gstreamer

_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Tue Nov 09, 2021 9:34 am    Post subject: Reply with quote

Naib wrote:
Something like this will leave enough of Pulseaudio behind that applications can link against

Code:
media-sound/pulseaudio -gconf -daemon -alsa -alsa-plugin -gdbm -gtk -udev -orc -ssl -webrtc-aec -X -elogind -asyncns -gstreamer


Thank you. I also had to add a few more useflags, but that got me past that stage.
Code:
media-sound/pulseaudio abi_x86_32  -bluetooth -equalizer -sox -zeroconf -gconf -daemon -alsa -alsa-plugin -gdbm -gtk -udev -orc -ssl -webrtc-aec -X  -elogind -asyncns -gstreamer

However, I'm back in blocking packages stage.

The crucial bit is this:

Code:
 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-plugins/alsa-plugins-1.2.5:0/0::gentoo, installed) pulled in by
    media-plugins/alsa-plugins required by @selected

  (media-video/pipewire-0.3.39-r4:0/0.3::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/pipewire-0.3.37 required by (media-video/wireplumber-0.4.4:0/0.4::gentoo, installed) USE="elogind -systemd -test" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-4 -lua5-3"
    media-video/pipewire:=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (media-video/pipewire:=[abi_x86_32(-),abi_x86_64(-)]) required by (media-libs/libsdl2-2.0.16-r1:0/0::gentoo, ebuild scheduled for merge) USE="X alsa dbus gles2 haptic joystick opengl pipewire pulseaudio sound threads udev video vulkan wayland (-aqua) (-custom-cflags) -doc -fcitx4 -gles1 -ibus -jack -kms -libsamplerate -nas -oss -sndio -static-libs -xinerama -xscreensaver" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)"
    >=media-video/pipewire-0.3.0:0/0.3 required by (gnome-base/gnome-shell-41.0-r1:0/0::gentoo, installed) USE="bluetooth browser-extension elogind ibus -gtk-doc -networkmanager -systemd -telepathy -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8"


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


But the full log is here

Many thanks for everybody's assistance in my rabbit hole!

Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Tue Nov 09, 2021 2:27 pm    Post subject: Reply with quote

Ahh panic over. I had "alsa-plugins" in my /var/lib/portage/world file and that was causing it to be pulled in and blocking everything.

I removed that and world is now emerging.

Thanks again.

Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 536
Location: Cambridge, UK

PostPosted: Tue Nov 09, 2021 5:20 pm    Post subject: Reply with quote

..and a restart of my Desktop and sound works pefectly!

Code:
  % pactl info                                                                               !10219
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 80
Tile Size: 65472
User Name: chris
Host Name: scotgate
Server Name: PulseAudio (on PipeWire 0.3.39)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.usb-0d8c_C-Media_USB_Headphone_Set-00.analog-stereo
Default Source: alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.pro-input-0
Cookie: def3:56ee


Thanks to all for their assistance
Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
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