amixer command in Linux with Examples

amixer is a command-line mixer for ALSA(Advanced Linux Sound Architecture) sound-card driver. amixer can support multiple soundcards. amixer with no arguments will display the current mixer settings for the default soundcard as well as the device. This is a good way to see a list of the simple mixer controls that you can use.

Syntax:

amixer [-option] [command]

Commands and Options:

  • -h or –help : Displays help and then exits.

  • –info : Displays the info and then exits.

  • –scontols : Displays a complete list of simple controls and then exits.

  • –scontents : Shows a complete list of simple mixer controls and their contents as well.

  • set or sset : Sets the contents of the simple mixer.

  • get or sget : Shows the control contents of the simple mixer.

  • controls : Displays a complete list of the card controls.

  • contents : Displays a complete list of the card controls with their contents as well.

  • cset : Is used to set the card controls.

  • cget : It shows the card control contents. The identifier has the same syntax as for the cset command.

  • -c : Selects the card number that needs to be controlled.

  • -D : Selects the device name that needs to be controlled.

  • -s or –stdin : Read from stdin and execute each command sequentially.

  • -q : Does not display the result of the changes.

  • -R : Uses the raw value for evaluating the percentage representation which is also the default mode.

  • -M : Uses the mapped volume for evaluating the percentage representation like alsamixer, to be more natural for the human ear.

  • -v : Displays the version.



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.