home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / announce / 152 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  9.3 KB

  1. Path: sparky!uunet!olivea!charnel!rat!usc!rpi!uwm.edu!biosci!STINGRAY.JPL.NASA.GOV!kaleb
  2. From: kaleb@STINGRAY.JPL.NASA.GOV (Kaleb Keithley)
  3. Newsgroups: comp.windows.x.announce
  4. Subject: R5.Xsun.multi-screen
  5. Message-ID: <9212222142.AA14411@expo.lcs.mit.edu>
  6. Date: 22 Dec 92 21:42:57 GMT
  7. Sender: daemon@net.bio.net
  8. Distribution: inet
  9. Lines: 214
  10. Approved: usenet@genbank.bio.net
  11.  
  12. I have installed a new version of the R5.Xsun.multi-screen server on
  13. export.lcs.mit.edu (18.24.0.12).  It may be found in the file
  14. ~ftp/contrib/R5.Xsun.multi-screen.tar.Z.  The highlights are:
  15.  
  16.     Incorporated Martin Forssen's 16 December 1992 keyboard patch.
  17.  
  18.     A fix for the CG2 screen-saver and colormap-install when compiled 
  19.     with gcc-2.x.x.
  20.  
  21.     A fix for a spurious abort when running under xdm and 
  22.     "*terminateServer: False"
  23.  
  24. The complete README follows.
  25.  
  26. ========================================================================
  27.  
  28. The R5 Xsun Multi-screen server is a general purpose replacement for the 
  29. MIT server/ddx/sun layer.  
  30.  
  31. It was written to fulfill the following requirements:
  32.  
  33.     First, (and foremost) to support up to three of the same type of
  34.     frame buffers on VME and S-Bus architectures.
  35.  
  36.     Second, to simplify the interface to the frame buffers.
  37.  
  38.     Third, to eliminate the SunView support.  The King is dead.  Long 
  39.     live the King.
  40.  
  41.     Fourth, fully integrated keyboard support, written by Martin Forssen.
  42.     No patches to apply, no muss, no fuss, no hassles.  This source is
  43.     current with his set of patches dated 16 December, 1992.
  44.  
  45. =============================================================================
  46.  
  47. Things to know and miscellaneous notes:
  48.  
  49. I've decided to stop advertising that you may use 24-bit frame buffers
  50. in 8-bit mode.  I am currently working to make this this a reality, but 
  51. until such a time as it truly works...
  52.  
  53.  
  54. XDEVICE environment variable.  Xsun will look here first to get the
  55.     device(s) to try; examples:  
  56.  
  57.     'setenv XDEVICE /dev/cgtwo0:/dev/cgtwo1' 
  58.     'setenv XDEVICE /dev/cgeight0'
  59.     'setenv XDEVICE /dev/cgthree0:/dev/cgsix0'
  60.     'setenv XDEVICE /dev/cgsix0:/dev/cgthree0'
  61.  
  62. -dev command line argument.  Xsun will look here second, and override
  63.     XDEVICE specified devices, to get the device(s) to try; examples:
  64.  
  65.     'Xsun -dev /dev/cgtwo0:/dev/cgtwo1'
  66.     'Xsun -dev /dev/cgeight0'
  67.     'Xsun -dev /dev/cgthree0:/dev/cgsix0'
  68.     'Xsun -dev /dev/cgsix0:/dev/cgthree0'
  69.  
  70. fallback list.  If neither of the two methods listed above are employed,
  71.     Xsun will resort to a fallback list of devices to try.  The list is:
  72.  
  73.     /dev/cgtwo0, /dev/cgtwo1, /dev/cgtwo2, /dev/cgthree0, /dev/cgthree1,
  74.     /dev/cgthree2, /dev/cgsix0, /dev/cgsix1, /dev/cgsix2, /dev/cgfour0,
  75.     /dev/bwtwo0, /dev/bwtwo1.
  76.  
  77.  
  78. cgfour note:
  79.     Some Suns are equipped with a mono frame buffer on the mother board.
  80.     All cgfours have an implicit mono frame buffer.  /dev/bwtwo0, I believe 
  81.     will find the mother board frame buffer rather than the cgfour mono 
  82.     plane.  In the absence of a real bwtwo, /dev/bwtwo0 will find the
  83.     cgfour mono plane.
  84.  
  85.     If you experience strange behaviour, i.e. you have a cgfour and the 
  86.     cursor appears to go off the side of the screen, override the
  87.     fallback list with either XDEVICE or -dev, e.g. 'Xsun -dev /dev/cgfour'
  88.  
  89.     Likely ways of having a bwtwo are: real bwtwo frame buffer in a
  90.     slot, real bwtwo frame buffer on the mother board (3/60 only),
  91.     or the cgfour emulates a bwtwo.  Real problems arise when you
  92.     have both a cgfour and another bwtwo.  What happens is that the
  93.     real bwtwo is assigned to /dev/bwtwo0, but this server expects
  94.     /dev/bwtwo0 to be the mono plane of the cgfour, when there is
  95.     one.  The consequences are, that dragging the pointer off the
  96.     edge of the screen causes the cgfour code to enable the mono
  97.     plane; that's okay when the /dev/bwtwo0 is using the cgfour
  98.     mono plane, but not okay when it's some other bwtwo, especially
  99.     if that other bwtwo isn't hooked up to a monitor.
  100.  
  101.     As there is no way to tell from software whether a given bwtwo
  102.     is real or emulated, it poses real problems with trying to
  103.     automagically set up the server to handle all the available
  104.     hardware correctly.  Possible work arounds are:
  105.       1) specify the device list with either -dev or XDEVICE.
  106.       2) specify -zaphod
  107.       3) ensure that /dev/bwtwo0 uses the cgfour:
  108.          'cd /dev;mv bwtwo0 bwtwo1;MAKEDEV bwtwo0' is alleged to work.
  109.  
  110. cgeight/cgnine/cgtwelve note:
  111.     Sun apparently has a utility program that will allow these devices to 
  112.     emulate other "supported" devices.  MIT's Xsun checks the emulation 
  113.     mode in a sort of backward way, thus, a cgeight, emulating a cgfour 
  114.     would be rejected, and would terminate claiming that no screens were 
  115.     found.  Needless to say, if the multi-screen server finds a cgeight,
  116.     cgnine, or cgtwelve, and it is emulating a "supported" device, it 
  117.     will be used.  
  118.  
  119.     NOTE, that since I don't have any of these devices, I haven't tested 
  120.     this feature.
  121.  
  122. xdm note:
  123.     Running MIT's Xsun with xdm has a funny peculiar problem.  The 
  124.     keyboard driver will erroneously report an unknown keyboard type 
  125.     within 750 milliseconds of a mode change.  Normally this isn't a 
  126.     problem if you're running via xinit.  xdm, on the other hand, can 
  127.     (and does) terminate and refork-and-exec the server fast enough to 
  128.     encounter this.  The poor server, thinks it's got an unknown keyboard 
  129.     type, aborts and leaves a spurious core file.  The multi-screen
  130.     includes a fix for this problem.
  131.  
  132. Sun 386i notes:
  133.     Even though a Sun 386i cannot have multiple screens, the multi-screen 
  134.     server source contains conditional compilation for building on Sun 386 
  135.     boxes.  The conditional eliminates support for devices that will never 
  136.     be found on a Sun 386 and therefore produces a smaller binary than might
  137.     otherwise be created.  
  138.  
  139.     Suns' 386 compiler has a severe bug and will not generate correct code 
  140.     for mi/miscrinit.c, and cfb/cfbteblt8.c.  You may overcome this flaw by 
  141.     compiling all the server code, or just these two files with gcc.  I have 
  142.     used gcc-1.xx with success.
  143.  
  144. Bug fixes to server/ddx/mi:
  145.     There is a bug in ddx/mi with regard to tracking the pointer across
  146.     multiple screens.  This apparently seems to only be a problem on
  147.     machines where there is no hardware cursor support.  This is true
  148.     of all the "supported" Sun frame buffers.  Three files are supplied
  149.     to fix the bug.  These files came from MIT, and, although the need
  150.     to make them "public fixes" might seem apparent to those of us using
  151.     multiple screens, MIT doesn't feel that the fixes, or the bug that
  152.     they fix are critical enough to warrant their inclusion into a public 
  153.     fix.  I've been told not to expect them to be official in any respect 
  154.     until R6.  If you disagree with this assessment, I encourage you to 
  155.     let MIT know.  Perhaps if enough people ask nicely, they'll make them 
  156.     official by distributing them in a public fix.
  157.  
  158.     If you don't want to install the three ddx/mi files, the multi-screen
  159.     feature will still work but you're apt to get some strange behavior 
  160.     if you warp the pointer from screen to screen.
  161.  
  162.  
  163. New constype.
  164.     The old constype was pretty nearly useless (apologies to the original 
  165.     author) and initial versions of the R5.Xsun.multi-screen didn't include 
  166.     it for that, and some other reasons.  The new constype probes for all 
  167.     the devices that Xsun supports, and reports any that it finds.
  168.  
  169.  
  170. Old kbd_mode.
  171.     Is included for completeness.
  172.  
  173.  
  174. Credits:
  175.     All the people at the X Consortium, and especially Keith Packard,
  176.     who is, alas, no longer a Consortium employee.
  177.  
  178.     Thanks to George Ross (gdmr@dcs.edinburgh.ac.uk) for pointing
  179.     out that I broke the support for high resolution monochrome
  180.     monitors -- it's fixed now.
  181.  
  182.     Thanks to Jordan Hayes (jordan@moorenet.com) for pushing me to
  183.     include (and indirectly to rewrite) constype and kbd_mode.
  184.  
  185.     Thanks to Andrew McRae (andrew@megadata.mega.oz.au) for finding
  186.     a bug when used with Sun's SunOS GX patch.
  187.  
  188.     Thanks to Martin Forssen (maf@dtek.chalmers.se) and Ian Daniel
  189.     (daniel@europarc.xerox.com) for the enhanced keyboard support and
  190.     encouraging me to put it in, respectively.
  191.  
  192.     Thanks to Obi Thomas (obi@finnbogi.ocs.com) for finding and fixing
  193.     a bug when used under xdm and *terminateServer: False.
  194.  
  195.     Thanks to Eirik Fuller (eirik@elf.tn.cornell.edu) for finding and
  196.     fixing the CG2 colormap and screen saver when compiled with 
  197.     GCC-2.x.x
  198.  
  199.  
  200. Followup thoughts:
  201.     If you're concerned, (and rightfully so) that I might have broken
  202.     something else, rest assured that: 1) I've been adding multi-screen 
  203.     support to Xsun since R3.  2) I have been running the server built
  204.     from this source since shortly after the public release of R5. 
  205.     3) This code is in wide use by numerous others, world-wide.
  206.  
  207.  
  208. Installation instructions:
  209.     'cd .../mit/server'
  210.     'mv ddx/sun ddx/sun.orig'
  211.     'mv ddx/mi/mieq.c ddx/mi/mieq.c.orig
  212.     'mv ddx/mi/mipointer.c ddx/mi/mipointer.c.orig
  213.     'mv ddx/mi/mipointrst.h ddx/mi/mipointrst.h.orig
  214.     'mv ../include/Sunkeysym.h ../include/Sunkeysym.h.orig'
  215.     'mv include/site.h include/site.h.orig
  216.     'zcat R5.Xsun.multi-screen.tar | tar xvf -'
  217.     'make Makefile'
  218.     'make depend'
  219.     'make'
  220.  
  221. If you have any questions or comments, please send them to:
  222.  
  223. kaleb@jpl-devvax.jpl.nasa.gov
  224.  
  225. -- 
  226.