Pulseaudio restart only works with music inside browser

System:
Linux version 5.9.16-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) with xfce4.

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=20.2.1
DISTRIB_CODENAME=Nibia
DISTRIB_DESCRIPTION=“Manjaro Linux”

I am running pulseaudio 14.0 on an intel nuc with manjaro 20.2.1. Soundoutput works over hdmi.
But I always have to restart pulseaudio so that the sound works. Otherwise (after every restart to be precise) I have no sound. Like pulseaudio -k or systemctl --user restart pulseaudio.
But here is the biggest problem: This only works in the following constellation:

  1. Open a browser
  2. Play music in browser (i.e. YouTube), there is no sound
  3. systemctl --user restart pulseaudio
  4. Wait 5-10 seconds
  5. refresh browser
  6. Browser plays now music

and after that also any other app/program/whatever plays music again. Simply restarting pulseaudio without playing music in a browser is not working.

I also did stuff like this:

  • add @reboot systemctl --user restart pulseaudio as a crontab → pulseaudio is restarting while booting up, but still no sound
  • add systemctl --user restart pulseaudio as autostart program → pulseaudio is restarting while booting up, but still no sound
  • write small script which is explained here (wow i cant add links here. Uhm. Just google “manjaro pulseadio no sound /usr/local/bin/pulserestart” first link) → pulseaudio is restarting while booting up, but still no sound (even if i run /usr/local/bin/PulseRestart by myself without autostart and increasing sleep timer)

I don’t know what else I can do.

share output of inxi -A

remove any personal scripts that you are using as they are unnecessary and will make troubleshooting the issue difficult.

check if pulseaudio is running:

systemctl status pulseaudio.service pulseaudio.socket

if not active then enable the service and reboot:

systemctl enable pulseaudio.service pulseaudio.socket
[user@nuc ~]$ inxi -A
Audio:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster driver: snd_hda_intel
  Sound Server: ALSA v: k5.9.16-1-MANJARO
[user@nuc ~]$ systemctl status pulseaudio.service pulseaudio.socket
Unit pulseaudio.socket could not be found.
● pulseaudio.service - PulseAudio Sound System
     Loaded: loaded (/etc/systemd/system/pulseaudio.service; enabled; vendor preset: disabled)
     Active: activating (start) since Wed 2021-12-29 11:46:30 CET; 4s ago
   Main PID: 65927 (pulseaudio)
      Tasks: 5 (limit: 9346)
     Memory: 3.1M
     CGroup: /system.slice/pulseaudio.service
             ├─65927 /usr/bin/pulseaudio
             └─65928 /usr/lib/pulse/gsettings-helper

Dez 29 11:46:30 nuc systemd[1]: Starting PulseAudio Sound System...
Dez 29 11:46:30 nuc pulseaudio[65927]: W: [pulseaudio] main.c: Dieses Programm sollte ohne die Option --system nicht als Administrator ausgeführt werden.
Dez 29 11:46:30 nuc pulseaudio[65927]: E: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon w>
Dez 29 11:46:30 nuc pulseaudio[65927]: E: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (argument: "channels=2"): initialization failed.
Dez 29 11:46:30 nuc pulseaudio[65927]: W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for>
Dez 29 11:46:30 nuc pulseaudio[65927]: W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[user@nuc ~]$ systemctl enable pulseaudio.service pulseaudio.socket
Failed to enable unit: Unit file pulseaudio.socket does not exist.

try now:

[user@nuc ~]$ systemctl --user status pulseaudio.service pulseaudio.socket
● pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor>
     Active: active (running) since Wed 2021-12-29 11:49:21 CET; 9min ago
TriggeredBy: ● pulseaudio.socket
   Main PID: 741 (pulseaudio)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pulseaudio>
             ├─741 /usr/bin/pulseaudio --daemonize=no --log-target=journal
             └─750 /usr/lib/pulse/gsettings-helper

Dez 29 11:49:20 nuc systemd[654]: Starting Sound Service...
Dez 29 11:49:21 nuc systemd[654]: Started Sound Service.

● pulseaudio.socket - Sound System
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; vendor p>
     Active: active (running) since Wed 2021-12-29 11:49:18 CET; 9min ago
   Triggers: ● pulseaudio.service
     Listen: /run/user/1000/pulse/native (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pulseaudio>
[user@nuc ~]$ systemctl --user enable pulseaudio.service pulseaudio.socket
Created symlink /home/user/.config/systemd/user/default.target.wants/pulseaudio.service → /usr/lib/systemd/user/pulseaudio.service.
Created symlink /home/user/.config/systemd/user/sockets.target.wants/pulseaudio.socket → /usr/lib/systemd/user/pulseaudio.socket.

(if enabling pulseaudio.service and pulseaudio.socket was an attempt to get it working: problem is still the same)

start the service: :point_down:

OS appears to be very out of date. Kernel v5.9 has not been supported on Manjaro for a long time and PulseAudio v14.1 was released in January 2021

Updating system and installing a later kernel on a system this old date would be tricky and likely to fail

I suggest you reinstall using the latest ISO – Manjaro 21.2.0 Qonos released!

1 Like

Oops, didn’t saw that before. I did that, still the same issue (both were active before anyway).

Ok, so i reinstalled these packages:

sudo pamac install pulseaudio pulseaudio-alsa pulseaudio-bluetooth pulseaudio-ctl pulseaudio-equalizer pulseaudio-jack pulseaudio-lirc pulseaudio-rtp pulseaudio-zeroconf pulseaudio-equalizer-ladspa

pulseaudio --version shows me, that pulseaudio runs now as version 15.0

And surprise, everything works now as intended! Only my ssh key is refused by the server, uhm…

You really need to update either way, but it is advisable to do so before installing packages …
You may even be in a state of ‘partial-upgrade’ ( = broken )

sudo pacman-mirrors -f && sudo pacman -Syyu

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.