Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: moore+@MOORE.FAC.CS.CMU.EDU (Dale Moore)
Subject: Re: Problems with X11R6 Xdec on monocrome frame buffers
Date: 1995/09/03	[thread overview]
Message-ID: <42c8cg$ss9@cantaloupe.srv.cs.cmu.edu> (raw)
In-Reply-To: 427ndb$1qf@nippur.irb.hr

In article <427ndb$1qf@nippur.irb.hr>, zspoljar@andrastea.phy.hr (Zdravko Spoljar) writes:
|> Greg Wohletz (greg@unlv.edu) wrote:
|> : Greg Wohletz (greg@unlv.edu) wrote:
|> : : X11R6 ``Xdec''  fails on mono frame  buffers, the R5 server works just
|> : : fine.  On investigation  it seems that fbInitProc calls CreateColormap
|> : : which fails  on mono  machines (DECstation 3100s   in particular).
|> 
|> : I can't believe that NOBODY has responded to this article.  Isn't there
|> : ANYONE out there running R6 on a mono decstation?  For now I've had to
|> : revert to using the R5 server on our mono decstations.  If you possess a
|> : monochrome decstation and have run R6 on it either successfully or
|> : unsuccessfully PLEASE let me know.
|> 
|> : 						--Greg
|> 
|> yes :( 
|> before few days we try to install R6 too...
|> we have 3 color and 15 mono 3100 ... and 
|> all is ok on color stations , but mono make trouble
|> Xserver is dying .... :((((((
|> 
|> we have ultrix 4.3 ....

Since it is a problem with hardware specific software, the X Consortium
may or may not decide to forward the problem description and the
potential fix to the hardware vendor in a timely fashion.

The hardware vendor may or may not decide to acknowledge the
problem and either accept or verify my fix, or come up with one of their own
in a timely fashion.

The hardware vendor may or may not decide to send any such fix
back to the X Consortium in a timely fashion.

The X Consortium may or may not decide to incorporate the fix
from the hardware vendor and release a public fix in a timely fashion.

Dale Moore

Return-Path: <Dale_Moore@MOORE.FAC.cs.cmu.edu>
Received: from localhost by MOORE.FAC.CS.CMU.EDU id aa14355; 2 Jun 94 16:27 EDT
To: xbugs@X.ORG
cc: Dale.Moore@CS.CMU.EDU
Subject: xc/programs/Xserver/hw/dec : R6 Pmax-MFB code broken.
Date: Thu, 02 Jun 1994 16:27:28 -0400
Message-ID: <14353.770588848@MOORE.FAC.CS.CMU.EDU>
From: Dale Moore <Dale_Moore@MOORE.FAC.CS.CMU.EDU>


     VERSION:

R6, public-patch-1

     CLIENT MACHINE and OPERATING SYSTEM:

	DECstation 3100 Ultrix 4.3a

     DISPLAY TYPE:

	PMAX-MFB

     WINDOW MANAGER:

	uwm or Not Applicable

     COMPILER:

native cc

     AREA:

xc/programs/Xserver  Xdec

     SYNOPSIS:

The R6 Xdec server does not work with Monochrome frame buffers.

     DESCRIPTION:

The R6 Xdec X server assumes that the default colormap is writeable.
In routine fbInitProc it attempts to AllocColor even when we have
a Static color map.  Since it can't allocate a color out of the
static colormap, it assumes that it can't initialize the frame buffer
and fails.

If you'll compare the R5 and R6 dec/ws/cfbinit.c you should see in R5
where we either call mfbCreateDefColormap or we do something very similar to
cfbCreateDefColormap .  But in R6 we always do the thing that it similar to
the cfbCreateDefColormap, which does not work on machines with Static
Colormaps.

     REPEAT BY:

Run R6 on a DEC pmax-mfb.  I suspect that you will get the
error 
	Could not AddScreen, ID = PMAX-MFB

	Fatal server error:
	no screens found


     SAMPLE FIX:

*** /afs/cs/local/X11/src/xc/programs/Xserver/hw/dec/ws/cfbinit.c	Sun Apr 17 20:29:54 1994
--- cfbinit.c	Thu Jun  2 15:55:56 1994
***************
*** 1,3 ****
--- 1,9 ----
+ /*
+  * HISTORY
+  * Dale Moore  02-Jun-1994  Carnegie Mellon University
+  *   Changed to work on mfb.  Don't AllocColor if mfb.
+  * $Log$
+  */
  /* $XConsortium: cfbinit.c,v 1.7 94/04/17 20:29:53 dpw Exp $ */
  /***********************************************************
  
***************
*** 405,410 ****
--- 411,423 ----
      {
  	return FALSE;
      }
+ 
+     if (dd->depth == 1)
+     {
+         mfbCreateDefColormap(pScreen);
+     }
+     else
+     {
          /* copy of cfbCreateDefColormap, except variable colors */
          for (pVisual = pScreen->visuals;
  	     pVisual->vid != pScreen->rootVisual;
***************
*** 424,429 ****
--- 437,443 ----
  	    return FALSE;
          }
          (*pScreen->InstallColormap)(pCmap);
+     }
  
      planemask_addr = dd->plane_mask;
      



      reply	other threads:[~1995-09-03  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-16  4:00 Problems with X11R6 Xdec on monocrome frame buffers Greg Wohletz
1995-08-25  4:00 ` Greg Wohletz
1995-09-01  4:00   ` Zdravko Spoljar
1995-09-03  4:00     ` Dale Moore [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox