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:
#!/bin/sh lxterminal -e alsamixer exit
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.
For more see https://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture.
- 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
- Web Master
- Gen. Electronics
- YouTube Channel
- Arduino Projects
- Raspberry Pi & Linux
- PIC18F2550 in C
- PIC16F628A Assembly
- PICAXE Projects
- Bristol VA/TN
- US Constitution
- Religious Themes
- Religion Archive 1