1ee7c6486StsutsuiA joint production of:
2ee7c6486Stsutsui
3ee7c6486Stsutsui	Adam de Boor		University of California,  Berkeley
4ee7c6486Stsutsui
5ee7c6486Stsutsui	David Rosenthal
6ee7c6486Stsutsui	Stuart Marks
7ee7c6486Stsutsui	Robin Schaufler
8ee7c6486Stsutsui	Mike Schwartz
9ee7c6486Stsutsui	Frances Ho
10ee7c6486Stsutsui	Geoff Lee
11ee7c6486Stsutsui	Mark Opperman		Sun Microsystems
12ee7c6486Stsutsui
13ee7c6486Stsutsui	Bob Scheifler		MIT Laboratory for Computer Science
14ee7c6486Stsutsui	Keith Packard
15ee7c6486Stsutsui
16ee7c6486StsutsuiThis version of the Sun X11 drivers uses ../mi,  ../mfb and ../cfb to support
17ee7c6486Stsutsuithe following configurations:
18ee7c6486Stsutsui
19ee7c6486Stsutsui	Sun/2		bw2	cg2/3/5
20ee7c6486Stsutsui	Sun/3		bw2	cg2/3/4/5
21ee7c6486Stsutsui	Sun/4		bw2	cg2/4
22ee7c6486Stsutsui	SPARCstation		cg3/6
23ee7c6486Stsutsui	Sun/386i	mono	color
24ee7c6486Stsutsui
25ee7c6486StsutsuiThe following configurations are NOT supported:
26ee7c6486Stsutsui
27ee7c6486Stsutsui	Sun/1		bw1	cg1	(requires separate port)
28ee7c6486Stsutsui	Sun/2			gp	(use /dev/cgtwo0)
29ee7c6486Stsutsui	Sun/3			gp	(use /dev/cgtwo0)
30ee7c6486Stsutsui	Sun/4			gp	(use /dev/cgtwo0)
31ee7c6486Stsutsui
32ee7c6486StsutsuiThe mfb and cfb code has been substantially tuned for 1- and 8-bit framebuffers
33ee7c6486Stsutsui(with code for both fast and slow cpu-to-memory ratios).  It installs and runs
34ee7c6486Stsutsuion these configurations under SunOS 3.2, 3.4, and 4.0.  However, we must stress
35ee7c6486Stsutsuithat it is completely unsupported, and if you have problems installing or using
36ee7c6486Stsutsuiit you are on your own.
37ee7c6486Stsutsui
38ee7c6486Stsutsui
39ee7c6486StsutsuiThings to check before building:
40ee7c6486Stsutsui
41ee7c6486Stsutsui1)	config/sun.cf - set the SunOSMajorVersion and SunOSMinorVersion 
42ee7c6486Stsutsui	parameters to the right values.
43ee7c6486Stsutsui
44ee7c6486Stsutsui2)	config/Project.tmpl - check LIBDIR, FONTDIR, etc.; set 
45ee7c6486Stsutsui	define LibDir, FontDir, etc. in site.def as required.
46ee7c6486Stsutsui
47ee7c6486Stsutsui
48ee7c6486Stsutsui
49ee7c6486StsutsuiThen build the system by:
50ee7c6486Stsutsui
51ee7c6486Stsutsui1)	Go for it.  In the top-level directory, type
52ee7c6486Stsutsui
53ee7c6486Stsutsui	make World
54ee7c6486Stsutsui
55ee7c6486Stsutsui	This takes about forty minutes on a 4/260, and somewhat longer
56ee7c6486Stsutsui	on other Suns.
57ee7c6486Stsutsui
58ee7c6486Stsutsui
59ee7c6486Stsutsui2)	Go for it.  In the top-level directory, type
60ee7c6486Stsutsui
61ee7c6486Stsutsui	make install
62ee7c6486Stsutsui
63ee7c6486Stsutsui	Otherwise, you'll want to create a bunch of symbolic links to
64ee7c6486Stsutsui	the various executables and data files scattered throughout
65ee7c6486Stsutsui	the hierarchy.
66ee7c6486Stsutsui
67ee7c6486Stsutsui
68ee7c6486Stsutsui
69ee7c6486Stsutsui3)	On the console, or from an rlogin connection, put whatever you
70ee7c6486Stsutsui	chose for BINDIR (in Imake.tmpl) in your search path, and then
71ee7c6486Stsutsui	start the server:
72ee7c6486Stsutsui
73ee7c6486Stsutsui	    xinit
74ee7c6486Stsutsui	or
75ee7c6486Stsutsui	    xinit -- -dev /dev/??? [see below]
76ee7c6486Stsutsui
77ee7c6486Stsutsui	If it's from the console,  you probably want to redirect the
78ee7c6486Stsutsui	output thus:
79ee7c6486Stsutsui
80ee7c6486Stsutsui	    xinit >& /tmp/x11.out
81ee7c6486Stsutsui
82ee7c6486Stsutsui4)	xinit should start up an xterm window that acts as a console.  When
83ee7c6486Stsutsui	this xterm terminates, the xinit will kill the server.  You can also
84ee7c6486Stsutsui	start up client programs from a terminal or rlogin, but you must
85ee7c6486Stsutsui	first set the DISPLAY environment variable:
86ee7c6486Stsutsui
87ee7c6486Stsutsui	    setenv DISPLAY unix:0
88ee7c6486Stsutsui	    xterm &
89ee7c6486Stsutsui
90ee7c6486Stsutsui
91ee7c6486Stsutsui5)	Make sure that you have special devices in /dev for the appropriate 
92ee7c6486Stsutsui	framebuffer.  See the manual page for Xsun for details or run the
93ee7c6486Stsutsui	constype program. VME systems require special .o files when more
94ee7c6486Stsutsui        than one of a particular frame buffer type is installed.
95ee7c6486Stsutsui
96ee7c6486Stsutsui
97ee7c6486Stsutsui6)	In general,  Xsun auto-configures to use all the available framebuffers
98ee7c6486Stsutsui	(see the Xsun manual page).  In some circumstances, you may need to 
99ee7c6486Stsutsui	use the -dev switch on the command line to specify a specific device
100ee7c6486Stsutsui	to use.  In particular, on the GP, GP+, and GP2, you'll need to
101ee7c6486Stsutsui	specify -dev /dev/cgtwo0 your xdm Xservers file or your xinit script.
102ee7c6486Stsutsui
103ee7c6486Stsutsui
104ee7c6486Stsutsui7)	To shut the server down,  send it a Hangup or Terminate signal.
105ee7c6486Stsutsui
106ee7c6486Stsutsui
107ee7c6486Stsutsui8)	If X crashes, it will leave the keyboard in a funny state.  There is a
108ee7c6486Stsutsui	program called "kbd_mode" that will reset the mode of the keyboard.
109ee7c6486Stsutsui	"kbd_mode -a" is the appropriate setting for the bare console, and
110ee7c6486Stsutsui	"kbd_mode -e" is the appropriate setting for running with SunWindows.
111ee7c6486Stsutsui	You may have to issue this command from a terminal or from an rlogin
112ee7c6486Stsutsui	connection.  If you run from the bare console, you can give the
113ee7c6486Stsutsui	command
114ee7c6486Stsutsui
115ee7c6486Stsutsui	xinit ; kbd_mode -a
116ee7c6486Stsutsui
117ee7c6486Stsutsui	so that the keyboard mode will ALWAYS be set properly when the server
118ee7c6486Stsutsui	terminates.
119