From owner-freebsd-smp Thu Jul 22 7:18:36 1999 Delivered-To: freebsd-smp@freebsd.org Received: from beast.toad.net (beast.toad.net [205.197.182.100]) by hub.freebsd.org (Postfix) with ESMTP id 624C414D61 for ; Thu, 22 Jul 1999 07:18:32 -0700 (PDT) (envelope-from scheper@beast.toad.net) Received: from localhost (scheper@localhost) by beast.toad.net (8.9.3/8.9.3) with ESMTP id KAA15996 for ; Thu, 22 Jul 1999 10:18:00 -0400 Date: Thu, 22 Jul 1999 10:18:00 -0400 (EDT) From: Richard Scheper To: freebsd-smp@FreeBSD.ORG Subject: Re: SMP + XDM = keyboard lockup In-Reply-To: <199907221405.XAA19695@zodiac.mech.utsunomiya-u.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wow. Thanks for the explanation. That makes sense. So if I throw the sleep and xdm commands into the background in /etc/rc.local, the script will complete before xdm starts running, giving init enough time to set itself up. Then getty grabs tyv1 before xdm can.. if I understand this right. I thought I had it set up so that the X server could only grab tyv3, but I guess I was wrong.. -Rich On Thu, 22 Jul 1999, Kazutaka YOKOTA wrote: > > >Heres my problem. I have an rc.local which starts up xdm, i.e. > > > >/usr/X11R6/bin/xdm > > > >which starts up the xdm login screen. However, at this point the keyboard > >input is locked out. Absolutely no key sequences have any effect. All else > >appears to work, i.e. the mouse still functions. > > Here is a bit of explanation. > > The XFree86 server tries to locate an empty vty to use for the X > sesssion. If xdm is started in rc.local, the X server will run BEFORE > init(8) starts invoking getty(8), and will find /dev/ttyv1 empty and > tries to occupy that vty. When rc.init is finished, init(8) will run > a copy of getty(8) in /dev/ttyv1, then, *Bomb* The X server and getty > both tries to read from the keyboard. > > >I've experimented with > >this and have gathered the following clues: > > > >1. xdm works fine if SMP is disabled in the kernel > > This means that the X server has not started before getty(8). > Probably xdm is still busy parsing and processing its configuration > file when init is staring getty in vtys. > > This is just a timing problem, and you are just lucky. > > >2. SMP works fine if xdm is not started in rc.local or in /etc/ttys > > It should :-) > > >3. SMP and xdm work fine if xdm is started under a root login session. > > It should too. > > >4. the keyboard lockup only occurs after the rc.local script is finished > > executing. That is, if I put a sleep 60 command after the xdm command > > in rc.local, the login screen accepts my input and starts X, and > > everything is fine for exactly one minute at which time the keyboard > > locks. > > This sleep command only delays the completion of rc.local. The X > server will be able to read from the keyboard only until getty starts > running. This won't solve the problem at all ;-< > > >5. sleep commands before the xdm command in rc.local have no effect - > > lockup still occurs. > > It won't work either. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message