I have a usb dac and I would like to use ALSA instead of Pulseaudio.
First, I stopped the pulseaudio permanently:
echo autospawn=no > ~/.pulse/client.conf
pulseaudio -k
Alsamixer gets cannot open mixer: No such file or directory error. Creating basic .asoundrc file with my default "hardware output" device solved this issue. Unmuting IEC958 (SPDIF), sound is working properly now.
But there is big issue for me. Output is muted after logout (rebooting does not cause this problem). Login back doesn't restoring settings from alsamixer asound.state file - IEC958 (SPDIF) is muted...
Only running sudo alsactl restore
restore this settings properly. Adding user to audio group did not help.
Should I prepare alsactl restore
script for logging or something other I missing?
alsactl restore
should be run automatically, but it appears you did not deactive PulseAudio completely. – CL. Oct 22 '14 at 12:06alsactl restore
in the first place. – CL. Oct 23 '14 at 10:23