Date: Tue, 28 Apr 2009 14:30:27 +0100 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: freebsd-gnome@freebsd.org Subject: Re: dbus, hal over xdmcp? Message-ID: <20090428133027.GA45901@mech-cluster238.men.bris.ac.uk> In-Reply-To: <1240594738.58743.10.camel@shumai.marcuscom.com> References: <20090424112709.GA29412@mech-cluster238.men.bris.ac.uk> <1240594738.58743.10.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > > > > 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: > > > > dbus_enable="YES" > > hald_enable="YES" > > > > > > 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? > > > > I've tried various configurations, but cannot still cannot > > get a web browser to run, only endless dbus-launch and dbus-daemon > > processes. > > > > 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. > > 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: > > dbus-session --exist-with-session fvwm > > That's very simplistic, but hopefully it give you enough of a clue to > implement this in your XDMCP setup. Joe, thank you Please confirm I don't need to run hal or dbus daemons on the remote machine. I tried what you suggested, but still get nowhere. 1. I've hald_enable="YES" dbus_enable="YES" in /etc/rc.conf on the machine with the keyboard and mouse. This gives me 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-addon-mous 739 ?? S 0:00.15 hald-addon-storage: no polling on /dev/fd0 because it 751 ?? S 0:00.74 hald-addon-storage: /dev/acd0 (hald-addon-storage) 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# Does this look ok? 2. I've no running hal or dbus daemons on the remote clients box. 3. In $HOME/.xsession on the remote clients box I have: dbus-launch --exit-with-session /usr/local/bin/mwm 4. When I connect from the mouse box to the remote box via XDMCP, i.e. X -query xx.xx.xx.xx I get a mouse pointer, and nothing else. Niether mouse button brings the pop-up menu, and I cannot run anything. If I only have /usr/local/bin/mwm in $HOME/.xsession, I can get xterm with right button click. 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: 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% What am I doing wrong? In addition I get this kernel message every second on the mouse and keyboard box (Compaq Armada 1700 FBSD 7.1-stable i386) after I launch dbus and hal daemons: acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0 x00 0x00 What does this mean? Should I be worried? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090428133027.GA45901>