[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ?? user in group audio -- but only root can play sound



Op Thu, 21 Jan 2016 16:52:44 +0100 schreef Gregor Zattler <telegraph@gmx.net>:

Hi Floris, debian user,
* Floris <jkfloris@dds.nl> [21. Jan. 2016]:
Op Sat, 16 Jan 2016 20:06:22 +0100 schreef Gregor Zattler
<telegraph@gmx.net>:
since a few days my normal user, which is in group sound, cannot
play sound (aplay works but no sound) while root can.

Any ideas how to debug this?

This is a debian testing system with pulseaudio and mpd running.

/dev$ find |xargs ls -ld|grep audio
crw-rw----+  1 root audio      14,   4 Jan 16 16:32 ./audio
lrwxrwxrwx   1 root root             8 Jan 16 16:32 ./char/14:4 ->
../audio
crw-rw----+  1 root audio      14,   3 Jan 16 16:32 ./dsp
crw-rw----+  1 root audio      14,   0 Jan 16 16:32 ./mixer
crw-rw----+  1 root audio      14,  16 Jan 16 16:32 ./mixer1
crw-rw----+  1 root audio     116,   2 Jan 16 16:32 ./snd/controlC0
crw-rw----+  1 root audio     116,   6 Jan 16 16:32 ./snd/controlC1
crw-rw----+  1 root audio     116,   5 Jan 16 16:32 ./snd/hwC0D0
crw-rw----+  1 root audio     116,  10 Jan 16 16:32 ./snd/hwC1D0
crw-rw----+  1 root audio     116,   4 Jan 16 19:27 ./snd/pcmC0D0c
crw-rw----+  1 root audio     116,   3 Jan 16 19:52 ./snd/pcmC0D0p
crw-rw----+  1 root audio     116,   7 Jan 16 19:52 ./snd/pcmC1D3p
crw-rw----+  1 root audio     116,   8 Jan 16 19:27 ./snd/pcmC1D7p
crw-rw----+  1 root audio     116,   9 Jan 16 19:27 ./snd/pcmC1D8p
crw-rw----+  1 root audio     116,   1 Jan 16 16:32 ./snd/seq
crw-rw----+  1 root audio     116,  33 Jan 16 16:32 ./snd/timer

Maybe it sounds odd, but does you have sound when you remove yourself
form the audio group?

In Debian Testing systemd takes care for setting the right rights
That is why you have a "+" at the end of the permissions.

Thanks for looking into this.  Actually I'm totally unaware of
all things systemd.  I heard sound when in group audio say two
weeks ago.

Nonetheless I did a

sudo delgroup grfz audio

logged in on a VT, played a .wav file with aplay: No sound.


What is the outcome of:

getfacl /dev/snd/hwC0D0

c$ getfacl /dev/snd/hwC0D0
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/hwC0D0
# owner: root
# group: audio
user::rw-
user:grfz:rw-
group::rw-
mask::rw-
other::---

Did not know this command but output looks good to me.

You are right, the right permissions are set.

Do you have an .asoundrc file in your home directory?

If you have one remove it.
and try aplay again

If you doesn't have one create one with:

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

and try
aplay -Dpulse foo.wav

success,

floris


Reply to: