Alsamixer
Encyclopedia
alsamixer is a graphical mixer program for the Advanced Linux Sound Architecture (ALSA). It is used to configure sound settings and to adjust the volume. It has an ncurses
Ncurses
ncurses is a programming library that provides an API which allows the programmer to write text user interfaces in a terminal-independent manner. It is a toolkit for developing "GUI-like" application software that runs under a terminal emulator...

 user interface and does not require the X Window System
X Window System
The X window system is a computer software system and network protocol that provides a basis for graphical user interfaces and rich input device capability for networked computers...

. It supports multiple sound card
Sound card
A sound card is an internal computer expansion card that facilitates the input and output of audio signals to and from a computer under control of computer programs. The term sound card is also applied to external audio interfaces that use software to generate sound, as opposed to using hardware...

s with multiple devices.

Command Line Options

Option Description
-h, --help Help: show available flags.
-c , --card= Select the soundcard to use, if you have more than one. Cards are numbered from 0 (the default).
-D , --device= Select the mixer device to control.
-a , --abstraction= Toggle the usage of colors.
-g, --no-color Toggle the usage of colors.
-V , --view= Select the starting view mode, either playback, capture or all.

Mixer Views

The top-left corner of alsamixer is the area to show some basic information: the card name, the mixer chip name, the current view mode and the currently selected mixer item. When the mixer item is switched off, [Off] is displayed in its name.

Volume bars are located below the basic information area. You can scroll left/right when all controls can't be put in a single screen. The name of each control is shown in the bottom below the volume bars. The currently selected item is drawn in red and/or emphasized.

Each mixer control with volume capability shows a box and the current volume filled in that box. The volume percentages are displayed below the volume bar for left and right channels. For a mono control, only one value is shown there.

When a mixer control is turned off, M (mute) appears below the volume bar. When it's turned on, O in green appears instead. You can toggle the switch via m key.

When a mixer control has capture capability, the capture flag appears below the volume bar, too. When the capture is turned off, ------- is shown. CAPTURE in red appears when the capture switch is turned on. In addition, L and R letters appear in left and right side to indicate that left and the right channels are turned on.

Some controls have the enumeration list, and don't show boxes but only texts which indicate the currently active item. You can change the item via up/down keys.

View Modes

alsamixer has three view modes: playback, capture and all. In the playback view, only the controls related with playback are shown. Similarly, only the controls for capture (recording) are shown in the capture view. The all view mode shows all controls. The current view mode is displayed in the top-left position together with the mixer name, etc.

The default view mode is the playback view. You can change it via -V option.

Each view mode can be switched via keyboard commands, too. See the next section.

Keyboard Commands

alsamixer recognizes the following keyboard commands to control the soundcard. Commands shown here in upper case can also be given in lower case. To be reminded of these keystrokes, hit the h key.

General Controls

The Left and right arrow keys are used to select the channel (or device, depending on your preferred terminology). You can also use n ("next") and p ("previous").

The Up and Down Arrows control the volume for the currently selected device. You can also use + or - for the same purpose. Both the left and right signals are affected. To control them independently, use Q to increase and Z to decrease the volume on the left channel. E increases the volume of the right channel and C decreases it.

M toggles muting for the current channel (both left and right). If the hardware supports it, you can mute left and right independently by using , (or <) and . (or >) respectively.

SPACE enables recording for the current channel. If any other channels have recording enabled, they will have their recording function disabled first. This only works for valid input channels, of course.

L re-draws the screen.

View Mode Controls

Function key
Function key
A function key is a key on a computer or terminal keyboard which can be programmed so as to cause an operating system command interpreter or application program to perform certain actions...

s are used to change view modes. You can switch to the help mode and the proc info mode via F1 and F2 keys, respectively. On terminals that can't use function keys like GNOME Terminal
GNOME Terminal
GNOME Terminal is a terminal emulator for the GNOME desktop environment written by Havoc Pennington and others. Terminal emulators allow users to execute commands using a real UNIX shell while remaining on their graphical desktop.-Features:...

, ? and / keys can be used alternatively for help and proc modes.

F3, F4 and F5 keys are used to switch to playback, capture and all view mode, respectively. Tab key
Tab key
Tab key on a keyboard is used to advance the cursor to the next tab stop.- Origin :The word tab derives from the word tabulate, which means "to arrange data in a tabular, or table, form"...

 toggles the current view mode circularly.

Exiting

Quit the program with ALT+Q, or by hitting the Esc key
Esc key
On computer keyboards, the Esc key is a key labeled Esc or Escape that is used to generate the ASCII Escape character , the character code traditionally used to initiate an escape sequence...

. Please note that you might need to hit ESC twice on some terminals since it's regarded as a prefix key.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK