<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3743&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / High CPU by PulseAudio]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3743</link>
		<description><![CDATA[The most recent posts in High CPU by PulseAudio.]]></description>
		<lastBuildDate>Thu, 12 Nov 2020 21:57:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25826#p25826</link>
			<description><![CDATA[<div class="quotebox"><cite>Copper36 wrote:</cite><blockquote><div><p>2. A bunch of smaller things, that still might be very important. For example, you one needs PA in order to share sound in ZOOM.</p></div></blockquote></div><p>There is a package called apulse which provides a partial implementation of the PulseAudio API for ALSA. The command looks like</p><p><span class="bbc">apulse zoom</span></p><p>maybe it will fix the issue.</p>]]></description>
			<author><![CDATA[dummy@example.com (dzhigit)]]></author>
			<pubDate>Thu, 12 Nov 2020 21:57:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25826#p25826</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=25504#p25504</link>
			<description><![CDATA[<p>Hi,</p><p>I hate leaving business unfinished and that&#039;s why I&#039;m back:-). I&#039;ve finally managed to figure out what caused my problems and would like to share it, hoping that&#160; someone might find it useful.</p><p>First, I tried to completely get rid of PA. Can you live without PA? Yes. Will you like it? Maybe, but not so sure. After removing PA I still have sound (which is good), but faced a bunch of problems and restrictions, that included:<br />1. Very low max volume. I have a Windows system on the same laptop, so I could compare all 3: Win, PA and ALSA. ALSA had that low volume that in several cases I had to use headphones. I tried to fix it introducing an additional pre-amplifier via special script and it kind of worked - the sound became louder, but there appeared irregular sound distortions, that DID NOT depend on volume. So I had to disable the pre-amp.<br />2. A bunch of smaller things, that still might be very important. For example, you one needs PA in order to share sound in ZOOM.</p><p>Having all that, I decided to take a closer look at what exactly caused the high CPU consumption by PA. With re-installed PA I noticed that it starts taking up more and more CPU right after I use reader view in FF. PA Audio Mixer / Playback shows 3 more text to speech streams, which very likely were the culprits. Since I do not use this feature (text-to-speech), I removed a speech-dispatcher package (and its dependences) + orca-gnome just in case :-). And it looks like this made a trick. No additional streams, rather low CPU consumption by PA (though not a complete zero...). Technically, it seems it was possible to block text to speech instead, but as you can see I chose the radical solution :-).</p><p>The bottom line is that if you work with sound (professionally, as <strong>larsH</strong> in the thread above), you probably have an additional hi-fi amplifier and ALSA volume problems are non-existent, while sound quality is reportedly higher (compared to PA). On the other hand, for an average day-to-day cheap laptop user like me PA removal makes life a bit worse (see the points above).</p><p>Thanks for your attention.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Wed, 28 Oct 2020 19:06:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=25504#p25504</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24652#p24652</link>
			<description><![CDATA[<p>Some updates (with a question).<br />As I&#039;ve mentioned above, sound volume with ALSA alone became very low, so I tried to boost it somehow.<br />Fortunately, it is a relatively well-known issue and the most recommended solution is to add a pre-amplifier to ALSA. I used this tutorial:<br /><a href="https://alien.slackbook.org/blog/adding-an-alsa-software-pre-amp-to-fix-low-sound-levels/" rel="nofollow">https://alien.slackbook.org/blog/adding … nd-levels/</a><br />however whatever I tied I still could not see an additional &quot;pre-amp&quot; option in ALSA mixer.<br />Maybe the location/name of the .conf file should be different (Slackware vs Devuan)?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Mon, 14 Sep 2020 20:17:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24652#p24652</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24255#p24255</link>
			<description><![CDATA[<p>Some updates on &quot;living without PA&quot;:</p><p>1. With ALSA controls only, the sound is very quiet now. Only with Master/Speaker/PCM close to 100% it is kind of OK. Yes, it was much louder with PA (and Win7) and no, there were no sound distortions.</p><p>2. For some reason Clementine began to consume 10-12% CPU while playing any .mp3/.ogg file. It used to be about 3-4% and this is the number I see now using preinstalled QuodLibet or VLC. Clementine was installed from Devuan repos, all graphics/equalizer are turned off (as it was before, did not change anything).</p><p>So as usually happens, if smth is better, smth will definitely get worse :-)</p><p>Any ideas?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Fri, 21 Aug 2020 18:13:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24255#p24255</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24004#p24004</link>
			<description><![CDATA[<p>Hi</p><p>And as professionel I am using jack for most of this when it really matters. It reduces latency together with alsa, which in that situation is the most important thing. I also think using pulseaudio is much simpler for the programmer, because he does not need to take care of a lot of small details. But on high end gear I can hear a difference between pulseadio and alsa because of the higher latency.</p><p>Have a nice day<br />Lars H</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Tue, 11 Aug 2020 19:31:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24004#p24004</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24003#p24003</link>
			<description><![CDATA[<div class="quotebox"><cite>Copper36 wrote:</cite><blockquote><div><p>what are those things PA can do that ALSA can&#039;t?</p></div></blockquote></div><p>There are a few things like per-application volume levels (but almost every application that outputs sound has it&#039;s own volume control anyway), multiplexing (but this can be replicated in ALSA with the DMix plugin), sample rate conversion &amp; equalisation (but it&#039;s best to use a dedicated DAC for the former and not use the latter at all) and networked audio (if all the machines on the network also have PA) but the most important advantage is plain convenience — pure ALSA tends to require command line or text file configuration whereas PA has some nice GUIs to handle most tasks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 11 Aug 2020 19:12:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24003#p24003</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24002#p24002</link>
			<description><![CDATA[<p>So I&#039;ve removed PA with all configs and + autoremoved unneeded packages. Clementine and Skype both work fine. I&#039;ll check everything else and if there are no problems, I&#039;ll repeat the same on my &quot;production&quot; laptop :-)</p><p>Thanks a lot!</p><p>BTW, what are those things PA can do that ALSA can&#039;t? I mean, for a common user like me? For example, if I&#039;m listening to music and new mail comes with a sound notification, will that notification be heard on top of background music with/without PA?</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Tue, 11 Aug 2020 18:29:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24002#p24002</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24001#p24001</link>
			<description><![CDATA[<div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p>&quot;Comment out&quot; looks like this:<br /><em># autospawn=no</em></p></div></blockquote></div><p>Well, I thought it was binary - either on or off... looks like there is a third option :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Tue, 11 Aug 2020 18:24:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24001#p24001</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24000#p24000</link>
			<description><![CDATA[<div class="quotebox"><cite>Copper36 wrote:</cite><blockquote><div><div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>Make sure your /etc/pulse/client.conf.d/00-disable-autospawn.conf looks like this:</p><p># On linux systems, disable autospawn by default<br /># If you are not using systemd, comment out this line<br />autospawn=no</p></div></blockquote></div><p><em>autospawn=no</em> in <em>/etc/pulse/client.conf</em> nothing changed.</p></div></blockquote></div><p>&quot;Comment out&quot; looks like this:<br /><em># autospawn=no</em></p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Tue, 11 Aug 2020 18:20:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24000#p24000</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23999#p23999</link>
			<description><![CDATA[<div class="quotebox"><cite>larsH wrote:</cite><blockquote><div><p>Make sure your /etc/pulse/client.conf.d/00-disable-autospawn.conf looks like this:</p><p># On linux systems, disable autospawn by default<br /># If you are not using systemd, comment out this line<br />autospawn=no</p></div></blockquote></div><p>I do not have exactly the same location of the config files, but when I replaced <em>autospawn=yes</em> with <em>autospawn=no</em> in <em>/etc/pulse/client.conf</em> nothing changed.<br />I&#039;ll try to purge PA completely, we&#039;ll see what happens.</p><p>Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Tue, 11 Aug 2020 18:08:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23999#p23999</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23998#p23998</link>
			<description><![CDATA[<div class="quotebox"><cite>Copper36 wrote:</cite><blockquote><div><p>Skype is definitely from MS repo and I do not remember if Clementine 1.31 I have comes from Devuan repos or not. The facts are that if I do not start them, I do not see any traces of PA in a task manager, but as soon as they are active, PA re-appears</p></div></blockquote></div><p>Just because they start PA does not necessarily mean that they <em>need</em> PA — firefox-esr will also auto-start PA but it will still produce sound if PA is not installed.</p><p>But I&#039;ve never used Skype so I have no idea if it will work without PA, why don&#039;t you try it and report back?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 11 Aug 2020 17:47:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23998#p23998</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23997#p23997</link>
			<description><![CDATA[<p>Hi again</p><p>We can help the best if you are using devuan repos only. If you install programs from other places they might very well be configured with both systemd, pulseaudio, libraryversions and other things that are not compatible with devuan. So be careful when you do that. If things work to your satisfaction then fine (using a bit of cpu sounds like an acceptable compromise). But take care when upgrading. You might break your system in the process. </p><p>Have a nice day<br />Lars H</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Tue, 11 Aug 2020 17:40:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23997#p23997</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23996#p23996</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>The Devuan firefox-esr package does not need PulseAudio at all. I have yet to find an application from the repositories that actually needs PA.</p></div></blockquote></div><p>Do you mean Devuan repos? Skype is definitely from MS repo and I do not remember if Clementine 1.31 I have comes from Devuan repos or not. The facts are that if I do not start them, I do not see any traces of PA in a task manager, but as soon as they are active, PA re-appears and consumes quite a lot (for a laptop at least). And these two are pretty basic and widely used apps I guess.<br />The FF I have is from the Devuan repo, so I&#039;ll check this out too.</p><p>Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Copper36)]]></author>
			<pubDate>Tue, 11 Aug 2020 17:32:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23996#p23996</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23995#p23995</link>
			<description><![CDATA[<p>Hi</p><p>It looks like you get sound working ;-)</p><p>I am a professional musician myself using my setup for everything. And I have removed all of pulseaudio. Using firefox, vlc, mpv, audacity, musescore with just alsa. And for professional work I use jack as audioserver.</p><p>Make sure your /etc/pulse/client.conf.d/00-disable-autospawn.conf looks like this:</p><p># On linux systems, disable autospawn by default<br /># If you are not using systemd, comment out this line<br />autospawn=no</p><p>Then you should be safe that pulseaudio is not working. If you find any problems then try uninstall and purge pulseaudio with apt purge pulseaudio. Then apt will also remove pulseaudio configuration files (that might be your problem)</p><p>Have a nice day<br />Lars H</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Tue, 11 Aug 2020 17:29:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23995#p23995</guid>
		</item>
		<item>
			<title><![CDATA[Re: High CPU by PulseAudio]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23994#p23994</link>
			<description><![CDATA[<div class="quotebox"><cite>Copper36 wrote:</cite><blockquote><div><p>even Firefox, which I must keep open all the time (due to my work Outlook mailbox) also initiates PA via <em>AudioIPC Server: AudioCallbackDriver</em>.</p></div></blockquote></div><p>The Devuan firefox-esr package does not need PulseAudio at all. I have yet to find an application from the repositories that actually needs PA.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 11 Aug 2020 17:16:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23994#p23994</guid>
		</item>
	</channel>
</rss>
