Quite often my sound settings have changed when I resume from suspend. (I use a USB headset, so maybe the sound settings get restored before the headset is available).
Either way, it would be nice to be able to run a script that would record the current sound setttings to a text file, and later a second script could read in that text file to restore the sound settings. The scripts would cover at least:
- which audio devices to use for input and output
- what input and output volume was set
So something like:
dump-sound-settings sound-settings.txt
load-sound-settings sound-settings.txt
Does anyone know of such a script? Or what commands it might be possible to write such a script using? (I have looked at pacmd, and while it can tell you what is going on and set settings, I have always had to manually copy bits from the output of the current state to setting it in a second command, rather than just having a file it can write to and read from without editing).
I am using Ubuntu 12.04 with the standard pulse audio sound stack.