Pipewire init and friends 26 May 2024, 02:45:13 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 – 26 May 2024, 02:59:45 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 – 26 May 2024, 03:25:43 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 #3 – 26 May 2024, 07:32:08 I'm using https://gitea.artixlinux.org/packages/pipewire/src/branch/master/artix-pipewire-launcher 1 Likes
Re: Pipewire init and friends Reply #4 – 26 May 2024, 08:38:49 Quote from: Ambie – on 26 May 2024, 07:32:08I'm using https://gitea.artixlinux.org/packages/pipewire/src/branch/master/artix-pipewire-launcherInteresting, assuming I used the same, how would I invoke this script on login? ***Edit:Is there anyway to delete a reply?
Re: Pipewire init and friends Reply #5 – 26 May 2024, 08:47:27 Quote from: petergriffin – on 26 May 2024, 08:38:49Interesting, 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/AutostartingQuote from: petergriffin – on 26 May 2024, 08:38:49Is there anyway to delete a reply?I don't think so.
Re: Pipewire init and friends Reply #6 – 26 May 2024, 08:50:36 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 – 26 May 2024, 09:01:13 Quote from: Ambie – on 26 May 2024, 08:47:27or 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 #8 – 26 May 2024, 09:06:15 Quote from: kiblaster – on 26 May 2024, 08:50:36Or dinit user services.I understand that you can use dinit / runit with openrc?
Re: Pipewire init and friends Reply #9 – 26 May 2024, 09:30:27 Quote from: petergriffin – on 26 May 2024, 09:01:13What would call it to run?artix-pipewire-launcher. Just for autostart and not for process handling. Though it's easier to use other autostart methods.Quote from: petergriffin – on 26 May 2024, 09:01:13What 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.
Re: Pipewire init and friends Reply #10 – 26 May 2024, 13:53:46 Quote from: petergriffin – on 26 May 2024, 09:06:15Quote from: kiblaster – on 26 May 2024, 08:50:36Or dinit user services.I understand that you can use dinit / runit with openrc? You can use dinit for user services with openrc or other inits. 1 Likes