Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Just wondering if there a way to temporarily disable PulseAudio as I am trying to run a specific Wine game (Left 4 Dead 2) and it makes the game crash occasionally.

If I kill the process it automatically comes back up. Any suggestions?

share|improve this question

6 Answers 6

up vote 18 down vote accepted

You can use pasuspender. Try prefixing your wine command with it.

pasuspender -- wine path/to/file.exe
share|improve this answer

In /etc/pulse/client.conf, you can uncomment the line autospawn=yes and replace the yes with a "no". Of course this should be possible to set this in .pulse directory in your home directory.

A cleaner way to do this would be to create a client.conf in your .pulse dir in ~ and put the line "autospawn=no" in it. It would be good to turn back on autospawn after you have done what you need to do.

share|improve this answer
1  
Or, edcould be used to change the config before running the game, and change it back afterwards. –  hexafraction Jul 19 '12 at 15:33

I use the script:

#!/bin/bash
echo autospawn = no > $HOME/.config/pulse/client.conf
pulseaudio --kill
rm $HOME/.config/pulse/client.conf

Then play the game, then re-enable PA:

pulseaudio --start

Works on Xubuntu 13.10. Replace ".config/pulse" with ".pulse" in the script if it doesn't work (usually on old *buntues)

share|improve this answer
    
Very elegant approach. –  Rafał Cieślak Aug 26 at 11:44

Alt+F2 type pactl exit

stops all pulseaudio processes. You can enter

Alt+F2 type pulseaudio

to start it again. Unfortunately, some programs doesn't seem to sound anymore, after that. Still looking for a way to reactivate pulse without reboot…

share|improve this answer
    
pactl exit does not stop pulseaudio completely on my machine, it is immediately restarted (just like with pulseaudio -k). –  Philipp Wendler Aug 15 at 13:10

Try this Ubuntu Tips. It works fine on my Ubuntu 12.04 LTS.

Ubuntu Tip: Turning PulseAudio On and Off

share|improve this answer
2  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Mitch Oct 5 '12 at 14:45

What I did.... stopped it from respawning because it couldn't find it....... right click the /etc folder in the file browser (open as root) create a new folder called pulseoff, then move the pulse folder into it (drag and drop). The system doesn't have the command to look there for it. If you want to start it again, cut it from the pulseoff folder, go up a step to the /etc folder and paste it there...... Some people like to make it out to be harder than it really is with editing files and stuff and mostly those edits don't work I tried them. Do it the easy way. I restarted the machine and checked the system monitor before posting this, pulseaudio is not running and sucking up memory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.