2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect1 id="ch-system-kbd" xreflabel="Kbd" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Kbd-&kbd-version;</title>
|
|
|
|
<?dbhtml filename="kbd.html"?>
|
2001-04-01 19:54:06 +01:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd"><primary sortas="a-Kbd">Kbd</primary></indexterm>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>The Kbd package contains key-table files and keyboard utilities.</para>
|
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.1 SBU</seg><seg>12 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Kbd installation depends on</segtitle>
|
|
|
|
<seglistitem><seg>Bash, Binutils, Bison, Coreutils,
|
|
|
|
Diffutils, Flex, GCC, Gettext, Glibc, Grep, Gzip, M4, Make, Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Kbd</title>
|
|
|
|
|
2004-05-03 22:28:58 +01:00
|
|
|
<para>Prepare Kbd for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>./configure</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now install it:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-04-01 19:54:06 +01:00
|
|
|
|
2004-05-06 17:22:04 +01:00
|
|
|
<!-- The "Configuring your keyboard" section has been moved to
|
|
|
|
Chapter 7 and renamed to "Configuring Linux console" -->
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-kbd" role="content"><title>Contents of Kbd</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<seglistitem><seg>chvt, deallocvt, dumpkeys,
|
2004-05-03 11:59:46 +01:00
|
|
|
fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
|
|
|
|
mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
|
|
|
psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
|
|
|
setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
|
2004-05-17 22:55:01 +01:00
|
|
|
showconsolefont, showkey, unicode_start and unicode_stop</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<variablelist><title>Short descriptions</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="chvt">
|
|
|
|
<term><command>chvt</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>changes the foreground virtual terminal.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="deallocvt">
|
|
|
|
<term><command>deallocvt</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>deallocates unused virtual terminals.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="dumpkeys">
|
|
|
|
<term><command>dumpkeys</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>dumps the keyboard translation tables.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="fgconsole">
|
|
|
|
<term><command>fgconsole</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>prints the number of the active virtual terminal.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="getkeycodes">
|
|
|
|
<term><command>getkeycodes</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>prints the kernel scancode-to-keycode mapping table.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="getunimap">
|
|
|
|
<term><command>getunimap</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>prints the currently used unimap.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="kbd_mode">
|
|
|
|
<term><command>kbd_mode</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>reports or sets the keyboard mode.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="kbdrate">
|
|
|
|
<term><command>kbdrate</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>sets the keyboard repeat and delay rates.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="loadkeys">
|
|
|
|
<term><command>loadkeys</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>loads the keyboard translation tables.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="loadunimap">
|
|
|
|
<term><command>loadunimap</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>loads the kernel unicode-to-font mapping table.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="mapscrn">
|
|
|
|
<term><command>mapscrn</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>is an obsolete program that used to load
|
2004-05-03 11:59:46 +01:00
|
|
|
a user-defined output character mapping table into the console driver. This is
|
2004-06-19 13:04:20 +01:00
|
|
|
now done by <command>setfont</command>.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2001-04-01 19:54:06 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="openvt">
|
|
|
|
<term><command>openvt</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>starts a program on a new virtual terminal (VT).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="psf">
|
|
|
|
<term><command>psf*</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd psf"><primary sortas="b-psf*">psf*</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>are a set of tools for handling Unicode character tables for console fonts.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="resizecons">
|
|
|
|
<term><command>resizecons</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>changes the kernel idea of the console size.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setfont">
|
|
|
|
<term><command>setfont</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>lets you change the EGA/VGA fonts on the console.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setkeycodes">
|
|
|
|
<term><command>setkeycodes</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>loads kernel scancode-to-keycode
|
2004-05-03 11:59:46 +01:00
|
|
|
mapping table entries, useful if you have some unusual keys on your keyboard.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setleds">
|
|
|
|
<term><command>setleds</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>sets the keyboard flags and LEDs. Many
|
2004-06-19 13:04:20 +01:00
|
|
|
people find it useful to have <quote>Num Lock</quote> on by default, <command>setleds +num</command> achieves this.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setlogcons">
|
|
|
|
<term><command>setlogcons</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>sends kernel messages to the console.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setmetamode">
|
|
|
|
<term><command>setmetamode</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>defines the keyboard meta-key handling.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="setvesablank">
|
|
|
|
<term><command>setvesablank</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>lets you fiddle with the built-in
|
2004-05-03 11:59:46 +01:00
|
|
|
hardware screensaver (no toasters, just a blank screen).</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="showconsolefont">
|
|
|
|
<term><command>showconsolefont</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>shows the current EGA/VGA console screen font.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="showkey">
|
|
|
|
<term><command>showkey</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>reports the scancodes and keycodes and
|
2004-05-03 11:59:46 +01:00
|
|
|
ASCII codes of the keys pressed on the keyboard.</para>
|
2004-05-17 22:55:01 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="unicode_start">
|
|
|
|
<term><command>unicode_start</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>puts the keyboard and console in UNICODE mode. Never use it on LFS,
|
|
|
|
because applications are not configured to support UNICODE.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2004-05-24 22:37:26 +01:00
|
|
|
<varlistentry id="unicode_stop">
|
|
|
|
<term><command>unicode_stop</command></term>
|
2004-05-17 22:55:01 +01:00
|
|
|
<listitem>
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
|
2004-05-17 22:55:01 +01:00
|
|
|
<para>reverts keyboard and console from UNICODE mode.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|