Basics of Alsamixer
ALSA (Advanced Linux Sound Architecture) is the main Linux sound system. Pulse Audio and Jack operate over ALSA.
Alsamixer is a terminal based sound mixer control. It comes with the system and is useful for trouble shooting or checking sound operation. I use it as another low-resource Linux program.
While one can more on Alsamixer below let us look at a more practical use. Again I'll make a shell script and drop this into my /home/pi/bin directory.
The sample code for the above is audio_select.py
Open a text editor and type the following:
lxterminal -e alsamixer
Save as alsamixer.sh. in your bin directory. Do not save as alsamixer or the system will crash as Linux tries to operate both at the same time.
Make the file executable:
~ $ sudo chmod +x alsamixer.sh
This will make a clickable icon for Rox-Filer, etc. Or simply add to your menu system. My Python menu box above calls shell scripts such as this.
Some of the goals of the ALSA project at its inception were automatic configuration of sound-card hardware and graceful handling of multiple sound devices in a system...The sound servers PulseAudio and JACK (low-latency professional-grade audio editing and mixing), the higher-level abstraction APIs OpenAL, SDL audio, etc. work on top of ALSA and implemented sound card device drivers. On Linux systems, ALSA succeeded the older Open Sound System (OSS). Wiki
My Pluggable USB audio adaptor shows up informing me it has been detected and allows on to select audio source and set volume, etc. I have found that just because I select a source doesn't mean it keeps working.
PulseAudio controls underlying ALSA-level volume controls.. To change the ALSA-level volume controls directly, you can do the following:
Open a terminal. (The quickest way is the Ctrl-Alt-T shortcut.)
Enter "alsamixer" and press the Enter key.
You will now see a user interface. In this user interface, you can do the following to quote:
Select your correct sound card using F6 and select F5 to see recording controls.
Move around with left and right arrow keys.
Increase and decrease volume with up and down arrow keys.
Increase and decrease volume for left/right channel individually with "Q", "E", "Z", and "C" keys.
Mute/Unmute with the "M" key. An "MM" means muted, and "OO" means unmuted. Note that a bar can be 100% full but still be muted, so do check for this.
Exit from alsamixer with the Esc key or close terminal.
- Main Light Fast Linux Desktops with Openbox, JWM
- Test Reuse Surplus PC Power Supplies
- Add WBAR Launch Dock to Raspberry Pi
- Add MPG123 Terminal Music Player to Raspberry Pi, Linux
- Basics of Alsamixer Audio Control for Linux
- Add Solid State Hard Drive to Raspberry Pi
- Beep a PC Speaker Add Beeper to Raspberry Pi
- Using FEH Wallpaper Setter Under Linux
- Scrot Lite Weight Screen Shot Software for Linux
- Using Light Weight Beaver Text Editor
- Install Viewnior Image Viewer for Linux
- Zmixer ALSA Sound Control Tutorial
- Tutorial Xinitrc Desktop Manager Control for Linux
- Setup Raspberry Pi Using JWM Window Manager
- Web Master
- Gen. Electronics Homepage
- YouTube Channel
- Current Control Circuits
- Design LM317 Constant Current Circuits
- Constant Current Circuits with the LM334
- Experiments with TL431A Shunt Regulator
- Transistor Circuits
- H-Bridge Motor Control with Power MOSFETs
- Insulated Gate Bipolar Transistor IGBT Circuits
- ULN2003A Darlington Transistor Array with Circuit Examples
- Power Supply Basics
- Basic Power Supply Rectification Tutorial
- Basic Triacs and SCR Projects and Circuits
- Transistor-Zener Diode Regulator Circuits
- Arduino Microcontroller
- Arduino Code Examples
- Rotary Encoder Using Arduino Hardware Interrupts
- Raspberry Pi Single Board Computer
- Raspberry Pi Openbox Linux System
- ADS1115 4-Channel ADC Uses I2C with Raspberry Pi
- +Microchip PIC Controllers
- Microchip PIC12F683 Programming Circuits Tutorial
- Microchip PIC16F628A Assembly
Web site Copyright Lewis Loflin, All rights reserved.
If using this material on another site, please provide a link back to my site.