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!
Do you Ubuntu users have to reboot to use some kernel modules? Running depmod and modprobe on the right driver should have been enough.
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
[…] Administrator: […]
..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.
Haha, its the same old problem i got with Ubuntu 7.10. But yes this works well π
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.
Yeah, my sound is laggy as hell with some apps.
Not feeling pulse audio tbh.
changing gstreamer to use ALSA instead of pulseaudio fixed it for my rhythmbox lag issues.
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.
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.
I finally solved the issue by applying the following command :
sudo /etc/init.d/alsa-utils reset
Thanks! This fix worked like a charm for my ALC883 in Ubuntu Hardy.
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.
wo0t. Thanks for the fix, bro ^_^
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!
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.
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 π
[…] Here is a blog which suggests how to remedy the problem and here is the Ubuntu Wiki link on PulseAudio. […]
[…] 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 […]
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.
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!
Thank you Kevin! You saved my evening π
Thanks! I followed the instructions in the OP and I now have sound again in my newly hardy-upgraded ubuntu.
Thanks you for the info. Life is better when you have music to drown out annoying people π
Worked like a charm!
Thanx
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.
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.
Man oh man….. where were u all this time…..!!! Now my sound in works perfectly welllllllll….. g8!!!!!!!!!!!!!!! using compaq pressario V3000
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
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!
Fantastic! Works!
/etc/init.d/alsa-utils
Notebook Compaq presario v2000 Ubuntu 8.04 kernel 2.6.24-19-386 with Virtual-box-ose
You can type the following: /sbin/alsa force-reload
it does also the clean up of the modules and loads them again:
Thank you. That fixed my sound troubles in Hardy.
Worked for me too with a ALC660.
Needed to reboot though.
i just ran it but couldn’t select alsa, but only alsa-source? is it ok to go?
Got mine working too, been fighting with it on and off for nearly 6 weeks. I am happy, thank you very much!
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
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
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
for some reason, after i did this
the sound problem wasn’t fixed
and it made my system unable
to detect graphics driver
Thanks! this solved my problem when my dell 1525n system was upgraded to 2.6.24-21-generic from 2.6.24-19-generic.
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.
I have a lenovo t61p, I will do a fresh install to confirm that all sound issues are fixed in 8.10.
I did everything as described but get the following message:
“Build of the package alsa-source failed! How do you wish to proceed?”
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”
Ubuntu can be frustrating like this… I used this, and it fixed my problems… thanks
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.
π¦ i rebuilt the ALSA modules, rebooted my box and then reset ALSA in from console, all to no avail.
Dell Demension w/ ESS Meistro and Ubuntu 8.1 worked like a charm. Thankyou so much for posting this. You rock
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?