🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Seb Hinderer Sat, 14 Nov 2026 10:00
Bug#1137031: Give a home to the pipewire user
#4462
Author: Seb Hinderer
Date: Sat, 14 Nov 2026 10:00
44 lines
3330 bytes
Control: retitle -1 pipewire-system-services: system-wide WirePlumber loses volumes and mute states at each boot

My initial report had two shortcomings: it did not make the consequence
for users clear, and it only considered one particular fix, whereas
the problem can also be addressed in another way (see below).

The consequence for users: volumes, mute states and default devices
are lost whenever the service restarts, in particular at each boot.

The reason: when PipeWire and WirePlumber run as system services,
WirePlumber logs

  wp-state: failed to create directory
  /nonexistent/.local/state/wireplumber: Permission denied

and cannot save its state.

This is still the case with pipewire 1.6.9-2 and wireplumber 0.5.19-1.

Two ways to fix it come to mind:

- as my initial report proposed, give the pipewire user a home
  directory, e.g. /var/lib/pipewire, in
  /usr/lib/sysusers.d/pipewire.conf. systemd-sysusers does not create
  home directories, so the directory would also have to be created,
  e.g. with a tmpfiles.d entry. WirePlumber would then store its state
  in the .local/state/wireplumber subdirectory of /var/lib/pipewire;

- or leave the user as it is and have the system wireplumber.service
  declare its own state directory:

    StateDirectory=wireplumber
    Environment=XDG_STATE_HOME=%S

  so that WirePlumber stores its state directly in /var/lib/wireplumber.

The second one keeps the fix in wireplumber-system-services, where the
problem shows up, and may thus be preferable.

I can prepare a merge request for whichever approach you prefer.

Thanks,

Seb.
Bug#1137031: pipewire-system-services: system-wide WirePlumber loses volumes and mute states at each boot
#5940
Author: Sébastien Hinderer
Date: Tue, 24 Nov 2026 15:00
29 lines
3233 bytes
Hello,

The second approach suggested in my previous message is now supported
upstream: WirePlumber merge request !962 [1], merged on 2026-11-24
for 0.6.0, lets the system service store its state in a directory
given by the new WIREPLUMBER_STATE_DIR environment variable. The
upstream system units (wireplumber.service and wireplumber@.service)
now set it to /var/lib/wireplumber, which they declare with
StateDirectory=. Once that version is in Debian, the problem should
thus go away without any Debian-specific change, and the pipewire
user will not need a home directory.

Until then, the home directory approach of the draft merge request
!36 [2] remains the short-term fix, with the tmpfiles.d change I
suggested there [3] so that the directory also exists on a first
installation.

If you prefer, I can instead open a merge request backporting the
upstream change to the 0.5 package. It adds a public function,
wp_base_dirs_get_state_dir(), which would have to be declared in
debian/libwireplumber-0.5-0.symbols.

[1] https://gitlab.freedesktop.org/pipewire/wireplumber/-/merge_requests/962
[2] https://salsa.debian.org/utopia-team/pipewire/-/merge_requests/36
[3] https://salsa.debian.org/utopia-team/pipewire/-/merge_requests/36#note_832388

Thanks,

Seb.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads