Hello and good day,
How do you start and supervise pipewire, wireplumber, pipewire-pulse?
(automatically, on user login / system start.)
Short is good right?
What init are you using?
I'm using dinit and use turnstile to have user services, then use pipewire-dinit, wireplumber-dinit, and pipewire-pulse-dinit all of which are in the repos.
I'm using openrc.
I created some services and instructed openrc to start them before agetty, and after local.
This failed, and spits some errors into the login prompt making for an ugly terminal on login.
It's possible that I didn't properly create the service file, I'm still learning.
The gentoo wiki said that there isn't a standard way to start pipewire, I think there are maybe three options available to me in total.
Thanks for replying, that's interesting, I quite like the idea of turnstile after performing a quick search.
Does that break anything? or does it simply replace elogind seamlessly? Have you encountered any issues?
***Edit:
Unfortunately, there is no pipewire init package for openrc in the official repo, I suspect that users are starting and supervising pipewire in a different way.
I'm using https://gitea.artixlinux.org/packages/pipewire/src/branch/master/artix-pipewire-launcher
Interesting, assuming I used the same, how would I invoke this script on login?
***Edit:
Is there anyway to delete a reply?
You can use .xinitrc, or your cli shell rc, or your WM/DE autostart feature, or write your own init system script. I am using .xinitrc.
https://wiki.archlinux.org/title/Autostarting
I don't think so.
Openrc does not handle user services like pipewire.
So you do not use it in these cases.
You should use the handy artix-pipewire-launcher as Ambie said.
Or dinit user services.
To handle dinit user instance you can use turnstile.
Turnstile cannot set DISPLAY correctly so I cannot use picom and pasystraty services so I use a simple script that starts dinit inside the session.
Install pambase-turnstile and turnstile-openrc service also.
By this do you mean, create my own set of init system scripts? What would call it to run?
Regarding the artix-pipewire-launcher:
What happens if pipewire, etc. crashes? (other than perhaps a log, will it restart automatically?)
I understand that you can use dinit / runit with openrc?
artix-pipewire-launcher. Just for autostart and not for process handling. Though it's easier to use other autostart methods.
It never happened with me but I don't think so. I guess script doesn't have any monitoring abilities.
You can use dinit for user services with openrc or other inits.