Changing Mailman Python Scripts for Virtual Host Support
Nice n' Easy JQuery Image Rotator
JQuery Venetian Blinds Transition Effect
ENUMs, User Preferences, and the MySQL SET Datatype
Getting Set up with Ogre 3D on Ubuntu
Native Linux Space Warfare: Freespace 2
Microsoft Office Open XML
Buy the Sun Music

Enable 5.1 Linux Audio on Motherboards with Only 3 Jacks

Thursday, 22 December 11, 2:58 am
compton
If you're running Alsa on your Linux distro, without pulseaudio (e.g. Arch Linux, SUSE), and your onboard audio only has 3 Jacks - Line In, Speaker, and Mic - but supports 5.1 audio, follow these steps to enable it.

Add the line below to a file called /etc/modprobe.d/options. If the file doesn't exist, create it.

options snd-hda-intel model=3stack-6ch


Note that the model identifier you use will depend on the particular audio chipset installed on your system. The above is suitable for the Realtek ALC662 without S/PDIF - check the list here to find the one you need. Also, if you are using pulseaudio, e.g you're on Ubuntu, put the above line in /etc/modprobe.d/alsa.conf instead.

Reboot your system to make this change take effect. You should now be able to configure all 5.1 channels using alsamixer. Run this from the command line, and use the arrow keys to select the right-most option, 'Channel Mode'. By default this is set to 2ch (ie stereo); press the up cursor key to change it to 6ch (ie 5.1). Make sure the PCM, Front, Surround and Center levels are all at 100 (or above zero at least), and press Esc to quit alsamixer. You should now have 5.1 enabled.

You can test it by running this command:

speaker-test -Dplug:surround51 -c6 -l1 -twav


Sometimes, you may find that alsamixer doesn't remember the settings and you have to change the Channel Mode to 6ch every time you boot up. In such cases, the following command should save the settings permanently:

sudo alsactl store
 
Leave Comment

/xkcd/ Klout

About This Page