On Tue, Aug 07, 2007 at 10:25:09AM +0300, Timo Juhani Lindfors wrote: > I noticed today that pulseaudio daemon was spending 5% of cpu time > (this is a 200MHz pentium) constantly even when it was supposed to be > completely idle.
This is expected behaviour for pulseaudio. Pulseaudio, by design, plays silence to all sinks that don't currently have any attached streams. This is to avoid the clicks and pops that most audio hardware produces when the audio device is turned on. Having said that though, there is one way to avoid this overhead. You can use the autoload feature to make pulseaudio only load the -sink/-source modules when a client requests them and unload them again when the last client disconnects. This should give you close to 0% cpu when pulseaudio is idle, but will probably pop and/or crackle when a stream starts playback. Another option is just to enlarge the audio output buffer. This can be done by passing the fragments and fragment_size options to module-alsa-sink/-source. This will drop the overall cpu usage for pulseaudio, and might be the better option on a 200Mhz machine. You can, of course, also combine both options. -- CJ van den Berg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]