Package: pipewire-system-services
Version: 1.6.9-2
Severity: grave
Tags: patch
X-Debbugs-Cc: [email protected]

When PipeWire and WirePlumber run as system services, they see no
sound card: wpctl status lists no audio device, and the only sink is
"Dummy Output". No sound can be played through the system instance.

The reason is that the pipewire system user, created by
/usr/lib/sysusers.d/pipewire.conf, is not in the audio group, which
owns /dev/snd/*. In a user session, PipeWire does not need that group,
because systemd-logind grants the user of the active session access to
the sound devices through ACLs. A system service has no session, so
the audio group is its only way to reach the hardware.

PulseAudio's system mode faced the same need: pulseaudio's postinst
adds the pulse system user to the audio group
(adduser --quiet pulse audio).

Checked in a Debian testing VM with pipewire-system-services 1.6.9-2:
adding the pipewire user to the audio group, and nothing else, makes
the sound card appear ("Built-in Audio"); removing it makes it
disappear again. debian/pipewire.sysusers is unchanged on the
debian/master branch on Salsa (1.6.11-2).

The fix is one line in debian/pipewire.sysusers:

--- a/debian/pipewire.sysusers
+++ b/debian/pipewire.sysusers
@@ -1 +1,2 @@
 u      pipewire        -       "system user for pipewire"      /nonexistent    
/usr/sbin/nologin
+m      pipewire        audio

Existing systems get it on upgrade too: the postinst runs
systemd-sysusers on pipewire.conf, which adds an existing user to the
group (checked in the VM).

I set the severity to grave because, without this, the package cannot
fulfil its only purpose. I will open a merge request on Salsa with this
change and link it here.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.1.8+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire-system-services depends on:
ii  pipewire                     1.6.9-2
ii  pipewire-pulse               1.6.9-2
ii  wireplumber-system-services  0.5.19-1

pipewire-system-services recommends no packages.

pipewire-system-services suggests no packages.

-- no debconf information

Reply via email to