You are not logged in.
Hi! I am trying to set up jack2 with alsa.
I have followed the wiki.
Installed jack2, alsa-plugins and python-dbus. Created the /etc/asound.conf:
# convert alsa API over jack API
# use it with
# % aplay foo.wav
# use this as default
pcm.!default {
type plug
slave.pcm "jack"
hint.description "Jack Audio"
}
Running
jack_control start
gives
DBus exception: org.jackaudio.Error.Generic: Failed to open server
I have not a clue why. Here are some interesting facts, though.
1. So, I reboot. If I launch renoise (for which I need jack), the sound works in it. Alsa stuff doesn't (browser, mpv).
2. After reboot
ps -e | grep jack
gives nothing.
But if I do
jack_control start
and then
ps -e | grep jack
again, I get this
2276 ? 00:00:00 jackdbus
Maybe the problem is in /etc/asound.conf, but I don't know how to fix it. I have a regular laptop, nothing fancy.
PS I remember trying to set up jack half a year ago and giving up, but now I really do need it working. Maybe I messed something up back then.
Any help would be appreciated.
Last edited by megapink (2020-03-25 16:23:22)
Offline
sudo pacman -S jack
solved the problem.
I added
jackd -d alsa &
to .xinitrc, everything seems to be working.
I left the /etc/asound.conf as in the OP.
Not sure why jack2 is not working.
Offline
You get a dbus exception, how does the rest of your .xinitrc look like? https://wiki.archlinux.org/index.php/Xinit#xinitrc Read the blue note boxes.
Offline
Nice catch, I wasn't using anything from the default .xinit.
Adding this
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
resolved the jack2 issue.
Thank you!
Last edited by megapink (2020-03-25 15:40:43)
Offline
Glad to hear, this will likely also avoid a few other weird quirks that you potentially might run into. Having a proper dbus session is essential for a wide variety of programs.
If you consider this [SOLVED] please mark it as such by editing the title in your first post.
Offline