Sorry, I was afk since writing OP.
Yes, I have systemd up and running. AFAIU to be able to autostart Jack I need to specify a .service file. Am I right?
I wrote one like this:
Code: Select all
[Unit]
Description=JACK
After=sound.target
[Service]
User=mks
ExecStart=/usr/bin/jack_control ds alsa
[Install]
WantedBy=multi-user.target
And it fails to start with the same message as in topic linked in OP:
jack.service - JACK
Loaded: loaded (/etc/systemd/system/jack.service; enabled)
Active: failed (Result: exit-code) since nie 2013-01-20 17:28:24 CET; 1min 1s ago
Process: 1311 ExecStart=/usr/bin/jack_control ds alsa (code=exited, status=1/FAILURE)
sty 20 17:28:24 shi-emperor jack_control[1311]: bus = dbus.SessionBus()
sty 20 17:28:24 shi-emperor jack_control[1311]: File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 211, in __new__
sty 20 17:28:24 shi-emperor jack_control[1311]: mainloop=mainloop)
sty 20 17:28:24 shi-emperor jack_control[1311]: File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__
sty 20 17:28:24 shi-emperor jack_control[1311]: bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
sty 20 17:28:24 shi-emperor jack_control[1311]: File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 122, in __new__
sty 20 17:28:24 shi-emperor jack_control[1311]: bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
sty 20 17:28:24 shi-emperor jack_control[1311]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
sty 20 17:28:24 shi-emperor systemd[1]: jack.service: main process exited, code=exited, status=1/FAILURE
sty 20 17:28:24 shi-emperor systemd[1]: Unit jack.service entered failed state
~
AFAIU it is because service is started with root privileges while root is not logged in and no X11 display is available for him. I'm not sure how to proceed from this point.
Even that jack and pulseaudio are stopped I can't run cadence:
cadence
Segmentation fault (core dumped)
cadence-session-start -s
Traceback (most recent call last):
File "/usr/share/cadence/src/cadence_session_start.py", line 220, in <module>
sys.exit(startSession(False))
File "/usr/share/cadence/src/cadence_session_start.py", line 100, in startSession
startJack()
File "/usr/share/cadence/src/cadence_session_start.py", line 131, in startJack
DBus.jack.StartServer()
File "/usr/lib/python3.3/site-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3.3/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.jackaudio.Error.Generic: Failed to open server
Note that this is a fresh arch install and there might be some uninstalled packages that are needed. Some details about packages I have installed:
pacman -Q | grep dbus
dbus 1.6.8-6
dbus-c++ 0.9.0-4
dbus-glib 0.100-1
jack2-kxstudio-dbus 1.9.9.5-1
libdbusmenu 12.10.2.0ubuntu1-101
libdbusmenu-gtk2 12.10.2.0ubuntu1-101
libdbusmenu-gtk3 12.10.2.0ubuntu1-101
libdbusmenu-qt 0.9.2-1
python-dbus 1.1.1-2
python-dbus-common 1.1.1-2
python2-dbus 1.1.1-2
cadence-git 20130119-1
Joermungand, could you tell me how your system is configured? Do you use a custom .service file for jack?