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