From owner-freebsd-hackers Thu Feb 29 05:30:10 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA10161 for hackers-outgoing; Thu, 29 Feb 1996 05:30:10 -0800 (PST) Received: from rf900.physics.usyd.edu.au (rf900.physics.usyd.edu.au [129.78.129.109]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA10155 Thu, 29 Feb 1996 05:30:02 -0800 (PST) Received: (from dawes@localhost) by rf900.physics.usyd.edu.au (8.6.11/8.6.9) id AAA29395; Fri, 1 Mar 1996 00:29:53 +1100 From: David Dawes Message-Id: <199602291329.AAA29395@rf900.physics.usyd.edu.au> Subject: Re: xdm running two sessions HOW? To: kaleb@x.org (Kaleb S. KEITHLEY) Date: Fri, 1 Mar 1996 00:29:53 +1100 (EST) Cc: jmb@freefall.freebsd.org, hackers@freefall.freebsd.org In-Reply-To: <199602291122.LAA17610@exalt.x.org> from "Kaleb S. KEITHLEY" at Feb 29, 96 06:22:13 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.ORG Precedence: bulk >> i have removed the getty from two consoles. >> >> how can i get xdm to start two sessions? >> >> /etc/ttys: >> ttyv2 "/usr/libexec/getty Pc" cons25 off insecure >> ttyv3 "/usr/libexec/getty Pc" cons25 off insecure >> >> Xservers: >> :0 local /usr/X11R6/bin/X :0 >> :1 local /usr/X11R6/bin/X :1 >> > >I'm pretty sure there's a race condition even though your xdm-error log >shows that two servers did use two different VTs. You probably want to >use the -vt option to force a particular server onto an explicit VT, e.g.: > >:0 local /usr/X11R6/bin/X :0 -vt 3 >:1 local /usr/X11R6/bin/X :1 -vt 4 Yes, there is a race there. There could be a little more to it as well. When I experimented with this a while ago, I found that I needed to run the servers via a script which first switched to a text VT, waited for a few seconds, then started the server. I haven't tried this recently, but just doing the sleep wasn't sufficient. The script I had used the old syscons utility from FreeBSD 1.x (now replaced by kbdcontrol and vidcontrol, neither of which allow you to switch VTs from the command line): #!/bin/sh /usr/local/bin/syscons -t 1