<?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=6444&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Firefox-esr Audio through ALSA Alone]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6444</link>
		<description><![CDATA[The most recent posts in Firefox-esr Audio through ALSA Alone.]]></description>
		<lastBuildDate>Mon, 06 May 2024 21:27:57 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=49837#p49837</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>If you do need to use apulse, it&#039;s just &#039;apulse firefox&#039;. No need for asoundrc. The only time I need to use apulse is if tor-browser uses audio and then I try to use audio in firefox-esr.</p></div></blockquote></div><p>I do not know, what is special about Devuan, but is was difficult to find a browser, which does not work with ALSA.<br />Firefox, Chromium, Epiphany, Chrome, Brave, Min - everything works without apulse.<br />Seamonkey does need apulse to work with ALSA.</p><p>What is more, Mate sound applet works with ALSA after removal of pulseaudio, but Xfce sound applet disappeared.<br />Mate Desktop, is, of course, very special. If you remove PulseAudio, it will install PipeWire.<br />If you remove them both, it will enable ALSA for Mate apps.</p><div class="codebox"><pre><code>$ sudo apt-mark manual libpulse0 libpulse-mainloop-glib0 libpulsedsp 
$ sudo apt-mark hold pulseaudio* pipewire* </code></pre></div><div class="codebox"><pre><code>$ sudo apt-get purge pulseaudio pulseaudio-utils pavucontrol pulseaudio-module-bluetooth pipewire pipewire-bin pipewire-pulse</code></pre></div><div class="codebox"><pre><code>$ fuser -av $(find /dev/snd -type c 2&gt;/dev/null)
$ killall pulseaudio
$ fuser -av $(find /dev/snd -type c 2&gt;/dev/null)</code></pre></div><p><strong>However,</strong> if you want to use mic with Firefox (with Discord) , you do need<strong> apulse</strong> and a special <strong>~/.asoundrc</strong> with dmix, dsnoop, etc.</p><div class="quotebox"><blockquote><div><p>apulse relies on ALSA&#039;s dmix, dsnoop, and plug plugins to handle multiple sound sources and capture streams running at the same time. dmix plugin muxes multiple playback streams; dsnoop plugin allow multiple applications to capture from a single microphone; and plug plugin transparently converts audio between various sample formats, sample rates and channel numbers.<br /><a href="https://github.com/i-rinat/apulse" rel="nofollow">https://github.com/i-rinat/apulse</a></p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Mon, 06 May 2024 21:27:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=49837#p49837</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=49123#p49123</link>
			<description><![CDATA[<p>@Lomax interesting. Althogh I am on Daedalus with XFCE 4.18.1 installed, and I don&#039;t see xfce4-mixer available to install.</p>]]></description>
			<author><![CDATA[dummy@example.com (mweishaar)]]></author>
			<pubDate>Sat, 23 Mar 2024 19:38:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=49123#p49123</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48698#p48698</link>
			<description><![CDATA[<p>That prompted me to take a look. After nearly a decade of silence there was <a href="https://archive.xfce.org/src/apps/xfce4-mixer/" rel="nofollow">a new release of xfce4-mixer</a> last year (4.18), with <a href="https://gitlab.xfce.org/apps/xfce4-mixer/-/blob/master/NEWS" rel="nofollow">a massive changelog</a>. Not sure what that means in terms of being able to use it with Daedalus &amp; ALSA, but perhaps we&#039;ve been missing out!?</p>]]></description>
			<author><![CDATA[dummy@example.com (Lomax)]]></author>
			<pubDate>Tue, 05 Mar 2024 00:47:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48698#p48698</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48696#p48696</link>
			<description><![CDATA[<p>@ Lomax;&#160; Certainly miss the old xfce4-mixer, Void Linux had it working until recently. Qasmixer is better than being forced using&#160; pavucontrol to get sound with Alsa. </p><p>Thanks for the tips and for bringing Qasmixer back into view!</p><p>zephyr</p>]]></description>
			<author><![CDATA[dummy@example.com (zephyr)]]></author>
			<pubDate>Tue, 05 Mar 2024 00:10:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48696#p48696</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48693#p48693</link>
			<description><![CDATA[<p>Yes, sorry, I should have mentioned that it&#039;s in the Devuan repo! </p><p>It&#039;s a nice app, and only uses 43kb RAM. I have added it to my XFCE session autostart, but for some reason the --tray switch is ignored so I have to manually close it (to tray) after every log-in. The minimised icon appears in the &quot;Status Tray Plugin&quot;, so make sure that&#039;s added to the XFCE panel, or you won&#039;t see it. </p><p>I&#039;ve also added keyboard shortcuts for the volume control buttons on my Thinkpad, so that they work with ALSA:</p><p>Audio raise volume: </p><div class="codebox"><pre><code>amixer -q set Master &#039;5%+&#039;</code></pre></div><p>Audio lower volume: </p><div class="codebox"><pre><code>amixer -q set Master &#039;5%-&#039;</code></pre></div><p>Audio mute: </p><div class="codebox"><pre><code>amixer -q set Master toggle</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Lomax)]]></author>
			<pubDate>Mon, 04 Mar 2024 22:36:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48693#p48693</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48691#p48691</link>
			<description><![CDATA[<p>Qasmixer (0.23.0-1) is also in the Devuan daedalus repositories! </p><p>cheers</p><p>zephyr</p>]]></description>
			<author><![CDATA[dummy@example.com (zephyr)]]></author>
			<pubDate>Mon, 04 Mar 2024 21:47:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48691#p48691</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48690#p48690</link>
			<description><![CDATA[<p>Just to contribute another data point, for me Firefox 115.7.0 ESR audio &quot;just works&quot; in Devuan Daedalus with Pulseaudio removed and ALSA as the only sound subsystem. And a tip to anyone who misses having a GUI volume control &amp; mixer: install <a href="https://packages.debian.org/bookworm/qasmixer" rel="nofollow">QasMixer</a>: </p><p> <span class="postimg"><img src="https://i.imgur.com/IKPoH9w.png" alt="IKPoH9w.png" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (Lomax)]]></author>
			<pubDate>Mon, 04 Mar 2024 19:03:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48690#p48690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48566#p48566</link>
			<description><![CDATA[<p>@Iggy64</p><div class="quotebox"><blockquote><div><p>then indeed you have a different issue to address</p></div></blockquote></div><p>I&#039;ve already experimented. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />In fact, maybe my reason is my Trinity DE.<br /><a href="https://dev1galaxy.org/viewtopic.php?id=6118" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=6118</a></p><p>It just probably makes sense to check the availability of I/O in Firefox (about: support in the address bar)</p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Thu, 29 Feb 2024 13:50:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48566#p48566</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48563#p48563</link>
			<description><![CDATA[<div class="codebox"><pre><code>rm -rf /usr/share/kpackage/kcms/kcm_pulseaudiio /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpulseaudio.so /usr/lib/x86_64-linux-gnu/avkys/libAudioDevice_pulseaudio.so /usr/lib/x86_64-linux-gnu/pulseaudio</code></pre></div><p>Hello.</p><p>I don&#039;t really understand why you need to manually remove these directories with files, if the command </p><div class="codebox"><pre><code>apt autoremove --purge</code></pre></div><p> does it?</p>]]></description>
			<author><![CDATA[dummy@example.com (stopAI)]]></author>
			<pubDate>Thu, 29 Feb 2024 12:04:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48563#p48563</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48555#p48555</link>
			<description><![CDATA[<p>Thank you @GlenW.&#160; It&#039;s interesting how all these parts and pieces relate to one another, and how they can be arranged in various ways to suit different needs.<br />Like so many of the other experiences shared in this thread, I will definitely log your observations into my database (I use CherryTree) on Linux audio.&#160; Remembering these real-world experiences can be very valuable somewhere down the line when new situations arise.</p><p>I&#039;m glad that the Devuan forum is such a friendly and&#160; helpful place.</p>]]></description>
			<author><![CDATA[dummy@example.com (Iggy64)]]></author>
			<pubDate>Thu, 29 Feb 2024 00:58:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48555#p48555</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48551#p48551</link>
			<description><![CDATA[<p>my box is running with out pulseaudio as such, I do have pipewire-pulse installed and the system wants to remove everything if I try to remove pipewire-pulse... dependencies.</p><p>But I&#039;ve chimed in because no one has mentioned wireplumber. </p><p>It does behave like pulse as a sound/media server, so may not be apparent if you&#039;re only running one stream at a time.</p><p>I also still use ~.xsessionrc to load the sound apps when the system starts at login to plasma/kde.</p><p>I purged my system of anything related to pulse except pipewire-pulse, and I think libpulseaudio.so</p><p>And also removed the startup scrip.</p><p>here is a copy of some notes I&#039;ve kept (copied from these forums), including the ~.xsessionrc start script from this forum as well.</p><div class="codebox"><pre class="vscroll"><code>Those who are familiar with setting their sound card with alsa will have no problem removing pulse...and yes, I&#039;ve removed it with no issues on actual installations. Just run these commands...

apt-get remove --purge pulseaudio*

apt-get remove --purge pavucontrol*

apt-get autoremove

After that, set your soundcard with alsa (if needed), reboot, and bam! Sound without pulsification! tongue big_smile
######################################################################################################################
rm -rf /usr/share/kpackage/kcms/kcm_pulseaudio /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpulseaudio.so /usr/lib/x86_64-linux-gnu/avkys/libAudioDevice_pulseaudio.so /usr/lib/x86_64-linux-gnu/pulseaudio
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

https://dev1galaxy.org/viewtopic.php?id=2934

apt-get install aumix menu alsa-lib alsa-plugins alsa-utils
$ alsamixer
unmute channels with letter m

Ensure alsa-utils is installed.

login to terminal as root, set sound card and volumes:
=&gt;alsamixer
F6 sound card, select &quot;whataver appears other than default&quot;
set master, speaker, headphone to 100% (or whatever)
exit
=&gt;alsactl store

You may want to install a nice panel volume app: volumeicon-alsa
You may want to install a nice mixer: qasmixer

You can purge pulseaudio packages, but libpulse0* packages are required, do not remove these.   
The dependencies of Pulse with the desktop are due to installing the desktop meta-packages.  
Thus when you try to purge Pulse, it appears that it wants to remove &quot;the desktop&quot;.  
Not going to say or recommend purging Pulse (but I do with no problems).  

When installing desktop with --no-install-recommends, you can more control what gets installed (no Pulse).   

Dont know about Firefox requirements.

I have run LXQT, XFCE, KDE successfully without Pulse (no Firefox).

EDIT: i just found another elegant mpv player that does quite the same as above similarly for firefox quantum!

https://github.com/woodruffw/ff2mpv

You can see what packages depend on a package via rdepends:

apt rdepends gstreamer1.0-pulseaudio

And you can &quot;try-out&quot; a purge of a package by use of the -s option, to see what would be removed along with it:

apt -s purge  gstreamer1.0-pulseaudio

apt policy pulseaudio

# check available outputs
aplay -l

ALthough it took a little while to find the answer for HDMI devices showing up before the one you wish to use, the answer is a one liner.
http://forums.debian.net/viewtopic.php?t=110572#p525601

The method I use is

E485:~$ cat /etc/modprobe.d/alsa.conf                                         
options snd-hda-intel index=1
E485:~$

It&#039;s also possible to use ~/.asoundrc to set the default card, antiX has a tool that will do this to switch cards in their PA-free desktop.

See also https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Alternative_method

So yeah, ALSA by itself can be a tricky little devil. Which is why PA is so omnipresent.

Really good DE such as TDE and LXDE don&#039;t depend on PA.</code></pre></div><p>/home/glenn/.xsessionrc...</p><div class="codebox"><pre><code># kill any existing pipewire instance to restore sound
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire-pulse 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/wireplumber 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire 1&gt;/dev/null 2&gt;&amp;1

exec /usr/bin/pipewire &amp;

# wait for pipewire to start before attempting to start related daemons
while [ &quot;$(pgrep -f /usr/bin/pipewire)&quot; = &quot;&quot; ] ; do
   sleep 1
done

exec /usr/bin/wireplumber &amp;

exec /usr/bin/pipewire-pulse &amp;</code></pre></div><p>I hope this helps</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Wed, 28 Feb 2024 23:31:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48551#p48551</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48547#p48547</link>
			<description><![CDATA[<p>@aluma -- Thanks for that info.&#160; As you can probably guess, I am no expert at Linux audio.&#160; I got my Peppermint Devuan audio running on ALSA by trial and error, and perhaps a little bit of knowledge.</p><p>The default full install of Peppermint Devuan Daedalus xfce came with PulseAudio installed and enabled.&#160; Early on, I replaced PulseAudio with PipeWire, to make it consistent with my other distro of choice -- antiX.&#160; Of course, PipeWire contains a version (hopefully improved) of PulseAudio in the form of pipewire-pulse.&#160; WIth PipeWire enabled, I had audio from my music players and from Firefox.&#160; </p><p>On any distros I have used, I have generally turned off PulseAudio (and now PipeWire) because I don&#039;t need any of the multistream mixing features and whatnot.&#160; I listen to one thing at a time.&#160; And I have always found pure ALSA to be the least troublesome, without the other layers piled on top of it.</p><p>So, in Peppermint Daedalus I turned off PipeWire, but left it installed in case I might need it as a future dependency or find a truly good use for it.&#160; I try to keep unnecessary running processes to a minimum.</p><p>As expected, my music players worked wonderfully piped directly through ALSA.&#160; However, there was no detectable sound from Firefox.&#160; I was puzzled, as antiX is running on Debian packages, and -- in my install -- had PipeWire disabled by default.&#160; Yet Firefox produced sound just fine in antiX.&#160; </p><p>Looking into this, I discovered that antiX had the ALSA equalizer/preamp plugin installed by default.&#160; So I added that to my Daedalus.&#160; Still no sound from Firefox.<br />I dug further into antiX and discovered the predefined /etc/asound.conf file which configured the ALSA preamp/equalizer plugin.&#160; </p><p>So I simply copied over this asound.conf file into Daedalus, but didn&#039;t immediately get any sound from FIrefox. Unlike in antiX, I did NOT have a preamp slider in QasMixer.&#160; I could find no configurator in QasMixer to enable the preamp slider.&#160; (The equalizer, however, was immediately available.)&#160; I tried opening and closing the equalizer a few times, rebooting a couple of times, and somehow the preamp slider simply appeared (I don&#039;t know how, but I hope to find out).</p><p>Once I had the slider, I found that applying about 11% preamp produced audio from Firefox that matched levels from my music players.&#160; This turns out to be the same level of preamp that antiX has applied by default.</p><p>I don&#039;t know whether any of this rehash is of any value to you, but I thought I&#039;d provide it just in case it might.&#160; I don&#039;t pretend to be an expert in this area.</p><p>If you get a working preamp control in ALSA and adding preamp does not produce sound in Firefox, then indeed you have a different issue to address, or you can simply let PipeWire/Pulse process that sound for you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Iggy64)]]></author>
			<pubDate>Wed, 28 Feb 2024 21:31:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48547#p48547</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48535#p48535</link>
			<description><![CDATA[<p>In my case libasound2-plugin-equal does not work.<br />It&#039;s not the volume, but the lack of I/O devices for Firefox.<br />This is with pipeware installed, if you remove it and leave only alsa, then the columns are empty and no equalizer will help.<br />However, there is no sound only in Firefox.<br /><a href="https://postimages.org/" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/J7KVGwsj/28.jpg" alt="28.jpg" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (aluma)]]></author>
			<pubDate>Wed, 28 Feb 2024 09:06:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48535#p48535</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48534#p48534</link>
			<description><![CDATA[<p>@JWM-Kit Thanks for the nice feedback.&#160; I hope you will let us know your results, if you run that test.&#160; The more we learn, the better we can understand how these audio systems work and how to optimize our use of them.</p>]]></description>
			<author><![CDATA[dummy@example.com (Iggy64)]]></author>
			<pubDate>Wed, 28 Feb 2024 05:39:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48534#p48534</guid>
		</item>
		<item>
			<title><![CDATA[Re: Firefox-esr Audio through ALSA Alone]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=48521#p48521</link>
			<description><![CDATA[<p>@Iggy64 Great work! </p><p>I wonder if this has something to do with why Firefox is silent with sndio when using alsa-sndio? Firefox creates a sndio stream and you can control it. It&#039;s just silent. I&#039;ll have to test if I can use libasound&#039;s pre-amp with it.</p><p>Thanks for reporting back with your findings. I believe you&#039;ve provided some useful information.</p>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Tue, 27 Feb 2024 15:06:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=48521#p48521</guid>
		</item>
	</channel>
</rss>
