Date: Thu, 30 Apr 2009 09:08:39 -0500 From: Robert Noland <rnoland@FreeBSD.org> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: freebsd-gnome@freebsd.org Subject: Re: dbus, hal over xdmcp? Message-ID: <1241100519.1761.10.camel@balrog.2hip.net> In-Reply-To: <1241076847.28498.291.camel@shumai.marcuscom.com> References: <20090424112709.GA29412@mech-cluster238.men.bris.ac.uk> <1240594738.58743.10.camel@shumai.marcuscom.com> <20090428133027.GA45901@mech-cluster238.men.bris.ac.uk> <1241076847.28498.291.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-S8Zt1547D/YrmHL0wy/V Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2009-04-30 at 03:34 -0400, Joe Marcus Clarke wrote: > 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 As far as keyboard and mouse are concerned these are client side devices. The server itself can be run headless, though it has been a very long time since I've done anything like that... You might need hal on the server side for things like auto-mounting server side cd's or whatever, but not for kbd/mouse. robert. > > > > 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-ad= don-mous > > 739 ?? S 0:00.15 hald-addon-storage: no polling on /dev/fd0 be= cause it > > 751 ?? S 0:00.74 hald-addon-storage: /dev/acd0 (hald-addon-sto= rage) > > 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/bi= n/mwm > > 46124 ?? I 0:00.00 dbus-launch --exit-with-session /usr/local/bi= n/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? >=20 > 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. >=20 > 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 > >=20 > > In addition I get this kernel message every second on the mouse and key= board > > 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=3D0x= 00 sks=3D0x40 0 > > x00 0x00 > >=20 > > What does this mean? Should I be worried? >=20 > No, these messages do not indicate a problem. >=20 > Joe --=20 Robert Noland <rnoland@FreeBSD.org> FreeBSD --=-S8Zt1547D/YrmHL0wy/V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkn5sOcACgkQM4TrQ4qfROMybwCeJoRXEBl/WjZylGmKL3Etp1LQ z9cAnjLS2ENuwuwkWtemNnbUbDNS7L9M =byyG -----END PGP SIGNATURE----- --=-S8Zt1547D/YrmHL0wy/V--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1241100519.1761.10.camel>