"unable to open slave" when invoking aplay from root
- PipeWire version (
pipewire --version
): 0.3.84 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Debian GNU/Linux bookworm/sid - Desktop Environment: Compiz
- Kernel version (
uname -r
): 6.1.0-1-amd64
Description of Problem:
I have a systemd unit invoking an alert when the laptop wakes up, which works from root. PulseAudio allows that with a cookie:
mkdir /tmp/sharepulse
cp ~/.config/pulse/cookie /tmp/sharepulse/cookie
chmod 666 /tmp/sharepulse/cookie
But I have no idea how to achieve this with PipeWire.
There is a similar issue #2244 (closed) but it's different as there is only a root user, and PW systemd unit doesn't allow to launch it from root by default. But I launch PW from a regular user, and just want it to accept clients running from root.
How Reproducible:
Steps to Reproduce:
root@localhost:~# aplay /home/bodqhrohro/.minetest/mods/technic/sounds/technic_hv_nuclear_reactor_siren_danger_loop.ogg
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
aplay: main:831: audio open error: No such file or directory
root@localhost:~# paplay /home/bodqhrohro/.minetest/mods/technic/sounds/technic_hv_nuclear_reactor_siren_danger_loop.ogg
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
root@localhost:~# pw-play /home/bodqhrohro/.minetest/mods/technic/sounds/technic_hv_nuclear_reactor_siren_danger_loop.ogg
error: pw_context_connect() failed: Host is down
Actual Results:
No sound.
Expected Results:
Sound.
Additional Info (as attachments):
-
pw-dump > pw-dump.log
: