Skip to main content
Topic: Pipewire init and friends (Read 668 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Pipewire init and friends

Hello and good day,

How do you start and supervise pipewire, wireplumber, pipewire-pulse?

(automatically, on user login / system start.)

Short is good right?

Re: Pipewire init and friends

Reply #1
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.

Re: Pipewire init and friends

Reply #2
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.



Re: Pipewire init and friends

Reply #5
Interesting, assuming I used the same, how would I invoke this script on login?

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.

Re: Pipewire init and friends

Reply #6
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.

Re: Pipewire init and friends

Reply #7
or write your own init system script.

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?)


Re: Pipewire init and friends

Reply #9
artix-pipewire-launcher. Just for autostart and not for process handling. Though it's easier to use other autostart methods.
What happens if pipewire, etc. crashes? (other than perhaps a log, will it restart automatically?)
It never happened with me but I don't think so. I guess script doesn't have any monitoring abilities.