Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save and load mixer settings #36

Open
Merlin04 opened this issue Mar 27, 2023 · 1 comment
Open

Save and load mixer settings #36

Merlin04 opened this issue Mar 27, 2023 · 1 comment

Comments

@Merlin04
Copy link

When I disconnect and reconnect my Scarlett 18i6, it loses all the mixer settings I applied with this app. Is it possible to restore them (either using scarlett-mixer or some other tool)?

@x42
Copy link
Owner

x42 commented Mar 27, 2023

On GNU/Linux alsactl does this. https://linux.die.net/man/1/alsactl

Usually when a machine is shut-down mixer-settings are saved, and when a device is connected the settings are restored. on System-V /etc/init.d/alsa-utils handles this. Also on most systems a udev rule restores the settings when a device is hotplugged.

This works well with onboard (PCI[e]) soundcards, but for USB devices there is one problem. When a device is disconnected it is too late to query and save the settings.

On debian, you can shut down (or reboot) the machine with the USB soundcard connected. That way the state should be saved to /var/lib/alsa/asound.state, and from now on will be restored when the device is connected.

Other than that you can manually save and restore it: sudo alsactl store <card number> , sudo alsactl restore <card number> , replace the card number with the number shown by aplay --list-devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants