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.
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”
Thanks for this. It’s the simplest answer I’ve found.
Glad it was helpful!
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:
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.
Joe, that’s awesome. I didn’t know you could use the % sign like that. Thanks for the tip!
FINALLY Jesus Christ
Glad I could help 🙂
Is there a way to have this setting to become permanent?
Try `sudo alsactl store`? I’ll check on my Pi when I get home to confirm.
Perfect! Thank you very much indeed!!
thanks Mr 🙂
You’re Awesome!
simplest solution i found and this one ended my non-stop searching! thanks!
idk if this will be seen but when i try i get this
amixer: Unable to find simple control ‘PCM’,0
Does not work the PCM command is not real and therefore cannot be used