Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!dana From: dana@dino.bellcore.com (Dana A. Chee) Newsgroups: comp.windows.x Subject: Re: X/Suntools on a sun 3/60 Message-ID: Date: 12 Apr 89 12:33:13 GMT References: <11837@lanl.gov> <11869@lanl.gov> <22948@agate.BERKELEY.EDU> Sender: news@bellcore.bellcore.com Organization: Bellcore, Morristown, NJ USA Lines: 65 In-reply-to: gckaplan@sag4.ssl.berkeley.edu's message of 12 Apr 89 05:04:11 GMT X on a Sun 3/60 First, there are (potentially) two monochrome frame buffers on a 3/60. bwtwo0 and bwtwo1. Bwtwo0 is the frame buffer attached to the (optional) monochrome plug in the back, while bwtwo1 is the monochrome plane of the cgfour frame buffer. So, assuming that you have a 3/60C, and no optional monochrome monitor attached also, your /dev should have bwtwo1 and cgfour0, REMOVE the bwtwo0 because it will be found first and only cause confusion. If you have a 3/60M, then you want bwtwo0 and no bwtwo1 or cgfour0. Now, for standard issue X (we changed our order around) it will look for bwtwo0, cgtwo0, cgthree0, and cgfour0 in that order. To get the working dual screen effect, add bwtwo1 after bwtwo0 in server/ddx/sun/sunInit.c and recompile/load the server. So, without the addition, for a 3/60C you should have only one screen, a color one, and with the addition, you will have two screens, a mono at screen 0 (since that one was found first) and a color one at screen 1 (since that was next on the list). Using xinit. There is a bug in sunInit.c which makes it unable to handle the multiple (colon separated) displays in the -dev option. I don't know if an official patch will come out for it or not, but its not hard, and I'll send one to anyone that wants it. Anyway, the method of specifying a display to the Xsun server from xinit is: xinit -- -dev /dev/cgfour0 So, in summary, if you want the two screen effect on your cgfour0, remove /dev/bwtwo0, add /dev/bwtwo1 and /dev/cgfour0, patch sunInit.c so that it looks like the example below, reload and run without a -dev argument, and you will have mono as .0 and color as .1. If your site (like ours) would like color as .0 and mono as .1, invert the list so that color appears before mono. #ifdef ZOIDS sunFbDataRec sunFbData[] = { sunBW2Probe, "/dev/bwtwo0", neverProbed, 0, 0, sunBW2Probe, "/dev/bwtwo1", neverProbed, 0, 0, sunCG2CProbe, "/dev/cgtwo0", neverProbed, 0, 0, sunCG3CProbe, "/dev/cgthree0", neverProbed, 0, 0, sunCG4CProbe, "/dev/cgfour0", neverProbed, 0, 0, }; #else ZOIDS sunFbDataRec sunFbData[] = { sunBW2Probe, "/dev/bwtwo0", neverProbed, sunBW2Probe, "/dev/bwtwo1", neverProbed, sunCG2CProbe, "/dev/cgtwo0", neverProbed, sunCG3CProbe, "/dev/cgthree0", neverProbed, sunCG4CProbe, "/dev/cgfour0", neverProbed, }; #endif ZOIDS Any other questions, send me mail. -- Dana Chee Bellcore MRE 2Q-250 (201) 829-4488 dana@bellcore.com