- Written by Erwin
- Category: Linux
- Hits: 871
I recently upgraded my PC from Ubuntu 8.04 to 10.04. It works great, except the sound. Stereo is doing well, but when I change it to 5.1 surround it starts stuttering, hicking are whatever you might call it; It just doesn't work...
Luckely I found a solution (or is it a workarround?) by disabling pulse-audio, setup alsa for surround and using xine (for displaying video with 5.1 surround).
Here's what I did (all cursive commands should be run in terminal).
First, disable pulse-audiotouch ~/.pulse-a11y-nostartecho autospawn = no|tee -a ~/.pulse/client.confkillall pulseaudio
btw, you can undo above with:rm ~/.pulse-a11y-nostartrm ~/.pulse/client.conf
Second, setup Alsa
Edit or create .asoundrc in your home directorysudo gedit ~/.asoundrc
and add this:
# period_time 84000
# period_size 2048
# buffer_time 340000
# rate 48000
# buffer_size 2052
buffer_size 4096 # this is the size of buffer I use
# buffer_size 8192
# buffer_size 16384
Third, install and configure Xine (manually)sudo apt-get install xine-uisudo gedit ~/.xine/config
uncomment and change these lines
(you can also do this in xine itself, but when I want to select a speaker-arrangement xine stops responding)
Finally, restart and test
Restart your PC and test your speakers with:speaker-test -Dplug:surround51 -c6 -l1 -twav
and finally start xine, open a movie with 5.1 surround and see if it works!