You are not logged in.

#1 2018-03-31 18:18:56

Sleepful
Member
Registered: 2017-08-14
Posts: 30

[SOLVED] How to kill pulseaudio without pulseaudio respawning?

Doesn't matter if I do `pulseaudio -k` or kill it from htop, `pactl exit` doesn't work either, it always respawns. Already tried editing `client.conf` as the wiki suggests:

https://wiki.archlinux.org/index.php/Pu … ing_killed

Tried both paths:

* ~/.config/pulse/client.conf
* /etc/pulse/client.conf

I need to kill it in order to use hdajackretask. Also tried

pasuspender -- hdajackretask

but I still get

tee:/sys/class/sound/hwC0D0/reconfig: Device or resource busy

(busy is because pulseaudio is running)

Last edited by Sleepful (2018-03-31 18:27:50)

Offline

#2 2018-03-31 18:27:27

Sleepful
Member
Registered: 2017-08-14
Posts: 30

Re: [SOLVED] How to kill pulseaudio without pulseaudio respawning?

This worked:

https://superuser.com/questions/1170433 … to-stop-it

To stop user services it's necessary to use the parameter --user:

systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service

Last edited by Sleepful (2018-03-31 18:28:33)

Offline

#3 2018-03-31 18:28:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,448

Re: [SOLVED] How to kill pulseaudio without pulseaudio respawning?

systemctl --user mask pulseaudio.socket #unmask to revert
systemctl --user stop pulseaudio.service

Pulse uses systemd socket activation since quite some time, I'll have to update the pulse article sometime, that's not the only inconsistency with the modern state in the wiki.

Edit: Ah I should F5 before sending tongue

Last edited by V1del (2018-03-31 18:29:54)

Offline

#4 2021-08-10 04:39:07

bzhao
Member
Registered: 2015-10-31
Posts: 10

Re: [SOLVED] How to kill pulseaudio without pulseaudio respawning?

As default, pulseaudio is installed as autostart for xfce4 desktop,  I did try various methods to try to kill it, it always restart.
so I do the below
sudo mv  /usr/bin/pulseaudio /usr/bin/pulseaudio.mv
pulseaudio -k
After finish my work, I mv it back.

Offline

#5 2021-08-10 06:45:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,448

Re: [SOLVED] How to kill pulseaudio without pulseaudio respawning?

Please don't randomly necrobump things (again). Granted you are logging in properly, masking the relevant socket should without any other possibility stop this from happening.

Closing.

Offline

Board footer

Powered by FluxBB