View Full Version : HOW TO: Remove PulseAudio and Install ESound (ALSA)
coldReactive
August 2nd, 2009, 04:30 PM
DO NOT USE THIS TUTORIAL ON X/K/ubuntu 9.10!
This is quite a simple tutorial, it only takes a few steps, and will have your sound system/manager not be listed in the processes list under top/etc. Before we begin, make sure that you BACK-UP /etc/X11/Xsession.d/70pulseaudio just in case this does not work. I can't stress this enough, as I will be UNABLE to provide support for this tutorial.
Step One: Open Terminal
Applications > Accessories > Terminal
Step Two: Run The Commands Through Terminal
killall pulseaudio
sudo apt-get remove pulseaudio
sudo apt-get install esound
sudo rm /etc/X11/Xsession.d/70pulseaudio
sudo apt-get purge pulseaudio
Step Three: Reboot The System
After rebooting, login and see if sound actually works. Depending on your Ubuntu version, the login/startup sound will not play with ESound. ESound will work for DVD Playback.
Warning: ESound will/may not show up in the sound configurations, they will display as automatic, like below.
http://i32.tinypic.com/ru43g7.png
simplyw00x
August 6th, 2009, 08:36 AM
What exactly is the benefit of uninstalling Pulseaudio? It works fine for me, and you haven't mentioned either what benefits you think it will give or what features you will definitely lose.
coldReactive
August 6th, 2009, 05:37 PM
What exactly is the benefit of uninstalling Pulseaudio? It works fine for me, and you haven't mentioned either what benefits you think it will give or what features you will definitely lose.
ESound doesn't take up as much processing power (if any at all) as pulseaudio does. Not to mention, it's only about 200-400 KB in size, and only one package rather than a few.
Keranu
August 15th, 2009, 10:02 AM
I tried doing it, but I don't see Esound listed anywhere in my Sound Preferences window and PulseAudio is still listed. Here is my terminal log if it's of any help:
keranu@humphrey:~$ sudo killall pulseaudio
[sudo] password for keranu:
keranu@humphrey:~$ sudo apt-get remove pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pulseaudio ubuntu-desktop
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1880kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 157424 files and directories currently installed.)
Removing ubuntu-desktop ...
Removing pulseaudio ...
* PulseAudio configured for per-user sessions
Processing triggers for man-db ...
keranu@humphrey:~$ sudo apt-get install esound
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pulseaudio-esound-compat
The following NEW packages will be installed:
esound
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/28.1kB of archives.
After this operation, 90.1kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 157334 files and directories currently installed.)
Removing pulseaudio-esound-compat ...
Processing triggers for man-db ...
Selecting previously deselected package esound.
(Reading database ... 157322 files and directories currently installed.)
Unpacking esound (from .../esound_0.2.40-0ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Setting up esound (0.2.40-0ubuntu3) ...
keranu@humphrey:~$ sudo rm /etc/X11/Xsession.d/70pulseaudio
rm: cannot remove `/etc/X11/Xsession.d/70pulseaudio': No such file or directory
keranu@humphrey:~$ sudo rm /etc/X11/Xsession.d/70pulseaudio.back
keranu@humphrey:~$ sudo apt-get purge pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pulseaudio is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
keranu@humphrey:~$
coldReactive
August 15th, 2009, 11:05 AM
ESound will not show itself in sound configs. It will show as automatic.
colorprint
August 15th, 2009, 02:27 PM
Can't use keyboard volume and mute keys after this :(
coldReactive
August 15th, 2009, 02:35 PM
Can't use keyboard volume and mute keys after this :(
I can use them with an iHome keyboard. Maybe it's keyboard specific.
colorprint
August 15th, 2009, 03:04 PM
It worked with pulseaudio...
Also with esound the gnome taskbar mixer/volume applet not works, and gnome-volume-control not works too :(
coldReactive
August 15th, 2009, 04:08 PM
type in terminal
esd --help
and tell me what it says for Possible devices are:
colorprint
August 15th, 2009, 04:16 PM
Possible devices are: hw:0 (HDA NVidia)
coldReactive
August 15th, 2009, 04:27 PM
Possible devices are: hw:0 (HDA NVidia)
Download and save this page as alsa-info.sh (http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/alsa-info.sh)
Right-Click alsa-info.sh > Properties > Permissions Tab; make sure that Allow executing file as program is checked.
In terminal, cd to where alsa-info.sh is located, and run it by typing in ./alsa-info.sh
When it prompts you to upload the data to the alsa server, tell it no.
After it completes, go to tmp in your / (filesystem) and paste your alsa-info.txt between CODE BBCode tags, or upload it
colorprint
August 15th, 2009, 04:37 PM
I have attached it
colorprint
August 15th, 2009, 04:42 PM
gnome-alsamixer works for example...
but gnome-volume-control and gnome-volume-control-applet not works, and I think keyboard volume keys not works because of gnome-volume-control-applet too...
coldReactive
August 15th, 2009, 04:59 PM
gnome-alsamixer works for example...
but gnome-volume-control and gnome-volume-control-applet not works, and I think keyboard volume keys not works because of gnome-volume-control-applet too...
ALT+F2 and type in esd. Then hit Run. A sound effect should play. Then, try it again. If it works after that...
Make sure that your mixer (System > Preferences > Sound) looks like this:
http://i32.tinypic.com/ru43g7.png
Reboot the machine after hitting OK. See if this helps. ESound isn't running according to your alsa-info.
colorprint
August 15th, 2009, 05:11 PM
ALT+F2 and type in esd. Then hit Run. A sound effect should play. Then, try it again. If it works after that...
no any sounds :(
Make sure that your mixer (System > Preferences > Sound) looks like this:
It is the gnome-volume-control , not works as I write before...
It only shows a small window about "waiting for response from sound subsystem"
Reboot the machine after hitting OK. See if this helps. ESound isn't running according to your alsa-info.
Rebooted twice, still no any progress :(
coldReactive
August 15th, 2009, 05:14 PM
Rebooted twice, still no any progress :(
Try esd -d hw:0
colorprint
August 15th, 2009, 05:18 PM
root@Anton-HP:/tmp# esd -d hw:0
- using device hw:0
root@Anton-HP:/tmp# ps ax | grep esd
13362 pts/1 S+ 0:00 grep esd
root@Anton-HP:/tmp#
colorprint
August 15th, 2009, 05:31 PM
if running just "esd" I see it in ps output:
root@Anton-HP:/tmp# ps ax | grep esd
4009 ? SL 0:00 esd
4387 pts/1 S+ 0:00 grep esd
and alsa-info.sh reports after this:
ESound Daemon:
Installed - Yes (/usr/bin/esd)
Running - Yes
But System > Preferences > Sound (gnome-volume-control) and gnome mixer applet (gnome-volume-control-applet ) not works anyway...
coldReactive
August 15th, 2009, 05:40 PM
You might want to create a new topic about the issue, I'm sorry.
colorprint
August 15th, 2009, 05:42 PM
ok thanks for help anyway
Katalog
August 15th, 2009, 06:15 PM
What exactly is the benefit of uninstalling Pulseaudio? It works fine for me, and you haven't mentioned either what benefits you think it will give or what features you will definitely lose.
ESound doesn't take up as much processing power (if any at all) as pulseaudio does. Not to mention, it's only about 200-400 KB in size, and only one package rather than a few.
My opinion (and that's all it is - my opinion, so keep that in mind while you read this post) is that unless you have extremely limited resources or some kind of old or incompatible hardware that your system would actually benefit from purging PulseAudio from your system, that you're probably better off learning how to set up PulseAudio correctly (which is almost as easy as geting rid of it) and becoming familiar with it, because it is not going away. This is the future my friends, and there may come a day in the not so distant future when you may not have the option, or they will at least make it more difficult, to fall back on ESound any more. Yes, Pulse uses more resources and it does take more packages, but it also supports a wider range of devices. Pulse is indeed broken and only halfway installed in Ubuntu 9.04, but it is possible to install the missing packages and get it running correctly on Hardy, Intrepid and Jaunty:
HOWTO: PulseAudio Fixes & System-Wide Equalizer Support (http://ubuntuforums.org/showthread.php?t=789578)
I too was opposed to PulseAudio in the beginning because I saw no need for yet another Linux sound architecture, but now that I have it set up and working like it's supposed to, I actually quite like it. And I'm running it on an Eee PC 1000HA netbook with a puny little 1.6GHz N270 Atom processor, and the performance hit has not been as dreadful as I expected, and will only get better as the developers continue to improve it.
Like I said, this is just my opinion. Take it for what it's worth. I'm not trying to start a debate, I just wanted to present a logical reason for adopting it rather than getting rid of it. Just my two cents on the subject, that's all.
Temüjin
August 15th, 2009, 08:22 PM
Esound? Esound? No!
Esound is useful for those running Hardy, who want to get rid of PulseAudio and still have system/event sounds. Other than that, run as far away from esound as you can. There is a reason that it has been replaced by libcanberra.
coldReactive
August 15th, 2009, 08:29 PM
Esound? Esound? No!
Esound is useful for those running Hardy, who want to get rid of PulseAudio and still have system/event sounds. Other than that, run as far away from esound as you can. There is a reason that it has been replaced by libcanberra.
I don't like seeing pulseaudio in any system monitoring software.
Temüjin
August 15th, 2009, 09:18 PM
I don't like seeing pulseaudio in any system monitoring software.
Removing pulseaudio is okay for now, but GNOME is becoming increasingly dependent on Pulseaudio. In Ubuntu 9.10, it's a real challenge to go without PulseAudio (I run an Ubuntu 9.10 with OSS4 and the volume control and sound settings dialogs don't run without it.)
colorprint
August 16th, 2009, 03:41 AM
(I run an Ubuntu 9.10 with OSS4 and the volume control and sound settings dialogs don't run without it.)
Yes, I have the same problem on 9.10 with Esound :(
coldReactive
August 16th, 2009, 05:34 AM
Yes, I have the same problem on 9.10 with Esound :(
That's your problem then.
Jose Catre-Vandis
September 12th, 2009, 11:42 AM
This worked fine for me. I had followed the "Howto Setup up Pulse Audio tut" but this killed esound from Audacious, VLC, Totem. So removing pulseaudio fixed it for me :)
edwinluischm
October 24th, 2009, 01:56 AM
I like remove pulseaudio because don't work with the microphone on VirtualBox 3.
Temüjin
December 3rd, 2009, 09:02 AM
Ok, for those running GNOME in Karmic without PulseAudio, who want their volume control and media-keys back: https://launchpad.net/~dtl131/+archive/ppa
woodmaster
January 1st, 2010, 09:53 PM
I'm a bit of an Ubuntu noob, but...I can't find this screen...how do I get there?
http://i32.tinypic.com/ru43g7.png
Temüjin
January 2nd, 2010, 04:54 AM
woodmaster: https://bugs.launchpad.net/ubuntu/+source/gnome-media/+bug/400973/comments/11
Ignore what it says about the mixing. Just grab the gnome packages from the PPA I linked to in the last post, and the classic GNOME volume control/mixer will be available on the next boot (you may have to re-add the 'volume control applet' to your panel).
skyraven
March 5th, 2010, 01:19 PM
Hello there guys,
I have a small question..don't shoot me for it..I read the big title but still this is the only relevant thread:)
I'm using the NxServer - NxClient combination...that forwards display, sound, etc from the server to the "terminal" which can run on Linux/Windows/etc.
The bad part..is that NxServer requires ESD installed (it's running it's own ESD process from which it forwards sound) and if it doesn't receive anything there it won't get me any sound.
Does anyone have any good tutorial on replacing Pulse with ESD on Ubuntu 9.10 ?
I've done so far removing, purging pulseaudio, configuring gstreamer-properties, placing the packages from https://launchpad.net/~dtl131/+archive/ppa (but with partial luck..I only got the volume control to appear).
With all these..totem player the default player for example still goes with something other then ESD and no sound can be heard.
Also I can't configure the distribution sound theme as I'm having no more menu for that.
Can I ask for some kind and patient help ? :) other than a RTFM as I'm already banging my head against the wall.
junn0suk3
March 14th, 2010, 08:46 AM
Ok, for those running GNOME in Karmic without PulseAudio, who want their volume control and media-keys back: https://launchpad.net/~dtl131/+archive/ppa
At last! I had an issue with skype in pulseaudio (the sound was horrendously buggy and the external mic on my Acer Aspire 1 did not work) which made me just remove the whole thing (pulseaudio, I really need my skype); thanks for the help to get my volume controls via hotkeys back.
aeon.flux
April 25th, 2010, 12:58 PM
What exactly is the benefit of uninstalling Pulseaudio? It works fine for me, and you haven't mentioned either what benefits you think it will give or what features you will definitely lose.
i've just found this thread useful, because i play "warsow" (first person shooting game) and when i listen music (in any player using pulseaudio) and playing that game, the sounds in game often stops and i there's a problem to turn off that game (i have to pres Ctrl+Alt+F4 , type killall warsow_bin) so this is very useful :)))
ESDEEM
April 10th, 2011, 09:57 AM
Contented with this thread...Now I use ALSA over pulseaudio....smoother than the latter...no loop stucks...!:razz:
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.