Get 5.1 surround sound in ubuntu with Realtek ACL662

Just switched over to Ubuntu as my primary OS and been working (hard) get to get everything working properly. Still worth it thought.

Anyway, one of the more difficult problems was getting 5.1 sound out of the sound card in Ubuntu. The motherboard has a built-in 5.1 sound card, the realtek ACL662. Some people have little trouble enabling surround sound but there seems to be an issue with this card. I managed to find a solution by merging a few ideas together.

Here are the steps I took:

  1. By default, Ubuntu is only set to run 2 sound channels (left and right). To enable 6 channels (5.1) we need to edit the sound config file. Theres an excellent tutorial for doing that here. But put simply, edit /etc/pulse/daemon.conf and uncomment the line "; default-sample-channels = 2", changing it to "default-sample-channels = 6"
  2. The most important part for this card. Edit /etc/modprobe.d/alsa-base and add "options snd-hda-intel model=3stack-6ch-dig" to the end of the file.
  3. Restart the machine.
  4. Open sound preferences (System > Preferences > Sound)
  5. Make sure that the ALSA mixer is selected.
  6. Bring up the sound mixer.
  7. Hopefully, the “Front, Center, Surround & LFE” sliders will be available. If not try to add them by clicking on Properties.
  8. Make sure all sliders are on full.
  9. Still on the mixer, go to the ‘Options’ tab and set ‘Channel mode’ to ‘6ch’.
  10. Ok everything and close the mixer.
  11. To test, at the command line try "$ speaker-test -Dplug:surround51 -c6 -l1 -twav"

Hopefully that’ll do it. If not, there are a tonne of other guides if you search for “Ubuntu 5.1 sound”. Checkout the forum post that helped me find this solution here, at the Ubuntu forums.

If options 7 and/or 9 aren’t available to you, I’d guess the fix hasn’t solved your problem.

This entry was posted in Googled, Technology. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

6 Comments

  1. Cliff
    Posted May 12, 2009 at 7:45 pm | Permalink

    Thanks,
    this worked a treat for me. Not sure what model my Realtek sound card is, but hey! it works!

    Cheers -
    Cliff

  2. Posted August 23, 2009 at 4:23 pm | Permalink

    Great ! I think surround sound systems give us cinema experience in our own home. That’s why it becomes ever more popular and affordable.

  3. Posted September 12, 2009 at 12:31 pm | Permalink

    You’re a hero! Saving my music anyway. :)

    I’m on Ubuntu 9.04 x86-64 with latest updates and did this:

    Added some sliders to the soundmixer:
    -Rightmousebutton on the volume setting in the taskbar -> Open Volume Control, Preferences, tick the boxes there

    Set every option in System -> Preferences -> Sound to ALSA (the non-specific one: “ALSA – Advanced… Architecture”)

    And that was it, sounds working like a charm now, bass and everything. Thanks a lot!

  4. jppp
    Posted September 13, 2009 at 5:08 pm | Permalink

    The test ” speaker-test -Dplug:surround51 -c6 -l1 -twav” works perfectly. But my sample 5.1 PCM-WAV files (not DTS) get jumbled up in the channels, when playing through “Movie Player”. My ALSA mixer setting is 6channel and so is the “Movie Player” preference setting. Any ideas welcome.

  5. jppp
    Posted September 13, 2009 at 5:26 pm | Permalink

    :) Correction!! All looks fine now, good old typo in alsa-base.conf. Fixed now. Thank you :)

  6. MechanisM
    Posted March 3, 2010 at 1:05 pm | Permalink

    thanx!! actually my ubuntu 9.10 already was with 5.1 support
    and command: “speaker-test -Dplug:surround51 -c6 -l1 -twav” – worked fine for me..
    but still in Ubuntu sound is not such perfect as under windows =((

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

  • Categories

  • Archives