Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 64293  / 2 Years ago, sun, october 9, 2022, 3:52:28

I need to mute/unmute from the command line.
I found out that I can do it with:



amixer sset Master mute
amixer sset Master unmute


the problem is that the command for unmute is not working (as described also in this bug report: https://bugs.launchpad.net/ubuntu/+source/alsa-utils/+bug/878986)



My question is: is there another way to obtain the same result, taken that amixer is not working?



Furthermore, if I set manually the volume to minimum and then call



amixer sset Master 100%


the volume increases but doesn't switch to maximum, even if the stdout tells:



Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB] [on]
Front Right: Playback 31 [100%] [0.00dB] [on]


Can anybody help me with this?


More From » sound

 Answers
5

Try the following commands in a terminal



amixer -c 0 set Master playback 0% mute
amixer -c 0 set Master playback 100% unmute


This should ensure all outputs are controlled. It's likely with your posted commands the reason the volume is not 100% is that the amixer does not release all outputs eg headphones or any other sound outputs at the same time.


[#42184] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rowbris

Total Points: 419
Total Questions: 122
Total Answers: 101

Location: Norway
Member since Mon, May 23, 2022
2 Years ago
;