Kpipewire message spamming log

I opened my log for another reason and saw that this series of messages is running constantly. I think it may have been running sinve the Plasma 6 upgrade (I know it wasn’t in my log when I was looking there for something before that upgrade)

|5/28/24 7:52 AM|plasmashell|WARNING: discarding _NET_WM_PID 1725 as invalid for X11 window - use specialized XCB_X11_TO_PID function!|
|---|---|---|
|5/28/24 7:52 AM|plasmashell|kpipewire_logging: error: Failed to connect to PipeWire 0|
|5/28/24 7:52 AM|plasmashell|received error while creating the stream Failed to connect to PipeWire Media monitor will not work.|

I am using PulseAudio, not Pipewire. I tried to uninstall kpipewire, but I recieved a message that kpipewire was required for kde plasma to work. I tried disabling the pipewire socket which was also unsuccessful:
 ~  systemctl --user disable pipewire pipewire.socket  :heavy_check_mark:

Unit /home/alexandra/.config/systemd/user/pipewire.socket is masked, ignoring.
The following unit files have been enabled in global scope. This means
they will still be started automatically after a successful disablement
in user scope:
pipewire.socket

My audio is working fine, despite this. I would not have noticed a problem if I hadn’t opened the log for another reason. However this message is running 5-6 times a minute the whole time my computer is on, so I’d like to solve the issue.

Here is my audio info from -inxi:

Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0b:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.6.30-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.5 status: off with: pipewire-media-session
    status: off tools: pw-cat,pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl

Any suggestions are greatly appreciated.

Maybe try (re)installing manjaro-pulse? (This will likely disable/remove some Pipewire stuff).

sudo pacman -Syu manjaro-pulse
1 Like

Thanks for the suggestion! Alas, after reinstalling manjaro-pulse and rebooting, the problem persists.

Assuming the system was using manjaro-pipewire before then this would be expected to attempt to switch the system back to pulseaudio. Which I dont think is desirable.
To make sure to be back on pipewire:

sudo pacman -Syu manjaro-pipewire

This is a problem. pipewire-media-session is deprecated. The package even says so.
Please replace it with wireplumber.

sudo pacman -Syu wireplumber
1 Like

Thanks but I am using PulseAudio because of an incompatibility with firefox. Reverting to Pipewire is not currently an option. What I need to do is get rid of the kpipewire, or at least find a way for it to stop spamming my log.

Sorry, I missed that portion of your text.

But there is not a general pipewire incompatibility with firefox.

In any case - you still should not have pipewire-media-session.

And … as to the specifics of the message you saw…
You would just not use --user on your command to affect the ‘global’ socket.

1 Like

What sort of an incompatibility? I’m curious.

1 Like

Hi, thanks for your interest. When I was using pipewire, any interaction with the media player on firefox would trigger max audio. This included hitting pause, start, on any site e.g . youtube, Netflix, etc. Since I use headphones, this was intolerable. I saw somewhere on a Firefox post that this was an issue that had not been resolved. Reverting to PulseAudio solved the problem.

Thanks for the response. I have tried to remove pipewire media session, but it cannot be removed due to dependencies. If I am not using pipewire, is this going to be a problem? If at some point I do try pipewire again, then I could replace that with wireplumber.
Is there a command that would prevent kpipewire from attempting to start?

EDIT after using
$ sudo systemctl --global disable pipewire.service
and rebooting, the problem persists.
It seems like the problem is the kde logging service is determined to connect even though pipewire is not enabled. How do I stop that logging attempt?

My information might be outdated, but my understanding from 2 years ago was that pipewire-media-session should still be used instead of wireplumber for the specific case of using pulseaudio while also having pipewire installed to satisfy some dependency. Although removing pulseaudio and getting pipewire-pulse installed and working may be the better long-term solution.

1 Like

Interesting. I also use headphones exclusively and only have such issues if I try to control sound levels in Firefox via Plasma’s audio widgets. So I started to just adjust the levels through media players directly on all the sites. But I had this same problem with Pulseaudio as well. :thinking: