Upgrade Alsa (1.0.21) on Ubuntu Jaunty 9.04

August 31st, 2009 by alpho2k | Print Upgrade Alsa (1.0.21) on Ubuntu Jaunty 9.04
alsa Ubuntu Jaunty 9.04 is coming by default with the version 1.0.18rc3 of Alsa so I decided to upgrade to the last version wich is 1.0.21.

What is Alsa (Advanced Linux Sound Architecture) ?

According to Wikipedia, Alsa is a Linux kernel component intended to replace the original Open Sound System (OSS) for providing device drivers for sound cards. Some of the goals of the ALSA project at its inception were automatic configuration of sound-card hardware, and graceful handling of multiple sound devices in a system, goals which it has largely met.

Installation :

To do this, we must begin by determining our version of alsa as follows :

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

To avoid problems during the upgrade of Alsa-utils, we need to stop it with the following command :

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

We must then install the necessary tools to compile along with the kernel headers :

sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev

Then, we go in our personal folder and download alsa-driver, alsa-lib and alsa-utils :

cd ~
rm -rf ~/alsa* ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.21.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.21a.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.21.tar.bz2

After that, we create a new folder for the compilation and installation of the 3 files. Then, we move the 3 tar files that we just downloaded in this folder :

sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/alsa* .

Unpack the 3 tar files :

sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*

We compile and install alsa-driver :

cd alsa-driver*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-lib :

cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-utils :

cd ../alsa-utils*
sudo ./configure
sudo make
sudo make install

If like me, you got this error during the last “sudo ./configure” :

checking form.h presence... yes
checking for form.h... yes
checking for new_panel in -lpanelw... no
configure: error: panelw library not found

You will need to add those symbolics links (only if you got the error) and restart the installation from the last “sudo ./configure” :

sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so

Then, we remove the 3 tar files in our personal folder that are not anymore necessary :

rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*

Then, just restart your computer and your alsa version should be 1.0.21!

You can verify that you have now indeed have this version of alsa :

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Aug 31 2009 for kernel 2.6.28-15-generic (SMP).

Just to be sure everything is well configured, execute this command :

sudo alsaconf

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Related Posts

 

129 Comments For This Post

  1. James Says:

    configure: error: panelw library not found

    encountered error on ./configure of alsa-utils-1.0.21

    I suggest people wait until this has been fixed before anyone else goes ahead with it. (I’m a newbie.. so if there’s a workaround then let me know :)

    Thanks for your easy to follow guide..

    James

  2. James Says:

    Can confirm that the 1.0.21 driver and lib work fine and have both sound and internal mic on my hp pavilion dv6.

    Thanks

    James

  3. alpho2k Says:

    I got this error too. Here is how I fixed it :

    ln -s libpanelw.so.5 /usr/lib/libpanelw.so
    ln -s libformw.so.5 /usr/lib/libformw.so
    ln -s libmenuw.so.5 /usr/lib/libmenuw.so
    ln -s libncursesw.so.5 /lib/libncursesw.so

  4. Bian Jiang Says:

    also no sound on ThinkPad R61 when upgrand alsa to 1.0.21.

    border@wifihack:~$ cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    Compiled on Sep 1 2009 for kernel 2.6.28-15-generic (SMP).

    border@wifihack:~$ sudo lshw -class sound
    *-multimedia
    description: Audio device
    product: 82801H (ICH8 Family) HD Audio Controller
    vendor: Intel Corporation
    physical id: 1b
    bus info: pci@0000:00:1b.0
    version: 03
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress bus_master cap_list
    configuration: driver=HDA Intel latency=0 module=snd_hda_intel

    border@wifihack:~$ cat /proc/asound/card0/codec#0 | grep Codec
    Codec: Analog Devices AD1984

  5. Bian Jiang Says:

    Sorry, I had a very stupid mistake, when make Speaker option enable on Gnome Volume Control, and It’s work well. But I have a question, why can’t turned on the speaker item in alsamixer?

  6. caliber23 Says:

    I can confirm that the symbolic links worked. I now have a working ALSA 1.0.21

    Thanks for the fix alpho2k!

  7. Rodislav Moldovan Says:

    Salut, merci beaucoup pour ton tutorial! :)

  8. Yori Says:

    The tutorial is very well written thanks for that. I just bought an aspire 5935 g, fixed the problem with the sound and was hoping that after I update the alsa my internal mic should start working, but no luck there. Does anyone have a similar problem? I tried the mic in vista – it works. I tried with external mic in ubuntu – it works. what might be the problem? Any help will be appreciated.

  9. Iosif Says:

    Wow! Thanks very much for this very accurate tutorial.
    my laptop has:
    lspci | grep Audio
    00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
    My OS is Mint7
    And it wonderfully worked.
    Complements!

  10. Frankie Says:

    Hi!

    What make i wrong… Seemly everything is fine. i just cant see even the audigy or the USB sound card, only the ASUS F5N mobo audio card (HDA Nvidia ALC660) /after the restart the alsa version is ok, but alsaconf could not detect the cards)

    Thanks

  11. luca fiore Says:

    Hi,
    thanks for this tutorial!! Great work!! :)

    my trouble is:
    audio card work….but the microphone no! I have only a loud noise! I have upgrade alsa to 1.0.21….but the noise back again.

    my — cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    Compiled on Sep 8 2009 for kernel 2.6.28-15-generic (SMP).

    my — cat /proc/asound/card0/codec#0 |grep -i codec
    Codec: Realtek ALC889

    thanks,
    luca

  12. luca fiore Says:

    Hi,
    thanks for this tutorial!! Great work!! :)

    my trouble is:
    audio card work….but the microphone no! I have only a loud noise! I have upgrade alsa to 1.0.21….but the noise back again.

    my — cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    Compiled on Sep 8 2009 for kernel 2.6.28-15-generic (SMP).

    my — cat /proc/asound/card0/codec#0 |grep -i codec
    Codec: Realtek ALC889

    thanks,
    luca

  13. Enrique Says:

    I installed Ubuntu 9.04 from a CD in my IBM X21. Very low sound on headphone. I went through the whole procedure above mentioned. I restarted by laptop and am not able to get alsa 1.0.21 installed:

    malin@malin-laptop:~$ cat /proc/asound/version
    cat: /proc/asound/version: No such file or directory

    What went wrong?

    Thanks

    Enrique

  14. Manolo Says:

    Hi.

    Thanks for your guide! The only thing is that now sound maximum volume is lower than before, even if all the levels are at top.

    Any suggestion, please?
    Ty

  15. kurian Says:

    Hi

    Thanks a lot and its amazing great man , once again thanks a lot

  16. Francois Says:

    Hi Stéphane,

    Thanks for the tutorial. I still have one problem: I still get the error (panelw library not found) after adding the symbolic link.

    Does anyone have any idea of what I can try next? Many thanks.

  17. alpho2k Says:

    Did you try to restart your computer after adding the symbolic link?

  18. Francois Says:

    Thanks Alpho2k, I did restart and now I do have alsa v.1.0.21 driver, but I still can’t compile the alsa-utils, I get the same error even with the symlinks.

  19. g-raf Says:

    I’m not able to configure the new alsa for my USB soundcard. It doesn’t recognize the USB soundcard since i installed 1.0.21, so i need to uninstall it. I have a lot to learn about linux, but i only have one question: how can i uninstall an application if i installed it from its source folder? Would i need to uninstall it from the source folder somehow? If possible, please give me some copy & paste terminal commands. Thanks

  20. alpho2k Says:

    Hi,

    wich was your last version of alsa? maybe you could try to reinstall it?

  21. Ron Says:

    Stephane,

    Thanks for the info, saved my broken alsa installation.

    Ron

  22. Paulo Marcio Says:

    Thank you. I was having problems with the sound (was very noisy). Now it’s gone.
    Very easy steps to be followed.

  23. Andrew Says:

    I got “error: panelw library not found” and fixed it by:
    sudo apt-get install libncurses-dev
    ./configure –with-curses=ncurses

  24. johnH Says:

    I am having trouble at the …install-headers-’uname r’ part. I get the following message

    john@john-laptop:~$ sudo apt-get -y install linux-headers- ‘uname -r’
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package linux-headers is not installed, so not removed
    E: Couldn’t find package uname -r

    So I can’t et the Headers. I get errors on the unpacking of the tar files.

  25. Pasquale Says:

    If you want usb support please compile the drivers with the following command:

    sudo ./configure –with-cards=hda-intel,usb-audio –with-kernel=/usr/src/linux-headers-$(uname -r)

  26. ChrisLute Says:

    I followed all these directions. I got the error the author described and successfully added the necessary symbolic links. At the end, I was unable to remove the .tar files, but other than that everything seemed to work fine. However, upon restarting the computer and entering “cat /proc/asound/version” I still see “Advanced Linux Sound Architecture Driver Version 1.0.18rc3″ Why would it fail to update?

  27. ChrisLute Says:

    Update: it gets even better! I tried re-doing all these steps, and now when I enter “cat /proc/asound/version” I get “No such file or directory.” It seems like it completely wiped the program.

  28. ChrisLute Says:

    Sorry, last update – I was running through again to try and fix this, and noticed I’m getting the same error as #24 above. Has anyone figured out a way around this?

  29. Deepak Says:

    Worked Perfect!
    Thanks for a neat tutorial!

  30. shyam Says:

    Worked perfectly for me too… perfect post !!

    So simple that a simple copy paste of commands did the whole upgrade.

    Thanks.

    But I am still having the problem of getting the sound only through my Headphones :( (

    I looked around a lot online and tried a lot. I have a Compaq presario CQ40 (AMD Athlon X2 64bit) with Ubuntu 9.04.

    Can you help?
    Thanks once again.

  31. klopapier Says:

    The upgrade itself worked fine for me…
    …but now i have now audio at all…

    I’m on a MacBook Pro C2D with mint linux.

    The package manager still shows up me having version 1.0.18
    any sugestions?

  32. Drecklia Says:

    I cant seem to be able to execute the line ‘sudo alsaconf’

  33. Trisnio Says:

    Hello,
    My iMac (9,1) with sound card HDA-Intel – HDA NVidia,
    when compiling make for alsa-lib and alsa-utils
    I got an error message for both:
    make: Nothing to be done for `all’.
    what should I do?

    Thank you very much for your help.

  34. Penguineer Says:

    Thanks for the tutorials. I am attempting this on Ubuntu 8.04 because it is the best I have found. It all worked about as listed except:
    - after entering the symbolic links and after rerunning ./compile when I run sudo make, I get an error saying that no target is specified and no makefile is found.

    - WORSE is that even after reboot, sound still does not work and cat /proc/asound/version still indicates the old version. Can someone help with that? I don’t know if the utilities are important, but the version should update and function when I put do the install on the drivers, shouldn’t it?

  35. zed Says:

    Everything went smooth no errors but when i restarted and did cat /proc/asound/version it’s still showing the old version and not 21. Same problem as Penguineer and ChrisLute. I wonder if this isnt the correct way to go about upgrading alsa version and maybe need to do another way with a patch or build?

  36. hrafn Says:

    I seem to have similar problems. Here is info from http://pastebin.ca/1573099.

    # ALSA Version
    # ————
    #
    # Driver version: 1.0.18
    # Library version: 1.0.21a
    # Utilities version: 1.0.21
    #
    I didn’t notice any errors when compiling and installing the driver version (I tried it twice).

    Any clues?

  37. Penguineer Says:

    Still no sound.
    I also ran the script at ALSA.org as suggested by the Ubuntu support page for sound troubleshooting (as it appears that hrafn did) and, amazingly, got the same results. Here is an extract from the file generated against my offending machine:
    !!Kernel Information
    !!——————
    Kernel release: 2.6.24-24-generic
    Operating System: GNU/Linux
    Architecture: i686
    Processor: unknown
    SMP Enabled: Yes
    !!ALSA Version
    !!————
    Driver version: 1.0.16
    Library version: 1.0.21a
    Utilities version: 1.0.15
    !!Loaded ALSA modules
    !!——————-
    snd_hda_intel
    snd_hda_intel
    !!Sound Servers on this system
    !!—————————-
    Pulseaudio:
    Installed – Yes (/usr/bin/pulseaudio)
    Running – Yes
    ESound Daemon:
    Installed – Yes (/usr/bin/esd)
    Running – No
    !!Soundcards recognised by ALSA
    !!—————————–
    0 [Intel ]: HDA-Intel – HDA Intel
    HDA Intel at 0xfe6f8000 irq 22
    1 [HDMI ]: HDA-Intel – HDA ATI HDMI
    HDA ATI HDMI at 0xfe7ec000 irq 17
    !!PCI Soundcards installed in the system
    !!————————————–
    00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
    01:00.1 Audio device: ATI Technologies Inc Unknown device aa38

    My computer has ONLY main board integrated sound, but it appears that Ubuntu is finding two: an Intel based and and ATI based. Perhaps it is the two that is causing the issues. Computer is a Dell Vostro 420.

    Note that as with hrafn, my driver version did not change, even though the ./configure, make, and make install progressed without error. The library version updated in both our experiences (again, ./configure, make, and make install proceeded with no errors). For me, the utilities version did not change from the default Ubuntu installation while hrafn’s did. I got errors (identified in my previous comment) while he did not during the ./configure, make, and make install for the utilities.

    Anyone have any suggestions? I am about to give up and disable the sound in bios and just put in a PCI sound card that can be handled by the current driver versions – if I only knew what card I should use!

  38. shivansh Says:

    i am running ubuntu 8.04 and have the exact same problem as described by penguineer…i have a dell vostro 1520 laptop and when i connect headphones, the speakers still work alongwith headphones, sometimes the headphones dont work at all,please do let me know if someone gets a workaround…

  39. Alessandro Says:

    $cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

    procedure done first times (with symbolic link fix):
    $cat /proc/asound/version
    cat: /proc/asound/version: Nessun file o directory

    procedure done second time (no fix needed):
    $cat /proc/asound/version
    cat: /proc/asound/version: Nessun file o directory

    what should I do?

  40. ANURAG Says:

    did all the steps, everythn went fine . but when i restart n check d version it again says 1.0.18rc3

  41. Juan Pedro Secondo Says:

    Absolutely perfect!!!

    Not a comma to add.

    My DELL 1525 9.04 64bits now is running a perfect sound system. Things are called as it should and works fine.

    Many, many thanks

    Keep up the good work

    Regards from Uruguay

  42. alpho2k Says:

    Hey guys,

    for those who had problem during the installation, I just made a few changes to the guide so maybe you could try again to install alsa 1.0.21.

    Stéphane

  43. MuccaPazza Says:

    This worked for me as well, thanks a lot.
    I am a complete newbie to Ubuntu, had NO idea what I was doing, but carefully following the steps, including the work-around the listed error, resulted in sound finally being re-enabled.
    The original post is here:
    http://www.linuxforums.org/forum/ubuntu-help/153659-discouraging-sound-issue-9-04-a.html#post731530

    Thanks again ;-)

  44. rohn Says:

    It worked!
    I’m a total newbie at ubuntu, so this was all immensely helpful!
    I am now listening to music, (after being without any sound for a week!)
    Thank you so much!
    Really appreciate you putting this here, it all worked just like you showed.

    Thanks!

    a very happy user

  45. johnH Says:

    Well I tried again with the revised instructions and I still am getting an error:
    Here is what I get when trying to upgrade:
    john@john-laptop:~$ cd /usr/src/alsa
    john@john-laptop:/usr/src/alsa$ sudo cp ~/alsa* .
    john@john-laptop:/usr/src/alsa$ sudo tar xjf alsa-driver*
    john@john-laptop:/usr/src/alsa$ sudo tar xjf alsa-lib*
    tar: alsa-lib-1.0.21: Cannot read: Is a directory
    tar: At beginning of tape, quitting now
    tar: Error is not recoverable: exiting now

    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: alsa-lib-1.0.21a.tar.bz2: Not found in archive
    tar: alsa-lib-1.0.21.tar.bz2: Not found in archive
    tar: Error exit delayed from previous errors
    john@john-laptop:/usr/src/alsa$

    Would somone read the above and let me know what I might be missing in the installation process?

  46. johnH Says:

    Of course I now have no sound due to using the second step in the instructions:
    “sudo /etc/init.d/alsa-utilis stop”

  47. alpho2k Says:

    Did you do this command before te “cd”? :

    sudo rm -rf /usr/src/alsa

  48. alpho2k Says:

    I think you have an alsa lib directory in ~/ . You need to remove it :

    sudo rm -rf alsa-lib*

  49. Mark Says:

    Hi John,

    Please redo the whole procedure, starting with the command

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

    Don’t forget to run the following commands:

    rm -rf ~/alsa*
    sudo rm -rf /usr/src/alsa

    These 2 commands were added to the procedure a few days ago and are necessary to ensure that the source directory ( your home directory) and the target directory (/usr/src/alsa) are clean before you start downloading and unpacking the new ALSA packages.

    Regards,

    Mark

  50. johnH Says:

    Well the Linux Community has done it again, thanks to alpho2k and Mark, they provided me with the necessary information to get my laptop ALSA upgraded to Version 1.0.21.

    It works nice with my laptop. Before I had a bad background hiss that was anoying when watching a DEV movie. It is now quiet except for th program material which is what we want to hear.

    Again thanks for patience with me.

  51. RandyN Says:

    So many many many thanks for this tutorial :) I thought I was going crazy over here. I was watching a movie and from one moment to the other I had no sound. Checked everything on my machine and was reading forums for 2 days now. Nothing worked until I found this nifty tutorial. Followed the instructions and woohooooo! sound is up and running! Happy days are here again :)

    Thanks a million!
    RandyN

  52. Paul Says:

    Thanks-
    This was a big help. I had upgraded previously, as my compaq 610 laptop had extremely low volume in Ubuntu 9.04. I lost all audio again when ubuntu came out with a big update this weekend (probably the new linux image). I followed your steps and they work perfectly. I love it when things work. Thanks.

  53. |Blu@Sky| Says:

    On my machine I was also missing the symlink

    /lib/libncursesw.so -> /lib/libncursesw.so.5

  54. SudeepGeorge Says:

    The instructions worked like a charm, got the lpanelw error but the work around of adding links to the *.so did not resolve the error.
    On my Ubuntu- Jaunty, I also installed libncursesw5-dev. The installation then proceeded correctly as listed in the article.
    In case it helps the others…
    Thanks for a very helpful article.

  55. Noobie Says:

    Now if only it was written so that someone not proficient in all these areas could understand what they needed to do. I read through it three times and still have no idea. If it said, “go to applications, then accesories and then open a terminal and type the following “abcd xyz 123″ then hit enter” or whatever they needed to do. It makes it very frustrating why one can’t simply install the latest version of Ubuntu and just have sound. Whatever happened to their “just works” ? The directions sadly aren’t very clear for a noobie to know what they need to do and how to do such.

  56. Mark Says:

    Hi Noobie,

    The procedure is as follows:

    Step 1: Open Terminal from “Applications->Accessories->Terminal”

    Step 2: Copy-paste each command – in the blue boxes above – into the Terminal

    Step 3: Reboot and retest sound.

    Example: The very FIRST command to copy-paste is

    cat /proc/asound/version

    The LAST command to copy-paste is

    sudo alsaconf

    Regards,

    Mark

  57. johnH Says:

    Well Mark I believe that Noobie is a real Linux “tenderfoot” on the trail to learning how to use the CL. When he questioned the steps “Applications>Accessories>Terminal” that was a clue that he hasn’t even looked around his menus.

    The procedure outlined in alpoh2k’s article works just great, especially after adding the two lines that cleaned up the home directory is clean, prior to compiling the new files.

    Thanks again.

  58. Arabiest Says:

    thank you very much for the appreciated efforts towards satisfying your customers. now my hp tx2 1115ee is working perfect as planned with ubuntu 9.04.

    regards,
    Arabiest

  59. khronos Says:

    It works perfect!
    I’ve got without sound after a system update and after days seeking for a solution in the internet i found this tutorial that worked like a charm! Thanks!

  60. Kim Says:

    Thank you for a very easy and functional guide.

    I have been messing around with my new amilo li 3910 for a few days now. I did have sound but it was very low volume (unuseable).
    Ran this guide (when I finaly decided to google my problem).
    It’s perfect now :)

  61. Katie Says:

    I have a new Dell Studio 1555 and this worked perfectly! I am a total noob and this is my first experience with Ubuntu and Linux. Thank you for the very easy to use tutorial.

  62. H M Jones Says:

    Hi !
    I recently installed ubuntu 9.10, took 3 days to get it to boot because the grudb files were not being installed. After fixing that using super grub disc, I found that the sound did not work. I have VIA8233, AC97 sound. Reading your post it seemed that you were saying that the problem (in your case) was old Alsa drivers. Instead of using your sequence of steps ( which were pretty clear BTW) I chose to use system>update manager. It showed an update for Alsa so I checked it then clicked install. After a few minutes it wanted a reboot. It rebooted WITH SOUND. Thank you for the assist!

  63. cédric Says:

    Thank you so much
    This is very clear and solved for me the main issue:
    no sound card detected by alsa after updating the kernel from 2.6.28-14 to 2.6.28-15 (xubuntu).
    after self-compiling, it worked! And I managed to make my Tascam US-122L work again ;)

  64. Mohammad Says:

    after performing all the steps and restarting ubuntu

    I run this command: cat /proc/asound/version
    I got this ERROR; cat: /proc/asound/version: No such file or directory

    ANY HELP??

  65. Vladimir Says:

    Thank you for this great guide. I’m not the developer, but I could compile the latest alsa by this guide without any problems (I only added installation of python-dev, since alsa-lib’s ./configure said it couldn’t find “python-configure”).

    Here’s the problem that I have (and had , actually, before this upgrade; this problem was the reason to try higher version): when I record anything with arecord (or any other program, like ‘rec’, or Audacity), and than play it — the playback is very slow. With 1.0.18 I only got the problem itself. With 1.0.21 I get something useful (I think so) in the arecord output::

    pilat@pilat-desktop:~$ arecord 1.wav
    Recording WAVE ’1.wav’ : Unsigned 8 bit, Rate 8000 Hz, Mono
    Invalid rate plugin version 10002

    One more note: with alsa v1.0.21 the recorded sound is much less noisy, though still very slow.

    Can you help me in trobleshooting this problem? Should I install higher version of libasound2-plugins (currently I have 1.0.18) or something like that?

  66. Mohammad Says:

    It works 100%
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    Compiled on Oct 22 2009 for kernel 2.6.28-15-generic (SMP).
    speakers and headphone are working FINE now on my hp pavilion dv6

    Thanks

  67. Jacques Says:

    This fine except that it needs repeating after an update.

    Is there a way to avoid this?

    I have better things to do than repeating these command lines after every update that resets the alsa back to 1.0.18rc3.

  68. Morten Says:

    Hi
    I just updated to ver 21 from 20 on ubuntu 9.04. In ver 20 the sound was very low. In ver 21 is gone. No sound at all.
    Any hints?
    BTW cool guide!
    Morten :-)

  69. Morten Says:

    It is so nice to find the error your self!!!
    Even when it’s a error 40 :-)
    Pcm (what ever that is) was muted

  70. mike Says:

    hi,

    works a treat on my HP dv7 2160eg,thanks

  71. Andrea Says:

    Hi all.
    Great guide, easy to follow.
    I have a Compaq CQ71-110EL, I had followed every step and now Alsa is 1.0.21 but no sound is coming from the speakers.
    What should I do?

  72. Andrea Says:

    Problem solved,

    I had to go to /etc/modprobe.d/alsa-base.conf, open it with editor and add:

    options snd-hda-intel model=hp-dv5

    now it works, hope this will help.

  73. Martin Says:

    Many thanks – worked for me.

  74. ezze66 Says:

    thanks!!! this solved my audio device problem!

    =)

  75. ron beltran Says:

    hi thanks for your tutorial , actually ive installed ubuntu 9.04 in my amd turion x2 laptop but no sound at all then i found your page and upgrading alsa to version 1.0.21 really solves my problem. for those people out there whose experiencing sound problem in ubuntu please try updrage your alsa version maybe it will work.

  76. Anthony Rooney Says:

    I had a fully working Compaq Presario laptop running 8.04 with sound and wireless until I was stupid enough to accept a recommended upgrade to version 9.10 which run through without error until rebooting to my current dead state. i experience enough pain getting 8.04 working to at least considered capturing an image so I would have a backout plan however you might be syrprised I trusted Update Manager.

    I ran through the instructions above carefully character by character painfully not knowing what on earth any of it meant and in the end of it all I was still on the same version of ALSA. In the year 2009 is there no GUI where we can upgrade sound drivers I mean in the name of God what is this obsession with syntax sensitive command line terminals.

    How can an upgrade run without error and leave you dead in the water on a working system? A total and complete failure of Ubuntu and it appears that there are thousands in the same boat.

    When I reached thre stage Compile the Alsa Driver I got the error when Checking for directory with Kernal Source. “The file included in Linux / Version.h does not exist. Install the package with full Kernal sources for your distribution???” Sorry I was just following instructions.

    I kicked on to install the Alsa-Lib and Alsa-utils which seemed to work but I noticed an error “Sufficiently new version of Libasound not found so i tried the symbolic links part but to no avail.

    Where do I go from here?

    I guss if I can get sound I face the same character by character cryptic puzzel to get my Wireless card working and perhaps the touchpad or parhaps not.

    Who ever said that Ubuntu upgrade was an improvement and when will there be a GUI based O/S from Linux??

    Kick out the command line Taliban and give us a GUI we can use – PLEASE.

  77. alpho2k Says:

    I think you should try a fresh install of Ubuntu 9.10 instead of upgrading it from 8.04.

  78. g33k Says:

    Cant install them for server kernel!
    E: Package linux-headers-2.6.31-14-server has no installation candidate

  79. Anthony Rooney Says:

    I discovered that i had Kernel 2.6.31-14 installed with the help of some very knowledgable dudes on Luanchpad however following hours of troubleshooting we could not get ti to be selectable in GRUB. They all gave up even though my system hasd been left in a state that is supposed to be impossible.

    Too many questions to list however unavoidable truth that cannot be escaped that Ubuntu update manager applied an update over a working system with recognisable configuration files and reported the process completed without error and yet stuffed the system up to the extent it is not recoverable. This was not an upgrade tfrom a foreign system. Thjs was not a migration. This was Linux to Linux and a complete failure.

    This is not the 1st time that I have directly encountered failed installations on this platform and I now conclude that it is unrealiable and flawed. No recoverability, no backout and no GUI to help average computer users troubleshoot and at least learn something from the whole unfortunate situation.

    I spent 11 hours on this occasion and know nothing of what happened to my system.

  80. John Says:

    Many thanks for this tutorial, worked fine for me after struggling for a week to get some sound out of my CQ71

  81. Anthony Rooney Says:

    I got Ubuntu to load into the correct kenel by manually editing the Munu.lst file and I recovered my sound and touchpad however the wireless card will not work and the MADWIFI driver seems to not work peoperly with 9.10 yet.

    I will look at downgrading however i learned something from the experience to never trust Update Manager unless you have a complete image of your system expect to be hosed.

  82. Rajanikanth Says:

    Hi..
    Thanks for giving step by step procedure..

    I am not getting sound from the speakers(only through earphones)…how can i get rid of this???

    in windows i am using IDT drivers..I am using Dell Vostro 1520

    Thanks in Advance

  83. Brian Ellis Says:

    THANK YOU for a great guide, very well written and broken down for people like me new to Linux. This worked great. I found though that instead of rebooting, you can run:

    sudo alsa force-reload

    and it will reload everything with a pop-up in my x-windows asking if I wanted to reload. My version is now 1.0.21 without rebooting (unless I’m missing something or a reason that a reboot is still needed). One thing though, alsaconf isn’t found. I’m guessing that’s a path issue?

  84. Craig Says:

    Great work! Blasting some sounds right now.

  85. daffy88 Says:

    it took me one night to solve the problem.. whalaaaa… any its worth it, this is my first time using linux.. cheers

  86. dizzle Says:

    i made the mistake of typing in
    sudo ln -s libpanelw.so.5 /usr/lib/libformw.so
    instead of
    sudo ln -s libformw.so.5 /usr/lib/libformw.so

    how do i fix it?

  87. alpho2k Says:

    You need to use the “unlink” command like this :

    sudo unlink /usr/lib/libformw.so

    this will remove the symbolic link.

  88. Mikhail Says:

    I was wondering can you not just add a PPA or temporarily change software sources and then ugrade through the package manager? Or would this just pull in too many new packages and break Jaunty?

  89. Mark Says:

    @Mikhail: Yes, I already tried that approach. Installing via a PPA will break Jaunty or Karmic. The procedure above seems to be the safest approach by far.

  90. ERIS Says:

    Thanks, with help of this post i finally could solve the problem with audio

  91. Vicky Says:

    HI,

    Thanks for the post.
    I also encountered the same problem, configure: error: panelw library not found, and I did what you said.

    add those symbolics links and restart the installation from the last “sudo ./configure” :
    sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
    sudo ln -s libformw.so.5 /usr/lib/libformw.so
    sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
    sudo ln -s libncursesw.so.5 /lib/libncursesw.so

    There is no error in the “sudo ./configure”, but in next step “sudo make”.
    like this:
    ————————————————————————————————–
    Making all in init
    make[2]: Entering directory `/home/vicky/ALSA/alsa-utils-1.0.21/alsactl/init’
    make[2]: Nothing to be done for `all’.
    make[2]: Leaving directory `/home/vicky/ALSA/alsa-utils-1.0.21/alsactl/init’
    make[2]: Entering directory `/home/vicky/ALSA/alsa-utils-1.0.21/alsactl’
    xmlto man alsactl_init.xml
    /bin/bash: xmlto: command not found
    make[2]: *** [alsactl_init.7] Error 127
    make[2]: Leaving directory `/home/vicky/ALSA/alsa-utils-1.0.21/alsactl’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/vicky/ALSA/alsa-utils-1.0.21/alsactl’
    make: *** [all-recursive] Error 1
    —————————————————————————————————–

    How could I to fix it? Could you give me some advice? Please…
    Installing the ALSA package exhausts me!

    Thank you very much!!

  92. Vicky Says:

    sorry, I ask so stupid question.

    just do this if you have the same error as mine, it will be solved: sudo apt-get install xmlto

    but I have “new” error again when I do “sudo modprobe snd-intel8x0″
    there is a error:
    ——————————————————————————————-
    FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.31-15-generic/kernel/sound/pci/snd-intel8x0.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    ——————————————————————————————–

    how can I do?
    Thanks again!!

  93. alpho2k Says:

    Sorry, I really dont know how to solve your last error. Did you check on google?

    For xmlto, you were suppose to install it at the beginning of the tutorial. Did you do all the tutorial?

  94. quixote Says:

    This has been a real find! Thanks for a tutorial that works on the first try!

    Now I have the same issue as Jacques (#67): After a recent kernel upgrade, ubuntu has unhelpfully kicked everything back to .18. >(

    I’m sure if I go through all the steps, everything will work again, but there has to be a more elegant way! Isn’t there some way to tell the kernel to use the already-compiled-and-ready .21 instead??

  95. Aaron Says:

    Dude, this tutorial was just awesome. It did everything it said and delivered without hassle or the headache of meticulously working out how to compile everything. Thanks :D

  96. hug Says:

    i’ve got a problem….

    after writing “sudo alsaconf” i get this:

    sudo: alsaconf: command not found

    what should i do????

  97. saikat Says:

    thanks a lot for ur post.
    it really worked.

  98. Thomas Dietrich Says:

    Thanks for your post. I’ve read so many different articles on how to get my audio working! None of them were successful until I came to yours. Everything else I tried seemed to just make things worse, but yours was thorough and resulted in working sound.

    The only part I would change is the warning after you run the sudo ./configure for alsa-utils. By the time I got to your warning message I had already run make and make install, which resulted in the information from the ./configure being scrolled out of my screen buffer. I couldn’t check for the error you mentioned! I manually checked the folder for the links, found they were there, assumed that I didn’t get the error, and moved forward.

    Thanks again!
    Tom

  99. Grumpy Geek Says:

    Thanks for the pointer, headphones working on my Aspire 4530 now.

  100. Jim Says:

    Thanks for the post. This worked without error on an HP Mini 110 netbook with desktop-style Ubuntu Jaunty (not the netbook remix) and sound works now. I was a bit nervous since I had only been messing with Ubuntu seriously for a few weeks when I did it.

  101. srinivas Says:

    This article was really helpful i really appreciate the author, thanks a lot for this great article. i was breaking my head from past 4 months to to fix firefox + flash player plugin issue after ubuntu upgrade to .10. i just followed the above steps and all worked fine..
    Once again thanks a lot..

  102. Peter Says:

    Nice tutorial, sound is finally working on MacBook Pro unfortunately only on headphones. How do I enable speakers?

  103. Peter Says:

    Fixed!

    amixer set ‘Front Speaker’ 100% unmute

  104. PC Repair Says:

    Thanks for this awesome tip on getting the sound working. We have been battling with one of the machines we got, the whole week was spent on getting it to work until we came across this article.

    Lovely job, and thanks for sharing it :)

  105. DB Says:

    i tried your method and it failed. I am using ubuntu 9.10 my deafult OS (Win 7 64-bit).

    Did what you said, and it failed, so ty but it just doesn’t work

  106. André Taiar Says:

    Thanks a LOT for the tip with the symbolic links!

  107. stblack Says:

    Perfect.
    My dv6-1323 now it’s working and I can listen music.
    The only part that it’s not working is the front external jack audio input and output.
    Any suggestions?

    Thanks

  108. Nick Says:

    Great tutorial…fixed all sound issues on my revo 3100 that had been struggling to fix for that past couple of weeks.

    Many thanks – Nick

  109. Godboon Says:

    Worked great for me for Dell Inspiron 1440 running Ubuntu 9.10.. Thanks for the guide!

  110. netkillercat Says:

    big up
    nice job dude
    keep up the good work man

    Netkillercat

  111. gehtdi nixan Says:

    you fixed my problem!
    after upgrade from 9.4 to 9.10 the sound output stopped working.

    thank s for the easy tutorial , keep up the good work.

  112. Alicia Says:

    Hi, thank you for the answer…i managed to install the update, i got this message

    Advanced Linux Sound Architecture Driver Version 1.0.21.
    Compiled on Dec 18 2009 for kernel 2.6.31-16-generic-pae (SMP).

    But I still have no sound…
    do i have to uninstall pulse audio?

  113. Syed Says:

    Thanks for the accurate and clear instruction. I got my sound working perfectly.
    Thanks again for the great help.

    Syed.

  114. pettern Says:

    Hi, thanks for a super guide, had some trouble getting things to work but came across a tip witch helped me, i went to the alsa-driver directory witch in this case was /usr/src/alsa/alsa-driver* and ran ./snddevices after this everything worked great, hope this helps.

  115. Francois Says:

    Fantastic guide. I changed motherboard with HDMI capability. Just to check if the new hardware works, I booted a live Ubuntu 9.10 Karmic CD. The HDMI, and SPDIF optical worked fine. I did not want to do an upgrade from 9.04 to 9.10 and this did the trick. Many thanks and Merry Christmas!

  116. Sastrawan Says:

    The trick really did the job on my Dell Inspiron 1440. Thanks !. You Rock !

  117. Dayssam Says:

    Thank You , It’s Worked for me :)

  118. n for newbie Says:

    it works!!

    remember about sudo ./configure again after ln -s ……….

  119. alun Says:

    it works… thank you sir… :)

  120. nimbus Says:

    So near, yet so far. The scripts ran perfectly on my machine. ECS A780GM-A with ATI HDMI card, but no sound. “sudo alsaconf” ran just fine and recognized the card fine and configured things just fine, but no sound yet. Even on VLC Media Player and MPlayer.

  121. Drew Says:

    This has fixed some things for me, but it has broken skype. I can no longer use the internal speaker of my laptop with skype.

    Also, is there a way to store the volume settings so they are not set to mute for my internal audio and raging blast for my wireless headphones every time? It’s very bad for my ears (and my blood pressure).
    >:-|

    I’ve tried to downgrade to the ubuntu version 1.0.20 by sudo aptitude reinstall alsa-base but the problems persist. :( Any recommended course of action?

    Thanks!

  122. Drew Says:

    Oh, fyi, thinkpad T60 with karmic & KDE, i.e. kubuntu.

  123. Tom Says:

    Thank you so very much for your detailed instructions.
    We had problems on HP 4515s with Ubuntu 9.04, but with your help it works perfectly now!
    After the driver installation I had to put in the code


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

    as somebody has advised earlier.
    Thank you again.
    Take care.

  124. Guillermo Says:

    Thank you very much. Merci beaucoup! It has been very useful for me. I am still keeping 9.04 and I needed this upgrade. After this upgrade I managed to make work my Genius USB headsets.

  125. momo85 Says:

    hallo, I followed all the steps but when I enter the command sudo alsaconf tells me command not found
    Marco

  126. Tapas Mishra Says:

    Thanks buddy it worked.

  127. Edier Says:

    Muchas gracias, tengo un laptop dell inspiron 14 de 64 bits con ubuntu 9.04 de 32bits, en este solo funcionaba el sonido por los auriculares y con la actualizacion ya suenan los altavoces integrados.

Other Discussion on This Post

  1. Casa di Massoni » Blog Archive » HP Compaq CQ 71 with Ubuntu 9.04
  2. Problemi audio in Ubuntu 9.04
  3. Circo Linux – Articulos y Noticias sobre Gnu/Linux y lo que se nos ocurra. – Season 3. » Dell Vostro 1520 en Gnu/Linux. Ubuntu, Kubuntu, debian, fedora, otros.
  4. Twitted by peter_budo
  5. 瑞麗 Sound Image 火網 1723 音效卡 « 二師兄的筆記部落格

Leave a Reply

Live Comment Preview

 
WordPress Loves AJAX