Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843449 - media-sound/pulseaudio-daemon-15.99.1-r2: clarify how to re-enable pulseaudio for all the users
Summary: media-sound/pulseaudio-daemon-15.99.1-r2: clarify how to re-enable pulseaudio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-09 19:07 UTC by Pacho Ramos
Modified: 2022-05-20 17:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2022-05-09 19:07:56 UTC
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
Comment 1 Pacho Ramos gentoo-dev 2022-05-09 19:11:11 UTC
It seems we need to do:
systemctl --global enable pulseaudio.socket

As seems too be done in Arch and Fedora ;)
Comment 2 Igor V. Kovalenko 2022-05-09 22:31:01 UTC
(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.
Comment 3 Larry the Git Cow gentoo-dev 2022-05-13 20:04:12 UTC
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(+)
Comment 4 Pacho Ramos gentoo-dev 2022-05-15 17:39:41 UTC
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
Comment 5 Igor V. Kovalenko 2022-05-15 22:23:38 UTC
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.
Comment 6 Pacho Ramos gentoo-dev 2022-05-20 17:43:26 UTC
OK 

Thanks for the clarification :)