<div dir="ltr"><span style="font-size:12.8px">> I think starting pulseaudio at boot in the system mode makes most</span><br style="font-size:12.8px"><span style="font-size:12.8px">> sense for headless systems. I don't think another server-type</span><br style="font-size:12.8px"><span style="font-size:12.8px">> application should spawn it.</span><br style="font-size:12.8px">><br style="font-size:12.8px"><span style="font-size:12.8px">> When your server runs under a dedicated user, autospawning should work,</span><br style="font-size:12.8px"><span style="font-size:12.8px">> but then you'll probably run into problems with not having access to</span><br style="font-size:12.8px"><span style="font-size:12.8px">> the audio hardware, because typically the device permissions are</span><br style="font-size:12.8px"><span style="font-size:12.8px">> handled dynamically so that only the currently-active login session has</span><br style="font-size:12.8px"><span style="font-size:12.8px">> access. Trying to "fix" this by making the device permissions static</span><br style="font-size:12.8px"><span style="font-size:12.8px">> will cause breakage, because your music server will then hog the</span><br style="font-size:12.8px"><span style="font-size:12.8px">> hardware so that regular users can't access it anymore. It's probably</span><br style="font-size:12.8px"><span style="font-size:12.8px">> best if you use the PA_CONTEXT_NOAUTOSPAWN flag in your application</span><br style="font-size:12.8px"><span style="font-size:12.8px">> when connecting to pulseaudio, unless your application runs inside a</span><br style="font-size:12.8px"><span style="font-size:12.8px">> regular user login session.</span><br style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks for the swift advice, I really appreciate that!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Maybe this info would be good to have in the wiki? Could add it myself,<br></span></div><div><span style="font-size:12.8px">once I get it working.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">An extra question, hope you don't mind. What is the explanation of the</span></div><div><span style="font-size:12.8px">following behavior? (Raspbian, no desktop, just straight ssh terminal)</span></div><div><span style="font-size:12.8px"><br></span></div><div><div>pi@jessie ~ $ ps ax | grep pulse</div><div>25504 pts/0    S+     0:00 grep --color=auto pulse</div><div>pi@jessie ~ $ paplay test.wav </div><div>(audio plays)</div><div>pi@jessie ~ $ sudo su -</div><div>root@jessie:~# killall pulseaudio</div><div>root@jessie:~# paplay test.wav </div><div>Connection failure: Connection refused</div><div>pa_context_connect() failed: Connection refused</div><div><br></div></div><div>Seems regular user can spawn Pulseaudio, but root can't?</div><div><br></div></div>