mixer_settings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mixer_settings [2012/02/03 23:03] – Add other usecases paulf | mixer_settings [2012/04/05 10:58] (current) – torwag | ||
---|---|---|---|
Line 56: | Line 56: | ||
* '' | * '' | ||
Tweak '' | Tweak '' | ||
+ | |||
+ | ==== Save and Restore different sound settings | ||
+ | Don't frighten you do not need to memorize all the above settings. | ||
+ | If you select the settings in alsamixer according to your needs type on the command line: | ||
+ | < | ||
+ | # alsactl store -f < | ||
+ | </code | ||
+ | e.g. | ||
+ | < | ||
+ | # alsactl store -f headphones.state | ||
+ | </ | ||
+ | Now, if you want to switch over to your headphone settings next time simply type | ||
+ | < | ||
+ | alsactl restore -f headphones.state | ||
+ | </ | ||
+ | Hence, you can save settings for internal speakers, headphones, mute all, etc. | ||
+ | If you do not want to type all the above to restore just create a little shell script (name it e.g. setsound.sh) to do that for you. | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | # Set alsa sound to a predefined state | ||
+ | # save state via | ||
+ | # alsactl store -f < | ||
+ | # call this this by | ||
+ | # ./setsound headphones | ||
+ | |||
+ | alsactl restore -f {$1}.state | ||
+ | </ | ||
+ | make the file executable | ||
+ | < | ||
+ | # chmod +x ./ | ||
+ | </ | ||
+ | now you can set sound settings by simply typing | ||
+ | < | ||
+ | # ./ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ |
mixer_settings.1328306604.txt.gz · Last modified: 2012/02/03 23:03 by paulf