How to save the alsamixer settings

i have audio comming both from the speakers and the headphones,
so i went to alsamixer chose my soundcard and enabled automute.
on the next reboot it reverts to default.
how do i save the settings?
the reason i’m asking is that i saw many solutios provided and not sure which one to apply;

is it: “sudo alsactl store”

and there is this solution:

alsactl --file ~/.config/asound.state store
alsactl --file ~/.config/asound.state restore
This can be further improved with placing the second line, the restore command into a .desktop file.
You will need to run nano ~/.config/autostart/alsarestore.desktop, which will open nano text editor and create ~/.config/autostart/alsarestore.desktop file. 
Entries in ~/.config/autostart/ directory are used to autostart programs and services for specific user on startup/graphical login.

The contents of the .desktop file should be the following:

[Desktop Entry]
Exec=alsactl --file ~/.config/asound.state restore

what do you think?

Yes, the command

sudo alsactl store 

will cause the current settings to persist after reboot.

1 Like

it worked.
Thank you.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.