Ubuntu 9.04 problems: Jaunty fixes for HP DV6 1120es

A friend of mine just asked me for help with his new laptop. He wanted to try out Jaunty, but got stuck with a couple of show stoppers: no WIFI and no sound. The hardware is already supported in newer releases of ALSA and the Linux kernel, so 9.10 “Karmic” will probably run flawlessly with this HP out of the box. Here’s how to fix it:

  • Wifi: it ships an Atheros AR9285 wireless card. From the Official Linux Wireless wiki we can see that it is supported on kernels >= 2.6.29. Jaunty comes with 2.6.28, but it is not a problem:
sudo apt-get install linux-backports-modules-jaunty
  • Sound: Update ALSA. This is for the latest snapshot:
sudo apt-get install build-essential
wget http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/\
alsa-driver-unstable-snapshot.tar.bz2 -O -| tar xvj
cd alsa-driver-unstable
./configure --enable-dynamic-minors
make
sudo make install-modules
echo "options snd_hda_intel model=hp-dv5" | \
sudo tee -a /etc/modprobe.d/alsa-base

Problem solved. Reboot and enjoy.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

21 Comments »

 
  • Vadim V says:

    Thnx mate, this is the only solution that worked for my HP Pavillion dv6-1260.
    I lost on fixing this about 2 days…

  • I’m glad I could help :)

  • Aetereo says:

    Thanks!!!it works on my hp dv6 1025 em!wooooooooooW

  • xurxo says:

    I get the following error on my HP dv6.

    xurxo@xurxo-laptop:~$ alsa-driver-unstable-snapshot.tar.bz2 -0 -| tar xvj
    bash: alsa-driver-unstable-snapshot.tar.bz2: command not found

    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Invalid argument
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    What can I do? thanks!

  • Xurxo: Don’t copy the commands line by line. Copy it as a block. The character \ indicates “line continuation”, so lines 2-3 are part of the same command, an so are 8 & 9 ;-)

  • Kevin says:

    Thank you! I spent several hours trying to fix the sound on my new HP laptop, before stumbling across your page. Success at last. Thank you very much.

  • biarced says:

    you are the man!!!!! just installed 9.04 and was pulling my hair out when i stumbled across your solution.
    thanks a heap

  • quinz says:

    not working on hp dv-6 1220so

  • You could try updating those packages to the ones included in Karmic, but you might need some trial and error to make sure nothing else is broken. Upgrading the kernel worked for me to fix a problem I was having with and iwl4965 AGN on my ThinkPad.

    sudo cp /etc/apt/sources.list /etc/apt/sources.backup && sudo sed -i ’s/jaunty/karmic/g’ /etc/apt/sources.list && sudo apt-get update && sudo apt-get install linux-firmware linux-generic linux-image-generic linux-image-2.6.31-10-generic linux-headers-generic linux-headers-2.6.31-10 linux-headers-2.6.31-10-generic -y && sudo mv /etc/apt/sources.backup /etc/apt/sources.list && sudo apt-get update

    Of course, my proprietary video drivers wouldn’t compile with dkms under the new 2.6.31 kernel, but luckily it was solved by also upgrading nvidia-180-*, nvidia-glx-180, nvidia-settings, and nvidia-common to Karmic’s (185.18.14).

  • duttybobb says:

    Beautiful fix. It fixed my dv6-1253ca laptop. Thanks!

  • hellobo says:

    Thank you very much for your support, Taher! Sound works perfectly on DV6-1220eg now. WLAN did work out of the box.

  • mohaagh says:

    hi , how can i do this in archlinux ?

  • I’ve never used archlinux.
    However, basically you need to update your kernel and alsa version. You might find them in AUR, I wouldn’t know. Even if you don’t, you can still fix Alsa. Remove the “apt-get install” part, install the minimal tools to build a package (libc6-dev, make, gcc or g++) by hand, and the rest of the snippet should still help you.

  • Paul says:

    thank you so much man. this shit worked. bad ass my man!

  • Hamid says:

    Thanks Taher! It worked!!! But it is so slow still!!

  • Paul says:

    this worked for me the other day, but after an update, no sound, and now this does not work. after wget http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-unstable-snapshot.tar.bz2 -0 -| tar xvj
    the terminal says, “bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Invalid argument
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.”
    it downloads the bzip2 file, but then nothing happens, and i have no clue where to go from there

  • You could try http://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.bz2 instead. As of today, last unstable seems to be 11 days old, while this one was packed yesterday.
    Or the .gz file instead of the bz2. In that case, change ‘tar xvj’ for ‘tar xvz’.
    Hopefully with Karmic (due in four days) these problems will disappear, so I wish you luck.

  • Paul says:

    i guess an edit/update to what i posted above, do not ask me why it would not extract it/ why i did not think to extract it myself, but i did, and everything worked from there continued. but i ask what is the difference b/w this fix, and the one described here http://ubuntuforums.org/showthread.php?t=1258788&page=2 post #14? it seems like yours is a quicker way of doing the same thing, but i really do not know.

  • I’m glad its working again :)
    The only difference I can see is the “enable_msi=1″ parameter that my post is lacking. The rest looks like pretty much the same. As I said on the post, this was a friend’s computer, so I’m sorry but I have no idea what that parameter would do.

  • Andre Soares says:

    Just to let you know that, at least for my HP DV6-1250, Karmic didn’t recognize my sound card “out of the box”, and I had to install linux-backports-modules-alsa-karmic-generic to fix it.

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>