[comp.windows.x] Color Sun implementation

jsol@bu-cs.BU.EDU (Jon Solomon) (01/19/89)

I am wondering what I need to do to make Sun3's (3/60s in particular)
work in color. One of our users apparently can't make it work, and
what I am curious about is whether or not there is a flag you must
set (or is it a compile flag) to make the sun come up color.

the confusion comes up with the fact that there is a Sun386 version
of Xsun which apparently comes up color, but we don't know if
that is X11R2 or X11R3 and if anything changed.

Can anyone point me at a document which describes ALL of the changes
from X11r2 to X11r3?

thanks.
--jsol

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/19/89)

    I am wondering what I need to do to make Sun3's (3/60s in particular)
    work in color.

Not much.  The 3/60 I'm typing at uses a vanilla built Xsun server.  In
/dev, there are NO entries for bwtwo*, just the single cgfour0.  Note that
when the server comes up, there are two "virtual" screens.  The one that
comes up first is monochrome, the *other* is color.  To get to the color
screen, just move the mouse horizontally "off" either side of the screen.

    Can anyone point me at a document which describes ALL of the changes
    from X11r2 to X11r3?

The R3 release notes will tell you some, and point you at files describing
others.  In general there are CHANGES files in most R3 directories describing
major things that were done.

turner@daisy.UUCP (Jim Turner) (01/19/89)

I don't know if this is the solution to your problem but we had a simular
problem when we brought X11R3 up on our Sun 4's. It seems that Xsun has a 
predefined order that it searches for an 'installed' frame buffer. In our case
it found /dev/fb (b&w) before cgfour0. Starting up xinit as follows 
solved the problem:

xinit -- Xsun -dev /dev/cgfour0

if on the other hand, you've tried that... never mind

-- 
Don't take life too seriously, it ain't nohow permanent - Pogo
...{decwrl|ucbvax}!imagen!atari!daisy!turner (James M. Turner)

chappelo@uvm-gen.uvm.edu (Steve Chappelow) (01/20/89)

jsol@bu-cs.BU.EDU (Jon Solomon) writes:

	#I am wondering what I need to do to make Sun3's (3/60s in
	#particular) work in color. One of our users apparently can't
	#make it work, and what I am curious about is whether or not
	#there is a flag you must set (or is it a compile flag) to
	#make the sun come up color.

I recently compiled X11 on a 3/60 here and had the same problem.  As
it comes from Sun some of the devices don't exist.  Check to see if
you have /dev/cgfour0.  If not try 'MKDEV cgfour0'.  This is the color
device.

	#Can anyone point me at a document which describes ALL of the
	#changes from X11r2 to X11r3?

The only one I know of is the file CHANGES at the root of the source
tree. 
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Stephen W. Chappelow      (chappelo@uvm-gen.uvm.edu || uunet!uvm-gen!chappelo)

mao@blia.BLI.COM (Mike Olson) (01/21/89)

regarding the problem of staring up Xsun on a cgfour0,
jeff turner (voder!pyramid!decwrl!sgi!daisy!turner) writes
> xinit -- Xsun -dev /dev/cgfour0

we've had the same problem here, and have wrapped xinit in a script:

	#!/bin/csh

	stty -tostop
	if ( -e /dev/cgfour0 )
		setenv XDEVICE /dev/cgfour0

	xinit ...

where ... is the set of args you pass to xinit, excluding the -dev stuff
in jeff's posting.  this script is useful from any machine; if you're on a
sun with a color monitor, then you'll use it.  otherwise, the server will
search for a display as normal.

i don't remember why we put the stty in.  something in R2 didn't work
without it.  i'm not brave enough to take it out, but you may not need it.

					mike olson
					britton lee, inc.
					...!ucbvax!mtxinu!blia!mao
					mao@blia.bli.com

dcmartin@CS.WISC.EDU ("David C. Martin") (01/21/89)

Someone should correct me if I am wrong, but I believe that you
can simply rename /dev/cgfour0 to /dev/fb (ie. change the major/minor
numbers for /dev/fb to match those in /dev/cgfour0) since the initialization
for the Sun monitor assumes that it is emulating a bw2 with the default
setup.  You can check this be opening the device and then determining
if the monitor is in emulation mode and what type of monitor it is
emulating.  Check the ioctls for fb in fbio(4S).

dcm
--------
Your message:

    
    regarding the problem of staring up Xsun on a cgfour0,
    jeff turner (voder!pyramid!decwrl!sgi!daisy!turner) writes
    > xinit -- Xsun -dev /dev/cgfour0

    we've had the same problem here, and have wrapped xinit in a script:

    	#!/bin/csh

    	stty -tostop
    	if ( -e /dev/cgfour0 )
    		setenv XDEVICE /dev/cgfour0

    	xinit ...

    where ... is the set of args you pass to xinit, excluding the -dev stuff
    in jeff's posting.  this script is useful from any machine; if you're on a
    sun with a color monitor, then you'll use it.  otherwise, the server will
    search for a display as normal.

    i don't remember why we put the stty in.  something in R2 didn't work
    without it.  i'm not brave enough to take it out, but you may not need it.

    					mike olson
    					britton lee, inc.
    					...!ucbvax!mtxinu!blia!mao
    					mao@blia.bli.com
--------