<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I have had trouble getting pulseaudio to stay turned off and use no resources when nothing is connected to it and anything is using alsa directly. When I did my original Lucid/Pentium III experiments in 2010, Pulseaudio would use 15% of that very limied CPU with mplayer playing a vga resolution vidio using mpeg-4 video codec in mp4 container or a flash video of same dimensions. All of that CPU, not 85% of it, was needed to keep up. Configuring mplayer to use alsa or (in those days) oss did not change anything, pulseaudio still ran and still used that 15%.  Killing pulseaudio just caused it to respawn. The only way I ever found to reliably turn it on and off was a pair of scripts to change the permissions of the binary to allow or disallow execution, and to kill the process in the disallow case.<br><br>This turned out to be important for working with AVCHD video in kdenlive on an AMD Phenom II x4 workstation, a hell of a lot more machine than a Pentium III. In that case, pulseaudio worked fine in kdenlive(after the usual kdenlive hacks...)-until I asked it to work with the AVCHD files. Then it used too much resources, as once again, that camera I use produces a very processor-intensive codec. Thus, I cannot use pulsaudio in th video editing workstations because the most important program, kdenlive, stutters when loaded that heavily with pulseaudio in use. The sound cards in those machine work fine with just alsa, and kdenlive then keeps up except in transitions. The only thing that ever made it keep up in transitions was AMD bulldozer, an nvidia GTS 450, and the open source nouveau driver(NOT the binary blob!)<br><br>Since every pulseaudio update meant having to re-run the disable script, I threw in the towel and removed it from both desktops.<br><br>The Intel Atom laptops with the newer N450 chips had video playback issues in flash on Liveleak, and less so on mplayer-not enough memory bandwidth. Solutions turned out to be using a non-compositing desktop (don't run a unity/gnome-shell session) and to disable or remove pulseaudio-again. As a result, I cannot use pulseaudio on the laptop, leaving no machines to routinely monitor it's development and any improvements that might fix this down the line.<br><br>Best fix might be a better control for pulseaudio, one that can turn it on or off, and it will stay on or stay off and not respawn. This would have to be combined with a volume control that works both with and without pulseaudio running.  I agree that for any kind of maximum performace workstation, as well as for video playback with limited resources, people are going to have to set up sound for their particular circumstances.  Possibly some kind of GUI control for US that would control jack, pulse, and alsa configurations from one screen? Maybe bring it up automatically at first run or in installation?<br><br><div>> Message: 3<br>> Date: Sat, 5 May 2012 13:32:22 -0700<br>> From: "Len Ovens" <len@ovenwerks.net><br>> To: "Ubuntu Studio Development & Technical Discussion"<br>>     <ubuntu-studio-devel@lists.ubuntu.com><br>> Subject: Re: State of Jack as a full pulsaudio replacement<br>> Message-ID:<br>>   <6e439a9c89ada09487e8fa1f3c25c540.squirrel@ssl.ovenwerks.net><br>> Content-Type: text/plain;charset=iso-8859-1<br>> <br>> <br>> On Sat, May 5, 2012 3:39 am, Kaj Ailomaa wrote:<br>> <br>> <br>> > I think the main problem is not pulseaudio itself anymore. It would be<br>> > nice to have a simple way to turn it off. I think it's more about<br>> > desktop control than the server itself that is the issue these days.<br>> <br>> I have found that turning pulse off is not needed. Pulse is quite happy to<br>> sit doing nothing taking up minimal resources if the PA-jack bridge module<br>> is unloaded. If PA is not bridged to jack then it is not forced to run at<br>> whatever latency jack is running at.<br>> <br>> PA-jack problem two, more than one audio card. Turn off the card not being<br>> used in pulse... makes a big difference with things like stuttering.<br>> <br>> There is no perfect solution yet. (maybe never) But just as in a hardware<br>> studio where patches have to be changed depending on use... care needs to<br>> be taken to set up jack and pulse in the virtual studio too. It's not<br>> auto, but this is a good thing, it allows me to get around problems that<br>> an auto mode might not.<br>> <br>> Pulse is what lots of apps are set up for. It is easier to change the<br>> routing on one piece of SW (pulse) than to reconfigure every pulse client<br>> to hit jack. It is a lot less work to just ship the same multimedia as<br>> other ubuntu distros. I don't like PA much either, but I use it anyway. I<br>> just have to be a little more aware of how it works than the average<br>> desktop user. As someone interesting in a low latency kernel, I've already<br>> taken one step in that direction and shown an interest in learning more.<br>> <br>> US is for those who have a desire to get more out of their equipment than<br>> the average desktop user, if it is tuning the audio/midi setup or<br>> calibrating a monitor. Time for more documentation. It looks like we need<br>> a page just on setting up sound..<br>> <br>> -- <br>> Len Ovens<br>> www.OvenWerks.net<br>> <br>> <br>> <br></div>                                       </div></body>
</html>