<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>How to cope with VT-switching hotkeys</TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="SVR4.html"><EM>Information for SVR4 Users</EM></A>
 <b>:</b> <EM>How to cope with VT-switching hotkeys</EM><BR>
<b>Previous:</b> <A HREF="SVR41.html"><EM>SVR4 versions on which XFree86 has been tested</EM></A><BR>
<b>Next:</b> <A HREF="SVR43.html"><EM>Running SVR3 binaries on SVR4.0.4 and SVR4.2</EM></A>


<HR NOSHADE>
  <H2><A NAME="2"></A>2. How to cope with VT-switching hotkeys</H2>
<p>Some versions of SVR4 (Esix and Microport) have mechanisms for enabling
two-key sequences for VT switching (<code>Alt-Fn</code>).  
The standard SVR4 mechanism
is <code>Alt-SysReq-Fn</code>, which all versions we know use.  
Running under X, the
<code>Alt-Fn</code> sequences are stolen by the driver before the 
server can see them,
so you can't use them for X applications.  So you want to switch back to
the standard 3-key sequences while you are running X.  Here's how to do
it:
<dl>
<dt><b>Microport</b><dd><p>Microport makes this very simple.  The 2-key mode is called
"Microport Mode", and the 3-key mode is called "Compatible Mode".
You enter Microport Mode by pressing <code>Alt-SysReq-m</code>.  You enter
Compatible Mode by pressing <code>Alt-SysReq-c</code>.  So all you 
need to do is press <code>Alt-SysReq-c</code> after starting the
X server to allow X clients access to the
<code>Alt-Fn</code> sequences.</p>
<dt><b>Esix</b><dd><p>Esix has no keyboard-driven way to switch modes.  There are two
levels at which this can be handled:</p>
<p>
<ol>
<li>There is a kernel tunable that determines which mode is the
default.  The tunable is the initialisation of kd_2keysw in
<code>/etc/conf/pack.d/kd/space.c</code>.  When set to 1 (the default), 
2-key
mode is enabled.  When set to 0 it is disabled.
</li>
<li>The mode can be changed for individual VTs programatically by
an ioctl().  To make life easier for XFree86 users, a program
called `2key' is provided (in 
<code>xc/programs/Xserver/hw/xfree86/etc/</code>
in the source tree, and in 
<code>/usr/X11R6/lib/X11/etc/</code> in the binary
kit).  You can compile and install this program.  Then to make use
of it, add the line `<code>VTInit "2key off"</code>' 
to the Keyboard section of
your <code>XF86Config</code> file to cause the program to be run 
automatically
when the server starts up.  Doing this means that 2-key switching
will be turned off while in the server's VT, but will still be on
for the other VTs.
</li>
</ol>

For further details, refer to the keyboard(7) man page included
with the release notes (the on-line man page doesn't have this
information).</p>
</dl>
</p>

 <HR NOSHADE>
<A HREF="SVR4.html"><EM>Information for SVR4 Users</EM></A>
 <b>:</b> <EM>How to cope with VT-switching hotkeys</EM><BR>
<b>Previous:</b> <A HREF="SVR41.html"><EM>SVR4 versions on which XFree86 has been tested</EM></A><BR>
<b>Next:</b> <A HREF="SVR43.html"><EM>Running SVR3 binaries on SVR4.0.4 and SVR4.2</EM></A>



</BODY>
</HTML>
