Running sndiod as user sndiod on Arch Linux

From: Edward Wandasiewicz <w13ntd_at_gmail.com>
Date: Sun, 17 Sep 2017 19:48:30 +0000
Hi Alexandre

I'm trying to get sndiod to run on Arch Linux.

Having read http://www.sndio.org/install.html

I updated the user and group, via

useradd -r -g audio -s /sbin/nologin -d /var/run/sndiod sndiod

The Arch package didn't get this part right.

I can get sound output, if I run sndiod as root, via

$ sudo sndiod -dddd -f rsnd/1

But if I try to run it via systemd with user=sndiod, it refuses to open the
device snd/0 if I run, as a local user

$ aucat -f snd/0 -dd -i /usr/share/sounds/alsa/Side_Right.wav

/usr/share/sounds/alsa/Side_Right.wav,pst=cfg: play, chan 0:0, 48000Hz,
s16le, bytes 44..129966
snd/0: couldn't open audio device

Should the systemd service be run as User=root and not User=sndiod?

I managed to get sndio via ALSA to work on the Chromebook Pixel 2015, using
the second audio device, hence rsnd/1.

See https://github.com/raphael/linux-samus/issues/200

Edward.
Received on Sun Sep 17 2017 - 21:48:30 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 09 2022 - 16:23:47 CEST