amixer allows command-line control of the mixer for the ALSA soundcard driver. amixer supports multiple soundcards. amixer with no arguments will display the current mixer settings for the default soundcard and device. This is a good way to see a list of the simple mixer controls you can use.
Questions tagged [amixer]
9 questions
15
votes
4 answers
Set volume using php exec and amixer
I wrote a little php script to control the volume of my local machine with alsa:

Markus Kottländer
- 8,228
- 4
- 37
- 61
3
votes
1 answer
What's the difference between sset and cset when I use amixer?
amixer has 2 groups of commands:
$ amixer -h
...
Available commands:
scontrols show all mixer simple controls
scontents show contents of all mixer simple controls (default command)
sset sID P set contents for one mixer simple…

shadaszhao
- 31
- 1
- 2
2
votes
1 answer
How to use alsa library API to work with Headphone and Speaker?
I want to implement (mute/unmute and volume up/down) for Speaker and Headphone using c program.Using amixer command line utility as shown in this link…

raj123
- 564
- 2
- 10
- 27
1
vote
0 answers
General way to select alsa output from script
I need a general way to select audio output of ALSA from bash or sh script.
Script should work on different platforms, no knowledge about installed audio devices.
So best should be to have 2 scripts:
1) output list of audio outputs and
2) script to…

nckm
- 103
- 1
- 10
1
vote
1 answer
amixer: invalid command
I am trying to change the volume of my RaspberryPi using this small code snippet:
import os
def setVolume(vol,prefix):
cmd = "amixer -q -M set PCM " + vol + "%"
print(prefix+"Changing volume to " + vol + "%")
…

Samscryer
- 25
- 3
0
votes
1 answer
using amixer to set audio makes left and right unbalanced
I am using a Logitech keyboard which has a scroll-bar to set volume, which allow for some nifty macros on Linux. However, using it to set volume with amixer -q set Master -D pulse 1%+ makes the left/right channels unbalanced.
The image show the…

Jakob Guldberg Aaes
- 630
- 6
- 16
0
votes
0 answers
Raspbian OS: Amixer PulseAudio: Unable to connect: Connection refused
I am facing a problem running amixer shell command (in python) on crontab. If I run the amixer command on my terminal, it runs. Also works if I run the python file manually using
$ python3 myPythonScript.py
Following is the python snippet:
import…

Aditya Sahu
- 13
- 1
0
votes
1 answer
"Raspberry Pi 3 No sound output over hdmi"
I connected the Raspberry to my tv via HDMI cable but no sound came out, i tried to install libraries:
sudo apt-get install alsa-utils
sudo apt-get install mpg321
sudo apt-get install lame
and loaded the driver:
sudo modprobe snd_bcm2835
and…

wilmer mendez
- 1
- 1
-1
votes
2 answers
Exit from an if [Python]
I can't exit from this if construct
#!/usr/bin/python2.7
import os
import re
import time
global state
#print status_on.group()
def main():
get_current_jack_status = """amixer -c1 contents | grep -A 2 'Headphone Jack'"""
output =…

dreamwhite
- 116
- 8