Sound (Hardy)
If the sound is not working after installation (like on my laptop) you may get it to work with the following steps:
Add following line to the end of /etc/modprobe.d/alsa-base (do it with sudo)
options snd-hda-intel model=lenovo
Change all Audio settings to use ALSA (System->Preferences->Sound)
Sound (for Edgy/Feisty/Gutsy)
The snd-hda-intel driver is used for sound. There is a bug for older versions than Hardy (8.04) which does not mute speakers when headphones are plugged. It works with the installed version of Feisty, but not after applying all current updates.
In order to get sound to work properly under older releases, a manual compile of a patched ALSA is needed (instructions below). alsa-driver-1.0.15 will be patched and then built and installed. Then, alsa-lib-1.0.15 and alsa-utils-1.0.15 will be built and installed too. NOTE: you can also install alsa-1.0.16rc1 (or later) without having to apply any patch, it will correct the automute problem.
libc6-dev required for alsa-driver
sudo apt-get install libc6-dev
ncurses-dev required for alsa-utils
sudo apt-get install ncurses-dev
patch and gettext will also be used during compilation (not installed by default)
sudo apt-get install gettext patch
Retrieve and install alsa 1.0.15
mkdir alsa-fix && cd alsa-fix
wget
ftp://ftp.alsa-project.org/pub/driver/a ... 15.tar.bz2
wget
ftp://ftp.alsa-project.org/pub/lib/alsa ... 15.tar.bz2
wget
ftp://ftp.alsa-project.org/pub/utils/al ... 15.tar.bz2
wget
http://tfc.duke.free.fr/coding/hdaintel ... 0908.patch
tar -xvf alsa-driver-1.0.15.tar.bz2
tar -xvf alsa-lib-1.0.15.tar.bz2
tar -xvf alsa-utils-1.0.15.tar.bz2
cd alsa-driver-1.0.15
patch -p1 < ../hdaintel-laptop-eapd-hg20070908.patch
./configure --with-cards=hda-intel --with-sequencer=yes --with-oss=yes
make
sudo make install
cd ..
cd alsa-lib-1.0.15
./configure
make
sudo make install
cd ..
cd alsa-utils-1.0.15
./configure
make
sudo make install
cd ..
NOTE: for building the source, you can call make -j 8 instead of make alone, it will speed up the compilation by running 8 threads. If the compilation fails, rerun the make command (it can happen sometimes that an object file *.o is needed before its source file has been compiled -- because of thread concurrency -- and then the build process is stopped).
Then reboot. You may have to unmute your sound card, or adjust the PCM volume after the first reboot. Also, if you update your kernel, or a patched version of ALSA prior to 1.0.15 gets installed, you will need to recompile ALSA against your latest updates.
This bug is discussed on ALSA's bugzilla : Bug 2581.