Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862867 - 2022-07-29-pipewire-sound-server news item should also inform about how to make the changes system-wide
Summary: 2022-07-29-pipewire-sound-server news item should also inform about how to ma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 744622
  Show dependency tree
 
Reported: 2022-08-01 20:53 UTC by Pacho Ramos
Modified: 2022-08-05 10:55 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-08-01 20:53:50 UTC
I wonder about this part:
[...]
  systemd users will also need to run the following commands:
  $ systemctl --user --now disable pulseaudio.service pulseaudio.socket
  $ systemctl --user --now enable pipewire.socket pipewire-pulse.socket
  $ systemctl --user --now disable pipewire-media-session.service
  $ systemctl --user --force enable wireplumber.service
[...]
  systemd users will also need to run the following commands:
  $ systemctl --user --now enable pulseaudio.service pulseaudio.socket
  $ systemctl --user --now disable pipewire.socket pipewire-pulse.socket
[...]
   systemd users will also likely want to run the following commands, again
   for the purposes of non-audio PipeWire use:
   $ systemctl --user --now enable pipewire.socket
   $ systemctl --user --now --force enable wireplumber.service
[...]

I would also add a note about how to enable/disable them system-wide for all the existing users and the new users that could be created in the future 

I guess it should be using systemctl --global, but maybe some admins won't know that

I also wonder if in systemd setups afterr enabling/disabling the relevant unit files it's still needed to disable the USE flags of the non-used daemon or that conflicts are openRC related :/

Thanks a lot
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-01 20:58:26 UTC
You should change the relevant USE flags even on systemd systems in order for the choice to be well-defined. The (runtime) conflicts exist either way.

I think we could add --global to the command invocations.
Comment 2 Pacho Ramos gentoo-dev 2022-08-02 17:37:00 UTC
That looks fine to me, thanks
Comment 3 Larry the Git Cow gentoo-dev 2022-08-03 03:04:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=6f193859d252b4d7f8cd1ccf5ae875a6049aeed8

commit 6f193859d252b4d7f8cd1ccf5ae875a6049aeed8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-03 03:03:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-03 03:03:59 +0000

    2022-07-29-pipewire-sound-server: mention systemd --global
    
    Closes: https://bugs.gentoo.org/862867
    Signed-off-by: Sam James <sam@gentoo.org>

 .../2022-07-29-pipewire-sound-server.en.txt             | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
Comment 4 Pacho Ramos gentoo-dev 2022-08-04 09:22:24 UTC
(In reply to Larry the Git Cow from comment #3)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/data/gentoo-news.git/commit/
> ?id=6f193859d252b4d7f8cd1ccf5ae875a6049aeed8
> 
> commit 6f193859d252b4d7f8cd1ccf5ae875a6049aeed8
> Author:     Sam James <sam@gentoo.org>
> AuthorDate: 2022-08-03 03:03:59 +0000
> Commit:     Sam James <sam@gentoo.org>
> CommitDate: 2022-08-03 03:03:59 +0000
> 
>     2022-07-29-pipewire-sound-server: mention systemd --global
>     
>     Closes: https://bugs.gentoo.org/862867
>     Signed-off-by: Sam James <sam@gentoo.org>
> 
>  .../2022-07-29-pipewire-sound-server.en.txt             | 17
> ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)

There is a typo in the change:
- It enables pipewire units instead of disabling them:
+  # systemctl --user --global --enable pulseaudio.service pulseaudio.socket
+  # systemctl --user --global --force enable pipewire.socket pipewire-pulse.socket
+

Also the hyphens should be dropped from "--enable", and , in general, I wasn't appending --user to the global commands as currently recommended in pulseaudio-daemon ebuild :/ (I don't know if it really changes much)

Thanks
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-05 06:15:03 UTC
Please go ahead and fix, thank you!
Comment 6 Larry the Git Cow gentoo-dev 2022-08-05 10:55:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=48eabb9f21b21b35ec6e71d935e7d724644fb3b7

commit 48eabb9f21b21b35ec6e71d935e7d724644fb3b7
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-08-05 10:54:37 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-08-05 10:54:37 +0000

    2022-07-29-pipewire-sound-server: fix typos
    
    Closes: https://bugs.gentoo.org/862867
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 .../2022-07-29-pipewire-sound-server.en.txt                   | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)