Wednesday, October 28, 2009

Getting the sound to work on Ubuntu Jaunty

After installing Ubuntu 9.04 (jaunty) on my new HP DV6-1280us machine, my main problem was that the sound is complete dead. I see no errors when I try to play anything. there is just no sound.

taking a closer look at my Sound Card:


~$ lspci | grep -i audio
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
01:00.1 Audio device: ATI Technologies Inc R700 Audio Device [Radeon HD 4000 Series]


After a while of googling around, I came across this post on ubuntu forums
If you have the same sound card. (which is in most DV6, DV7 series of HP) This will probably be useful to you as well.

Briefly, you'll need to download, compile and install the alsa driver. and modify configuration of alsa-base.conf as follows:


wget -c ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.21.tar.bz2
wget -c ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.21.tar.bz2
wget -c ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.21.tar.bz2
tar xvf alsa-driver-1.0.21.tar.bz2
tar xvf alsa-lib-1.0.21.tar.bz2
tar xvf alsa-utils-1.0.21.tar.bz2
cd alsa-driver-1.0.21/
./configure --with-cards=hda-intel
make
sudo make install
cd ..

cd alsa-lib-1.0.21/
./configure
make
sudo make install
cd ..
cd alsa-utils-1.0.21/
./configure
make
sudo make install


Now append the following to /etc/modprobe.d/alsa-base.conf


options snd-hda-intel enable_msi=1
options snd-hda-intel model=dell-m4-2


Now restart your system and enjoy the drumbs of ubuntu start :)