View previous topic :: View next topic |
Author |
Message |
Haubentaucher n00b
Joined: 28 Feb 2011 Posts: 60
|
Posted: Mon May 30, 2011 2:38 pm Post subject: Start jackdbus as root |
|
|
Hello,
I want to load jackdbus with an init-script on startup. The problem is that the scripts are started with root permissions. If I try to load jack per jack_control as root this happens:
Code: |
$ su
# jack_control start
Traceback (most recent call last):
File "/usr/bin/jack_control", line 314, in <module>
main()
File "/usr/bin/jack_control", line 130, in main
bus = dbus.SessionBus()
File "/usr/lib64/python2.6/site-packages/dbus/_dbus.py", line 219, in __new__
mainloop=mainloop)
File "/usr/lib64/python2.6/site-packages/dbus/_dbus.py", line 108, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib64/python2.6/site-packages/dbus/bus.py", line 125, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
|
Can you explain, why jack_control needs X and how could I start jackdbus without X as root? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Haubentaucher n00b
Joined: 28 Feb 2011 Posts: 60
|
Posted: Tue May 31, 2011 6:49 pm Post subject: |
|
|
Don't know what detail you need, but I try to explain:
Currently I load jackdbus per KDE when my sessions starts with the command
Quote: | jack_control start |
Now I want that jackdbus starts before KDE and userlogin per init-script (what depends on dbus). The problem is that init-scripts are executed with root permissions and before X starts.
If I try to simulate this situation with the commands above, the error you see in first post appears.
So I have this question: How can I start jackdbus as root?
Sorry for bad English. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Haubentaucher n00b
Joined: 28 Feb 2011 Posts: 60
|
Posted: Tue May 31, 2011 8:36 pm Post subject: |
|
|
No, I often use Mixxx and mplayer, but I want to configure the channels, that I could map the subwoofer channel to the front box for example. Or play the film stereo with the front audio panel and 5.1 with my sound card simultaneous. There is also jack-mixer, that you could put between the player and the system to make the voices louder or jack-rack for an equalizer etc.
I don't want to discuss about the sense of jack, if you want to try this. I use it a long time on an other distribution after pulse and naked alsa, so I know what you can do with jack and can't do without it. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Haubentaucher n00b
Joined: 28 Feb 2011 Posts: 60
|
Posted: Tue May 31, 2011 9:15 pm Post subject: |
|
|
Don't like qjackctl. Does patchage support the normal JACK2 and does LASH also supports JACK2? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
Haubentaucher n00b
Joined: 28 Feb 2011 Posts: 60
|
Posted: Sun Jun 05, 2011 11:10 pm Post subject: |
|
|
I emerged JACK2 without dbus and the ebuild jackd-init and this works fine with patchage (I don't try LASH, yet).
I took a look at Linux DSP patch bay. It looks very nice, but I'm not a friend of proprietary software, so I use patchage and the commandline. |
|
Back to top |
|
|
|