Skip to content

systemd use autospawn

jsorg71 edited this page Apr 24, 2024 · 2 revisions

Ubuntu 20.04 want to use systemd to start and stop pulseaudio for each user.

To see status

systemctl --user status pulseaudio

To disable systemd pulseaudio control for current user

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

To disable systemd pulseaudio control for all users

sudo systemctl --global mask pulseaudio.service sudo systemctl --global mask pulseaudio.socket

Then edit /etc/pulse/client.conf and uncomment the 'autospawn = yes' line

Clone this wiki locally