Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 03:34:07 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-gnome@freebsd.org
Subject:   Re: dbus, hal over xdmcp?
Message-ID:  <1241076847.28498.291.camel@shumai.marcuscom.com>
In-Reply-To: <20090428133027.GA45901@mech-cluster238.men.bris.ac.uk>
References:  <20090424112709.GA29412@mech-cluster238.men.bris.ac.uk> <1240594738.58743.10.camel@shumai.marcuscom.com> <20090428133027.GA45901@mech-cluster238.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-hGvWWVnaA7Xsf7QXloP2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2009-04-28 at 14:30 +0100, Anton Shterenlikht wrote:
> On Fri, Apr 24, 2009 at 01:38:58PM -0400, Joe Marcus Clarke wrote:
> > On Fri, 2009-04-24 at 12:27 +0100, Anton Shterenlikht wrote:
> > > I've read the dbus and hald man pages but I'm still confused.
> > >=20
> > > In a configuration where xserver connects to clients via XDMCP
> > > where do I need to run dbus and hald, or more specifically, on what
> > > computer do I need to have in /etc/rc.conf these two lines:=20
> > >=20
> > > dbus_enable=3D"YES"
> > > hald_enable=3D"YES"
> > >=20
> > >=20
> > > a. only on the machine which runs xserver?
> > > b. only on the machine which runs the clients?
> > > c. on both the xserver and clients machines?
> > >=20
> > > I've tried various configurations, but cannot still cannot
> > > get a web browser to run, only endless dbus-launch and dbus-daemon
> > > processes.
> > >=20
> > > I've looked at man pages for dbus-launch(1), dbus-daemon(1), hald(8),
> > > and at freedesktop.org/software/dbus, but cannot find the answer.
> >=20
> > These daemons need to run on the machine with the working mouse and
> > keyboard.  So, you want them on the machine at which you're sitting.
> > But that's only half of the battle.  You also need to start up a
> > dbus-enabled session.  For example, something like this in .xinitrc:
> >=20
> > dbus-session --exist-with-session fvwm
> >=20
> > That's very simplistic, but hopefully it give you enough of a clue to
> > implement this in your XDMCP setup.
>=20
> Joe, thank you
>=20
> Please confirm I don't need to run hal or dbus daemons on the remote
> machine.
>=20
> I tried what you suggested, but still get nowhere.
>=20
> 1. I've
>=20
> hald_enable=3D"YES"
> dbus_enable=3D"YES"
>=20
> in /etc/rc.conf on the machine with the keyboard and mouse.
>=20
> This gives me
>=20
> MKS# ps ax|grep hal
>   725  ??  Ss     0:05.16 /usr/local/sbin/hald
>   729  ??  I      0:00.19 hald-runner
>   736  ??  I      0:00.11 hald-addon-mouse-sysmouse: /dev/psm0 (hald-addo=
n-mous
>   739  ??  S      0:00.15 hald-addon-storage: no polling on /dev/fd0 beca=
use it
>   751  ??  S      0:00.74 hald-addon-storage: /dev/acd0 (hald-addon-stora=
ge)
>   866  v1  R+     0:00.00 grep hal
> MKS# ps ax | grep dbus
>   566  ??  Is     0:00.14 /usr/local/bin/dbus-daemon --system
>   870  v1  R+     0:00.00 grep dbus
> MKS#
>=20
> Does this look ok?
>=20
> 2. I've no running hal or dbus daemons on the remote clients box.
>=20
> 3. In $HOME/.xsession on the remote clients box I have:
>=20
> dbus-launch --exit-with-session /usr/local/bin/mwm
>=20
> 4. When I connect from the mouse box to the remote box via XDMCP, i.e.
> 	X -query xx.xx.xx.xx
>=20
> I get a mouse pointer, and nothing else. Niether mouse button
> brings the pop-up menu, and I cannot run anything.
>=20
> If I only have /usr/local/bin/mwm in $HOME/.xsession, I can
> get xterm with right button click.
>=20
> 5. So I cannot close connection to the remote box cleanly, and have to
> kill X. This leaves several dbus processes on the remote box:
>=20
> CLI% ps ax|grep dbus
> 46121  ??  I      0:00.04 dbus-launch --exit-with-session /usr/local/bin/=
mwm
> 46124  ??  I      0:00.00 dbus-launch --exit-with-session /usr/local/bin/=
mwm
> 46125  ??  Is     0:00.00 /usr/local/bin/dbus-daemon --fork --print-pid 7=
 --pri
> 46140  p1  R+     0:00.00 grep dbus
> CLI%
>=20
> What am I doing wrong?

I don't use xdmcp, and I only use GNOME, so I'm not exactly sure what is
the best thing to do in this setup.  Maybe someone else can answer that.

It seems to me that you should probably be running dbus and hald on both
machines.  You might also try removing the --exit-with-session from
dbus-launch to see if that helps.

>=20
>=20
> In addition I get this kernel message every second on the mouse and keybo=
ard
> box (Compaq Armada 1700 FBSD 7.1-stable i386) after I launch dbus
> and hal daemons:
>=20
> acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00=
 sks=3D0x40 0
> x00 0x00
>=20
> What does this mean? Should I be worried?

No, these messages do not indicate a problem.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-hGvWWVnaA7Xsf7QXloP2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkn5VG4ACgkQb2iPiv4Uz4ftDACfcwacqy4l9kT5Jo7/ba4oT42D
JAkAmgNVar3h+wrxFWvvLOQ08DJC+NiB
=r6Ds
-----END PGP SIGNATURE-----

--=-hGvWWVnaA7Xsf7QXloP2--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1241076847.28498.291.camel>