colinrmitchell.com

Blog

Changing the sound volume on FreeBSD

Posted Thursday, April 26th 2012 in FreeBSD - Permalink

The sound volume for FreeBSD commonly comes pre-set to be very quiet. You can change the volume using the mixer program. There are also some Gnome and Xfce4 applets that let you change the audio volume.

To view the volumes settings for all audio settings, simply type

# mixer

If you receive the error

# mixer
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured

this means that your mixer is not located at /dev/mixer, where mixer is looking. If this is the case, look for other mixer devices in the device directory, and force mixer to use it by giving the -f argument,

# mixer -f /dev/mixer0
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to  55:55
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer rec      is currently set to  75:75
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Mixer line1    is currently set to  75:75
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Mixer video    is currently set to  75:75
Recording source: mic

The values for each line are <left>:<right>. To set the volume of a channel, call mixer with the channel name and the new value. For example,

# mixer -f /dev/mixer0 ogain 75:75
Setting the mixer ogain from 100:100 to 75:75.
#

That’s all there is to it!


List Posts Newest Posts Page 1Next Page