Subject: pkg/19434: Using X11R6/rc.d/gdm causes gdm to start on ttyE1 by default
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mike@pelley.com>
List: netbsd-bugs
Date: 12/17/2002 23:31:29
>Number:         19434
>Category:       pkg
>Synopsis:       Using X11R6/rc.d/gdm causes gdm to start on ttyE1 by default
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 20:31:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Mike Pelley
>Release:        NetBSD 1.6_STABLE - December 3, 2002
>Organization:
Foundation
>Environment:
System: NetBSD pelley 1.6_STABLE NetBSD 1.6_STABLE (PELLEY) #26: Wed Dec 11 19:27:27 EST 2002 mike@pelley:/usr/src/sys/arch/i386/compile/PELLEY i386
Architecture: i386
Machine: i386
>Description:
I installed the gdm package, symlinked /usr/X11R6/etc/rc.d/gdm to /etc/rc.d
and added gdm="yes" to /etc/rc.conf.  My wscons configuration is the default.
When I boot, gdm starts on ttyE2 instead of ttyE4 because wscons has not
grabbed the tty's yet.  xdm does not have this problem because the tty is
hard-coded in /usr/X11R6/lib/X11/xdm/Xservers, where gdm just grabs the next
available tty.
>How-To-Repeat:
Install gdm package.  Symlink or copy /usr/X11R6/etc/rc.d/gdm to /etc/rc.d and
add gdm="yes" to /etc/rc.conf (and remove xdm="yes" if applicable).
>Fix:
In patches/patch-ab, change line 46 from

+0=@X11BASE@/bin/X

to

+0=@X11BASE@/bin/X vt4

Alternatively, change /usr/X11R6/etc/rc.d/gdm to wait until wscons has grabbed
all of the tty's.  This would avoid hard-coding the tty in the package, but I
have not looked into how this might be done.
>Release-Note:
>Audit-Trail:
>Unformatted: