Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 1994 09:12:59 +1100 (EST)
From:      David Dawes <dawes@physics.su.oz.au>
To:        jmb@kryten.atinc.com (Jonathan M. Bresler)
Cc:        dawes@physics.su.oz.au, terry@cs.weber.edu, kaleb@x.org, hackers@freebsd.org
Subject:   Re: syscons & multiple Xservers?
Message-ID:  <199412182213.AA02516@physics.su.OZ.AU>
In-Reply-To: <Pine.3.89.9412180909.A4132-0100000@kryten.atinc.com> from "Jonathan M. Bresler" at Dec 18, 94 09:25:56 am

next in thread | previous in thread | raw e-mail | index | archive | help
>On Sun, 18 Dec 1994, David Dawes wrote:
>> >In point of fact, you *can* start up two servers.
>> 
>> Yes.
>> 
>> >You just have to *never* switch directly between the servers without
>> >switching to a vanilla console in between.
>> 
>> I've never had any problem switching directly from one server to another.
>
>	so how about a copy of your Xservers and xdm-config files.  i 
>havent been ablt ot get this to work.

I don't start multiple servers with xdm.  The problem in doing that
seems to be with starting the second X when already in graphics mode.
Alternatively the problem may be that the second server isn't waiting
for the old VT to be released before it tries to start.

Anyway, I just hacked together the following which seems to work (it
may even help identify the real problem):

First, a script to run the X server (I installed it as /usr/X11R6/bin/X-1):

-------------------------cut-----------------------
#!/bin/sh
# First argument is delay
sleep $1
shift
/usr/local/bin/syscons -t 1 </dev/ttyv0
# Wait for switch to complete
sleep 3
exec X "$@"
-------------------------cut-----------------------

And these are the entries in my Xservers file (I didn't change any other
xdm config files):

:0 local /usr/X11R6/bin/X-1 20 vt3
:1 local /usr/X11R6/bin/X-1 0 :1 vt4

Note: xdm starts the highest display number first, so use a delay when
starting :0 (20s is much longer than usually needed).

I'm using the old 'syscons' command from 1.1 to switch back to a text
VT before starting a server.  Perhaps there is a better way to do that
with what is currently provided?

I just tested this with 2.0R (using the default kernel), and I turned
off the getty on ttyv2 to give two free VTs.

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412182213.AA02516>