Qsynth/qjackctl/ardour preventing playback of all else

That includes media players (mpv/vlc/etc), web browsers (mozilla/chromium/electron/etc), and literally every app…Once qsynth/qjackctl/ardour is started, even when I’m not actually using them (I’ve got them open so I don’t forgot that I wanted to use them for something), no videos will play at all—they just get stuck on a single frame…How can I set things up so these fluidsynth UI apps aren’t breaking everything this way?

This sounds like a common problem when using JACK and PulseAudio

When JACK is started it usually takes control of an audio device away from PulseAudio
If a PulseAudio stream is trying to play to the output device (sink) that is no longer available, the media player/web browser would be unable to play
Audio Streams in PulseAudio must be re-routed to PulseAudio JACK Sink connection into JACK, then audio can be connected in JACK to play audio to system output to use the same audio device as before

Please post response to this command when JACK is running to show PulseAudio information

pactl list sinks short && pacmd dump

Commands based on that data can be added to QjackCtl to ensure audio can play through JACK without being choked
Some of the commands need a card name specific to your hardware

 ~]$ pactl list sinks short && pacmd dump
1       alsa_output.pci-0000_06_00.0.iec958-stereo      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
2       combined        module-combine-sink.c   s16le 2ch 44100Hz       SUSPENDED
6       alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
### Configuration dump generated at Mon Mar 29 17:30:39 2021

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-udev-detect
load-module module-alsa-card device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="0" name="pci-0000_00_03.0" card_name="alsa_card.pci-0000_00_03.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-alsa-card device_id="3" name="pci-0000_06_00.0" card_name="alsa_card.pci-0000_06_00.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
load-module module-jackdbus-detect channels=2
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-bluez5-discover
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-combine 
load-module module-combine-sink 
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-x11-publish display=:0 xauthority=/home/"REDACTED".Xauthority
load-module module-x11-xsmp display=:0 xauthority=/home/"REDACTED".Xauthority session_manager=local/"REDACTED":@/tmp/.ICE-unix/124377,unix/"REDACTED":/tmp/.ICE-unix/124377
load-module module-cli-protocol-unix
load-module module-alsa-card device_id="5" name="usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00" card_name="alsa_card.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"

set-sink-volume alsa_output.pci-0000_06_00.0.iec958-stereo 0x10000
set-sink-mute alsa_output.pci-0000_06_00.0.iec958-stereo no
suspend-sink alsa_output.pci-0000_06_00.0.iec958-stereo yes
set-sink-volume combined 0x10000
set-sink-mute combined yes
suspend-sink combined yes
set-sink-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 0x10000
set-sink-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 no
suspend-sink alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 yes

set-source-volume alsa_output.pci-0000_06_00.0.iec958-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_06_00.0.iec958-stereo.monitor no
suspend-source alsa_output.pci-0000_06_00.0.iec958-stereo.monitor yes
set-source-volume combined.monitor 0x8000
set-source-mute combined.monitor no
suspend-source combined.monitor yes
set-source-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor 0x10000
set-source-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor no
suspend-source alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor yes
set-source-volume alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback 0xfd71
set-source-mute alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback no
suspend-source alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback yes

set-card-profile alsa_card.pci-0000_01_00.1 output:hdmi-stereo-extra2
set-card-profile alsa_card.pci-0000_00_03.0 off
set-card-profile alsa_card.pci-0000_00_1b.0 off
set-card-profile alsa_card.pci-0000_06_00.0 output:iec958-stereo
set-card-profile alsa_card.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00 input:mono-fallback

set-default-sink alsa_output.pci-0000_06_00.0.iec958-stereo
set-default-source alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback

### EOF

Here’s the output before running qsynth then qjackctl:

    ~]$ pactl list sinks short && pacmd dump
    1       alsa_output.pci-0000_06_00.0.iec958-stereo      module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
    2       combined        module-combine-sink.c   s16le 2ch 44100Hz       SUSPENDED
    6       alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED
    ### Configuration dump generated at Mon Mar 29 17:26:22 2021

    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore
    load-module module-augment-properties
    load-module module-switch-on-port-available
    load-module module-udev-detect
    load-module module-alsa-card device_id="2" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false
    tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-
    udev-detect.discovered=1"
    load-module module-alsa-card device_id="0" name="pci-0000_00_03.0" card_name="alsa_card.pci-0000_00_03.0" namereg_fail=false
    tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-
    udev-detect.discovered=1"
    load-module module-alsa-card device_id="1" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false
    tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-
    udev-detect.discovered=1"
    load-module module-alsa-card device_id="3" name="pci-0000_06_00.0" card_name="alsa_card.pci-0000_06_00.0" namereg_fail=false
    tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-
    udev-detect.discovered=1"
    load-module module-jackdbus-detect channels=2
    load-module module-bluetooth-policy
    load-module module-bluetooth-discover
    load-module module-bluez5-discover
    load-module module-dbus-protocol
    load-module module-native-protocol-unix
    load-module module-gsettings
    load-module module-combine
    load-module module-combine-sink
    load-module module-default-device-restore
    load-module module-always-sink
    load-module module-intended-roles
    load-module module-suspend-on-idle
    load-module module-console-kit
    load-module module-systemd-login
    load-module module-position-event-sounds
    load-module module-role-cork
    load-module module-filter-heuristics
    load-module module-filter-apply
    load-module module-x11-publish display=:0 xauthority=/home/"REDACTED".Xauthority
    load-module module-x11-xsmp display=:0 xauthority=/home/"REDACTED".Xauthority session_manager=local/"REDACTED":@/tmp/.ICE-unix/12
    4377,unix/"REDACTED":/tmp/.ICE-unix/124377
    load-module module-cli-protocol-unix
    load-module module-alsa-card device_id="5" name="usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00" card_name="alsa_
    card.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_
    dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"

    set-sink-volume alsa_output.pci-0000_06_00.0.iec958-stereo 0x10000
    set-sink-mute alsa_output.pci-0000_06_00.0.iec958-stereo no
    suspend-sink alsa_output.pci-0000_06_00.0.iec958-stereo yes
    set-sink-volume combined 0x10000
    set-sink-mute combined yes
    suspend-sink combined yes
    set-sink-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 0x10000
    set-sink-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 no
    suspend-sink alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 yes

    set-source-volume alsa_output.pci-0000_06_00.0.iec958-stereo.monitor 0x10000
    set-source-mute alsa_output.pci-0000_06_00.0.iec958-stereo.monitor no
    suspend-source alsa_output.pci-0000_06_00.0.iec958-stereo.monitor yes
    set-source-volume combined.monitor 0x8000
    set-source-mute combined.monitor no
    suspend-source combined.monitor yes
    set-source-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor 0x10000
    set-source-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor no
    suspend-source alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor yes
    set-source-volume alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback 0xfd71
    set-source-mute alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback no
    suspend-source alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback yes

    set-card-profile alsa_card.pci-0000_01_00.1 output:hdmi-stereo-extra2
    set-card-profile alsa_card.pci-0000_00_03.0 off
    set-card-profile alsa_card.pci-0000_00_1b.0 off
    set-card-profile alsa_card.pci-0000_06_00.0 output:iec958-stereo
    set-card-profile alsa_card.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00 input:mono-fallback

    set-default-sink alsa_output.pci-0000_06_00.0.iec958-stereo
    set-default-source alsa_input.usb-C-Media_Electronics_Inc._TONOR_TC-777_Audio_Device-00.mono-fallback

    ### EOF

Which commands? And do I add them prior to launch ( qjackctl --don't-hog-speakers-devices-flag | qsynth --prevent-jack-from-hogging-devices-flag), in some text field in qsynth’s or qjackctls GUI, in some config file (I’m guessing is qjackctlrc since Qsynth had a qsynthrcfile), or any combination of those three?

The PulseAudio data for both before and after JACK is running is not showing an expected change
When JACK is started PulseAudio module module-jackdbus-detect should create an audio connection Pulseaudio JACK Sink for audio to play via JACK
The connection should be shown as a PulseAudio sink like this:

7	jack_out	module-jack-sink.c	float32le 2ch 48000Hz	IDLE

I suggest you add the Pulseaudio JACK Sink connection with this command

pactl load-module module-jack-sink channels=2

and use this command to set it as the default-sink for audio playback

pactl set-default-sink jack_out

Audio should now be able to play from PulseAudio through JACK to the output device
(which I assume is the Onboard Audio SPDIF digital output iec958-stereo )

But audio playback may still be choked if the audio stream was assigned manually to use either the iec958-stereo sink taken for JACK use or the Simultaneous Output combined sink
You may need to manually change some audio stream manually in PulseAudio controls to use PulseAudio Jack Sink connection

If that works then QjackCtl can be reconfigured to load and unload PulseAudio connections automatically

Oh, the SPDIF digital output is from my 2011 Creative sound card. For some reason every speaker I have can’t receive sound from any analog port except for the one built into the motherboard (which uses the duller-sounding intel audio driver), So I bought the cheapest digital-to-analog converter on Amazon to use the sound card’s SPDIF outputs instead. The hdmi output is thanks to my connecting a monitor with speakers built-in using a hdmi-dp adapter cable to connect it to my old graphics card. I use that output only for audio playing on that screen (because it costs too much cortisone release to see human mouths moving but the sounds they’re making aren’t coming from the same direction)…I don’t know if that makes a difference to any of these pactl commands or not…does it?

I was trying to deal with the original problem of playback through JACK before other possible issues with PulseAudio
But any problem with ALSA hardware devices should be investigated before a software issue

Please post response to

sudo alsa-info.sh --upload
sudo: alsa-info/sh: command not found
bash: : command not found
pactl load-module module-jack-sink channels=2

Failure: Module initialization failed

(Sorry, for got to add this)

there was a typo in the ALSA command it should have been sudo alsa-info.sh --upload

Was JACK running when you tried to add module-jack-sink ? PulseAudio can only add a connection when JACK is active
If JACK was active and the command failed I suggest you check the contents of QjackCtl Messages log for any errors

No, jack was not active at the time. I thought I had to do that before, like insmod/modprobe commands. I got qjackctl up and running and now it seems to work…

Actually, I just discovered that Virtual MIDI Piano Keyboard takes Midi and Custom Soundfont input, and that was all I needed for this project…

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.