[FIXED] Alsa stopped working for non-root user
#1
Thu, 2017-03-02 15:15
imv
-
- Offline
- 11 months 3 weeks ago
- 2016-09-03
The user is in the audio group, and it worked before.
aplay -L list only the null soundcard, and mpv prints
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card [ao/alsa] Playback open error: No such file or directory [ao/oss] Can't open audio device /dev/dsp: No such file or directory
Under sudo, aplay lists soundcards correctly, and sound works in mpv.
The contents of /dev/snd seem to be readable and writable only by root:
crw------- 1 root root 116, 2 Mar 2 19:59 controlC0 crw------- 1 root root 116, 7 Mar 2 19:59 controlC1 crw------- 1 root root 116, 6 Mar 2 19:59 hwC0D0 crw------- 1 root root 116, 10 Mar 2 19:59 hwC1D0 crw------- 1 root root 116, 3 Mar 2 19:59 pcmC0D3p crw------- 1 root root 116, 4 Mar 2 19:59 pcmC0D7p crw------- 1 root root 116, 5 Mar 2 19:59 pcmC0D8p crw------- 1 root root 116, 9 Mar 2 19:59 pcmC1D0c crw------- 1 root root 116, 8 Mar 2 21:04 pcmC1D0p crw-rw---- 1 root audio 116, 33 Mar 2 19:59 timer
The problem seems to be fixed. What fixed it I can't tell, but among other things, I updated the system and deleted /var/lib/alsa.