Categories
Uncategorized

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.

17 replies on “Set Volume on Raspberry PI”

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

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).

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!

In my last post it might look unclear; there are two dashes between PCM and the percentage.

Comments are closed.