Ubuntu – Using Amixer to control volume

14.04volume-control

I'm running 14.04, and I was told I could use amixer to control volume via the command line. For example, to mute sound you would use

amixer set Master mute

The output for me is

amixer: Unable to find simple control 'Master',0 

So I did some man reading and found out I needed to replace Master with the name of my laptop's mixer control. Typing amixer returns:

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

So naturally, I enter amixer set IEC958 mute but all I get is

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

Once again. I've tried sset and some other commands but every single one returns the same text. Also, why is there no "Master" or "Speaker" controls? Is there something I'm doing wrong?

Best Answer

  • If you want to use amixer to control the volume, this should work in a terminal:

    amixer -D pulse sset Master 0%
    

    (0% to mute or use any percentage you like)

    To reduce/increase the volume, you can add - or + after % (but that doesn't work to increase the sound beyond 100%).