Re: [LAU] jackd2 and X11/dbus

From: Len Ovens <len@email-addr-hidden>
Date: Wed Sep 19 2012 - 09:54:46 EEST

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@email-addr-hidden:~$ 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@email-addr-hidden/1
 1567 pts/1 Ss+ 0:05 -bash
 2054 ? S 0:00 sshd: len@email-addr-hidden/0
 2055 pts/0 Ss 0:05 -bash
 2153 pts/0 R+ 0:00 ps x
len@email-addr-hidden:~$ jack_control status
--- status
started
len@email-addr-hidden:~$

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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Sep 19 12:15:01 2012

This archive was generated by hypermail 2.1.8 : Wed Sep 19 2012 - 12:15:03 EEST