📄 129-132.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Configuration and Installation:Installing and Configuring XFree86</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=1558285660//-->
<!--TITLE=Linux Configuration and Installation//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--AUTHOR=Eric Foster//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=3//-->
<!--PAGES=129-132//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="127-129.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="132-135.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading13"></A><FONT COLOR="#000077">Configuring the Keyboard Section</FONT></H4>
<P>The Keyboard section allows you to set up a number of options about your keyboard, which we list in Table 3.8.
</P>
<TABLE WIDTH="100%"><CAPTION><B>Table 3.8</B> Options in the Keyboard Section
<TR>
<TH WIDTH="35%" ALIGN="LEFT">Option
<TH WIDTH="65%" ALIGN="LEFT">Usage
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TD>Protocol
<TD>Standard (the default) or Xqueue
<TR>
<TD>AutoRepeat delay rate
<TD>Sets up the keyboard auto-repeat delay and rate
<TR>
<TD>ServerNumLock
<TD>Asks X server to handle <B>NumLock</B> internally
<TR>
<TD>LeftAlt key
<TD>Overrides default for left <B>Alt</B> key (<B>Meta</B>)
<TR>
<TD>RightAlt key
<TD>Overrides default for right <B>Alt</B> key (<B>Meta</B>)
<TR>
<TD>ScrollLock key
<TD>Overrides default for <B>ScrollLock</B> key (<B>Compose</B>)
<TR>
<TD>RightCtl key
<TD>Overrides default for right <B>Ctrl</B> key (<B>Control</B>)
<TR>
<TD>XLeds
<TD>Allows programs to use LEDs, rather than keyboard
<TR>
<TD>VTSysReq
<TD>Uses <B>Alt-SysRq-Fn</B> to switch to virtual terminals
<TR>
<TD VALIGN="TOP">VTInit command
<TD>Runs command passed to <B>/bin/sh -c</B>, when X server starts up and has opened its virtual terminal
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P>You almost never want to run the Xqueue protocol, which uses a UNIX SVR3 or SVR4 event queue driver. With Linux, skip this option.
</P>
<P>With X11 Release 6, X finally handles the <B>NumLock</B> key properly. You probably don’t need to worry about the ServerNumLock protocol unless you have older applications that prove to be a problem.</P>
<P>For the key-mapping overrides, you can set each to one of the following values:</P>
<DL>
<DD><B>•</B> Compose
<DD><B>•</B> Control
<DD><B>•</B> Meta
<DD><B>•</B> ModeShift
<DD><B>•</B> ModeLock
<DD><B>•</B> ScrollLock
</DL>
<P>This is probably more than you want to know about your keyboard. See the online-manual page for <B>XF86Config</B> for more information on this.</P>
<P><FONT SIZE="+1"><B>Virtual Terminals</B></FONT></P>
<P>Linux supports virtual terminals. A <I>virtual terminal</I> is a pseudo-tty UNIX terminal connected to your screen. X uses up one virtual terminal, but you may often have many more.</P>
<P>Each virtual terminal takes over your entire display and presents a traditional UNIX textual terminal, much like what you see when you login. A special key sequence allows you to change between virtual terminals. When you do this, the screen gets cleared and you see the next virtual terminal.</P>
<P>The magic key sequence to change to a virtual terminal is <B>Alt-<I>Fn</I></B>, where <I>Fn</I> is one of your keyboard’s function keys, such as <B>F1</B>. But watch out: In X, the magic key sequence to change to a virtual terminal is not <B>Alt-<I>Fn</I></B>, but rather is <B>Ctrl-Alt-<I>Fn</I></B>. The discrepancy occurs because most window managers capture all <B>Alt-<I>Fn</I></B> keys.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>Most laptops have a special <B>Fn</B> key that’s used to provide a second set of functions to the keyboard function keys. The <B>Fn</B> key on a laptop keyboard should not be confused with the <B><I>Fn</I></B> notation used here.<HR></FONT>
</BLOCKQUOTE>
<P>A virtual terminal is not very worthwhile when you have a whole screen with multiple <B>xterm</B> terminal windows. The X environment allows you to use the font of your choice, provides a great many lines, supports a scrollbar, and copies and pastes—none of which the virtual terminals do. So, we only rarely use a virtual terminal.</P>
<P>But there’s one place where a virtual terminal comes in handy: if your X display gets locked up, you can often switch to another virtual terminal and kill off all the X processes.</P>
<P>The VTSysReq option in Table 3.8 allows you to use <B>Alt-SysReq-F<I>n</I></B> instead of the default <B>Ctrl-Alt-F<I>n</I></B>.</P>
<P>Putting this all together, our Keyboard section follows:</P>
<!-- CODE //-->
<PRE>
Section "Keyboard"
Protocol "Standard"
# Protocol "Xqueue"
AutoRepeat 500 5
# ServerNumLock
# Xleds 1 2 3
LeftAlt Meta
RightAlt ModeShift
# RightCtl Compose
# ScrollLock ModeLock
EndSection
</PRE>
<!-- END CODE //-->
<P>Note that we comment out most of it.
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="127-129.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="132-135.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -