public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* amixer help
@  Glenn At Home
   ` Chime Hart
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Glenn At Home @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: amixer help
   amixer help Glenn At Home
@  ` Chime Hart
   ` Willem van der Walt
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Chime Hart @  UTC (permalink / raw)
  To: Glenn At Home, Speakup is a screen review system for Linux.

Well Glen, hopefully this will at least handle an unmute.
And this begins with where this script is run from on  my Debian machine.
type /usr/local/bin/volume.py
import subprocess
import alsaaudio
from subprocess import call


cards =  len(alsaaudio.cards())
for card in range(cards):
   mixer = alsaaudio.mixers(cardindex=card,device='default')
   for mix in mixer:
     result = alsaaudio.Mixer(control=mix, id=0, cardindex=card, 
device='default')
     if len(result.switchcap()) > 0:
       try:
         result.setmute(0)
       except alsaaudio.ALSAAudioError as error:
         pass
Back again live, I am not a programmer-and-I didn't write this, but I hope it 
will help you
Chime

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: amixer help
   amixer help Glenn At Home
   ` Chime Hart
@  ` Willem van der Walt
     ` Gregory Nowak
   ` Jude DaShiell
   ` Janina Sajka
  3 siblings, 1 reply; 6+ messages in thread
From: Willem van der Walt @  UTC (permalink / raw)
  To: Glenn At Home, Speakup is a screen review system for Linux.

Hi,
I do not think there is a global command for all controls at once, but:
amixer set Master 100%
Should at least set your master volume.
FWIW, Willem


On Thu, 4 Apr 2019, Glenn At Home wrote:

> [The e-mail server of the sender could not be verified (SPF Record)]
>
> 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@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: amixer help
   ` Willem van der Walt
@    ` Gregory Nowak
  0 siblings, 0 replies; 6+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

On Fri, Apr 05, 2019 at 07:32:44AM +0200, Willem van der Walt wrote:
> Hi,
> I do not think there is a global command for all controls at once, but:
> amixer set Master 100%
> Should at least set your master volume.

Make that:
amixer set Master 100% unmute

Setting the volume to full doesn't help if it's still muted. You'll
likely also want:
amixer set PCM 60% unmute

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-manager@EU.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: amixer help
   amixer help Glenn At Home
   ` Chime Hart
   ` Willem van der Walt
@  ` Jude DaShiell
   ` Janina Sajka
  3 siblings, 0 replies; 6+ messages in thread
From: Jude DaShiell @  UTC (permalink / raw)
  To: Glenn At Home, Speakup is a screen review system for Linux.

amixer set Master 100%
and the m in master has to be uppercase.
After that alsactl store should preserve your settings if all else is
working correctly.

On Thu, 4 Apr 2019, Glenn At Home wrote:

> Date: Thu, 4 Apr 2019 17:27:11
> From: Glenn At Home <GlennErvin@cableone.net>
> To: Speakup is a screen review system for Linux. <speakup@linux-speakup.org>
> Subject: amixer help
>
> 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@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>

-- 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: amixer help
   amixer help Glenn At Home
                   ` (2 preceding siblings ...)
   ` Jude DaShiell
@  ` Janina Sajka
  3 siblings, 0 replies; 6+ messages in thread
From: Janina Sajka @  UTC (permalink / raw)
  To: Glenn At Home, Speakup is a screen review system for Linux.

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@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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 amixer help Glenn At Home
 ` Chime Hart
 ` Willem van der Walt
   ` Gregory Nowak
 ` Jude DaShiell
 ` Janina Sajka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).