I'm allways forgeting important things, so here are some howto's and non trivial expiriences.


There is lack of information how to use amixer in manual so that simply script to switch betwen headphones and external speakers turned from 5 minutes to 15.

For my configuration I need to switch on/off one channel in two outputs. Frist one need to get NUMID's or names of controls to be changed. So I've executed "amixer controls" and write down these witch ended with "Switch". Execute "amixer scontrols" should show names that can be used as well. Here are some examples how to use amixer:


Turn on left channel of the 4th control:
amixer -c 0 cset numid=4 on,off
Turn on both channels:
amixer -c 0 cset numid=4 on
Turn on Headphones using name:
amixer -c 0 sset Headphone on