September 11, 2008 · General · Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

By doing this procedure  you will get the following

  • Fully functional audio in all applications, including those currently incompatible with PulseAudio (e.g. Audacity, Blender, Skype, Second Life + voice chat, Flash)

  • The ability to use these applications side by side (using software sound mixing provided by ALSA or ESD)

By doing this procedure  you will lose the following

  • Ubuntu’s login and logout sounds (and any other system sounds you may have added to the default set)

Note:- This might disable complete your sound system use at your own risk

To implement the fix, perform the following steps

  • Open the sound configuration panel (System > Preferences > Sound).

  • On the “devices” tab, set all devices to “ALSA”.
  • On the “sounds” tab, disable “play system sounds”.
  • Leave “software sound mixing (ESD)” enabled.
  • Close the panel.


Open a terminal window (Applications > Accessories > Terminal).

Enter the following commands:

sudo apt-get remove pulseaudio

sudo apt-get install esound

exit

– or — Use the following procedure for GUI method

Open Synaptic (System > Administration > Synaptic Package Manager).

Search for the package “pulseaudio” and mark it for removal.

Search for the package “esound” and mark it for installation.

Apply the changes, then quit Synaptic.

Restart the computer.

Remarks

This will remove PulseAudio and replace it with ESD. The resulting sound setup will be similar to Ubuntu 7.10 and previous versions. Any issues unrelated to PulseAudio will not be affected in any way.

To restore the original setup, install the packages “pulseaudio” and “pulseaudio-esound-compat”, then re-enable system sounds.

If you really want the login sound, you can do this:

Create a script file with the following lines:

#!/bin/bash
aplay /usr/share/sounds/login.wav

Name it anything you like (within reason  ). Make it executable.

Open Sessions Preferences (System -> Preferences -> Sessions)

Under Startup Programs you can add your script file to the list of additional startup programs.

  • Share/Save/Bookmark

Related Articles

17 Comments to “Howto solve all PulseAudio-related issues in Ubuntu”

  1. Josekont says:

    Muchas gracias amigo!
    Thank you friend!

    This was the solution for mi laptop Toshiba!! You are welcome. I’m sorry, but i’dont write english very well becouse my first languaje is Spanish.

  2. Alex says:

    Thank You.
    Hope this will fix all the pulseaudio issues in Ubuntu 8.04.
    Cheers~

  3. mcgregory says:

    pulseaudio is required by ubuntu-desktop.
    How do you resolve that ?

    # aptitude remove pulseaudio
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Reading extended state information
    Initializing package states… Done
    Building tag database… Done
    The following packages are BROKEN:
    ubuntu-desktop
    The following packages will be REMOVED:
    pulseaudio
    0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 1106kB will be freed.
    The following packages have unmet dependencies:
    ubuntu-desktop: Depends: pulseaudio but it is not installable
    Resolving dependencies…
    The following actions will resolve these dependencies:

    Remove the following packages:
    ubuntu-desktop

    Leave the following dependencies unresolved:
    libpulsecore5 recommends pulseaudio
    Score is -81

    Accept this solution? [Y/n/q/?]

  4. amine says:

    now all the sound is gone! why please?

  5. Daniel says:

    Nice hack.

    It’s similar to putting your head in the sand, so you don’t see them coming.

    This is not ’solving’ all pulseaudio problems… this is *removing* pulseaudio alltogether. Back to the stoneage!

    The pulseaudio forums have all the info on how to set it up to work with any esound-, alsa-, or any other sound system- compatible apps. It’s just a matter of reading it through.

    I have, and I have pulseaudio working with all my Ubuntu apps (native or otherwise) – mplayer, gxine, helix, rhythmbox, audacity.. you name it, I got it.

    Daniel

  6. Peter says:

    Well done. I’ve seen many other options for getting the apps to work with PulseAudio, but this seems to be the most straight forward solution. My Skype microphone works again.

  7. Brett says:

    I’ve never had too much trouble. I just did a bit of hacking here and there and everything just works. Totem, xine, mplayer, FF, audacity, baudline, xmms, amarok. I’ve even got Mythbuntu with mplayer running all my TV and movies perfectly with pulse and even use pulse to send the audio from my laptop to the myth box so that all audio played on the laptop can be sent via wifi to be played on the house central stereo. Pulse just works with a tiny bit of fiddling here and there.

  8. Alex says:

    Worked nice in Hardy.
    In Intrepid it makes it so you can’t log in to xorg. This bricked my fresh install. I could hunt around for a fix or just install Intrepid again. People don’t use this “fix” in Intrepid! I would suggest taking this post down or leave it up with a fix for your “fix”.

  9. Jake says:

    Nice how-to, but what do you do about the fact that ubuntu-desktop depends on pulseaudio?

  10. NcicHit says:

    I installed Mint Linux and was having sound problems with a Windows album recording software program running under WINE. I used the above method and it fixed the problem. I had to use OSS in Amaraok and it fixed that problem too. Now everything I play music with works with ALSA and I haven’t had any other sound problems.
    Thanks for this tip.

  11. I can’t believe Intrepid is still shipping with this, pulseaudio crashes more frequently than anything else.

  12. Ubukool says:

    Pulseaudio does, indeed suck!

    To get round the problem of not being able to login in Intrepid, you need to go into safe mode and execute this command:

    sudo rm /etc/X11/Xsession.d/70pulseaudio

    Then you will be able to login. I really hope they get this sorted out. There’s been a lot of sound problems for me since Hardy – in fact, I went from Gutsy to Intrepid because Hardy sucked so bad in the sound department. Either pulseaudio has not been implemented correctly in Ubuntu or it’s still at an early stage of development and so it shouldn’t have been included, I don’t know which. Good luck with your sound issues everyone!

  13. Français (tr.voila.fr): Merci beaucoup de poster le Pouls Audio fixent. Après les semaines d’enfer avec la Deuxième Vie s’écrase cela fixe finalement a arrêté tous les accidents et le gel ups. C’est un épargnant de vie fixent.

    English: Thank you very much for posting Pulse Audio fix. After weeks of hell with Second Life crashes this fix finally stopped all crashes and freeze ups. This is a life saver fix.

  14. MDxm says:

    This is not a solution for PulseAudio by a long shot, it’s getting rid of Pulseaudio. I now run latest Pulseaudio without problems in Ubuntu. :) Search how to setup Pulseaudio better, that’s the right solution!

  15. GOSteen says:

    To all those complaining that this is not a viable solution; for some of us, this is the only solution we have. PulseAudio does not work properly with many popular audio chipsets even though there is more than one layer of abstraction. Some of these bugs may be due to ALSA but considering that using ALSA directly still works and PulseAudio randomly crashes(without any error message, even with debugging at full verbosity) thus freezing any applications uses it and occasionally even the underlying system, I think the problem(and solution) is obvious. Left with the inability to fix PulseAudio’s problems, the only solution left is to remove it completely.

    I have been using Linux for a very long time(since well before ALSA showed up) and the problems I experienced with PulseAudio, after having researched and following multiple guides on solving various problems related to PulseAudio, left me with the choice of removing PulseAudio or installing Windows.

    PulseAudio is yet another project where the theory is sound but the implementation sucks. PulseAudio has failed me on multiple machines with entirely different sound chipsets(including one system that had a CreativeLabs SoundBlaster 16..arguably the PERFECT soundcard) and in multiple distributions(ArchLinux, Gentoo, Debian, Ubuntu, Fedora, even Slackware). With all the major differences between these distributions and the systems upon which they ran it is clearly an issue that requires immediate solution and at current, since problems have been reported for months and it appears as though no one has put forth effort on actually fixing it, removal of PulseAudio is the only viable course of action.

    So again, to those people complaining that this isn’t an actual solution, please remember that people may experience different issues than you and may not have any other choice. Besides, who among you would not consider it solving all Windows-related problems if you were to replace it with Linux?

  16. Mark says:

    Thanks! great solution for intel chipset and skype. This solved all the audio problems I had in jaunty.

  17. Mark says:

    It looks like it got solved, but, now I do not have audio in flash movies.
    Any suggestions? Thanks

Leave a Reply