<div dir="ltr"><div>HI!<br><br></div><div>I must say that the system is now working as expected. <br><div class="gmail-post-text">Problem was in <a href="http://system.pa">system.pa</a>. I found in manual that in system wide daemon configuration should not use automatic detection.

<p>from pulseaudio manual pages:</p>

<pre><code>   --disallow-module-loading[=BOOL]
          Disallow module loading after startup. This is a security feature since it disallows additional module loading during runtime and on user request. It is highly recommended when --system is used (see above). Note however, that this breaks certain fea‐
          tures like automatic module loading on hot plug.
</code></pre>

<p>So I disabled (commented) lines from <a href="http://system.pa">system.pa</a></p>

<pre><code>    ### Automatically load driver modules depending on the hardware available
    #.ifexists module-udev-detect.so
    #load-module module-udev-detect
    #.else
    #### Use the static hardware detection module (for systems that lack udev/hal support)
    #load-module module-detect
    #.endif
</code></pre>

<p>and now works. </p>
    </div></div>Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 18, 2017 at 9:54 PM, Anton Lundin <span dir="ltr"><<a href="mailto:glance@acc.umu.se" target="_blank">glance@acc.umu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 18 March, 2017 - Tadej Panjtar wrote:<br>
<br>
> Thanks!<br>
><br>
...<br>
<span class="">><br>
> If PA is started via command as root it works. But if same command<br>
> is run via systemd, happens Got signal SIGTERM.<br>
> Here is log.<br>
</span>...<br>
<span class="">> mar 18 00:14:11 tadejas pulseaudio[8285]: Got signal SIGTERM.<br>
</span>...<br>
<span class="">> and here is service script:<br>
><br>
> # systemd service spec for pulseaudio running in system mode -- not<br>
> recommended though!<br>
> # put it under /etc/systemd/system/<wbr>pulseaudio.service<br>
> # start with: systemctl start pulseaudio.service<br>
> # enable on boot: systemctl enable pulseaudio.service<br>
><br>
> [Unit]<br>
> Description=Plseaudio Service<br>
> After=network-online.target<br>
><br>
> [Service]<br>
> ExecStart=/usr/bin/pulseaudio -vvvv --system --disallow-exit<br>
> --disallow-module-loading<br>
> #ExecReload=/bin/kill -HUP $MAINPID<br>
> TimeoutSec=13<br>
<br>
</span>I guess this is your problem. 13 seconds after start systemd sends a<br>
SIGTERM, because it thinks the service didn't start properly.<br>
<br>
<br>
//Anton<br>
<span class=""><br>
<br>
><br>
> [Install]<br>
> WantedBy=multi-user.target<br>
><br>
> Best regards,<br>
>   Tadej<br>
><br>
><br>
><br>
> On Fri, Mar 17, 2017 at 3:16 AM, Arun Raghavan <<a href="mailto:arun@arunraghavan.net">arun@arunraghavan.net</a>><br>
> wrote:<br>
><br>
> > On Wed, 15 Mar 2017, at 12:27 PM, Tadej Panjtar wrote:<br>
> > > Hi!<br>
> > ><br>
> > > I Migrated from pulseaudio version 4.0 to 8.0 and the following command<br>
> > > does not work anymore:<br>
> > > load-module module-alsa-sink device="hw:2,7" sink_name=seat1<br>
> > ><br>
> > > E: [pulseaudio] module.c: Failed to load module "module-alsa-sink"<br>
> > > (argument: "device="hw:2,7" sink_name=seat1"): initialization failed.<br>
> > > E: [pulseaudio] main.c: Module load failed.<br>
> > ><br>
> > > What is wrong?<br>
> ><br>
> > You need to increase your pulseaudio debug level (or start it with<br>
> > -vvvv).<br>
> ><br>
> > -- Arun<br>
> ><br>
<br>
</span>> ______________________________<wbr>_________________<br>
> pulseaudio-discuss mailing list<br>
> <a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/pulseaudio-<wbr>discuss</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Anton Lundin    <a href="tel:%2B46702-161604" value="+46702161604">+46702-161604</a><br>
______________________________<wbr>_________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/pulseaudio-<wbr>discuss</a><br>
</font></span></blockquote></div><br></div>