geoffreybennett / alsa-scarlett-gui

alsa-scarlett-gui is a Gtk4 GUI for the ALSA controls presented by the Linux kernel Focusrite Scarlett2 Mixer Driver
628 stars 36 forks source link

Standalone mode, settings lost at USB reconnect. #130

Open alarmix opened 3 months ago

alarmix commented 3 months ago

Confirmation

I confirm that I have read the FAQ.

Issue Category

Help Request

Environment Details

Linux Distribution and Version

Kernel Version

Focusrite Interface Series and Model

Audio System

PipeWire

Issue Description

Standalone mode is working perfectly ie. mixer/routing/etc settings all remain active during normal use, without PC. But when I disconnect the USB (any way, ie. disconnecting the USB cable, or turning off the scarlett or turning off the computer), at the next USB reconnection, settings revert back to some previous state and I have to start the gui, and load the settings from file or manually set them again. For example, if I turn off everything (scarlett and PC), disconnect the USB cable, then turn back on the scarlett, it is in the desired state. But as soon as I reconnect the USB, some settings are set back to a previous state. Any idea? Thanks, Peter

geoffreybennett commented 3 months ago

Hi @alarmix,

Probably alsactl store was run sometime when you shut down your computer and saved the settings in /var/lib/alsa/asound.state and these settings are restored automatically with alsactl restore by the alsa-state services whenever you plug your interface in.

Try disabling the alsa-state service or removing the state file, and let me know if that helps!

Regards, Geoffrey.

alarmix commented 3 months ago

Hi Geoffrey, removed the state file, problem solved. If it comes back later, I'll disable the service too. Thanks, Peter