home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20516 < prev    next >
Encoding:
Text File  |  1992-12-23  |  9.3 KB  |  225 lines

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