Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!husc6!bloom-beacon!SW.MCC.COM!peterson
From: peterson@SW.MCC.COM (James Peterson)
Newsgroups: comp.windows.x
Subject: X11R2 and Color Sun Displays
Message-ID: <8808091509.AA06445@cleo.sw.mcc.com>
Date: 9 Aug 88 15:09:10 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 28

Having gotten X11R2 to work correctly on B/W screens,
I am now trying to get it to work on Color displays.
When I run xinit, like normal, on a system with a
color display instead of a B/W, it hangs and must be
rebooted.  However, if I run it and tell it to use
the color display by name, it starts okay.  So the
problem seems to be in the auto-configuration code.

I added a print statement to sunInit.c to tell me 
what displays it is finding, and get the following
output when it is run on a Sun 3 with one display,
a color display:

bali% xinit -- Xsun
Display 1: /dev/bwtwo0
Display 2: /dev/cgtwo0

It appears that the auto-configuration code is
finding both a color and a b/w display on this
machine, even though there is only one display.

I believe the problem is that the color display has
a b/w interface so that b/w applications can run
on the color display.  How do I determine that the
b/w display is just a different interface to the
color display and that I have only one display
rather than two?

jim