FS#52183 - [firefox] Jack support is somewhat cumbersome
Attached to Project:
Arch Linux
Opened by Adriano Moura (MaMuS) - Saturday, 17 December 2016, 00:56 GMT
Last edited by Balló György (City-busz) - Thursday, 15 June 2023, 11:39 GMT
Opened by Adriano Moura (MaMuS) - Saturday, 17 December 2016, 00:56 GMT
Last edited by Balló György (City-busz) - Thursday, 15 June 2023, 11:39 GMT
|
Details
The new firefox package (50.1) has jack support compiled in.
This is a nice feature but it's interfering with my setup
since it bypasses my jack setup and connects directly to the
system ports by default. There are no options to change this
behavior in Firefox. (many jack clients allow you to disable
default connections)
I can use qjackctl patchbay to match the firefox client and route the connection to the proper port, and also activate exclusive mode so that it disconnects firefox from the system ports, but It still takes about half a second for the rule to take effect each time firefox creates the client. Firefox also adds new ports to the client for each new concurrent audio stream, complicating the matching rules and adding more sudden jumps in volume (caused by outputting directly trough the system ports) I don't know how many people depend on such a feature since normally, when using JACK, you would route firefox (and any other normal app) audio's from pulseaudio to jack. It might be best to leave this feature disabled until they bake in more options or have better defaults. |
This task depends upon
Closed by Balló György (City-busz)
Thursday, 15 June 2023, 11:39 GMT
Reason for closing: No response
Additional comments about closing: very old report
Thursday, 15 June 2023, 11:39 GMT
Reason for closing: No response
Additional comments about closing: very old report
As the problem seems to be just automatic connection to system ports being annoying to the bug reporter, why don't we just disable that, instead of the whole backend?
Patch attached.
P.s. there's no such thing as 'normally people do this and that on GNU/Linux', e.g. many of the audio crowd keep their systems free of pulseaudio and many will be happy with automatic connection to system ports...
If this is a problem for people running pulse + JACK, we could also switch precedence to pulse.
Patch attached.
If this is a problem for people running pulse + JACK, we could also switch precedence to pulse.
Patch attached.
I can't imagine that anyone who's running pulse + JACK would ever want Firefox to use JACK. If you use JACK and yet love pulse so much that you also keep pulse running, that means JACK is probably meant for heavy-duty sound operations that may need to run in realtime, like a DAW. Firefox is not a DAW. Also, I need to have volume controls for whatever sound comes out of my browser besides my master speaker volume. Now I have to choose between not updating Firefox until this gets sorted out, or recompiling every time a new version comes out.
Maybe we should file issues there, too?
[1] https://github.com/kinetiknz/cubeb
Thanks jimi and Adriano but I'm with Hanspeter on this (A lot of people have waited since years for native firefox JACK support.)
Can you enable Jack in the next release please, i have done it for the current version (FF52) but it takes to long to built on my machine... :-). I have read the other comments and automatic connections are a blessing to me and i must admit that i have waited since years for native firefox JACK support (i was using a virtual sound card [snd-aloop] as an alternative solution).
A better question is, has the cubeb change made it into Firefox yet after it was merged on cubeb's Github repo way back on Jan 20? Because the bugzilla ticket has no info beyond a notification of that cubeb PR.
If so, perhaps the Firefox package could re-enable JACK so it *is* actually available (for people not running Pulse).
As for cubeb, someone who either cares more about jack or knows more about Firefox's source will have to say if this change is now in Firefox. I'd hope so, since it has been rather a while...
It's been discussed here to remove the auto-connection, which makes Firefox pretty useless to watch videos in Jack-only (no pulse) scenarios, as the video players have to be re-connected after every
pause, ad, etc., while running, as the players create a new client every time.
If it's a problem for people to have the auto-connection, I wonder if a flag could be used ?
Firefox 83 still connected to the system ports automatically.