Switching on/off the sound from the command line

Paul Smith phhs80 at gmail.com
Mon Oct 17 15:02:21 UTC 2005


On 10/17/05, Craig McLean <craig at fukka.co.uk> wrote:
> > Is there some simple way of switching on/off the sound from the command line?
> >
>
> If you are using alsa, then "amixer set Master mute" should do the
> trick. 'man amixer' for more information.

Thanks, Craig and Andy. The way suggested by Craig works fine. To
unmute, one has to replace "mute" by "unmute" in the command

amixer set Master mute

Andy's script has the following problem:

$ ./volume --mute
: bad interpreter: No such file or directory
$

Paul




More information about the fedora-list mailing list