Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 1999 10:18:00 -0400 (EDT)
From:      Richard Scheper <scheper@beast.toad.net>
To:        freebsd-smp@FreeBSD.ORG
Subject:   Re: SMP + XDM = keyboard lockup 
Message-ID:  <Pine.LNX.4.10.9907221012260.14509-100000@beast.toad.net>
In-Reply-To: <199907221405.XAA19695@zodiac.mech.utsunomiya-u.ac.jp>

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

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9907221012260.14509-100000>