With the splitting of pulseaudio it seems autospawn was disabled and, then, pulseaudio stops being enabled when users logging in. The following is suggested: * It's recommended to start pulseaudio via its systemd user units: * * systemctl --user enable pulseaudio.service pulseaudio.socket * * The change from autospawn to user units will take effect after restarting. * But that seems to be needed to be run per-user. How can get that enabled by default for all the users and new users that could be created in the future? Thanks
It seems we need to do: systemctl --global enable pulseaudio.socket As seems too be done in Arch and Fedora ;)
(In reply to Pacho Ramos from comment #1) > It seems we need to do: > systemctl --global enable pulseaudio.socket > > As seems too be done in Arch and Fedora ;) I now believe pulseaudio-daemon ebuild should have a comment for systemd case similar to one in pipewire ebuild. Adding a PR 25409 for this.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2605605514f62edb6983ece30cfae3efc4c62b9 commit d2605605514f62edb6983ece30cfae3efc4c62b9 Author: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> AuthorDate: 2022-05-10 07:05:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-13 20:03:46 +0000 media-sound/pulseaudio-daemon: Clarify enabling systemd units for all Bug: https://bugs.gentoo.org/843449 Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../pulseaudio-daemon/pulseaudio-daemon-15.99.1-r2.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+)
Do you think enabling the .service file is also needed? .socket alone looks to work fine and ,like that, daemon will be launched only when needed
For local access socket activation should be good enough. Socket activation does not work for remote connections e.g. with module-native-protocol-tcp or module-rtp-recv; also starting daemon takes some time. I believe it is safest to try starting it as early as possible before first system sounds are playing.
OK Thanks for the clarification :)