Sound problems in Ubuntu Hardy

So if your like me, you’ve been suffering through some painful sound problems in Ubuntu Hardy, apparently its a known kernel issue, so just sit tight. However, if your like me (or 90% of nerds) then you need some sort of music to code. A little digging revealed that I did not in fact have any of the alsa kernel modules installed for my current kernel. apt-get left me high and dry (also without an nvidia driver yet, but that’s an easy fix).

The simple remedy is to just build the alsa modules yourself, a pretty painless task. The problem is, if you want to have any hope of keeping your install halfway clean, then you need to get those files tracked by dpkg so we avoid conflicts when the modules are fixed. There’s a simple solution:

sudo apt-get install module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a a-i alsa

This utilizes the handy module-assistant package to automatically build alsa for you. :) Reboot and enjoy!

38 Responses to “Sound problems in Ubuntu Hardy”

  1. Götz Says:

    Do you Ubuntu users have to reboot to use some kernel modules? Running depmod and modprobe on the right driver should have been enough.

  2. Kevin Kubasik Says:

    You could just modprobe, but for users who don’t know the make/model of their integrated soundcard, its just easier. ;)

    All I did was (depmod is handled by m-a):
    sudo modprobe snd-hda-intel

    for my:
    82801G (ICH7 Family) High Definition Audio Controller
    on a:
    Dell Latitude D820

  3. Six Sense Blog » Blog Archive » Sound problems in Ubuntu Hardy Says:

    [...] Administrator: [...]

  4. ethana2 Says:

    ..they did put out one bad kernel in alpha, but the main problems for me now are apps that don’t play nice with PulseAudio.

  5. Bart Says:

    Haha, its the same old problem i got with Ubuntu 7.10. But yes this works well :)

  6. Jan Schmidt Says:

    This problem isn’t common enough that I have any idea what you’re describing from the detail provided :)

    ALSA modules are installed and working fine for me on Hardy.

  7. Jonny Says:

    Yeah, my sound is laggy as hell with some apps.

    Not feeling pulse audio tbh.

  8. david Says:

    changing gstreamer to use ALSA instead of pulseaudio fixed it for my rhythmbox lag issues.

  9. Zoe Says:

    No problems with pulse audio, after I finally got it working. What I really hate is having to do this every time a new kernel image is released.

  10. - Says:

    This tip does not work for me. I have a NForce 570 mobo, which as every NForce uses the snd_hda_intel driver for sound. But even by applying this patch the soundcard is completely mute… :’(

    There’s a ticket about that at the following URL :
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/213206

    If you encounter some trouble, you should really update this ticket since it should be considered as a showstopper for the release if it is quite widespread.

  11. - Says:

    I finally solved the issue by applying the following command :
    sudo /etc/init.d/alsa-utils reset

  12. thankyou Says:

    Thanks! This fix worked like a charm for my ALC883 in Ubuntu Hardy.

  13. Fuat Geleri Says:

    I just upgrade to Ubuntu Hardy, and sound gone off. Then I installed alsamixergui, and I saw that sound is muted. It was not shown on console version of alsamixer. The problem is about mute at me, and it is solved now.

  14. meLon Says:

    wo0t. Thanks for the fix, bro ^_^

  15. troels Says:

    I’m getting to the step `sudo m-a prepare`, which gives the following output. Can I proceed with the next step from here?

    Getting source for kernel version: 2.6.22-14-generic
    apt-get install linux-headers-2.6.22-14-generic
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package linux-headers-2.6.22-14-generic is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package linux-headers-2.6.22-14-generic has no installation candidate
    Creating symlink…
    apt-get install build-essential
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    build-essential is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Done!

  16. LenovoY410 Says:

    i have Lenovo Y410, and since i install Linux I never hear any sound from the speaker also from head jack. my device is Alc262 and i add options snd-hda-intel index=0 model=benq with sudo gedit /etc/modprobe.d/alsa-base at the end of this file, now i hear something from my speaker but still no sound from head jack. i wish some could help me fixes this sound probblem, i also did the way above and reboot but still no sound from my head jack. Pls help me i got no money to buy new laptop but still want to use Ubuntu Hardy.

  17. lintunen Says:

    This is no surprise to me, sound breaking has been an issue for me since Gutsy, but I just did what I always did and rebuilt ALSA. Interesting to see this problem still affects people. Module Assistant certainly made the rebuilding process a lot easier :-)

  18. BudgieBlog » Blog Archive » Hardy Heron Upgrade Says:

    [...] Here is a blog which suggests how to remedy the problem and here is the Ubuntu Wiki link on PulseAudio. [...]

  19. BudgieBlog » Blog Archive » Hardy Heron Upgrade (updated) Says:

    [...] sound for your applications where ALSA is the underlying layer that interacts with your sound card. Here is a blog which suggests how to remedy the problem and here is the Ubuntu Wiki link on [...]

  20. lakelover Says:

    Well, I followed your codes, rebooted, and still no sound. I’m running a Dell Dimension 2300. I had no sound on 7.04, regained it in 7.10, and not have lost it in 8.04. It is frustrating. Each time I upgrade I anticipate that something isn’t going to work but alwasy cross my fingers. Everything on this upgrade works except sound.

  21. SalukiGirl Says:

    Thank you so much - it worked like a charm. I spent hours trying to fix the sound after I upgraded to Gutsy and I about pulled my hair out when the sound went out after upgrading to Hardy. You are awesome!

  22. Nils Says:

    Thank you Kevin! You saved my evening :)

  23. Erik Says:

    Thanks! I followed the instructions in the OP and I now have sound again in my newly hardy-upgraded ubuntu.

  24. Andrew Says:

    Thanks you for the info. Life is better when you have music to drown out annoying people :)

  25. Ahmad Adel Says:

    Worked like a charm!

    Thanx

  26. Mark Maisel Says:

    I’ve been wrestling with this for a few days. Thank you very much for your easy to apply solution. I knew it was something to do with the alsa modules but had no idea how to go about it. I thought at first it was a hardware issue as the sound worked. It stopped, curiously enough, after I hooked up a PATA hard disk drive. Unplugging it did not help. Very weird and possibly coincidental. Thanks again.

  27. Derek Cordeiro Says:

    You don’t need to reboot. After issuing the above commands, Run:
    sudo alsa force-unload
    sudo modprobe snd-hda-intel

    I got my alc660 working using moduleassistant… I just wonder why they are taking so long to fix these issues.

  28. Dr Thangpa Serto Says:

    Man oh man….. where were u all this time…..!!! Now my sound in works perfectly welllllllll….. g8!!!!!!!!!!!!!!! using compaq pressario V3000

  29. phaedral Says:

    I tried the shortest of the above fixes and it worked like a charm on my Presario v6000.

    sudo /etc/init.d/alsa-utils reset

    Many many thanks

  30. Dave Burton Says:

    The command sudo /etc/init.d/alsa-utils reset fixed my sound problem, thanks a bunch. I have Hardy and I had no sound. I’m 60 years old and love Ubuntu, no more windows for me!

  31. EduCarrega Says:

    Fantastic! Works!
    /etc/init.d/alsa-utils
    Notebook Compaq presario v2000 Ubuntu 8.04 kernel 2.6.24-19-386 with Virtual-box-ose

  32. Iyed Says:

    You can type the following: /sbin/alsa force-reload
    it does also the clean up of the modules and loads them again:

  33. Dan Says:

    Thank you. That fixed my sound troubles in Hardy.

  34. Gyzmo Says:

    Worked for me too with a ALC660.
    Needed to reboot though.

  35. capi etheriel Says:

    i just ran it but couldn’t select alsa, but only alsa-source? is it ok to go?

  36. Patrick Says:

    Got mine working too, been fighting with it on and off for nearly 6 weeks. I am happy, thank you very much!

  37. Timothy W. Crane Says:

    I have had several issues over the last few years with Ubuntu. The main reason is that I have not put a disk in my drive since Dapper, and network upgraded to Hardy in succession. I had issues with partial installs, USB loss, and now sound (Pulse related). I have found a simple solution that has worked around most of my problems. I never remove old kernels. I know that this is not always recommended, but in a pinch. it has always worked. To go from Fiesty to Gutsy, to Hardy, I always used an older kernel for the upgrade, and did not remove old packages when they said they were not needed (I have always found a need for them anyway.

    In the Pulse audio problems, I have reverted to my generic 2.6.24-19 kernel, and sound works fine. The non generic kernel never has played nice with Pulse Audio, so I refuse to boot into it unless need be (no reason found yet).

    If you have already removed your older kernel through upgrade, I am sorry.

    I have found that most problems are resolved after two kernel upgrades, so I continue to upgrade to major releases, but keep the old kernel untill a third comes out, and then move up one.

    It is nice that they auto remove unneeded packages to save space, but the old adage “be careful when deleting” has proved very useful in community editions of OS’s

  38. Gangadhar Says:

    Initially tried
    sudo apt-get install module-assistant
    sudo m-a update
    sudo m-a prepare
    sudo m-a a-i alsa
    This did not work…i guess this was initialising stuff.
    but then command
    sudo /etc/init.d/alsa-utils reset
    worked all fine!!

    Thanks

Leave a Reply