The officially official Devuan Forum!

You are not logged in.

#1 2023-02-18 15:56:55

swanson
Member
Registered: 2020-04-22
Posts: 89  

Got sound in Firefox with only alsa and JACK!

Must report success! Set up  my DAW with Devuan couple of weeks ago replacing PCLinuxOS. Got JACK 2 and Qjackctl plus Reaper/Midi/Audio working wihtout too much hazzle. Of course without Pulseaudio and no Pipewire either.

But no sound in Firefox or Chrome. No biggie but it is nice to be able to listen to youtube tracks/music on your DAW.

I finally solved it after hours of googling and several .asoundrc versions.

This is the .asoundrc that fixed it:

pcm.!default {
    type plug
    slave { pcm "jack" }
}

pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}

ctl.mixer0 {
    type hw
    card 0
}

Not using apulse either. Jack2 and Qjackctl are running at boot and voilá sound in Firefox-esr! No sound in google chrome or chromium yet, but that's ok.
I did check though, that the proper audio interface was default card 0. I also double checked that the DAW, Reaper, worked, and it did.

Just wanna share if some other Devuan fan running JACK encounters the same problem.

EDIT:  Holy Crap!! There IS sound in Google Chrome too!!! Just needed to restart it.

Keywords: alsa, asoundrc, firefox, chrome, jack, jack2, daw, reaper

Last edited by swanson (2023-02-18 16:01:27)

Offline

#2 2023-02-18 21:06:31

charliebrownau
Member
From: Australia
Registered: 2022-04-14
Posts: 62  
Website

Re: Got sound in Firefox with only alsa and JACK!

Gday

ALSA works with Librewolf also

A better choice then Default ((( FIREFOX))
https://librewolf.net/

Offline

#3 2023-02-19 08:53:43

swanson
Member
Registered: 2020-04-22
Posts: 89  

Re: Got sound in Firefox with only alsa and JACK!

I looked for Librewolf but it's not in the repos?

Offline

#4 2023-02-19 20:31:26

Altoid
Member
Registered: 2017-05-07
Posts: 1,415  

Re: Got sound in Firefox with only alsa and JACK!

Hello:

swanson wrote:

... but it's not in the repos?

LibreWolf is not in the Debian repositories and as a direct consequence, you will not find it in the Devuan repositories.

Now ...
Why is it not in the Debian repository?

No idea ...
Maybe for the same reason a number of other distributions don't don't have it in theirs.

But I don't know what that reason is.

Best,

A.

Last edited by Altoid (2023-02-19 20:31:55)

Offline

#5 2023-02-19 21:34:27

charliebrownau
Member
From: Australia
Registered: 2022-04-14
Posts: 62  
Website

Re: Got sound in Firefox with only alsa and JACK!

This is the question people should be asking

Why in 99% of Linux distros

((( FIREFOX ))) is included as "FREE AND OPEN SOURCE"
when its bloated, insecure and TRACKS people

Yet
LibreWolf isnt

---

Why is Default ((( CHROME))) available in 99% of linux Distros
yet ungoogled chomium isnt available

Because they are

Weapon
Corporation
((( THEM)))
Linux system sanctioned to be ((( PUSHED )))

All this moral talk of privacy, security and """ FREE DOM"""
gets over written by ((( CORPORATION ))) and ((( TRACKING ))) interests

---------

This is why I recommend

Portable tar gz programs
Debs
and
Appimages

----

I use appimage for

LibreOffice
LibreWolf
Delta Chat
Ghost Writer
OBS
Shotcut
Rssguard

Then I am in charge of when a program updates or doesnt update
not the OS, not the Distro, not the distro team

Offline

#6 2023-02-20 02:41:16

swanson
Member
Registered: 2020-04-22
Posts: 89  

Re: Got sound in Firefox with only alsa and JACK!

Downloading Librewolf as we speak....

( https://librewolf.net/installation/debian/ )

Offline

#7 2023-02-20 16:47:02

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 201  
Website

Re: Got sound in Firefox with only alsa and JACK!

Altoid wrote:

Why is it not in the Debian repository?

No idea ...

A (partial) answer to that can be obtained by searching https://wnpp.debian.net - where WNPP is "Work-Needing and Prospective Packages" - more information at https://www.debian.org/devel/wnpp

Searching reveals LibreWolf is one of 3250 requested packages; initially there wasn't a deb package for it, and since the November 2022 comment that there now is one, a maintainer has yet to step forward and adopt it.

I don't know if there is a specific place/process for asking maintainers if any of them want to do so, or if it's left for maintainers to monitor the lists for packages that interest them.

The search page claims 329 installs - not sure where that number comes from; if it's PopCon/similar then that suggests significantly higher actual numbers, given the target audience of LibreWolf.

Last edited by boughtonp (2023-02-20 17:03:19)


3.1415P265E589T932E846R64338

Offline

#8 2023-02-20 18:29:17

delgado
Member
Registered: 2022-07-14
Posts: 151  

Re: Got sound in Firefox with only alsa and JACK!

swanson wrote:

Downloading Librewolf as we speak....

( https://librewolf.net/installation/debian/ )

For sound with alsa you probably need the "AppImage" - not the version form the debian repository.
Not sure why this is, but it was the case some months ago and did not re-check since then.

Offline

#9 2024-01-01 00:58:47

kapqa
Member
Registered: 2019-01-02
Posts: 324  

Re: Got sound in Firefox with only alsa and JACK!

hello ,

ia m on fresh install of Devuan jessie on this laptop and it wont update since it is old laptop with graphics not supported by newer systems i suppose,

so my question is how can i best install newer firefox-esr (without need of huge dependencies) for devuan jessie?

it is because i want to turn into alsa-only laptop that i am not wanting to use the official firefox-esr ftp repository;
is is understanding that all the firefox-esr from devuan is alsa-only enabled,

thanks

Offline

#10 2024-01-01 22:23:12

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 582  

Re: Got sound in Firefox with only alsa and JACK!

kapqa wrote:

hello ,

ia m on fresh install of Devuan jessie on this laptop and it wont update since it is old laptop with graphics not supported by newer systems i suppose,

so my question is how can i best install newer firefox-esr (without need of huge dependencies) for devuan jessie?

it is because i want to turn into alsa-only laptop that i am not wanting to use the official firefox-esr ftp repository;
is is understanding that all the firefox-esr from devuan is alsa-only enabled,

thanks

Hi kapqa, I'm using the firefox-latest release 121 and I use alsa-utils but with pipewire & wireplumber for sound.

as for downloading, usually I wait until firefox alerts me to an upgrade, (that's why the script uses /home/glenn/Downloads.)
if you care to look, there are many other versions there too.

here is my install proceedure,

#!/bin/bash

# sh "/home/glenn/build/firefox-from-git.sh"
echo "installing firefox-121.0.tar.bz2"
# https://download-installer.cdn.mozilla.net/pub/firefox/releases/121.0/
#wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/xy.z/linux-x86_64/en-US/firefox-xy.z.tar.bz2

cd /home/glenn/Downloads
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/121.0/linux-x86_64/en-GB/firefox-121.0.tar.bz2

mv /home/glenn/Downloads/firefox-121.0.tar.bz2 /home/glenn/local/archive/source/

# archived :  /home/glenn/local/archive/source/firefox-121.0.tar.bz2

cd /opt

tar xfj /home/glenn/local/archive/source/firefox-121.0.tar.bz2

# remove the old firefox links

mv /usr/bin/firefox /usr/bin/firefoxold

# or after backup of bookmarks and passwordz

# apt remove firefox-esr

# create new link

ln -s /opt/firefox/firefox /usr/bin/firefox

# copy statusBar script.

#rsync -avh /home/glenn/build/userChrome.css /opt/firefox/browser/chrome/
chmod -R 755 /opt/firefox

btw, I have firefox-esr installed as well, I just don't use it for much, internet-radio...

I hope this helps you.

Last edited by GlennW (2024-01-01 22:28:44)


pic from 1993, new guitar day.

Offline

#11 2024-01-02 14:46:05

kapqa
Member
Registered: 2019-01-02
Posts: 324  

Re: Got sound in Firefox with only alsa and JACK!

@GlennW thank you for hte help, but i could upgrade from Jessie (FF 52 ESR) to Ascii (Firefox 68 ESR) all the Way to Beowulf (Firefox 115 ESR) and now Chimaera.

can not help to think that the laptop sounded better on Debian Wheezy with Alsa Only than now on Beowulf/Chimaera,#
but maybe i am just delusional.

Happy Computing!

Offline

#12 2024-01-04 09:33:11

aluma
Member
Registered: 2022-10-26
Posts: 522  

Re: Got sound in Firefox with only alsa and JACK!

@swanson
Thank you very much!
Your recipe works, I just copied .asoundrc to my home folder.

Regards.

Offline

#13 2024-01-07 16:46:51

stultumanto
Member
Registered: 2023-12-12
Posts: 51  

Re: Got sound in Firefox with only alsa and JACK!

I'm using Firefox ESR from the repository on Excalibur with only ALSA installed, no PulseAudio or PipeWire. I didn't need to edit any configuration files. Is this a new feature? I seem to remember having to install PulseAudio to get Firefox audio in the past.

Offline

#14 2024-01-07 18:01:06

greenjeans
Member
Registered: 2017-04-07
Posts: 505  
Website

Re: Got sound in Firefox with only alsa and JACK!

@kapqa, I use an appimage of Firefox ESR on my devuan1 installs, works pretty well with only an occasional glitch.

https://appimage.github.io/Firefox/

Last edited by greenjeans (2024-01-07 18:09:02)


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#15 2024-01-08 00:59:17

pcalvert
Member
Registered: 2017-05-15
Posts: 192  

Re: Got sound in Firefox with only alsa and JACK!

stultumanto wrote:

I'm using Firefox ESR from the repository on Excalibur with only ALSA installed, no PulseAudio or PipeWire. I didn't need to edit any configuration files. Is this a new feature?

No, I don't think so. Sound has always worked for me when using the Firefox ESR that comes from Debian. I've never had to do anything to get sound working. The only exception to that was when I was using the SeaMonkey web browser, which is not available in Debian/Devuan. For SeaMonkey, I was able to get sound working using apulse.

I suspect that the people having problems with sound not working are not using the Firefox ESR that is packaged by Debian. They are probably installing Firefox from a different source, and probably using a version other than Firefox ESR.

I should add that I have been using Refracta, and I am not sure how much that varies from a default Devuan installation. Although pulseaudio is not installed, some related packages are installed:

libpulse-mainloop-glib0
libpulse0

$ aptitude why libpulse-mainloop-glib0
i   blueman Depends libpulse-mainloop-glib0

$ aptitude why libpulse0
i   chromium Depends libpulse0 (>= 0.99.1)

apulse is also installed. However, it does not appear that Firefox is using apulse on this system. It may have been installed for some other reason.


Freespoke is a new search engine that respects user privacy and does not engage in censorship.

Offline

#16 2024-01-08 01:20:20

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: Got sound in Firefox with only alsa and JACK!

Right. Firefox-esr does not require pulseaudio or pipiewire and works fine with just alsa. Getting it work with jack is a neat trick and is something I've wanted for years, so I was happy to see the solution here.

Refracta does not vary from Devuan very much. Most things are installed without recommends and without metapackages, to make it easier to remove anything you don't want. The only reason apulse is installed is for tor-browser, and sometimes ff-esr will need apulse if it runs after tor-browser.

Offline

#17 2024-01-08 06:05:09

quickfur
Member
Registered: 2023-12-14
Posts: 176  

Re: Got sound in Firefox with only alsa and JACK!

I've been using Firefox ESR from Debian for years without pulseaudio, it works. There was a period of time when sound stopped working or became erratic without pulseaudio, but recently whatever issues it was having appear to have been fixed, and now it works again without pulseaudio.

I tried pulseaudio once and it added a constant 7-8% CPU load to an idle system. That's just pure ridiculous. How did such a bad design end up being a standard in Linux?! Anyway, since then I've turned off pulseaudio, and only use it for that one annoying site that refuses to work without it and that requires Chromium. I wish I could get rid of it altogether but alas, no such luck with Chromium. I wish I could get by without Chromium too, but limiting it to just a single site that I use only once a week is a good enough compromise for now. I only have so much time and energy to fight this bogonity, I have to pick my battles.

Offline

Board footer