Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Start jackdbus as root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Haubentaucher
n00b
n00b


Joined: 28 Feb 2011
Posts: 60

PostPosted: Mon May 30, 2011 2:38 pm    Post subject: Start jackdbus as root Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue May 31, 2011 1:07 pm    Post subject: Reply with quote

What are you hoping to accomplish, in more detail?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Haubentaucher
n00b
n00b


Joined: 28 Feb 2011
Posts: 60

PostPosted: Tue May 31, 2011 6:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue May 31, 2011 7:57 pm    Post subject: Reply with quote

I meant, what are you using jackdbus for? What's the ultimate goal? Are you planning to run Ardour/Rosegarden/etc.?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Haubentaucher
n00b
n00b


Joined: 28 Feb 2011
Posts: 60

PostPosted: Tue May 31, 2011 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue May 31, 2011 8:55 pm    Post subject: Reply with quote

Why not run jack without dbus and route things with qjackctl or JACK patch bay from Linux DSP?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Haubentaucher
n00b
n00b


Joined: 28 Feb 2011
Posts: 60

PostPosted: Tue May 31, 2011 9:15 pm    Post subject: Reply with quote

Don't like qjackctl. Does patchage support the normal JACK2 and does LASH also supports JACK2?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue May 31, 2011 11:59 pm    Post subject: Reply with quote

As far as I know. 8)

Quite a few people don't like qjackctl, actually, which is why I suggested the Linux DSP patch bay. It's got kind of a groovy LSD GUI going on.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Haubentaucher
n00b
n00b


Joined: 28 Feb 2011
Posts: 60

PostPosted: Sun Jun 05, 2011 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum