amixer help
Janina Sajka
janina at rednote.net
Fri Apr 5 15:42:16 EDT 2019
Hi, Glenn:
I'm not aware of a way to manage "all" through a single command. Maybe
someone has written a tool like that. Part of the problem is that each
sound card is different, providing more or fewer interface options. And,
if you have more than one card, like I do, things get even more complex.
Here's how to enumerate the cards you have:
aplay -l
Now, for each individual card, where x stands for the card number, you can query available controls like so:
amixer -Cx controls
You'l find some cards have lots of controls, and others very few. If
you're looking only for volume, grep is your friend like so by way of
example:
amixer -c2 controls |grep -i volume
Of course, if you have but one card, you don't need the -c switch.
Now, to get the current setting for any control, again where x
identifies the card, and y identifies the numeric id you discovered with
the grep above, do like so:
amixer -cx cget numid=y
Lastly, to set the volume:
amixer -cx cset numid=y [value]
hth
Janina
Glenn At Home writes:
> Hi,
> I'm reading the amixer manpage and I'm unclear on how to set the volume output to 100%.
> Is there a simple command to make sure that all is unmuted and at 100%?
> Thanks
>
>
> Sent From My Tabletop
> N0YJV shade tree computer guy
> _______________________________________________
> Speakup mailing list
> Speakup at linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
--
Janina Sajka
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
More information about the Speakup
mailing list