Path: utzoo!attcan!uunet!ginosko!usc!apple!bloom-beacon!pdaeng.UUCP!willson From: willson@pdaeng.UUCP (Stephen Willson) Newsgroups: comp.windows.x Subject: Lego upgrade and MIT sample server (hack fix) Message-ID: <8909132232.AA20325@madrid.local> Date: 13 Sep 89 22:32:03 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 47 Problem: Has anyone else upgraded a 4/110 with the Lego (GX) board from sun and had the MIT sample server stop working? We are running SUN/OS 4.0.3., with patches 1-9 except the set in the middle that apply only to xman. We have some Sparcstation-1's as well, and they work okay as other net-posters have claimed. We were hoping our 4/110's would be identical now to the Sparcstation-1's except slower processor speed. What happens: run xinit (aliased to alias xinit 'xinit $HOME/.xinit; kbd_mode -a; clear_colormap') the color of the foreground turns light orange (same as on Sparcstation). the screen flashes for a micro-second, trying to initialize. core is dumped csh gets a million EOF's until it logs me out. We have the same /dev entries on the Sparcstation-1's as the 4/110s, with a cgthree0 entry and a cgsix0 entry. Fix: (added 45 minutes after writing above paragraphs) Since I wrote the above paragraphs, I tracked the problem down to line 506 in server/ddx/sun/sunCG4C.c, which is trying to enable the overlay plans. I don't have the foggiest idea why it doesn't try to do this on the Sparcstation-1 but if someone else wants to pursue it this is the place to start. My hack fix is to remove the line that tries to do that: #ifdef notdefPDA /* Now set the enable plane for color */ if (index == 0) sunCG4CSwitch (&(pScreenInfo->screen[0]), 0); #endif Note that I had tried using xinit $HOME/.xinit -- -dev /dev/cgfour0 to keep it from blasting the overlay planes but that didn't work. The server dies saying "can't find any displays" and then logs me out. I have to say, I find that the ability of the server to log me out by screwing up my standard input is quite amazing. Stephen Clarke-Willson Software Architect PDA Engineering willson@pda.com 714/540 8900 x291