AMIXER(1)

โœจ AMIXER(1) โ€” the ALSA mixer manual, bestie ๐ŸŽ€

Okay so amixer is literally the command-line mixer for the ALSA soundcard driver, and it's giving main character energy ๐Ÿ’… NAME, SYNOPSIS, DESCRIPTION, and all the rest, let's gooo ๐Ÿฆ‹

โœจ NAME โœจ

amixer โ€” command-line mixer for ALSA soundcard driver ๐ŸŒธ

โœจ SYNOPSIS โœจ

amixer [-option] [cmd]

โœจ DESCRIPTION โœจ

Okay bestie, so amixer lets you control the mixer for the ALSA soundcard driver straight from the command line ๐ŸŽง And it supports multiple soundcards, so you're not stuck with just one, iykyk โœจ

Running amixer with no arguments shows you the current mixer settings for the default soundcard and device. It's lowkey the best way to see which simple mixer controls you can actually use ๐Ÿซถ

โœจ COMMANDS โœจ

  • help โ€” shows the syntax ๐Ÿ’–
  • info โ€” shows info about a mixer device ๐Ÿ”ฅ
  • scontrols โ€” shows a full list of simple mixer controls ๐ŸŒˆ
  • scontents โ€” shows a full list of simple mixer controls with their contents ๐Ÿ’œ
  • set or sset <SCONTROL> <PARAMETER> ... โ€” sets the simple mixer control contents ๐ŸŽ€

Ngl this one is the star of the show. The parameter can be a volume as a percentage from 0% to 100% with the % suffix, a dB gain with the dB suffix (like -12.5dB), or an exact hardware value. dB gain only works on mixer elements that actually have dB info, so keep that in mind ๐Ÿ™ˆ When you tack a plus + or minus - onto the volume value, it bumps the volume up or down from whatever it currently is, respectively โœจ

The parameters cap, nocap, mute, unmute, and toggle change capture (recording) and muting for the group you specified ๐Ÿฆ‹

You can slip optional modifiers in as extra parameters before the value. playback and capture pick the stream direction, and front, frontleft, frontright, frontcenter, center, rear, rearright, rearleft, and woofer pick which channels get changed ๐Ÿ’…

You must specify a simple mixer control, and only one device can be controlled at a time, so no multitasking here, bestie ๐Ÿซถ

  • get or sget <SCONTROL> โ€” shows the simple mixer control contents ๐Ÿ‘‘

You have to specify a simple mixer control, and again only one device can be controlled at a time ๐ŸŒธ

  • controls โ€” shows a full list of card controls ๐Ÿงš
  • contents โ€” shows a full list of card controls with their contents ๐Ÿ“
  • cset <CONTROL> <PARAMETER> ... โ€” sets the card control contents ๐Ÿ’–

The identifier has these components: iface, name, index, device, subdevice, numid. The next argument specifies the value of the control โœจ

  • cget <CONTROL> โ€” shows the card control contents ๐Ÿ”ฅ

The identifier uses the same syntax as the cset command ๐Ÿซถ

โœจ ADVANCED COMMANDS โœจ

  • sevents โ€” shows the events for the simple mixer controls ๐Ÿ’œ
  • events โ€” shows the events for the mixer controls ๐ŸŒˆ

โœจ OPTIONS โœจ

  • -c card โ€” picks the card number you want to control ๐ŸŽ€

The device name made from this parameter looks like hw:N, where N is the card number you gave ๐Ÿ’…

  • -D device โ€” picks the device name to control ๐Ÿฆ‹

If you don't set it, the default control name is 'default' ๐ŸŒธ

  • -s, --stdin โ€” reads from stdin and runs the command on each line, one after another ๐Ÿซถ

When this option is on, the command in the command-line arguments gets ignored, so don't be confused ๐Ÿ™ˆ

Only sset and cset are accepted. Every other command gets ignored. Commands aimed at unmatched ids also get ignored, and no errors are thrown either ๐Ÿ’€

  • -f file, --file file โ€” reads from the given file and runs the command on each line, one after another ๐Ÿงš

When this option is on, the command in the command-line arguments gets ignored, bestie ๐Ÿ’–

Only sset and cset are accepted. Other commands are ignored. Commands to unmatched ids are ignored too, with no errors ๐Ÿ“

  • -h โ€” help, shows the syntax โœจ
  • -q โ€” quiet mode, so it doesn't show the results of your changes ๐Ÿคซ
  • -R โ€” uses the raw value to evaluate the percentage representation. This is the default mode, so you get it without asking ๐Ÿ‘‘
  • -M โ€” uses the mapped volume to evaluate the percentage representation, just like alsamixer, so it feels more natural to human ears ๐ŸŽง

โœจ EXAMPLES โœจ

amixer -c 1 sset Line,0 80%,40% unmute cap

This sets the second soundcard's left line input volume to 80% and the right line input to 40%, unmutes it, and selects it as a source for capture (recording) ๐ŸŽค

amixer -c 1 -- sset Master playback -20dB

This sets the master volume of the second card to -20dB. If the master has multiple channels, they're all set to the same value ๐Ÿ”Š

amixer -c 1 set PCM 2dB+

This increases the PCM volume of the second card by 2dB. When both playback and capture volumes exist, it gets applied to both of them ๐Ÿ“ˆ

amixer -c 2 cset iface=MIXER,name='Line Playback Volume",index=1 40%

This sets the third soundcard's second line playback volume(s) to 40% ๐ŸŒˆ

amixer -c 2 cset numid=34 40%

This sets the 34th soundcard element to 40% ๐Ÿ’ซ

โœจ SEE ALSO โœจ

โœจ BUGS โœจ

No bugs known, bestie ๐Ÿฅณ

โœจ AUTHOR โœจ

amixer is by Jaroslav Kysela <perex@perex.cz>. This document is by Paul Winkler <zarmzarm@erols.com> and Jaroslav Kysela <perex@perex.cz> ๐Ÿ’œ


Bye bestie, this manual was dated 11 Aug 2000 and came from the amixer(1) pages ๐ŸŒธ๐Ÿ’– Stay iconic! โœจ