PulseAudio service is in failed state

In addition to the above comment by mithrial remove all pulseaudio and pipewire snaps. Then remove all pulseaudio and pipewire packages installed. Reboot and follow the post above.

This will be dangerous because a lot of packages will depend on sound and you donā€™t want to remove your window manager along with everything.

Ok, but at least remove all the snaps. I have a feeling something is conflicting and its likely a snap. Installing applications by snap is sometimes ok. Installing system components like audio is insane.

I cannot find any other mention of installing pulseaudio snap package in forum search
please post a link to where you found it

Xfce packages have PulseAudio dependencies and cannot be removed, but installing manjaro-pipewire should replace PulseAudio packages with PipeWire packages
I recommend using Manjaro package managers pamac or pamac-manager GUI for installing Manjaro-specific packages

Installing manjaro-pulse does not remove all pipewire packages. pipewire core package is not removed because it is required by other desktops. so there would still be 2 conflicting sound servers running

Xfce packages do not have any PipeWire dependencies so all PipeWire packages can usually be removed (unless Telegram or OBS is installed)
If package pipewire cannot be removed, the sound server can be disabled

systemctl --user disable --now pipewire.socket pipewire.service

I suggest you check the comment in /usr/lib/systemd/user/pulseaudio.service
to see why some of the commands suggested in this discussion might be preventing you from getting pulseaudio.service started correctly
but IMO installing snap packages is more likely to be the cause of Total Inability To Sustain Usual PulseAudio

1 Like

the

contents below.

also, the audio is working, I just cant control the audio volume using the PulseAudio plugin sound is working itā€™s just stuck on maximum volume.

# After=pulseaudio.socket is not needed, as it is already implicit in the
# socket-service relationship, see systemd.socket(5).
Requires=pulseaudio.socket
ConditionUser=!root

[Service]
ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
Restart=on-failure
RestrictNamespaces=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
# Note that notify will only work if --daemonize=no
Type=notify
UMask=0077
Slice=session.slice

[Install]
Also=pulseaudio.socket
WantedBy=default.target

post output from:
pacman -Qs pipewire
pacman -Qs pulse
snap list

Please advise where you saw suggestion to install pulseaudio snap package. I want to ensure that other users are not falling for this crap and having similar problems

The file content I was referring to was the comment at beginning of the file that you omitted
cat /usr/lib/systemd/user/pulseaudio.service | head -12
The file is the same on any Manjaro system so posting it here is not necessary

There are 2 packages not listed in post#7 that I would expect to see:

pulseaudio 16.1-1
pulseaudio-alsa 1:1.2.7.1-1

But if pulseaudio core package is absent, pulseaudio.service should be absent too?
Please post response to this command to show package owner of pulseaudio.service:

pamac search -f /usr/lib/systemd/user/pulseaudio.service

and this to show all systemd audio sockets and services

systemctl --user list-unit-files | grep -E 'pulseaudio|pipewire|wireplumber'| awk '{ print $1,"-", $2 }'

if pulseaudio-alsa is not present to set PulseAudio as default ALSA sound server there will be no connection to audio devices for audible playback

the pulseaudio plugin in the system tray isnā€™t working

Xfce DE might have lost communication with PulseAudio if startup script /usr/bin/start-pulseaudio-x11 failed to load module-x11-publish and module-x11-xsmp

Have you tried using PulseAudio Volume Control ( pavucontrol ) ?
That might show PulseAudio is still running in a diminished state beyond the reach of the panel controls

1 Like
[maxb@max-laptop ~]$ pacman -Qs pipewire
local/gst-plugin-pipewire 1:0.3.56-1
    Multimedia graph framework - pipewire plugin
local/pipewire 1:0.3.56-1
    Low-latency audio/video router and processor
local/pipewire-media-session 1:0.4.1-2
    Example session manager for PipeWire
[maxb@max-laptop ~]$ pacman -Qs pulse
local/libcanberra 1:0.30+r2+gc0620e4-1
    A small and lightweight implementation of the XDG Sound Theme Specification
local/libcec 6.0.2-3
    Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
local/libpulse 16.1-1
    A featureful, general-purpose sound server (client library)
local/pavucontrol 1:5.0+r35+g964f298-1
    PulseAudio Volume Control
local/plasma-pa 5.24.6-1 (plasma)
    Plasma applet for audio volume management using PulseAudio
local/pulseaudio 16.1-1
    A featureful, general-purpose sound server
local/pulseaudio-alsa 1:1.2.7.1-1
    ALSA Configuration for PulseAudio
local/pulseaudio-bluetooth 16.1-1
    Bluetooth support for PulseAudio
local/pulseaudio-ctl 1.70-1
    Control pulseaudio volume from the shell or mapped to keyboard shortcuts.
local/pulseaudio-equalizer 16.1-1
    Graphical equalizer for PulseAudio
local/pulseaudio-jack 16.1-1
    Jack support for PulseAudio
local/pulseaudio-lirc 16.1-1
    IR (lirc) support for PulseAudio
local/pulseaudio-qt 1.3-1
    Qt bindings for libpulse
local/pulseaudio-rtp 16.1-1
    RTP and RAOP support for PulseAudio
local/pulseaudio-zeroconf 16.1-1
    Zeroconf support for PulseAudio
local/xfce4-pulseaudio-plugin 0.4.3-1.1 (xfce4-goodies)
    Pulseaudio plugin for Xfce4 panel
[maxb@max-laptop ~]$ 

oops, the site looked the same.

my bad.

the result of the pamac command is as follows.

[maxb@max-laptop ~]$ pamac search -f /usr/lib/systemd/user/pulseaudio.service
/usr/lib/systemd/user/pulseaudio.service is owned by pulseaudio

and the systemd commands

[maxb@max-laptop ~]$ systemctl --user list-unit-files | grep -E 'pulseaudio|pipewire|wireplumber'| awk '{ print $1,"-", $2 }'
pipewire-media-session.service - enabled
pipewire-session-manager.service - alias
pipewire.service - disabled
pulseaudio-x11.service - static
pulseaudio.service - disabled
pipewire.socket - enabled
pulseaudio.socket - enabled
[maxb@max-laptop ~]$ 

yeah that is not running.

I get the application and it just says

ā€œEstablishing connection to PulseAudio. Please waitā€¦ā€

and output from:
snap list

Did you not notice that the snap package was last updated 17 May 2017?

I checked a bit deeper into this snap at Launchpad, which shows the last commit on 1 May 2017
was an update to PulseAudio 8.0-4
~snappy-hwe-team/snappy-hwe-snaps/+git/pulseaudio - [no description]

Meanwhile on Manjaro:
[Stable Update] 2017-01-30 included PulseAudio v10.0-2
And First mention of PipeWire was not until September 2017
Pipewire will do for video what pulseaudio did for sound - General Discussion - Manjaro Linux Forum

From list of packages installed it looks like manjaro-pulse has reinstalled PulseAudio packages
missing from previous data

I suggest you disable pipewire.socket and pipewire.service:

systemctl --user disable --now pipewire.socket pipewire.service

Remove the pipewire-media-session

pamac remove pipewire-media-session

Delete PulseAudio user configuration folder to clear outdated or incorrect user settings

rm -r ~/.config/pulse/ 

reboot

itā€™s removed.
command not found.

stopped the pipewire socke and service

ran the removal and get the dependencie errors.

[maxb@max-laptop ~]$ pamac remove pipewire-media-session
Preparing...
Checking dependencies...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing pipewire-media-session breaks dependency 'pipewire-session-manager' required by gst-plugin-pipewire

ran the removal again and added the gst-plugin-pipewire

recieved the dependency error again but this time it was kwin

checked the status of the pipewire socket and service.

service is disabled but the socket is enabled.

ā—‹ pipewire.socket - PipeWire Multimedia System Socket
Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
Active: inactive (dead) since Mon 2022-08-08 14:04:51 AEST; 4min 36s ago
Duration: 2d 14h 58min 24.822s
Triggers: ā— pipewire.service
Listen: /run/user/1000/pipewire-0 (Stream)

Aug 05 23:06:27 max-laptop systemd[874]: Listening on PipeWire Multimedia System Socket.
Aug 08 14:04:51 max-laptop systemd[874]: Closed PipeWire Multimedia System Socket.

ā—‹ pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: enabled)
Active: inactive (dead) since Mon 2022-08-08 14:04:51 AEST; 4min 41s ago
Duration: 2d 14h 57min 34.660s
TriggeredBy: ā—‹ pipewire.socket
Main PID: 1379 (code=exited, status=0/SUCCESS)
CPU: 165ms

Aug 05 23:07:17 max-laptop systemd[874]: Started PipeWire Multimedia Service.
Aug 08 14:04:51 max-laptop systemd[874]: Stopping PipeWire Multimedia Serviceā€¦
Aug 08 14:04:51 max-laptop systemd[874]: Stopped PipeWire Multimedia Service.

As pipewire.socket was only closed and is still enabled, it will restart on next boot and start pipewire.service

I suggest you disable the socket and session manager service

systemctl --user disable pipewire.socket pipewire-media-session.service

ran the removal again and added the gst-plugin-pipewire
recieved the dependency error again but this time it was kwin

Xfce with kwin is not something I have seen on Manjaro before. I think it is more a thing on some other Arch-based distributions. kwin has a dependency on pipewire-session-manager which is provided by either pipewire-media-session or wireplumber so I cannot see a way to remove pipewire-media-session

1 Like

thanks for ya help. the audio settings are no good but Iā€™ll just eventually reinstall and hope that fixes it.