[LAU] jackd2 and X11/dbus

Len Ovens len at ovenwerks.net
Wed Sep 19 06:54:46 UTC 2012


On Mon, September 17, 2012 2:27 pm, Len Ovens wrote:
> On Mon, September 17, 2012 9:07 am, S. Massy wrote:
>> On Sun, Sep 16, 2012 at 09:07:02PM -0700, Len Ovens wrote:
>>>
>>> On Sun, September 16, 2012 9:51 am, Brendan Jones wrote:
>>> > On 09/16/2012 06:39 PM, Len Ovens wrote:
>>> >> Is there any way (--nodbus?) of getting jackd2 with dbus built in to
>>> >> start
>>> >> in a no X11 system?
>
>>> Turns out the jackd2 package already pulls in any x11 stuff dbus-x11
>>> needs
>>> and the 130kb it takes on my disk is not a problem. So I can fake an
>>> X11
>>> session without having one.
>> How do you do that? I've ben forced to build my own package of jackd2
>> since upgrading to Wheezy because of this problem, so I'd be glad to
>> know a simpler way.
>
> I'm still working on it.

OK, here is what I have done:

/etc/rc.local gets this line added:
su - len -c /home/len/.bin/startfake.sh

startfake.sh looks like this:
------------------------
#! /bin/bash
# Len's try at creating a dbus session on a no X system
# September 18 2012

rm /home/len/.bin/setsession

# Pretend we are X
echo "DISPLAY=:0" >/home/len/.bin/setsession

dbus-launch | grep ADDRESS >>/home/len/.bin/setsession
dbus-launch | grep PID >>/home/len/.bin/setsession

-------------------------------

~/.profile gets this bit added:
-------------------------------
    if [ -f "$HOME/.bin/setsession" ]; then
	. "$HOME/.bin/setsession"
    fi

export DISPLAY
export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID
-------------------------------

here's whats running after boot:
Last login: Tue Sep 18 23:37:06 2012 from len-netbook.cbbs.org
len at mini:~$ ps x
  PID TTY      STAT   TIME COMMAND
  821 ?        Ss     0:00 //bin/dbus-daemon --fork --print-pid 4
--print-addres
  827 ?        Ss     0:00 //bin/dbus-daemon --fork --print-pid 4
--print-addres
 1136 ?        SLsl   0:09 /usr/bin/jackdbus auto
 1566 ?        S      0:00 sshd: len at pts/1
 1567 pts/1    Ss+    0:05 -bash
 2054 ?        S      0:00 sshd: len at pts/0
 2055 pts/0    Ss     0:05 -bash
 2153 pts/0    R+     0:00 ps x
len at mini:~$ jack_control status
--- status
started
len at mini:~$

Hmm, jackdbus isn't running till I ran jack_control start on the other
login. jackd can also be run ok instead of jackdbus.

-- 
Len Ovens
www.OvenWerks.net



More information about the Linux-audio-user mailing list