Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 1998 08:28:51 -0400
From:      Rick Siple <RickSiple@mpainc.com>
To:        "Questions Mailing List (E-mail)" <freebsd-questions@FreeBSD.ORG>
Cc:        "'malte@webmore.com'" <malte@webmore.com>
Subject:   RE: xdm and vtys
Message-ID:  <11FFBC5E23EDD111AF8D006008CEB82D014D74@EXCHANGESERVER>

next in thread | raw e-mail | index | archive | help
Well, here are the files:

(/etc/ttys)
#
#	@(#)ttys	5.1 (Berkeley) 4/17/89
#
# name	getty				type	status		comments
#
# This entry needed for asking password when init goes to single-user
mode
# If you want to be asked for password, change "secure" to "insecure"
here
console	none				unknown	off secure
#
ttyv0	"/usr/libexec/getty Pc"		cons25	on secure
# Virtual terminals
ttyv1	"/usr/libexec/getty Pc"		cons25	on secure
ttyv2	"/usr/libexec/getty Pc"		cons25	off secure
ttyv3	"/usr/libexec/getty Pc"		cons25	off secure
[...]

(/usr/X11R6/etc/rc.d/kdm.sh)
#!/bin/sh
#
#	Start X display manager
#
(sleep 5; /usr/local/kde/bin/kdm) &
echo -n ' kdm'

	I did not use the 'start' argument, is it the usual behavior for
these type of scripts to accept 'start' and 'stop' or something?

(/usr/X11R6/lib/X11/xdm/Xservers)
:0 local /usr/X11R6/bin/X :0
:1 local /usr/X11R6/bin/X :1

	So, like I said, this setup worked when I sent a HUP to xdm to
get it to reread the Xservers file, nut the keyboard locks up on boot.

	Thanks again for any help.

P.S.  This little snafu raised another question.  When does the
Atl-Ctrl-Del key combo restart the computer?  Only when FreeBSD cannot
otherwise intercept the interrupt?  FreeBSD would not restart during the
time when xdm/X had the keyboard locked up.  Took a little wrestling
with the keyboard/X to actually get a terminal where I could type
'restart'.

> -----Original Message-----
> From:	Malte Lance [SMTP:malte@webmore.com]
> Sent:	Friday, June 12, 1998 8:28 AM
> To:	Rick Siple
> Cc:	Questions Mailing List (E-mail)
> Subject:	RE: xdm and vtys
> 
> 
> On 11-Jun-98 Rick Siple wrote:
> >       I have noticed some odd behavior from XDM that I am hoping
> > someone can enlighten me on.  I realize X related question should go
> to
> > the X mailing lists but I thought this might relate to FreeBSD's
> VTYs.
> >       I moved the xdm command from /etc/rc.local to
> > /usr/X11R6/etc/rc.d, for no good reason other than it seemed to be
> the
> > logical place to start all X related services.  Anyway, when started
> > from here xdm seems to start before the VTY manager and grab the
> > console.  In this case the Alt-function and Ctrl-Alt-Function key
> combos
> > don't work, they just beep.  More importantly though the keyboard
> does
> > not work, you can not type into the xdm login window.  This was
> easily
> > fixed with a five second delay in the sh script that starts xdm so
> no
> > big deal, just interested in what is actually going on.
> 
> What is in your /usr/X11R6/etc/rc.d/<sh-executable> ?
> 
> Mine just has :
> 
> #!/bin/sh
> if [ "X$1" = X"start" ]; then
>         if [ -x /usr/X11/bin/xdm ]; then
>                 echo -n ' xdm'
>                 /usr/X11/bin/xdm
>         fi
> fi
> 
> >       Also I configured FreeBSD/xdm to start two X sessions, one on
> > vty2 and one on vty3.  (Did the usual, turned off vty2 in /etc/ttys,
> 
> What do you start by vty2 vty3 ???
> Show please.
> 
> Malte.
> 
> > added :1 to the Xservers file.)  The first time I tried this I
> edited
> > ttys, sent and HUP to init, edited Xservers and sent a HUP to xdm
> and
> > all worked well, both X session were fine.  On restart though, I got
> a
> > behavior similar to when xdm starts before the vty manager (or
> whatever
> > is happening in the first case)  Beeps when attempting to switch
> vtys
> > and at the xdm login with no keyboard.
> >       If anyone can shed an light on this behavior and specifically
> > how to get more than one X session started with xdm, I would
> appreciate
> > it.
> > 
> > __________
> > Rick Siple
> > RickSiple@MPAInc.com
> > 
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> 
> ----------------------------------
> E-Mail: Malte Lance <malte@webmore.com>
> Date: 12-Jun-98
> Time: 12:58:11
> ----------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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