I am trying to mute and unmute using amixer command at terminal in Linux.
The command used to mute:
amixer sset 'Master' mute
amixer set Master mute
But when I try to unmute:
amixer sset 'Master' unmute
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.