The officially official Devuan Forum!

You are not logged in.

#101 2025-11-13 22:24:05

davesp
Member
Registered: 2025-10-26
Posts: 5  

Re: How to: Devuan 5 Daedalus an pipewire

Allow me to add some fuel to the fire, or maybe start something we can build on in common:  https://github.com/davesp/start_user_pipewire

Offline

#102 2025-11-14 00:22:40

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,522  

Re: How to: Devuan 5 Daedalus an pipewire

Why use Microsoft's server for FOSS ?
Why not git.devuan.org ?
Or codeberg.org ?

Offline

#103 2025-11-14 00:26:44

golinux
Administrator
Registered: 2016-11-25
Posts: 3,592  

Re: How to: Devuan 5 Daedalus an pipewire

I've been boycotting github for years . . . MS can kiss my skinny behind.  yikes

Online

#104 2025-11-14 22:17:33

davesp
Member
Registered: 2025-10-26
Posts: 5  

Re: How to: Devuan 5 Daedalus an pipewire

OT:  I didn't so much "choose" GitHub as "defaulted" to it.

  • It's familiar, and I already had it set up.

  • I didn't notice any Microsoft branding (nor was I looking for any).

  • GitHub didn't force me to insert any Microsoft-specific code, or force me to use Windows or Edge.

  • If they're paying for GitHub to exist and are hosting OSS without forcing authors to "bend to their will", isn't that good for OSS?

That's why using GitHib wasn't a big deal for me.  But, since this is arguably a Devuan-specific issue, the repo has been moved from GitHub to "https://git.devuan.org/davesp/start_user_pipewire".

Last edited by davesp (2025-11-14 23:29:02)

Offline

#105 2025-11-14 23:47:28

HardSun
Member
Registered: 2025-07-29
Posts: 32  

Re: How to: Devuan 5 Daedalus an pipewire

I just tried your script on my setup and it works.
Thanks davesp.

Offline

#106 2025-11-14 23:59:31

HardSun
Member
Registered: 2025-07-29
Posts: 32  

Re: How to: Devuan 5 Daedalus an pipewire

Just a quick question, it seems as though pipewire is running via the user, is this check correct?
user1 being my login name.

~ $ ps -aux | grep 'pipewire\|wireplumber'
user1     2081  0.0  0.0 104188 12720 tty1     Sl   09:45   0:00 /usr/bin/pipewire
user1     2084  0.5  0.0 481776 19648 tty1     SLl  09:45   0:03 /usr/bin/wireplumber
user1     2087  0.4  0.0 105960 14652 tty1     SLl  09:45   0:03 /usr/bin/pipewire-pulse

Last edited by HardSun (2025-11-14 23:59:59)

Offline

#107 Yesterday 07:51:05

stultumanto
Member
Registered: 2023-12-12
Posts: 105  

Re: How to: Devuan 5 Daedalus an pipewire

[Edited to update testing info.] Thanks for sharing the script. I found it easy to read and to understand what it was doing, which is much more than I can say about many of the scripts included with Debian. smile

A note to anyone not running elogind: you will need to manually set the value of XDG_RUNTIME_DIR to a directory which you own to get the pipewire daemon to start successfully. It's not enough to use a system directory where you have write permissions, such as /tmp, you must actually own it. Something like /tmp/pw will work. [Edit: I initially said /tmp/pulse, but that already exists!] I'm not sure yet how pipewire handles exit; you may need to clean up after it. It's probably worth noting that the startup script did not pass through the error messages from pipewire to the terminal when it failed. I had to start pipewire manually to figure out why it was failing. If anyone else runs into trouble, I suggest you try that first.

After I fixed this issue, the three daemons started successfully, and I confirmed monitor audio was working in OBS Studio (obs requires PulseAudio support for monitoring.) The only drawback was routing: I only saw a single PA input and output (hello feedback!) Hopefully, that's something I can fix through the configuration files.

Last edited by stultumanto (Yesterday 10:17:05)

Offline

#108 Yesterday 23:06:21

davesp
Member
Registered: 2025-10-26
Posts: 5  

Re: How to: Devuan 5 Daedalus an pipewire

stultumanto, that's a good find.  Just now, I pushed an update which captures stderr from each binary launch, and says where to look if that launch failed.

I don't have XDG_RUNTIME_DIR set locally; are you able to un-set XDG_RUNTIME_DIR and re-run the script to see if the change would help debug the issue?

Offline

#109 Yesterday 23:48:54

davesp
Member
Registered: 2025-10-26
Posts: 5  

Re: How to: Devuan 5 Daedalus an pipewire

HardSun:  Those are the binaries which are expected to be running.  Is your audio not working?

Offline

#110 Yesterday 23:52:03

HardSun
Member
Registered: 2025-07-29
Posts: 32  

Re: How to: Devuan 5 Daedalus an pipewire

@davesp
its working, i was just curious if i was running it correctly, i put it in .xinitrc to autostart via startx.
I also locally set $XDG_RUNTIME_DIR as i dont use elogind only seatd.

Last edited by HardSun (Yesterday 23:55:02)

Offline

#111 Today 01:37:33

EDX-0
Member
Registered: 2020-12-12
Posts: 173  

Re: How to: Devuan 5 Daedalus an pipewire

just cancel pipewire and use alsa only + jack every so often, this is literally bloating the desktop with the bloatware of pipewire as if the poettering bloatware of pulseaudio wasn't bad enough, maybe we should all go to a real OS like OpenBSD that has a proper audio stack and system.

Online

#112 Today 05:37:03

HardSun
Member
Registered: 2025-07-29
Posts: 32  

Re: How to: Devuan 5 Daedalus an pipewire

EDX-0 wrote:

just cancel pipewire and use alsa only + jack every so often, this is literally bloating the desktop with the bloatware of pipewire as if the poettering bloatware of pulseaudio wasn't bad enough, maybe we should all go to a real OS like OpenBSD that has a proper audio stack and system.

Ive tried OpenBSD, it has no bluetooth stack so i cant use my portable bluetooth speaker for audio. sad

Offline

#113 Today 07:41:04

steve_v
Member
Registered: 2018-01-11
Posts: 552  

Re: How to: Devuan 5 Daedalus an pipewire

OpenBSD, it has no bluetooth stack

Really? They still don't have bluetooth?
I get OpenBSD having not-desktop priorities, but FFS, bluetooth came out in 1998.


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#114 Today 08:14:44

HardSun
Member
Registered: 2025-07-29
Posts: 32  

Re: How to: Devuan 5 Daedalus an pipewire

@steve
They had netbsd's bluetooth stack back around openbsd 5.3 version but removed it due to security concerns.

Offline

#115 Today 08:22:19

stultumanto
Member
Registered: 2023-12-12
Posts: 105  

Re: How to: Devuan 5 Daedalus an pipewire

just cancel pipewire and use alsa only + jack every so often, this is literally bloating the desktop

I would certainly not recommend that people indiscriminately pile-on services without a good reason. I'm only starting PipeWire because I want to run OBS Studio, which requires PulseAudio. At least I have the option of only turning on PW when I need it. PulseAudio leaves your system in a broken state if you try to disable it without completely purging it.

I don't have XDG_RUNTIME_DIR set locally; are you able to un-set XDG_RUNTIME_DIR and re-run the script to see if the change would help debug the issue?

That's interesting, Maybe you have set one of the other envvars it checks. The error message says PIPEWIRE_RUNTME_DIR or USERPROFILE work as well. I also read somewhere that dbus may help with setting up some of this environment stuff, but it didn't work for me. Can you determine where pipewire is opening the socket on your system? Here's the exact error I get when I start pipewire without XDG_RUNTIME_DIR:

[E][23:49:58.480001] mod.protocol-native | [module-protocol-:  756 init_socket_name()] server 0x562d794d35c0: name pipewire-0 is not an absolute path and no runtime dir found. Set one of PIPEWIRE_RUNTIME_DIR, XDG_RUNTIME_DIR or USERPROFILE in the environment
[E][23:49:58.480143] pw.conf      | [          conf.c:  602 load_module()] 0x562d794b0190: could not load mandatory module "libpipewire-module-protocol-native": No such file or directory
[E][23:49:58.480400] default      | [      pipewire.c:  124 main()] failed to create context: No such file or directory

I unset XDG_RUNTIME_DIR and instead set PIPEWIRE_RUNTIME_DIR. It seemed to work just as well. The latter might be a better option. Since it's specific to PipeWire, it could even be set by the script without interfering with other programs that might use the value of XDG_RUNTIME_DIR.

Offline

#116 Today 17:05:38

greenjeans
Member
Registered: 2017-04-07
Posts: 1,286  
Website

Re: How to: Devuan 5 Daedalus an pipewire

just cancel pipewire and use alsa only + jack every so often, this is literally bloating the desktop with the bloatware of pipewire as if the poettering bloatware of pulseaudio wasn't bad enough,

I'm afraid I agree. But there's a lot of work to be done to make pure alsa more accessible to an average non-technical user. Working on that myself, and forum member @rations just posted some nice work on alsa+jack systems. Even Igor's doing some good, lol, so hopefully there's some resurgence in interest for a nice low latency system without a lot of software on top of it, just needs some simple gui methods to control configs really.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded October 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Online

#117 Today 18:10:51

EDX-0
Member
Registered: 2020-12-12
Posts: 173  

Re: How to: Devuan 5 Daedalus an pipewire

it really warms my heart to see the joke fly over everyone's head thanks to my posts being ignored unless i join the whining...

still interesting to see how simple the approach of the start_user_pipewire script is when i went ahead like an idiot and engineered a whole crappy process manager + incomplete session process in shell (not even bash because arrays are the devil) all to have pipewire "just work" with 3 files that barely classify as config files...

https://dev1galaxy.org/viewtopic.php?pid=49728#p49728

Online

Board footer