When Jack2 running I can't play videos from a browser

browser
firefox
chromium
alsa
jack

#1

Hello!
I have this issue where, when I start a jack server (be it through terminal, QJackCtl, Cadence or SC) I’m unable to stream videos in my browser (both Firefox and Chromium). If you take YouTube, for instance, videos won’t go past the initial loading, even though the progress bar shows that data is actually being downloaded. Facebook does the same and so does SoundCloud.

I am bridging pulseaudio to jack with pulseaudio-jack, but running jack with pulseaudio killed won’t work either.

As a side note, I tried running renoise (an audio tracker) and route its output to ALSA (both RT and not) and Firefox gives the same symptoms, I suspect it’s related but can’t figure out how, because if I route VLC through ALSA it doesn’t happen.

Any ideas on how to troubleshoot/fix?

Thanks in advance :heart:

System:    Host: torelsjaro-pc Kernel: 4.14.69-1-MANJARO x86_64 bits: 64 compiler: gcc 
           v: 8.2.1 Desktop: KDE Plasma 5.13.5 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Acer product: Aspire ES1-524 v: V1.05 
           serial: <root required> 
           Mobo: Acer model: Tricera_BS v: V1.05 serial: <root required> 
           UEFI [Legacy]: Insyde v: 1.05 date: 11/24/2016 
Battery:   ID-1: BAT1 charge: 20.9 Wh condition: 29.9/37.3 Wh (80%) 
           model: COMPAL PABAS0241231 status: Charging 
CPU:       Topology: Dual Core model: AMD A9-9410 RADEON R5 5 COMPUTE CORES 2C+3G bits: 64 
           type: MCP arch: Excavator L2 cache: 1024 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 11583 
           Speed: 2230 MHz min/max: 1400/2900 MHz Core speeds (MHz): 1: 1672 2: 1584 
Graphics:  Device-1: AMD Stoney [Radeon R2/R3/R4/R5 Graphics] driver: amdgpu v: kernel 
           bus ID: 00:01.0 
           Display: x11 server: X.Org 1.20.1 driver: amdgpu,ati unloaded: modesetting 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD STONEY (DRM 3.19.0 4.14.69-1-MANJARO LLVM 6.0.1) 
           v: 4.5 Mesa 18.1.8 direct render: Yes 
Audio:     Device-1: AMD driver: snd_hda_intel v: kernel bus ID: 00:01.1 
           Device-2: AMD Family 15h Audio driver: snd_hda_intel v: kernel bus ID: 00:09.2 
           Sound Server: ALSA v: k4.14.69-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8168 
           v: 8.045.08-NAPI port: 2000 bus ID: 01:00 
           IF: enp1s0 state: down mac: fc:45:96:9f:00:4e 
           Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
           v: kernel bus ID: 02:00 
           IF: wlp2s0 state: up mac: 10:f0:05:11:d0:0a 
Drives:    Local Storage: total: 931.51 GiB used: 57.45 GiB (6.2%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB 
Partition: ID-1: / size: 147.48 GiB used: 19.07 GiB (12.9%) fs: ext4 dev: /dev/sda1 
           ID-2: /home size: 758.95 GiB used: 38.38 GiB (5.1%) fs: ext4 dev: /dev/sda2 
           ID-3: swap-1 size: 9.48 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 49.0 C mobo: N/A gpu: amdgpu temp: 0 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 155 Uptime: 2h 33m Memory: 11.26 GiB used: 2.37 GiB (21.0%) 
           Init: systemd Compilers: gcc: 8.2.1 Shell: bash v: 4.4.23 inxi: 3.0.21

#2

on Cadence, your alsa bridge type should be ALSA -> Pulseaudio -> JACK (plugin).

also, jack should be the first thing you start, before any other apps that connect to the audio server. if you start it after, however, you may be able to change where apps are sending audio from pavucontrol


#3

Yay! The second thing you mentioned fixed the issue :wink:
(the routing was already set up for ALSA>PA>Jack)

Screenshot_20181002_231813

Is there a way to do thet through config files/terminal that you could reccomend?
Thanks :smiley:


#4

not really. or at least none that i have found. i always do it manually if it happens


#5

try this:

pamcd set-default-sink jack_out
with JACK running Pulseaudio will default to Pulseaudio JACK Sink

then go to
pavucontrol --tab 3
and set fallback device for playback when JACK not running


#6

Sorry to necro post but there’s a typo here that stumped me, should be
pacmd set-default-sink jack_out

pacmd, not pamcd. Important for newbies!