#1019404 wireplumber: doesn't start on non-systemd

Package:
wireplumber
Source:
wireplumber
Description:
modular session / policy manager for PipeWire
Submitter:
Adam Borowski
Date:
2023-08-02 12:57:05 UTC
Severity:
normal
#1019404#5
Date:
2022-09-08 18:12:31 UTC
From:
To:
Package: wireplumber
Version: 0.4.11-3
Severity: normal

Hi!
Unlike PulseAudio, the PipeWire stack doesn't get up by itself on systems
that use any init/rc system other than systemd.

It works fine afterwards; so far I've been using this unsightly script:
.--====
#!/bin/sh

pipewire &
sleep 1
wireplumber &
sleep 1
pipewire-pulse &
`----
but that's obviously a monstrosity you don't want.  I'm including it here
only as a proof that I've tested PipeWire for sound; it works for me fine
on a bunch of machines


Meow!

#1019404#10
Date:
2023-02-17 18:00:12 UTC
From:
To:
Hi Adam,

running openRC, I just stole this wrapper script from alpine linux:

https://git.alpinelinux.org/aports/tree/community/pipewire/pipewire-launcher.sh

I moved it to /usr/libexec/pipewire-launcher and it also just *works*. Note that one has to run/call the script though dbus, see https://wiki.alpinelinux.org/wiki/PipeWire#Runnin <https://wiki.alpinelinux.org/wiki/PipeWire#Running>g. You also will have to kill/disable the pulseaudio daemon/service if using pipewire-pulse.

Matthias

PS: this is kinda needed is you want to enable webrtc screensharing in wayland

#1019404#15
Date:
2023-08-02 12:45:03 UTC
From:
To:
In addition to the startup issues above, recent versions of the
wireplumber package fail to start in the absence of systemd logind on
the system:
---
M 15:38:55.288462             mod.rt
../src/modules/module-rt.c:278:pw_rtkit_check_xdg_portal: Can't find
xdg-portal: (null)
M 15:38:55.288536             mod.rt
../src/modules/module-rt.c:991:pipewire__module_init: found session bus
but no portal
M 15:38:55.289375             mod.rt
../src/modules/module-rt.c:297:translate_error: RTKit error:
org.freedesktop.DBus.Error.ServiceUnknown
M 15:38:55.289505             mod.rt
../src/modules/module-rt.c:622:set_nice: could not set nice-level to
-11: No such file or directory
M 15:38:55.289691             mod.rt
../src/modules/module-rt.c:297:translate_error: RTKit error:
org.freedesktop.DBus.Error.ServiceUnknown
M 15:38:55.291435             mod.rt
../src/modules/module-rt.c:297:translate_error: RTKit error:
org.freedesktop.DBus.Error.ServiceUnknown
M 15:38:55.291641             mod.rt
../src/modules/module-rt.c:297:translate_error: RTKit error:
org.freedesktop.DBus.Error.ServiceUnknown
M 15:38:55.291654             mod.rt
../src/modules/module-rt.c:843:impl_acquire_rt: could not make thread
27742 realtime using RTKit: No such file or directory
failed to start systemd logind monitor: -2 (No such file or directory)
M 15:38:55.303907        wireplumber ../src/main.c:364:on_disconnected:
disconnected from pipewire
---

This can be fixed by editing
/usr/share/wireplumber/bluetooth.lua.d/50-bluez-config.lua and setting
---
  ["with-logind"] = false,
---