[resolved v142] alsamixer fails to load

Hello,
I seem not to be able to run alsamixer on any of my devices with dietpi.
I always receive the error:

cannot open mixer: Invalid argument

This is really annoying, and to change my audio settings I had to fiddle with amixer, with the result that what would have been a 2 clicks task in alsamixer took me 15 minutes from the cli. :smiley:

Will alsamixer ever work again in dietpi? :slight_smile:

Hi,

Thanks for report, i’ll take a look and see if we can get this resolved: https://github.com/Fourdee/DietPi/issues/705

That would be awesome! Thanks! :slight_smile:

Alsamixer is fixed in DietPi v142 update.

In the mean time, you can fix this now, by removing the device line from ctl.!default {} in /etc/asound.conf

eg:

pcm.!default {
    type hw
    card $SOUNDCARD_TARGET_CARD
    device $SOUNDCARD_TARGET_DEVICE
}
ctl.!default {
    type hw
    card $SOUNDCARD_TARGET_CARD
    #device $SOUNDCARD_TARGET_CARD # REMOVE THIS LINE
}

I’ve just tried this on my OPi PC, and it worked!
THANK YOU! THANK YOU! THANK YOU!