Subject: xsrc/25060: xdm(1) need DEFAULTVT=vt05 on amd64
To: None <>
From: None <>
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
>Originator:     Nicolas Joly
>Release:        NetBSD 2.0B (-current 20040405)
	Institut Pasteur
System: NetBSD 2.0B NetBSD 2.0B (LANFEUST) #3: Mon Apr 5 11:00:16 CEST 2004 amd64
Architecture: x86_64
Machine: amd64
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.
launch xdm(1) at boot with rc scripts on amd64.
This fix was recently added in CVS XFree86 by Matthieu Herrb:

CVSROOT:        /home/x-cvs
Module name:    xc
Changes by:       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
diff -u -r1.1.1.6 Imakefile
--- xfree/xc/programs/xdm/config/Imakefile	5 Mar 2004 14:27:09 -0000
+++ xfree/xc/programs/xdm/config/Imakefile	3 Apr 2004 15:28:38 -0000
@@ -9,7 +9,7 @@
 all:: xdm-config Xservers Xresources
-#if defined(i386Architecture) && (defined(KNetBSDArchitecture) || defined(KOpenBSDArchitecture))
+#if (defined(i386Architecture) || defined(AMD64Architecture)) && (defined(KNetBSDArchitecture) || defined(KOpenBSDArchitecture))