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 ๐setorsset <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 ๐ซถ
getorsget <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 likealsamixer, 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 โจ
alsamixer(1)๐ฆ
โจ 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! โจ
๐ฆ where this page comes from
- arch rolling: alsa-utils 1.2.16-1 ยท GPL-2.0-or-later
- centos-stream 10: alsa-utils 1.2.16-1.el10 ยท GPL-2.0-or-later
- centos-stream 9: alsa-utils 1.2.16-1.el9 ยท GPLv2+
- fedora 43: alsa-utils 1.2.16-1.fc43 ยท GPL-2.0-or-later
- fedora 44: alsa-utils 1.2.16-1.fc44 ยท GPL-2.0-or-later
- nixpkgs unstable: alsa-utils 1.2.16
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms