New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jack Audio does not present any valid output devices #74742
Comments
I just started stumbling through this stuff because I wanted flexible audio routing. I have a really messed up setup that barely works right now; does this help?: https://github.com/jackaudio/jackaudio.github.com/wiki/WalkThrough_User_PulseOnJack For starters I just manually ran the script and it created some monitor devices or something. |
Thanks. I've gone through those setup procedures successfully before in Debian and Ubuntu based distros. Unfortunately I'm unable to get a working Jack2 audio setup in Nix. @deliciouslytyped Do you happen to have a working config file that you can share for your Nix setup? It's not out of the question that I'm configuring something incorrectly. |
Right now I have an ad-hoc configuration I got roughly running about half an hour ago and probably like 100 tabs on JACK and related stuff open :P I had to do some of the stuff here https://askubuntu.com/questions/224151/jack-server-could-not-be-started-when-using-qjackctl/232163 , mainly I tried the pasuspend thing (now I dont seem to need it??? - maybe the same JACK server has been running the whole time, IDK) and the other entry that mentions using fuser, but I really have no idea whats going on. Oh yeah, I had to set it to use the PCM device in qjackctl. I installed pulseaudiofull and added myself to the jackaudio and audio groups, I don't know if the latter even does anything, and I enabled all the dbus stuff in qjackctl. Basically I threw things and google at it till it kind of worked... |
Any luck? Do you use IRC? |
Unfortunately, no luck. My user is part of the jackaudio, audio, and realtime groups.
I don't use IRC normally but am able to connect to an IRC server. I previously asked the question in the #nix_os irc channel but nobody seemed to have an answer. Open to suggestions. |
The dbus problem with cadence involves #55574 (comment) I'm quite sure, but qjackctl works for me. I have the intention to try to work on this stuff a bit, but not really the space to commit to it... |
You shouldn't need the pajackconnect script just to get jack supporting applications to use jack. once you have jack running I think they should just work. My problem was that I couldn't get pulse to work in that case without additional work. The reason is that one or the other needs actual control of the audio devs. |
Look into trying to run qjackctl with pasuspender, and setting the hardware device to the PCH or whichever device in qjackctl, those were things I had to do I think. |
Tried the suggested steps: In qjackctl:
Jack is running but programs like VCV and Reaper are not seeing it. |
So this isn't very helpful but then you need to figure out why they aren't seeing it. |
To answer the above questions:
Other troubleshooting steps
This doesn't appear to be an issue with my actual Nix config. Although I haven't seen yours, presumably we have the same packages being installed, users are part of the same audio groups as suggested in the wiki, etc. I've also disabled Musnix just to make sure that wasn't a factor. I think this strictly has to do with post installation procedures. @deliciouslytyped Would you be able to provide screenshots of what your QJackctl configuration settings are? Maybe we have something setup different there? |
So I just restarted my machine for the first time since I got the ad-hoc jack setup working and things are broken again. :) The system level jack setup seems to be different than what I had going though. For example I was deliberately running in non-realtime mode. I'll report back if I have any findings. |
So, I There may be some other things that need to be done, because I also ran the usual pactl commands earlier. So basically I started everything "manually" in the context of my user and hoped it would work, and it did. So it's still not running in realtime mode if you need that. At some point I'll maybe set aside time and try to figure out what is actually going on here, until then... |
I've finally been able to start Jack audio and get a program to see a valid jack output device by executing the following steps:
Setup -> Settings -> Options -> Execute script after Startup: check
Setup -> Settings -> Options -> Execute script on Shutdown: check
At this point, VCV Rack works with Jack just fine. However Reaper and Helm do not show valid Jack output devices. I'm not sure if it has anything to do with the way those packages were built. |
see #55574 (comment) |
for reaper, it had no jack support, so #81282 |
I ran into some problems again, I'm not sure if I have some misconfigured services or what. I was getting errors for module loading like
and this in jackd:
Running everything manually, from a nix-shell seems to work;
Edit: Uhhh....but with this setup somehow the only outputs things see are the JACK output. So I think this ends up routing pulse through JACK (or not?)... And mumble doesn't see pulse (jack support is compiled in), so things still end up broken. I don't know how these things interface with eachother. |
I marked this as stale due to inactivity. → More info |
Is the |
I marked this as stale due to inactivity. → More info |
Umm. Can we unstale this? |
I marked this as stale due to inactivity. → More info |
Describe the bug
Due to the outdated Jack setup page on the Nix wiki and the fact that my similar audio setup in Ubuntu functions, I'm assuming this is an issue with the Jack or QjackCtl Nix packages.
When running jack audio via QJackCtl, the
jackdbus
server is running but no Jack audio devices are available as outputs in any audio software.This was reproduced on:
No audio outputs in VCV Rack:
No Audio outputs in Reaper:
I've ensured that system outputs were created in the QjackCtl patchbay:
Here is the contents of the QjackCtl Messages window showing relevant errors when one of the above audio apps is started:
To Reproduce
configuration.nix
Additionally, add the following packages:
qjackctl libjack2 jack2 unstable.vcv-rack unstable.reaper
And add your user to the
audio
group.2. Follow the QJackCtl setup instructions for Jack audio with Dbus on this wiki page:
https://nixos.wiki/wiki/JACK
3. Launch QJackCtl.
4. Press Start
5. Launch VCV Rack. In the Audio Module, select JACK and then attempt to select an output device.
Expected behavior
User should be able to select JACK audio output devices in an audio app.
Screenshots
Additional context
Here is the output of
cat /proc/asound/cards
Output of
ps -A | ack "jackd"
output:2324 ? 00:00:04 jackdbus
Disabling
pulseaudio
completely and just running the non dbus version of jack results in the same error messages seen in the original bug description.Below is the full content of my
configuration.nix
fileMetadata
The text was updated successfully, but these errors were encountered: