Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Restore alsa configuration?

Writer Olivia Zamora

I am not able to restore alsa configuration. Please help.

I am storing the current configuration as

sudo alsactl --file asound.state store

I am trying to re-store the same configuration as

sudo alsactl --file asound.state restore

But no effect is taking place.

4

2 Answers

I did as follows and it worked for me.

Store sound card settings.

sudo alsactl --file asound.state store

Edit asound.state file as per my requirement (eg. disabling speaker and enabling headset).

Copy the edited asound.state on the original configuration file.

cp asound.state /var/lib/alsa/asound.state

Reboot the system. And it worked.

I am still confused that when I used amixer commnads to disable speaker and enable headset, and after that I Store the configuration to asound.state file, then why I am getting the original configuration instead I should get the changed configuration with speaker disabled and headset enabled?

To save alsa setting, use following command.

sudo alsactl store

To verify the setting is saved you can check the file 'asound.state' which is stored at location /var/lib/alsa/asound.state (use locate command if you want to know the location of the file in your system)

To restore the alsa setting, use following command

sudo alsactl restore

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy