[comp.windows.x] switch between sunview and x

mikep@progress.COM (Mike Pacholec) (02/09/91)

I know how to run X over Sunview, but I would like to be able to
hot key (switch) back and forth between the two on the fly (we have 1 
sunview app that I need to use, but am running Motif otherwise).

We had this capability in the past, but lost the code in the upgrade
to R4.  I believe it is a simple server patch.  Can someone send it
to me.  MUCH APPRECIATED!!!

mikep@progress.com
--
-------------------------------------------------------------------------------
Mike Pacholec                                    UUCP: mit-eddie!progress!mikep
Progress Software Corp.                      Internet: mikep@progress.com
Bedford, MA 

danw@pbird14.prime.com (Dan Westerberg) (02/09/91)

If such a 'hot-key' beast/patch does exist, please send it to me as well...

Thanks, dan
-- 
===============================================================================
|                                                                             |
| Daniel I. Westerberg                 email:  danw@tbird9.prime.com (or)     |
| Prime Computer Inc.                          danw@s49.prime.com             |
| MS 10-9                                                                     |
| 500 Old Connecticut Path             phone:  508-620-2800  x3644            |
| Framingham,  MA  10701                 fax:  508-879-9098                   |
|                                                                             |
===============================================================================

dawson@epps.kodak.com (Keith Dawson) (02/12/91)

In article <1991Feb8.220730.12141@progress.com> mikep@progress.COM (Mike 
Pacholec) writes:
  >I know how to run X over Sunview, but I would like to be able to
  >hot key (switch) back and forth between the two on the fly (we have 1 
  >sunview app that I need to use, but am running Motif otherwise).

There is a way to run X on a Sun color framebuffer and Suntools on the
adjacent mono framebuffer. You then dash the cursor off the left or 
right sides of the screen to "hot key" between the two worlds.

This undocumented technique was ferretted out of Sun customer support.
I use it occasionally on a Sun 3/60 running SunOS 4.1. The display has
two frame-buffers, cgfour0 (8-plane color) and bwtwo1 (mono).

  >We had this capability in the past, but lost the code in the upgrade
  >to R4.  I believe it is a simple server patch.  Can someone send it
  >to me.  MUCH APPRECIATED!!!

The trick works as-is with Xnews, the server that comes with Open Windows
2.0. I investigated a bit using a vanilla MIT R4 server but could never
get it to work, and Sun customer support had nothing useful to say about
non-product servers (no blame to them).

Maybe the R4 server needs a patch as you say.

Here's the procedure:

1. Make sure device bwtwo1 exists.

   <become root>
   cd /dev ; ls -ld b*
   <if no bwtwo1 then> MAKEDEV bwtwo1

2. From glass-tty login, start suntools in the mono framebuffer.

   suntools -d /dev/bwtwo1

3. From a shelltool, invoke the sequence that starts X in the color
   framebuffer. IMPORTANT: do not run this script, source it.
		                                   ======	
   source $OPENWINHOME/suntools+xnews

   The contents of the script are:

      set verbose
      setenv FRAMEBUFFER /dev/cgfour0
      unsetenv WINDOW_PARENT
      xinit -- X -dev /dev/cgfour0 &
      sleep 22
      adjacentscreens /dev/bwtwo1 -r /dev/cgfour0
      setenv WINDOW_PARENT /dev/win0
      unset verbose

Hope this helps.
--
------------------------------------------------------
Keith Dawson                     dawson@epps.kodak.com	
  Atex Advanced Publishing Systems        
  165 Lexington Rd. (400/165L)            508-670-4025