[LAU] RME HDSP: X11-less mixer state restoring

Paul Davis paul at linuxaudiosystems.com
Sun Apr 3 16:28:19 UTC 2011


On Sun, Apr 3, 2011 at 12:21 PM, Andrew Gaydenko <a at gaydenko.com> wrote:
> On Sunday 03 April 2011 19:59:30 Paul Davis wrote:
>> On Sun, Apr 3, 2011 at 11:51 AM, Andrew Gaydenko <a at gaydenko.com> wrote:
>> > How to?
>>
>> example script below. its not commented or explained, because i wrote
>> it for me alone.
>
> Paul, thanks! I'm not bash guru at all, but will try to dig in your script. In
> fact, if I understand correctly, it isn't a restoring (to restore we must at
> first save a state, and it is impossible to read current state), but it is a
> setting.

store the state of the n'th card (starting from zero) in a file called
foobar: alsactl -f foobar store N
restore the state of the nth card (starting from zero) from a file
called foobar: alsactl -f foobar restore N

a properly configured system does this for all cards at system
shutdown and at boot time.

my script allows more specific kinds of setup to be done without any
reference to any existing state.

--p


More information about the Linux-audio-user mailing list