Subject: xsrc/25060: xdm(1) need DEFAULTVT=vt05 on amd64
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 04/05/2004 12:11:44
>Number:         25060
>Category:       xsrc
>Synopsis:       xdm(1) need DEFAULTVT=vt05 on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 05 10:12:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Nicolas Joly
>Release:        NetBSD 2.0B (-current 20040405)
>Organization:
	Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 2.0B NetBSD 2.0B (LANFEUST) #3: Mon Apr 5 11:00:16 CEST 2004 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
Without a DEFAULTVT value for xdm(1), i experienced some strange behaviour
with the X server:
- At boot, if run from rc scripts, the X server eats all CPU (works fine
  if manually restarted).
- If manually run, ttyE1 console display is erased.
- If stopped, the active console is ttyE1 even if launched from ttyE0.

Setting defaultvt to `vt05', like i386i, in xdm(1) Xservers config file
solves this problem.
>How-To-Repeat:
launch xdm(1) at boot with rc scripts on amd64.
>Fix:
This fix was recently added in CVS XFree86 by Matthieu Herrb:

CVSROOT:        /home/x-cvs
Module name:    xc
Changes by:     herrb@public.xfree86.org.       04/04/03 09:07:13
Log message:
  Need to specifiy a VT on amd64 under OpenBSD and NetBSD
Modified files:
      xc/programs/xdm/config/: Imakefile
  Revision      Changes    Path
  1.16          +2 -2      xc/programs/xdm/config/Imakefile


Index: xfree/xc/programs/xdm/config/Imakefile
===================================================================
RCS file: /cvsroot/xsrc/xfree/xc/programs/xdm/config/Imakefile,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 Imakefile
--- xfree/xc/programs/xdm/config/Imakefile	5 Mar 2004 14:27:09 -0000	1.1.1.6
+++ xfree/xc/programs/xdm/config/Imakefile	3 Apr 2004 15:28:38 -0000
@@ -9,7 +9,7 @@
 
 all:: Xservers.ws xdm-config Xservers Xresources
 
-#if defined(i386Architecture) && (defined(KNetBSDArchitecture) || defined(KOpenBSDArchitecture))
+#if (defined(i386Architecture) || defined(AMD64Architecture)) && (defined(KNetBSDArchitecture) || defined(KOpenBSDArchitecture))
 DEFAULTVT=vt05
 #endif
 
>Release-Note:
>Audit-Trail:
>Unformatted: