I have installed the latest DietPi distro in my RPi 3 + IQaudIO Pi-DAC Pro boundle.
As default behavior, the volume level is not saved and always returns at 100% after a reboot.
Using the command alsactl store, I was able to save to alsamixer another default level, but I would like to automatically store the last volume level used for playback (as done by IQaudIO RoonReady certified image).
Is it possible also with DietPi?
Is the alsamixer name for main volume ‘PCM’?
If so, our boot script is causing the volume to reset to 100% during boot. It’s designed to reset onboard RPi volume levels.
Try removing the following code from:
/DietPi/dietpi/boot
Remove these lines
#RPi set volume to -0.1db | We have to do it here because sound$
if (( $G_HW_MODEL < 10 )); then
which amixer &> /dev/null && amixer set PCM -- -010 &
fi
Set volume to desired level, then reboot system and recheck.
Maybe it’s because I turn-off the DAC by simply unplug the USB.
Probably the IQaudIO certified image saves somewhere the volume level each time I change it, and not only at shoutdown.
If I perform a clean shutdown, the volume level is properly saved.
When I simply turn-off the device, it is not.
That means DietPi distro saves the volume only at shutdown and not immediately when changed.