I was disappointed to see that my Pi 5 running Bookworm OS didn’t save my Alsamixer audio settings past the reboot, even after adjusting the settings and typing:
sudo alsactl store
I troubleshooted this from several angles with the help of Copilot AI. I downloaded pavucontrol with:
sudo apt install pavucontrol
However, I did not see the settings I wanted in pavucontrol, so I then went back to alsamixer, adjusted the settings, and saved the settings again with sudo alsactl store. And then the settings were saved after the next reboot!
So downloading pavucontrol may have compelled Alsamixer to actually store its settings, however I have not yet attempted to replicate these steps. If anyone else is struggling with this issue on a Raspberry Pi 5 running Bookworm, please give it a shot and let us all know if that fixed the issue.
The other thing I tried was typing:
sudo chmod 644 /var/lib/alsa/asound.state
however that didn’t seem to make a difference on its own. I can’t yet completely rule out if that helped. I entered that prior to downloading pavucontrol.