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!

Advertisements

50 comments so far

  1. GΓΆtz on

    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 on

    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. […] Administrator: […]

  4. ethana2 on

    ..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 on

    Haha, its the same old problem i got with Ubuntu 7.10. But yes this works well πŸ™‚

  6. Jan Schmidt on

    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 on

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

    Not feeling pulse audio tbh.

  8. david on

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

  9. Zoe on

    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. - on

    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. - on

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

  12. thankyou on

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

  13. Fuat Geleri on

    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 on

    wo0t. Thanks for the fix, bro ^_^

  15. troels on

    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 on

    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 on

    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. […] Here is a blog which suggests how to remedy the problem and here is the Ubuntu Wiki link on PulseAudio. […]

  19. […] 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 on

    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 on

    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 on

    Thank you Kevin! You saved my evening πŸ™‚

  23. Erik on

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

  24. Andrew on

    Thanks you for the info. Life is better when you have music to drown out annoying people πŸ™‚

  25. Ahmad Adel on

    Worked like a charm!

    Thanx

  26. Mark Maisel on

    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 on

    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 on

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

  29. phaedral on

    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 on

    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 on

    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 on

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

  33. Dan on

    Thank you. That fixed my sound troubles in Hardy.

  34. Gyzmo on

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

  35. capi etheriel on

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

  36. Patrick on

    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 on

    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 on

    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

  39. tony on

    how do i undo the fix you mentioned on this post? i’ve tried it and now firefox doesn’t seem to be able to play any sounds, and the sound control shortcut keys on do not work (even once i’d changed the keys around).

    please, please, help me undo the fix

    thanks

  40. Andrew on

    for some reason, after i did this
    the sound problem wasn’t fixed
    and it made my system unable
    to detect graphics driver

  41. Loong on

    Thanks! this solved my problem when my dell 1525n system was upgraded to 2.6.24-21-generic from 2.6.24-19-generic.

  42. ace on

    For Lenovo y410 users, if you want speakers & headphones to work, upgrade to ubuntu 8.10, all fixes regarding the sound problem are already fixed and will work immediately after upgrade. no need to run some codes.

  43. kkubasik on

    I have a lenovo t61p, I will do a fresh install to confirm that all sound issues are fixed in 8.10.

  44. Christopher Mendes on

    I did everything as described but get the following message:

    “Build of the package alsa-source failed! How do you wish to proceed?”

  45. Christopher Mendes on

    In reference to the above message this is the end of the log file:

    “make[5]: *** [/usr/src/modules/alsa-driver/acore/info.o] Error 1
    make[4]: *** [/usr/src/modules/alsa-driver/acore] Error 2
    make[3]: *** [_module_/usr/src/modules/alsa-driver] Error 2
    make[3]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic’
    make[2]: *** [compile] Error 2
    make[2]: Leaving directory `/usr/src/modules/alsa-driver’
    make[1]: *** [build-stamp] Error 2
    make[1]: Leaving directory `/usr/src/modules/alsa-driver’
    make: *** [kdist_image] Error 2”

  46. Hubert Samm on

    Ubuntu can be frustrating like this… I used this, and it fixed my problems… thanks

  47. Andy on

    On my wife’s Ubuntu Hardy just built the alsa modules per your note and audio is now clear. She’s happy and I just got a kiss so I’m feeling happy. You’ve help start my new year happily. Thanks and Happy New Year to you too and all.

  48. Nikolas on

    😦 i rebuilt the ALSA modules, rebooted my box and then reset ALSA in from console, all to no avail.

  49. Chuck Norris on

    Dell Demension w/ ESS Meistro and Ubuntu 8.1 worked like a charm. Thankyou so much for posting this. You rock

  50. Tepi on

    Hi, I am having problems with my sound in Ubuntu, but I think I have Feisty or Intrepid (Im new to linux, so I dont know). Can I try your solution or will destroy my Laptop?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: