Save and load mixer settings
Opened this issue · 1 comments
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)?
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