I am trying to mute and unmute using amixer command at terminal in Linux.
The command used to mute:
amixer sset 'Master' mute
AND
amixer set Master mute
Both worked...
But when I try to unmute:
amixer sset 'Master' unmute
AND
amixer set Master unmute
It doesn't work and volume is still mute.
Both unmute code lines tried return this output in the terminal:
Simple mixer control 'Master',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 87 Mono: Playback 87 [100%] [0.00dB] [on]
How can I make amixer works to unmute and why it doesn't toggle off? It is amixer the better command to control volume in Linux OS*? If not what tool better instead of amixer?
*Note: Linux OS in general, because it should work to all Linux distro with the less chance to incompatibility and code variation to mute/unmute sound.
'
). You need quotes only when you’re using shell variables, command substitutions, and strings with certain non-alphanumeric characters. – Scott Oct 24 '18 at 4:46