Page 1 of 2

How to prevent autostart of the Pulse Audio bridge

Posted: Mon Mar 19, 2018 12:15 pm
by Aleks
I am using KX Studio repos on Ubuntu 16.04, and every time I start Jack with Cadence, the pulseaudio jack bridge module autostarts with it. How do I prevent that? The main problem is that I can't even stop it. Every time I stop, it loads itself on its own.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Mon Mar 19, 2018 12:42 pm
by Aleks
Yes, there is no such folder. Actually, I just rebuilt my system from scratch, and the only time I typed sudo and pulseaudio together was when I installed the module. Is there a way to fix that?

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Mon Mar 19, 2018 1:02 pm
by Aleks
Will try that. In the mean time, I created the the .pulse folder myself, and after reboot, I lost the submenus in the cadence applet. Respawning still not solved.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Mon Mar 19, 2018 5:04 pm
by Aleks
I reinstalled the system again, and the autostart is solved, but I still don't have submenus in the applet indicator. I ran cadence from the terminal, but nothing much there...just this:

Code: Select all

$ cadence
Using Tray Engine 'Qt'

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 11:10 am
by lilith
I have the same issue currently on another machine (Laptop). I installed the KXStudio repos and everytime I stop the pulseaudio bridge in Cadence it starts automatically after 3 Seconds. On my main PC it is not restarting. Is there something misconfigured?

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 1:55 pm
by khz

Code: Select all

echo "autospawn = no" >> ~/.config/pulse/client.conf
viewtopic.php?p=103154#p103154

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 2:07 pm
by lilith
khz wrote: Thu Mar 19, 2020 1:55 pm

Code: Select all

echo "autospawn = no" >> ~/.config/pulse/client.conf
viewtopic.php?p=103154#p103154
Thanks! Now this thread makes sense, cause I didn't understand the posts.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 2:17 pm
by lilith
Not working for me. Does it need a reboot?

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 2:49 pm
by khz
Yes, as far as I remember or as far as I have a technical overview, you have to log out the user and log in again, because this will read and apply the file ~/.config/pulse/client.conf. It is not necessary to restart the computer. IMHO

But I switch off with the command PA:
In qjackctl Setup:
  • Setup >> Options > [X] Execute script at startup: "systemctl --user stop pulseaudio.socket && systemctl --user stop pulseaudio.service"
  • Setup >> Options > [X] Run script after shutdown: "killall -9 jackdbus && systemctl --user start pulseaudio.socket && systemctl --user start pulseaudio.service")

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 2:59 pm
by khz
Permanently disabling PA via "client.conf" worked for me with Debian-9.
With Debian-10 it didn't work anymore.
Since then I use the systemctl command mentioned above.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 3:31 pm
by lilith
Maybe I should uncommend the line :lol:

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 3:50 pm
by lilith
khz wrote: Thu Mar 19, 2020 2:59 pm Permanently disabling PA via "client.conf" worked for me with Debian-9.
With Debian-10 it didn't work anymore.
Since then I use the systemctl command mentioned above.
That's strange. You mean preventing it to not restart does not work in Debian 10? It's working for sure on my Desktop PC, but not on the laptop.

Code: Select all

autospawn = no
does not work. I logged out and rebooted and it's still the same.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 4:26 pm
by khz
Last year I treated myself to my first laptop in my life. Conservative as I am I installed a Debian-stable (includes a smooth transition from stretch to buster). This is how I came across the problem with "client.conf". With buster it just didn't work anymore.
Is it related to https://wiki.debian.org/systemd or https://wiki.debian.org/Wayland or $foobar?
Thanks to you (posts in the link above) I got to know the "systemctl" and, since it just works, adapted it. Thanks for that.
The "systemctl" I have then also transferred to the desktop like this.
Direct console command for pulseaudio service on/off.

(Why does my post appear 2 times?)

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 4:45 pm
by lilith
It works on my Desktop PC running Buster. I'll check the settings there.

Re: How to prevent autostart of the Pulse Audio bridge

Posted: Thu Mar 19, 2020 7:04 pm
by lilith
On my Desktop PC I have also Cadence running and I can stop the Pulse Audio Bridge there and it does not restart again automatically.

Image

I even don't have a client.conf file in ~/.config/pulse/ and in /etc/pulse/client.conf everything is commented.

Debian 10 also here.