Table of Contents

Ubuntu - Sound - Change the volume

Using mp3gain

find / -iname '*.mp3' -exec /home/peter/Downloads/mp3gain/mp3gain -r -c -m 4 {} \;

Using Alsa

Control the volume using the alsa utils.

The volume of sound cards can be controlled with amixer.

amixer set -c 0 Master 25 unmute
amixer set -c 0 PCM 25 unmute

Using alsamixer

alsamixer

Save the settings.

sudo alsactl store

Using amixer and pactl

Increase volume

amixer set Master playback 5dB+
pactl set-sink-volume @DEFAULT_SINK@ +5%

Reduce volume

amixer set Master playback 5dB-
pactl set-sink-volume @DEFAULT_SINK@ -5%

Toggle mute/unmute volume

amixer -D pulse set Master toggle