Help with potential conflict pipewire / pulseaudio

Hi,

Ever since I updated from F35 to F37 a couple of weeks ago, I’ve been having trouble with my audio config; I need to fiddle with the sound and mic profile until I get the right combination that makes everything work.
Another update a couple of days ago left me without any sound or working config for the mic however.
It has been suggested to me that this may be due to having both pulseaudio and pipewire on my system, so I tried switching to the latter, unfortunately by bluntly removing pulseaudio.
Combine the fact that I’m not a sysadmin, with an important amount of mistakes, ended up landing me in an ocean of trouble, up to and including having to reinstall my kde (incredible, but true).
And still no sound+mic …
Searching here I’ve tried the suggested sudo dnf swap --allowerasing pulseaudio pipewire-pulseaudio, but that only tells me that pipewire-pulseaudio-0.3.63-1.fc37.x86_64 is already installed, that there are no coincidences for pulseaudio, and that there is nothing to do.
I do still see pulseaudio packages though:

pulseaudio-libs-16.1-1.fc37.x86_64
pulseaudio-utils-16.1-1.fc37.x86_64
pulseaudio-libs-glib2-16.1-1.fc37.x86_64
pulseaudio-qt-1.3-3.fc37.x86_64
gvncpulse-1.3.0-5.fc37.x86_64
kde-settings-pulseaudio-37.0-1.fc37.noarch

For completeness I’ll add the output of systemctl status --user pipewire pipewire-pulse wireplumber :


● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             └─00-uresourced.conf
     Active: active (running) since Fri 2023-01-13 18:07:45 CET; 3h 15min ago
TriggeredBy: ● pipewire.socket
   Main PID: 1803 (pipewire)
      Tasks: 2 (limit: 38161)
     Memory: 50.7M
        CPU: 33.153s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1803 /usr/bin/pipewire

ene 13 18:07:45 localhost.localdomain systemd[1791]: Started pipewire.service - PipeWire Multimedia Service.
ene 13 18:07:45 localhost.localdomain pipewire[1803]: mod.rt: Can't find xdg-portal: (null)
ene 13 18:07:45 localhost.localdomain pipewire[1803]: mod.rt: found session bus but no portal

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: disabled)
     Active: active (running) since Fri 2023-01-13 18:07:45 CET; 3h 15min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1805 (pipewire-pulse)
      Tasks: 2 (limit: 38161)
     Memory: 89.6M
        CPU: 4.796s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1805 /usr/bin/pipewire-pulse

ene 13 18:07:45 localhost.localdomain systemd[1791]: Started pipewire-pulse.service - PipeWire PulseAudio.
ene 13 18:07:45 localhost.localdomain pipewire-pulse[1805]: mod.rt: Can't find xdg-portal: (null)
ene 13 18:07:45 localhost.localdomain pipewire-pulse[1805]: mod.rt: found session bus but no portal
ene 13 19:59:11 localhost.localdomain pipewire-pulse[1805]: mod.protocol-pulse: client 0x5628a5af85c0 [libcanberra]: ERROR command:18 (PLAY_SAMPLE) tag:6 error:25 (Error de entrada/salida)

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Fri 2023-01-13 18:07:45 CET; 3h 15min ago
   Main PID: 1804 (wireplumber)
      Tasks: 4 (limit: 38161)
     Memory: 6.6M
        CPU: 3.665s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─1804 /usr/bin/wireplumber

ene 13 18:07:45 localhost.localdomain systemd[1791]: Started wireplumber.service - Multimedia Service Session Manager.
ene 13 18:07:45 localhost.localdomain wireplumber[1804]: Can't find xdg-portal: (null)
ene 13 18:07:45 localhost.localdomain wireplumber[1804]: found session bus but no portal
ene 13 18:07:45 localhost.localdomain wireplumber[1804]: Failed to set scheduler settings: Operación no permitida
ene 13 18:07:45 localhost.localdomain wireplumber[1804]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
ene 13 18:07:45 localhost.localdomain wireplumber[1804]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
ene 13 18:07:46 localhost.localdomain wireplumber[1804]: <WpPortalPermissionStorePlugin:0x5601adb0ec60> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera

The services seem up and running, but … no sound or mic …

Again, I’m no admin, so if anyone could give me some pointers on how to correctly diagnose/fix this mess, I’d be really grateful.

This all looks normal. The package pipewire-pulseaudio is plug-in replacement for the packages pulseaudio, and the other pulseaudio packages are not in conflicts.

What the cause of your problem is, I don’t know.

It may look normal, but i suspect it’s isn’t, when I try to restart the pipewire service systemctl restart pipewirethe response is unvariably ‘Failed to restart pipewire.service: Unit pipewire.service not found.’
I may be trying to restart it the wrong way maybe?
Also, does pipewire have config files somewhere (in .config?) that might be corrupted?

It is a user service so you need to provide the “–user” keyword

systemctl --user restart pipewire

OK, tried that, different error msg now: “Failed to connect to bus: medium not found” (translated from Spanish, might not be ‘medium’)
Ignore that, was trying it with sudo, makes no sense.

Restarting didn’t help either … I’m all out of ideas …

Put LANG=Cin front of your command you do in terminal, so you not have to translate them. They will be printed in English by default.

Before reinstalling, did you have some local config files used? It can be that a new configuration messed up your config. So you would like to clean up the config and correct it for you system.

An other idea, after installing KDE new, did you reinstall the codecs etc?

1 Like

I have similar audio issues. The output of systemctl status --user pipewire pipewire-pulse wireplumber except my WM is Gnome 43.2, so this is not looking like a desktop environment issue. I got almost identical output as @jrenaat
Tried the restart wireplumber, but no change. As soon as I try to test audio, I get static until I close down the package.
This started happening, I guess it was around 4 days ago.

$ systemctl status --user pipewire pipewire-pulse wireplumber

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             └─00-uresourced.conf
     Active: active (running) since Wed 2023-01-18 11:51:47 AST; 10min ago
TriggeredBy: ● pipewire.socket
   Main PID: 45758 (pipewire)
      Tasks: 2 (limit: 18767)
     Memory: 7.9M
        CPU: 2.927s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─45758 /usr/bin/pipewire

janv. 18 11:51:47 fedora systemd[1500]: Started pipewire.service - PipeWire Multimedia Service.

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; disabled; preset: disabled)
     Active: active (running) since Wed 2023-01-18 06:19:49 AST; 5h 42min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1776 (pipewire-pulse)
      Tasks: 2 (limit: 18767)
     Memory: 34.6M
        CPU: 3.816s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1776 /usr/bin/pipewire-pulse

janv. 18 06:19:49 fedora systemd[1500]: Started pipewire-pulse.service - PipeWire PulseAudio.
janv. 18 06:19:49 fedora pipewire-pulse[1776]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-por>
janv. 18 06:19:49 fedora pipewire-pulse[1776]: mod.rt: found session bus but no portal

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Wed 2023-01-18 11:51:47 AST; 10min ago
   Main PID: 45760 (wireplumber)
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Wed 2023-01-18 11:51:47 AST; 10min ago
   Main PID: 45760 (wireplumber)
      Tasks: 4 (limit: 18767)
     Memory: 5.4M
        CPU: 180ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─45760 /usr/bin/wireplumber

janv. 18 11:51:47 fedora systemd[1500]: Started wireplumber.service - Multimedia Service Session Manager.
janv. 18 11:51:57 fedora wireplumber[45760]: Failed to set scheduler settings: Operation not permitted
janv. 18 11:51:57 fedora wireplumber[45760]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it inst>
janv. 18 11:51:57 fedora wireplumber[45760]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
janv. 18 11:51:57 fedora wireplumber[45760]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner

This is a desktop computer with no camera.

Sorry to be breaking into your KDE category, but this was the closest match I could find to the problem, and it seems to be the same in Gnome.

Same issue here, although my issues are when I launch a wine application all of my audio stops working

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/pipewire.service.d
             └─00-uresourced.conf
     Active: active (running) since Sun 2023-01-22 11:11:02 SAST; 13min ago
TriggeredBy: ● pipewire.socket
   Main PID: 1893 (pipewire)
      Tasks: 2 (limit: 18332)
     Memory: 9.1M
        CPU: 1.827s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1893 /usr/bin/pipewire

Jan 22 11:11:02 fedora systemd[1822]: Started pipewire.service - PipeWire Multimedia Service.
Jan 22 11:11:02 fedora pipewire[1893]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Jan 22 11:11:02 fedora pipewire[1893]: mod.rt: found session bus but no portal

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; disabled; preset: disabled)
     Active: active (running) since Sun 2023-01-22 11:11:04 SAST; 13min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1981 (pipewire-pulse)
      Tasks: 2 (limit: 18332)
     Memory: 14.7M
        CPU: 7.669s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1981 /usr/bin/pipewire-pulse

Jan 22 11:11:04 fedora systemd[1822]: Started pipewire-pulse.service - PipeWire PulseAudio.
Jan 22 11:11:04 fedora pipewire-pulse[1981]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Jan 22 11:11:04 fedora pipewire-pulse[1981]: mod.rt: found session bus but no portal

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-01-22 11:11:02 SAST; 13min ago
   Main PID: 1899 (wireplumber)
      Tasks: 4 (limit: 18332)
     Memory: 11.3M
        CPU: 232ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─1899 /usr/bin/wireplumber

Jan 22 11:11:02 fedora systemd[1822]: Started wireplumber.service - Multimedia Service Session Manager.
Jan 22 11:11:02 fedora wireplumber[1899]: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Jan 22 11:11:02 fedora wireplumber[1899]: found session bus but no portal
Jan 22 11:11:02 fedora wireplumber[1899]: Failed to set scheduler settings: Operation not permitted
Jan 22 11:11:02 fedora wireplumber[1899]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Jan 22 11:11:02 fedora wireplumber[1899]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
Jan 22 11:11:03 fedora wireplumber[1899]: SPA handle 'api.alsa.acp.device' could not be loaded; is it installed?
Jan 22 11:11:03 fedora wireplumber[1899]: Failed to create 'api.alsa.acp.device' device
Jan 22 11:11:03 fedora wireplumber[1899]: <WpPortalPermissionStorePlugin:0x558709484b80> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Jan 22 11:11:03 fedora wireplumber[1899]: <WpPortalPermissionStorePlugin:0x558709484b80> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
OS: Fedora Linux 37 (Workstation Edition) x86_64 
Host: Dell G15 5515 1.9.0 
Kernel: 6.1.6-200.fc37.x86_64 
Uptime: 15 mins 
Packages: 2784 (rpm), 29 (flatpak) 
Shell: fish 3.5.1 
Resolution: 1920x1080 
DE: GNOME 43.2 
WM: Mutter 
WM Theme: Adwaita 
Theme: Catppuccin-Mocha-Standard-Blue-Dark [GTK2/3] 
Icons: Adwaita [GTK2/3] 
Terminal: kitty 
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 3.200GHz 
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q 
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
Memory: 3548MiB / 15336MiB 

Ok, thanks for the confirmation. It looks like a wireplumber/piperwire driver issue, so we may have to wait for the fix. It was working before and I had it set to AC97. Now it does not matter whether it is AC97 or HD.

What do you have your onboard audio in BIOS set to?