Foreword
If you have 2 soundcards and don't hear anything then this HOWTO should help you.
Actually it's fully based on dusu's Thread about sound in Hoary and Linux and comments I've found there: http://www.ubuntuforums.org/showthread.php?t=26567 I've just modified it a bit and included some optimizations.
Configuration
1. We need to kill ESD. So open terminal and type:
2. Now we need to tell ESD not to run when one does not need it. Open esd.conf file:
Code:
sudo gedit /etc/esound/esd.conf
and insert this (for some people "dafault" parameter is not suitable so they should use "mixer" instead):
Code:
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default // use "mixer" instead of "default" if you don't have sound
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=
3. We need to "allow" use of many sounds at the same time. So we need to install libesd-alsa0:
Code:
sudo apt-get install libesd-alsa0
4. Now create asound file:
Code:
sudo gedit /etc/asound.conf
and edit it like this:
Code:
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:1,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
What I did here is changed period_size and buffer_size for better performance. Rate is also changed to hear high quality sounds. And pcm is also changed here from "hw:0,0" (first soundcard) to "hw:1,0" (second soundcard (my default one)). This helped me and I hope it'll help you too.
4. Last step: allowing sound in Flash files:
Code:
sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
5. Restart ALSA:
Code:
sudo /etc/init.d/alsa restart
and logout from your session. When you login next time you should be able to hear Gnome Welcome Sound
In the end
I want to thank all the people around this forum, especially dusu, ploum and wrochal whole ubuntu support team and of course developers of the best linux distro I've ever used.
Bookmarks