[comp.os.minix] MINI-X Patch #1

dbell@pdact.pd.necisa.oz.au (David I. Bell) (04/24/91)

This is a patch for the mini-X distribution that I just sent out.

It was pointed out to me that I had forgotten to include patches for
/usr/include/minix/const.h and /usr/include/minix/com.h in the package.
These patches are given here if you haven't figured them out yet.
Just cd to /usr/include/minix, unpack these patches, and apply them.
	patch com.h com.h.cdif
	patch const.h const.h.cdif
Then your kernel should build correctly.

It was also pointed out that in order to make the mouse work correctly, you
must make sure that the terminal speed is set correctly for the mouse port.
Setting it in /etc/rc is one way to make sure the speed is always correct.

Finally, the code does prod the graphics card directly to enter and exit
from graphics mode.  Each type of graphics card is a little different,
and what works for me (or you) won't necessarily work for others.  If any
of you are an expert on setting modes for various graphics cards, please
let me (or the net) know how to do it correctly.  Thanks!

-dbell-

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of archive 1 (of 1)."
# Contents:  com.h.cdif const.h.cdif
# Wrapped by dbell@elm on Wed Apr 24 22:26:26 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'com.h.cdif' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'com.h.cdif'\"
else
echo shar: Extracting \"'com.h.cdif'\" \(368 characters\)
sed "s/^X//" >'com.h.cdif' <<'END_OF_FILE'
X*** ../old/com.h	Fri Mar  8 08:59:30 1991
X--- com.h	Tue Mar 12 21:33:06 1991
X***************
X*** 50,55 ****
X--- 50,57 ----
X  
X  #define IDLE (AMOEBA_CLASS+1)	/* task to run when there's nothing to run */
X  
X+ #define	GRAPHICS 	  -8	/* graphics device */
X+ 
X  #define PRINTER           -7		/* printer  I/O class */
X  /* The printer uses the same commands as TTY. */
X  
END_OF_FILE
if test 368 -ne `wc -c <'com.h.cdif'`; then
    echo shar: \"'com.h.cdif'\" unpacked with wrong size!
fi
# end of 'com.h.cdif'
fi
if test -f 'const.h.cdif' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'const.h.cdif'\"
else
echo shar: Extracting \"'const.h.cdif'\" \(767 characters\)
sed "s/^X//" >'const.h.cdif' <<'END_OF_FILE'
X*** ../old/const.h	Sun Jan 27 10:53:12 1991
X--- const.h	Tue Mar 12 21:33:23 1991
X***************
X*** 20,28 ****
X  #define MINOR	           0	/* minor device = (dev>>MINOR) & 0377 */
X  
X  #ifdef AM_KERNEL
X! #define NR_TASKS	  14	/* must be 5 more than without amoeba */
X! #else
X! #define NR_TASKS           9	/* number of tasks in the transfer vector */
X  #endif
X  
X  #define NR_PROCS          32	/* number of slots in proc table */
X--- 20,28 ----
X  #define MINOR	           0	/* minor device = (dev>>MINOR) & 0377 */
X  
X  #ifdef AM_KERNEL
X! #define NR_TASKS	  15	/* must be 5 more than without amoeba */
X! #else
X! #define NR_TASKS          10	/* number of tasks in the transfer vector */
X  #endif
X  
X  #define NR_PROCS          32	/* number of slots in proc table */
END_OF_FILE
if test 767 -ne `wc -c <'const.h.cdif'`; then
    echo shar: \"'const.h.cdif'\" unpacked with wrong size!
fi
# end of 'const.h.cdif'
fi
echo shar: End of archive 1 \(of 1\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have the archive.
    rm -f ark[1-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0