Set Volume on Raspberry PI

This sets output to 100%, which seems the best for driving an amplifier:

amixer set PCM -- 100%

use smaller numbers to get quieter, and 0% to mute. Thanks to Joe (see comments) for finding a simpler solution than my original post.

15 thoughts on “Set Volume on Raspberry PI

  1. This is a great simple answer, just as Eddie said. Thank you! Do you know what number gives a mute effect?

  2. try this:
    amixer set PCM -- -10239

    Actually you can tell the limits by looking at the output of that command:

    Simple mixer control ‘PCM’,0
    Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
    Playback channels: Mono
    Limits: Playback -10239400
    Mono: Playback -10239 [0%] [-99999.99dB] [on]

    The minimum is -10239 and the max is 400 (not 1000 as I originally wrote).

  3. Thank you for the helpful reply! Also, I found out an easy way to do volume percentage:

    amixer set PCM — 100%

    This sets the volume to 100 percent. Hope this helps, and thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *