I have seen many questions throughout online, but I could only set the volumes of input and output audio devices that are selected as default in the sound settings of Ubuntu system.
These commands are as below:
amixer -D pulse sset Master mute
amixer -D pulse sset Master unmute
amixer -D pulse sset Master x%
amixer -D pulse sset Capture x%
No other command works at all. For example, using this instruction, I tried the command:
amixer -c 3 -- set Master playback -20dB
only to get replied:
amixer: Unable to find simple control 'Master',0
I have several input and output devices connected to my ubuntu system and I want to control the volume of all the devices from command line. Is that possible? How is it possible from command line to set the volume of the devices that are not selected as the default in the ubuntu audio settings?
alsamixer
command is also useful.