Date: Wed, 08 Apr 2009 02:27:48 -0400 From: Joe Marcus Clarke <marcus@FreeBSD.org> To: Tim Kientzle <kientzle@FreeBSD.org> Cc: Freddie Cash <fjwcash@gmail.com>, current@FreeBSD.org Subject: Re: Hal and KDM breakage (was Re: KDE4 and input events stalled) Message-ID: <1239172068.98664.35.camel@shumai.marcuscom.com> In-Reply-To: <49DC405B.7090208@freebsd.org> References: <934e1d760904061455o4736d643o1d07e3292192d94c@mail.gmail.com> <1239078081.1908.41.camel@balrog.2hip.net> <49DAE987.7090802@freebsd.org> <1239086408.35025.59.camel@shumai.marcuscom.com> <20090407185915.GY31409@albert.catwhisker.org> <49DBA371.3080804@freebsd.org> <92cd2ff70904071637h362da63ua13c1f8eca6fc616@mail.gmail.com> <1239147806.98664.12.camel@shumai.marcuscom.com> <92cd2ff70904071653r4bf3b381lf5de220b2e280c0c@mail.gmail.com> <1239150469.98664.18.camel@shumai.marcuscom.com> <b269bc570904072214n55d93ea6t309c83e5eafbdd5d@mail.gmail.com> <49DC405B.7090208@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-DHDwB701MUfz2hJetGJg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-04-07 at 23:12 -0700, Tim Kientzle wrote: > >>> I'm still curious whether it's feasible to just not monitor the vtys. > >> Sure, you can try it. Especially if you're not using GNOME, this migh= t > >> be fine. Just remove the hacks from hald's rc.d script. >=20 > I think I finally understand the issue here. Basically, > there seem to be two options: >=20 > Option 1: Comment out this line from /usr/local/etc/rc.d/hald > #start_cmd=3D"hald_start" >=20 > After this change, the rc.d/hald script will start hald > immediately, so that hald will be running before /etc/ttys > is processed. >=20 > This allows KDM/xdm/gdm to be started either from /etc/ttys > or from a very simple rc.d script (in particular, the 'lshal' > and 'getty' checks are not necessary in this case). >=20 > The risk with this approach is that hald on 7-STABLE and > earlier may be unable to detect whether the user is local or > using a remote X terminal, and hence the auto-mount features > of KDE and Gnome may not function properly. On FreeBSD-CURRENT, > this should be fine and everything should work properly. >=20 > Option 2: Use the current hald script as-is. >=20 > With this, the rc.d/hald script sets up a background process > that will start hald only after /etc/ttys has been processed. >=20 > As a result, KDM cannot be started in the traditional fashion > from /etc/ttys because KDM cannot be started before hald. > (Although Robert claims this should work...) >=20 > In this case, KDM can only be started from an rc.d script, > and that rc.d script needs to use some variant of the > "lshal" hack to ensure that KDM won't start before hald. >=20 > The advantage of this approach is that auto-mount should > function correctly in KDE and Gnome, even on 7-STABLE > and earlier. >=20 > Joe: Did I get this right? This sounds right, but I have not validated the functionality of an immediate start of hald on -CURRENT. One problem we were seeing prior to bland's work, and prior to the delay was that the keyboard and mouse would lock up if CK was started before init spawned the ttys. So beyond making sure CK reports the correct active session, you would want to make sure X is usable at all. Joe >=20 > Freddie Cash pointed out: > > Doesn't work, at least not in my quick-n-dirty testing, using the kdm4 > > script I just posted. If you remove the lshal checks, then the > > keyboard doesn't work once kdm starts. >=20 > Freddie: If you remove the lshal checks from the kdm startup > script, then you have to also remove the hald_start > call from the hald startup script. Otherwise, kdm > will start before hald and bad things will happen > (keyboard/mouse failures at a minimum; I get a complete > black screen in this case). >=20 > Tim >=20 >=20 --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-DHDwB701MUfz2hJetGJg 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) iEYEABECAAYFAkncQ+IACgkQb2iPiv4Uz4cj9ACfdkKs/1wEBZ5t9PKhwlH9i/5x +AEAn05FB7qjZrixGUhntlqWVZ994Vii =Cayn -----END PGP SIGNATURE----- --=-DHDwB701MUfz2hJetGJg--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1239172068.98664.35.camel>