SpotlightKid / jack-select

A systray application to quickly change the JACK-DBus configuration from QjackCtl presets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jack status not showing in notification bar

mxa opened this issue · comments

jack-select sees which soundcards are available and lets me select them, (unavailable cards are greyed out) but:

  1. selecting the profile will not start jack
    2.the Jack status (running or stopped) is not reflected in the icon.

jack-connect

Have you enabled "Enable JACK D-Bus interface" on the last tab in the QjackCtl settings?

If not, qjackctl will start the non-dbus version of JACK via the jackd program, this will then block jackdbus from working.

My settings
image

Can you also maybe start jack-select -v from a terminal (quit an existing instance of jack-select before that) and do what you did in your animated GIf and post jack-select's output here?

jack-select -v
[jack-select] DEBUG: JACK-Select DBus service detected.
[jack-select] DEBUG: Opening menu...

It then quits. I think that's actually another issue I have after resume from suspend. Will reboot and test again.

ok, looks different after rebooting:

jack-select -v
[jack-select] DEBUG: Exception: org.freedesktop.DBus.Error.ServiceUnknown: The name de.chrisarndt.JackSelectService was not provided by any .service files
[jack-select] DEBUG: Sound device change signalled. Collecting ALSA device info...
[jackselect.alsainfo] DEBUG: Discovered card #0 "HDMI" ("HDA Intel HDMI").
[jackselect.alsainfo] DEBUG: Discovered playback device #3 "HDMI 0" ("HDMI 0").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #7 "HDMI 1" ("HDMI 1").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #8 "HDMI 2" ("HDMI 2").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #9 "HDMI 3" ("HDMI 3").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #10 "HDMI 4" ("HDMI 4").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #1 "PCH" ("HDA Intel PCH").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "CX20751/2 Analog" ("CX20751/2 Analog").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 44100, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #2 "Webcam" ("Trust Webcam").
[jackselect.alsainfo] DEBUG: Could not get info for PCM playback device #0. No such file or directory
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #3 "ZEDi8" ("ZEDi8").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] WARNING: Could not open PCM playback device 'hw:ZEDi8,0'. Device or resource busy
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #4 "Audio" ("ThinkPad OneLink Pro Dock Audio").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 262144) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: End of card enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #0 "HDMI" ("HDA Intel HDMI").
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #3. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #7. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #8. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #9. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #10. No such file or directory
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #1 "PCH" ("HDA Intel PCH").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "CX20751/2 Analog" ("CX20751/2 Analog").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 44100, 96000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #2 "Webcam" ("Trust Webcam").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 1, 1
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (64, 524288) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #3 "ZEDi8" ("ZEDi8").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] WARNING: Could not open PCM capture device 'hw:ZEDi8,0'. Device or resource busy
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #4 "Audio" ("ThinkPad OneLink Pro Dock Audio").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 262144) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: End of card enumeration list reached.
[jack-select] DEBUG: Configuration file mtime changed or previously unknown.
[jack-select] DEBUG: (Re-)Reading configuration.
[jack-select] DEBUG: Building menu.
[jack-select] DEBUG: Device '"hw:PCH,0"' used by preset '(default)' not found.
[jackselect.devmonitor] DEBUG: Starting AlsaDevMonitor...
[jack-select] INFO: JACK server is stopped.

then selectring the profile.

[jackselect.jackcontrol] DEBUG: Setting engine.client-timeout = 500
[jackselect.jackcontrol] DEBUG: Resetting engine.clock-source
[jackselect.jackcontrol] DEBUG: Setting engine.driver = 'alsa'
[jackselect.jackcontrol] DEBUG: Resetting engine.name
[jackselect.jackcontrol] DEBUG: Setting engine.port-max = 256
[jackselect.jackcontrol] DEBUG: Setting engine.realtime = True
[jackselect.jackcontrol] DEBUG: Setting engine.realtime-priority = 5
[jackselect.jackcontrol] DEBUG: Resetting engine.replace-registry
[jackselect.jackcontrol] DEBUG: Resetting engine.self-connect-mode
[jackselect.jackcontrol] DEBUG: Resetting engine.slave-drivers
[jackselect.jackcontrol] DEBUG: Resetting engine.sync
[jackselect.jackcontrol] DEBUG: Resetting engine.temporary
[jackselect.jackcontrol] DEBUG: Setting engine.verbose = False
[jackselect.jackcontrol] DEBUG: Resetting driver.capture
[jackselect.jackcontrol] DEBUG: Setting driver.device = 'hw:ZEDi8'
[jackselect.jackcontrol] DEBUG: Setting driver.dither = b'n'
[jackselect.jackcontrol] DEBUG: Setting driver.hwmeter = False
[jackselect.jackcontrol] DEBUG: Resetting driver.hwmon
[jackselect.jackcontrol] DEBUG: Setting driver.inchannels = 0
[jackselect.jackcontrol] DEBUG: Setting driver.midi-driver = 'none'
[jackselect.jackcontrol] DEBUG: Setting driver.monitor = False
[jackselect.jackcontrol] DEBUG: Setting driver.nperiods = 2
[jackselect.jackcontrol] DEBUG: Setting driver.outchannels = 0
[jackselect.jackcontrol] DEBUG: Setting driver.period = 128
[jackselect.jackcontrol] DEBUG: Resetting driver.playback
[jackselect.jackcontrol] DEBUG: Setting driver.rate = 48000
[jackselect.jackcontrol] DEBUG: Setting driver.shorts = False
[jackselect.jackcontrol] DEBUG: Setting driver.softmode = False
[jack-select] INFO: Activated preset: ZEDi8
[jack-select] DEBUG: Starting JACK server...
[jack-select] ERROR: Could not start JACK server: org.jackaudio.Error.Generic: Failed to open server

then starting jack from QjackCtl

[jack-select] DEBUG: Configuration file mtime changed or previously unknown.
[jack-select] DEBUG: (Re-)Reading configuration.
[jack-select] DEBUG: Building menu.
[jack-select] DEBUG: Device '"hw:PCH,0"' used by preset '(default)' not found.

(Like I said, you needed to quit any running instance of jack-select before you do that.)

Please try changing the device name for the (default) preset from hw:PCH,0 to hw:PCH.

BTW, how did you install JACK, i.e. which Ubuntu package did you install?

BTW, how did you install JACK, i.e. which Ubuntu package did you install?

From the repositories:
libjack-jackd2-0 1.9.12~dfsg-2build1 (eoan)
jackd 5+nmu1 (eoan)

[jack-select] ERROR: Could not start JACK server: org.jackaudio.Error.Generic: Failed to open server

This means jackdbus can not start the JACK server, maybe because the audio device is not accessible.

Can you do a ps xw | grep -E '(jack|pulse) in a terminal to check what other process might interfere?

jackd 5+nmu1 (eoan)

And when you installed that, did you choose jackd2 (not jackd1) as the actual package providing JACK?

Or, in other words, do you have /usr/bin/jackdbus?

(Like I said, you needed to quit any running instance of jack-select before you do that.)

oops, I thought I did that.

Please try changing the device name for the (default) preset from hw:PCH,0 to hw:PCH.

ok.

jack-select -v               
[jack-select] DEBUG: Exception: org.freedesktop.DBus.Error.ServiceUnknown: The name de.chrisarndt.JackSelectService was not provided by any .service files
[jack-select] DEBUG: Sound device change signalled. Collecting ALSA device info...
[jackselect.alsainfo] DEBUG: Discovered card #0 "HDMI" ("HDA Intel HDMI").
[jackselect.alsainfo] DEBUG: Discovered playback device #3 "HDMI 0" ("HDMI 0").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #7 "HDMI 1" ("HDMI 1").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #8 "HDMI 2" ("HDMI 2").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #9 "HDMI 3" ("HDMI 3").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: Discovered playback device #10 "HDMI 4" ("HDMI 4").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 8
[jackselect.alsainfo] DEBUG: Min/max sample rate: 32000, 192000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE,IEC958_SUBFRAME_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (8, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #1 "PCH" ("HDA Intel PCH").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "CX20751/2 Analog" ("CX20751/2 Analog").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 44100, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #2 "Webcam" ("Trust Webcam").
[jackselect.alsainfo] DEBUG: Could not get info for PCM playback device #0. No such file or directory
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #3 "ZEDi8" ("ZEDi8").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] WARNING: Could not open PCM playback device 'hw:ZEDi8,0'. Device or resource busy
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #4 "Audio" ("ThinkPad OneLink Pro Dock Audio").
[jackselect.alsainfo] DEBUG: Discovered playback device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 262144) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: End of card enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #0 "HDMI" ("HDA Intel HDMI").
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #3. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #7. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #8. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #9. No such file or directory
[jackselect.alsainfo] DEBUG: Could not get info for PCM capture device #10. No such file or directory
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #1 "PCH" ("HDA Intel PCH").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "CX20751/2 Analog" ("CX20751/2 Analog").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 44100, 96000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE,S32_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 32)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 16384) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #2 "Webcam" ("Trust Webcam").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 1, 1
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (64, 524288) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #3 "ZEDi8" ("ZEDi8").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] WARNING: Could not open PCM capture device 'hw:ZEDi8,0'. Device or resource busy
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: Discovered card #4 "Audio" ("ThinkPad OneLink Pro Dock Audio").
[jackselect.alsainfo] DEBUG: Discovered capture device #0 "USB Audio" ("USB Audio").
[jackselect.alsainfo] DEBUG: Device has 1 subdevice(s).
[jackselect.alsainfo] DEBUG: Min/max channels: 2, 2
[jackselect.alsainfo] DEBUG: Min/max sample rate: 8000, 48000
[jackselect.alsainfo] DEBUG: Sample formats: S16_LE
[jackselect.alsainfo] DEBUG: Min/max periods count: (2, 1024)
[jackselect.alsainfo] DEBUG: Min/max buffer time: (32, 262144) us
[jackselect.alsainfo] DEBUG: Discovered subdevice: "subdevice #0"
[jackselect.alsainfo] DEBUG: End of device enumeration list reached.
[jackselect.alsainfo] DEBUG: End of card enumeration list reached.
[jack-select] DEBUG: Configuration file mtime changed or previously unknown.
[jack-select] DEBUG: (Re-)Reading configuration.
[jack-select] DEBUG: Building menu.
[jackselect.devmonitor] DEBUG: Starting AlsaDevMonitor...
[jack-select] INFO: JACK server is stopped.

selecting profile:


[jackselect.jackcontrol] DEBUG: Setting engine.client-timeout = 500
[jackselect.jackcontrol] DEBUG: Resetting engine.clock-source
[jackselect.jackcontrol] DEBUG: Setting engine.driver = 'alsa'
[jackselect.jackcontrol] DEBUG: Resetting engine.name
[jackselect.jackcontrol] DEBUG: Setting engine.port-max = 256
[jackselect.jackcontrol] DEBUG: Setting engine.realtime = True
[jackselect.jackcontrol] DEBUG: Setting engine.realtime-priority = 5
[jackselect.jackcontrol] DEBUG: Resetting engine.replace-registry
[jackselect.jackcontrol] DEBUG: Resetting engine.self-connect-mode
[jackselect.jackcontrol] DEBUG: Resetting engine.slave-drivers
[jackselect.jackcontrol] DEBUG: Resetting engine.sync
[jackselect.jackcontrol] DEBUG: Resetting engine.temporary
[jackselect.jackcontrol] DEBUG: Setting engine.verbose = False
[jackselect.jackcontrol] DEBUG: Resetting driver.capture
[jackselect.jackcontrol] DEBUG: Setting driver.device = 'hw:ZEDi8'
[jackselect.jackcontrol] DEBUG: Setting driver.dither = b'n'
[jackselect.jackcontrol] DEBUG: Setting driver.hwmeter = False
[jackselect.jackcontrol] DEBUG: Resetting driver.hwmon
[jackselect.jackcontrol] DEBUG: Setting driver.inchannels = 0
[jackselect.jackcontrol] DEBUG: Setting driver.midi-driver = 'none'
[jackselect.jackcontrol] DEBUG: Setting driver.monitor = False
[jackselect.jackcontrol] DEBUG: Setting driver.nperiods = 2
[jackselect.jackcontrol] DEBUG: Setting driver.outchannels = 0
[jackselect.jackcontrol] DEBUG: Setting driver.period = 128
[jackselect.jackcontrol] DEBUG: Resetting driver.playback
[jackselect.jackcontrol] DEBUG: Setting driver.rate = 48000
[jackselect.jackcontrol] DEBUG: Setting driver.shorts = False
[jackselect.jackcontrol] DEBUG: Setting driver.softmode = False
[jack-select] INFO: Activated preset: ZEDi8
[jack-select] DEBUG: Starting JACK server...
[jack-select] ERROR: Could not start JACK server: org.jackaudio.Error.Generic: Failed to open server

now the default profile starts in QjackCtl, (not the one I selected).

And when you installed that, did you choose jackd2 (not jackd1) as the actual package providing JACK?

pretty sure, I mean Jack works fine.

Or, in other words, do you have /usr/bin/jackdbus?

yes I do.

QjackCtl is version 0.6.0.30git.3386e4-40 from PPA-rncbc-eoan/eoan

So, you are trying to activate preset "ZEDi8" now, right?

Can you:

  • Quit jack-select.
  • Start QjackCtl and for the "ZEDi8" preset enable "Verbose messages" (on the first settings tab).
  • Select the "ZEDi8" in QjackCtl and start JACK via QjacCtl?
  • Open the QjackCtl's "Messages" window and paste the output in the "Mesages" tab here?
cat: /tmp/pasinkj: No such file or directory
cat: /tmp/pasourcej: No such file or directory
You need to specify a sink either by its name or its index.
You need to specify a source either by its name or its index.
18:06:04.203 Post-shutdown script terminated successfully.
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
18:06:04.333 JACK connection change.
18:06:04.357 Client activated.
18:06:04.357 Patchbay deactivated.
18:06:04.366 JACK connection graph change.
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
18:06:12.665 Client deactivated.
18:06:12.667 Post-shutdown script...
18:06:12.667 pajackconnect reset &
cat: /tmp/pasinkj: No such file or directory
cat: /tmp/pasourcej: No such file or directory
You need to specify a sink either by its name or its index.
You need to specify a source either by its name or its index.
18:06:13.068 Post-shutdown script terminated successfully.
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
18:06:13.244 JACK connection change.
18:06:13.267 Client activated.
18:06:13.268 Patchbay deactivated.
18:06:13.275 JACK connection graph change.
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: menu
�[31muint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&)�[0m: Condition failed: men

So this seems not to be a jack-select specific problem.

Your post-shutdown is not working correctly. If you want to run JACK and pulseaudio together, you should install the pulseaudio-jack module for pulseaudio. With this, pulseaudio will detect when the JACK server starts via D-Bus and relinquish the audio device and set up JACK sinks and sources for pulseaudio.

See also here: https://wiki.archlinux.org/index.php/PulseAudio/Examples#PulseAudio_through_JACK ("The KXStudio method")

Can you confirm whether or not you are able to control jackdbus (not jackd!) via QjackCtl?

If you are able to start jack via QjackCtl, can you post the output of ps xw | grep -E '(jack|pulse)' after you started JACK?

Sorry, the closing single quote was missing. Can you try again, please?

 2346 ?        SLl    0:02 /usr/bin/qjackctl -session 1014314c12b145000157623404700000021230020_1577103795_142723
 2489 ?        S      0:01 /usr/bin/python3 /usr/local/bin/jack-select
 2496 ?        S      0:00 /usr/bin/python3 -u /usr/bin/autojack
 2640 ?        S<Lsl   0:00 /usr/bin/pulseaudio --daemonize=no
 5431 ?        SLsl   0:00 /usr/bin/jackdbus auto
 5474 pts/1    S+     0:00 grep --color=auto -E (jack|pulse)

Probably autojack from the ubuntustudio-controls package is interfering with your audio devices. Please de-install/de-activate it temporarily somehow and try jack-select again.

Can autojack come from somewhere else?

I removed the ubuntustudio-controls package and rebooted, but autojack is still showing.


$ sudo apt remove ubuntustudio-controls
Package 'ubuntustudio-controls' is not installed, so not removed

$ sudo pip3 uninstall autojack
Skipping autojack as it is not installed.

$ autojack
Command 'autojack' not found, but can be installed with:
sudo apt install ubuntustudio-controls

$ ps xw | grep -E '(jack|pulse)' 
 2045 pts/1    S+     0:00 grep --color=auto -E (jack|pulse)
 2346 ?        SLl   17:46 /usr/bin/qjackctl -session 1014314c12b145000157623404700000021230020_1577103795_142723
 2489 ?        S      1:02 /usr/bin/python3 /usr/local/bin/jack-select
 2496 ?        S      0:00 /usr/bin/python3 -u /usr/bin/autojack
 2640 ?        S<Lsl 107:24 /usr/bin/pulseaudio --daemonize=no
 5431 ?        SLsl  46:59 /usr/bin/jackdbus auto


Seems like I found the conflict. First I killall autojack. Then I deactivated the scripts in QjackCtl. Not an option though, I can't burn the bridges to Pulse. Correction, has nothing to do with the scripts, killing autojack was all it needed. Will see if it reappears after restart.

UPDATE: autojack seems to be gone for good after restart.

Not an option though, I can't burn the bridges to Pulse

If you install the pulseaudio-module-jack package, pulseaudio will create the bridges to JACK automatically when the JACK server starts and you won't need Qjackctl scripts for that.

That's interesting, because it is not what I get here. I have the module installed, but there is no bridge if I don't run the scripts. Also jack-select isn't switching the presets for some reason.
Peek 2020-01-01 12-58

jack-select does not control QjackCtl, but jackdbus via D-Bus directly. Changing presets will not be reflected in what QjackCtl displays.

A QjackCtl preset is just a collection of JACK settings. jackdbus itself has no notion of presets, so jack-select just sets every JACK setting according to what's specified in a QjackCtl preset.

AAAh. Ok. Now I get the behaviour, makes sense, allthough a bit confusing to the user.

Here is the automatic Pulse-Jack sink / source connection thanks to the pajackconnect scripts in action:
pajckconnect

allthough a bit confusing to the user.

Maybe, but the first sentence of the README cleary says:

"A systray application to quickly change the JACK configuration from QjackCtl presets via DBus."

It doesn't make any claim that it interacts with QjackCtl.

there is no bridge if I don"t run the scripts.

Works here (Manjaro Linux with jack2 1.9.14). Please make sure that the pulsaudio module module-jackdbus-detect is loaded into pulseaudio (look for it in /etc/pulse/default.pa). This is enabled on my system by default, but maybe it isn't on (K)Ubuntu?

This snippet is part of my default.pa, but it doesn't seem to do anything?

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

Is the file /usr/lib/pulse-13.0/modules/module-jackdbus-detect.so present on your system? The version number might something other than 13.0 or missing.

Yes, it's there

Hmm, then it should be working. You can make sure that the module-jackdbus-detect is actually loaded with pactl list.

Anyway, this is out of scope of jack-select for now. For configuring/troubleshooting Pulseaudio, I suggest looking at the Arch wiki entry.

I'll probably add the ability to run pre/post start/stop scripts to jack-select at some point, but probabyl nott right now. Please feel free to add a feature request issue so I don't forget.

I'm therefor going to close this ticket now, as the original issue seems solved.