Subject: Re: cannot switch between X and ttyE0
To: None <netbsd-users@netbsd.org>
From: Klaus Heinz <k.heinz.mai.zwei@onlinehome.de>
List: netbsd-users
Date: 05/07/2002 05:58:50
Hi Michael Core, you wrote:
> Klaus Heinz wrote:

> > switch between the X screen and the 4 consoles on ttyE0-ttyE3
> > (ALT-SHIFT-F1 - F5).
> 
> Isn't it ALT-CTRL-Fn ?

Aehm, of course ALT-CTRL-Fn. I was working on something keymap related
and got probably a bit confused. But that doesn't change anything.


> > It seems, X now occupies the console where I type 'startx' instead of
> > number five.
> 
> You can tell X which console it should use e.g. X vt05 will start X at the
> fifth console (ALT-CTRL-F5). BTW, this works although "screen 5" isn't
> defined in /etc/wscons.conf.

X still works and I couldn't care less which console is used by it, but the
sudden change in behaviour after I rolled back my changes to /etc/wscons.conf
and /etc/ttys is inexplicable to me.

I do not specify the console X is supposed to use anywhere, neither
/usr/X11R6/lib/X11/xinit/xserverrc nor ~/.xserverrc exists.


Heureka: I did not restore /etc/wscons.conf _exactly_ like it was before.
There was a line missing:
  screen  4       -       -

/etc/ttys specifies 4 getty processes, for ttyE0 - ttyE3, so X uses
this fifth console only if it exists. This is also the reason why your
suggestion of 'X vt05' did _not_ work for me. X cannot create virtual
consoles all by itself, it only looks for a 'free' console and probably
uses the 'current' console when there is none.

ciao
     Klaus