[mythtv-users] Upgrade from 18.04 to 20.04 - pulseaudio

Stephen Worthington stephen_agent at jsw.gen.nz
Sun Oct 18 14:19:01 UTC 2020


On Sun, 18 Oct 2020 09:23:10 -0400, you wrote:

>
>On 10/18/20 8:53 AM, Stephen Worthington wrote:
>> systemctl --user stop pulseaudio.service
>> systemctl --user stop pulseaudio.socket
>> sudo rm /etc/systemd/user/default.target.wants/pulseaudio.service
>> sudo rm /etc/systemd/user/sockets.target.wants/pulseaudio.socket
>
>I believe the approved way for removing the links is
>systemctl --user disable pulseaudio.service
>And for adding them back
>systemctl --user enable pulseaudio.service

No, as I said, there seems to be no systemctl command that will remove
or add the user "template" links.  The commands you gave are for links
under ~/.config/systemd/user which are local to each user.  The
template links under /etc/systemd/user are applied to all users when
they are first started and a user mode systemd executable is run for
them.

>I had always used a different method to disable pulseaudio:
>
>In /etc/pulse/client.conf, uncomment the line autospawn=yes and replace 
>the yes with a "no".
>kill currently running copy: pulseaudio -k
>also disable in window manager startup (Settings -> Session and startup)
>
>I did not realize that there is a pulsaudio.service.

Yes, it appears that is the way I disabled it in 18.04.  I have just
checked my /etc/pulse/client.conf file and it has been edited to have
"autospawn=no".  But in 20.04, pulseaudio was running again, so it
must be ignoring that option now, or how it works has changed.

>Did you not also have to remove it from window manager startup? I see it 
>is there and that may start it again next time you log on, in spite of 
>having the service disabled?

Yes, in XFCE4 that is in Settings > Session and Startup >
Application Autostart as I mentioned.  With the service disabled, I
suspect that this option might well have started pulseaudio, so I
disabled it there too.  With pulseaudio already running courtesy of
the user systemd instance, I expect that the Application Autostart
option (if enabled) will start another copy of pulseaudio which will
see that the original copy is running and shut itself down again.  But
I have not tested that.


More information about the mythtv-users mailing list