Pi 3 running on a unmodified updated raspbian jessie.
Problem: The pulseaudio server does not run OR not properly run at startup.
With defaults, where nothing was modified:
ps aux | grep pulse
pi 851 0.0 0.0 1912 92 ? S 09:11 0:00 /bin/sh /usr/bin/start-pulseaudio-x11
As can be seen something is running, but pactl is not able to connect to the server...
$ pactl stat
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
However if /etc/xdg/autostart/pulseaudio.desktop is modified or removed And pulseaudio started after logging in via ssh, pactl
connects to the pulseaudio-server !
$pactl stat
Currently in use: 1 blocks containing 64.0 KiB bytes total.
Allocated during whole lifetime: 59 blocks containing 1.8 MiB bytes total.
Sample cache size: 0 B
Server String: /run/user/1000/pulse/native
Library Protocol Version: 29
Server Protocol Version: 29
Is Local: yes
Client Index: 3
Tile Size: 65496
User Name: pi
Host Name: raspberrypi
Server Name: pulseaudio
Server Version: 5.0
Changing the autostart file to something like the following doesn't change anything:
[Desktop Entry]
Exec=pulseaudio -D
Type=Application
Syslog has only one repeated pulseaudio related message
Successfully made thread 910 of process 910 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Tried running pulseaudio in rc.local - didn't help .
So why isn't pulseaudio not running at startup, and is there a fix ?