Subject: Problems with XFree 2.1 and -current
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Brian Moore <ziff@eecs.umich.edu>
List: current-users
Date: 04/06/1994 23:10:43
I'm not sure if this is the right place for this, but I hope I can at least get
some pointers from someone.  I have a problem with the March 26 sources, and
the XFree 2.1 shared distribution on sun-lamp.  When I use xdm, I can start up
a session fine and dandy, but when I quit from the session the screen goes back
to the normal pc3 non-X terminal and just hangs.  No disk cache flushs, no
keyboard acknoledgement, just a good old solid hang.  I've checked the files
GiveConsole and TakeConsole, because it seemed like this is where it was
hanging but no luck, everything looked fine.  XFree86 2.0 worked fine on this
machine, so it isn't like it was something that didn't work before.  Xdm is
complaining about no meing able to mmap /dev/mem, but it seems if that was the
problem, then nothing should be working.  All other x programs work fine, and I
can compile tk, ghostview/ghostscript, fvwm without a problem and they also
work fine.  Can somebody give me a pointer on how I should go about fixing
this, because I am lost right now. 

Thanks,
Brian Moore
ziff@eecs.umich.edu

munch# pwd
/usr/X11R5/lib/X11/xdm
munch# ls -l
total 34
-rw-------  1 root  wheel      0 Apr  6 03:41 A:0-000154
-rw-------  1 root  wheel     44 Mar 24 20:37 A:0-000250
-rw-------  1 root  wheel     44 Mar 24 21:45 A:0-001188
-rwxrwxr-x  1 root  wheel    325 Mar 16 17:15 GiveConsole
-rwxrwxr-x  1 root  wheel    184 Mar 16 17:15 TakeConsole
-rw-rw-r--  1 root  wheel   1976 Mar 16 17:15 Xaccess
-rw-rw-r--  1 root  wheel    983 Mar 16 17:15 Xresources
-rw-rw-r--  1 root  wheel    424 Mar 16 17:15 Xservers
-rwxrwxr-x  1 root  wheel    603 Mar 16 17:15 Xsession
-rwxrwxr-x  1 root  wheel     88 Mar 16 17:15 Xsetup_0
-rwxr-xr-x  1 root  wheel  20480 Mar 10 13:33 chooser
-rw-rw-r--  1 root  wheel    646 Mar 16 17:15 xdm-config
-rw-rw-r--  1 root  wheel   1631 Apr  6 02:47 xdm-errors
-rw-rw-r--  1 root  wheel      6 Apr  6 02:47 xdm-pid

munch# more GiveConsole
#!/bin/sh
# Assign ownership of the console to the invoking user
#
# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output.  This way a random user can invoke xterm -C without
# causing serious grief.
#
chown $USER /dev/console

munch# more TakeConsole
#!/bin/sh
# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm
#
chmod 622 /dev/console
chown root /dev/console

munch# more xdm-errors 
XFree86 Version 2.1 / X Window System
(protocol Version 11, revision 0, vendor release 5000)
Operating System: NetBSD 
Configured drivers:
  Mach32: accelerated server for ATI Mach32 graphics adaptors (Patchlevel 0)
Using pccons driver with X support
Xconfig: /usr/X386/lib/X11/Xconfig
(**) stands for supplied, (--) stands for probed/default values
(**) Mouse: type: Microsoft, device: /dev/tty00, baudrate: 1200
(**) FontPath set to
"/usr/X386/lib/X11/fonts/misc/,/usr/X386/lib/X11/fonts/Type
1/,/usr/X386/lib/X11/fonts/Speedo/,/usr/X386/lib/X11/fonts/75dpi/"
(--) Mach32: card type: localbus (486)
(**) Mach32: Number of Clocks: 16
(**) Mach32: clocks: 100.00 126.00  92.40  36.00  50.35  56.64   0.00  44.90
(**) Mach32: clocks: 135.00  32.00 110.00  80.00  39.91  44.90  75.00  65.00
(--) Mach32: Maximum allowed dot-clock: 135MHz
(**) Mach32: Mode "1152x900": mode clock =  80.000, clock used =  80.000
(**) Mach32: Mode "1152y900": mode clock =  80.000, clock used =  80.000
(**) Mach32: Mode "1152z900": mode clock =  80.000, clock used =  80.000
(**) Mach32: Mode "1024x768": mode clock =  80.000, clock used =  80.000
(**) Mach32: Mode "1024y768": mode clock =  65.000, clock used =  65.000
(**) Mach32: Virtual resolution: 1152x900
(**) Mach32: videoram: 2048k
(--) Mach32: Using hardware cursor
checkDevMem: warning: failed to mmap /dev/mem (Invalid argument)
        linear fb access unavailable
(--) Mach32: Using 64 kb aperture
(--) Mach32: Ramdac is ATI68875/TLC34075/Bt885
(**) Mach32: Using 6 bits per RGB value
(--) Mach32: Pixmap cache: 1 256x256 slots, 2 128x128 slots, 8 64x64 slots
(--) Mach32: Font cache: 16 fonts


------------------------------------------------------------------------------