PulseAudio service is in failed state

Can you post inxi -Fza ?

[maxb@max-laptop ~]$ inxi -Fza
System:
  Kernel: 5.15.57-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=8140cdc7-a2ae-4580-826a-d2a7fb26c1ef rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 1 dm: 1: LightDM v: 1.30.0 note: stopped 2: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Dell product: Latitude E6510 v: 0001
    serial: <superuser required> Chassis: type: 9 serial: <superuser required>
  Mobo: Dell model: 02K3Y4 v: A00 serial: <superuser required> BIOS: Dell
    v: A04 date: 07/08/2010
CPU:
  Info: model: Intel Core i5 M 540 bits: 64 type: MT MCP arch: Westmere
    gen: core 1 built: 2010-11 process: Intel 32nm family: 6
    model-id: 0x25 (37) stepping: 5 microcode: 0x7
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 1346 high: 1463 min/max: 1199/2534 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1463 2: 1243
    3: 1216 4: 1463 bogomips: 20221
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: Dell
    driver: i915 v: kernel arch: Gen-5.75 process: Intel 45nm built: 2010
    ports: active: eDP-1 empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2,
    HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0046 class-ID: 0300
  Device-2: Ricoh HD Webcam type: USB driver: uvcvideo bus-ID: 1-1.4:3
    chip-ID: 05ca:1814 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver:
    X: loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.65x9.37")
    s-diag: 485mm (19.11")
  Monitor-1: eDP-1 model: LG Display 0x029e built: 2009 res: 1600x900
    hz: 60 dpi: 118 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1600x900
  OpenGL: renderer: Mesa Intel HD Graphics (ILK) v: 2.1 Mesa 22.1.4
    direct render: Yes
Audio:
  Device-1: Intel 5 Series/3400 Series High Definition Audio vendor: Dell
    Latitude E6510 driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:3b56 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.57-2-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: no
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel 82577LM Gigabit Network vendor: Dell Latitude E6510
    driver: e1000e v: kernel port: 7040 bus-ID: 00:19.0 chip-ID: 8086:10ea
    class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Centrino Advanced-N 6200 driver: iwlwifi v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:422c
    class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: Dell DW375 Bluetooth Module type: USB driver: btusb v: 0.8
    bus-ID: 2-1.7:3 chip-ID: 413c:8187 class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Drives:
  Local Storage: total: 232.89 GiB used: 101.01 GiB (43.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD2500BEKT-75A25T0 size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: MBR
Partition:
  ID-1: / raw-size: 232.88 GiB size: 228.17 GiB (97.98%) used: 101.01 GiB
    (44.3%) fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A sodimm: SODIMM C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 255 Uptime: 46m wakeups: 1 Memory: 7.69 GiB used: 3.63 GiB
  (47.2%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.1.0 clang: 14.0.6 Packages: 1680 pacman: 1670 lib: 381
  flatpak: 0 snap: 10 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.20
[maxb@max-laptop ~]$ 


Where?

You can either use pulseaudio or pipewire, not both.

So, you either install manjaro-pulse or manjaro-pipewire.

(After that reboot and check if sound is working.)

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.