The general rule of thumb of storing alsamixer settings is to run the following command:
sudo alsactl store
If it doesn't work, like in my case, then we have to do the following things:
-
Open
alsamixeras superuser:sudo alsamixer. -
Change whatever you want.
-
Exit alsamixer and run:
sudo alsactl --file ~/.config/asound.state store
This creates a asound.state file in your home directory's.configfolder and stores the currentalsamixersettings in it. -
Now we create a
.desktopfile in the /.config/autostart directory so that ourasound.statefile can be loaded each time our machine reboots, thus making ouralsamixeravailable the way we want it to.
We now run:sudo nano ~/.config/autostart/alsarestore.desktop
This will create and open our.desktopfile in thenanoeditor. We put the following lines in the.desktopfile:[Desktop Entry]
Type=Application Terminal=false Name=alsarestore Exec=alsactl --file ~/.config/asound.state restore
Save and exit and our work is done!
I hope this process works for everyone as it did for me. I found the solution in askubuntu. Hopefully, it will make the Tutorials & Guides section richer and friendlier...
Good days!![]()