[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-kbd" xreflabel="Kbd" role="wrap">
|
---|
[673b0d8] | 7 | <title>Kbd-&kbd-version;</title>
|
---|
| 8 | <?dbhtml filename="kbd.html"?>
|
---|
[5df2845] | 9 |
|
---|
[673b0d8] | 10 | <indexterm zone="ch-system-kbd"><primary sortas="a-Kbd">Kbd</primary></indexterm>
|
---|
[5888299] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[673b0d8] | 13 | <para>The Kbd package contains key-table files and keyboard utilities.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.1 SBU</seg><seg>12 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Kbd installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
|
---|
| 24 | Diffutils, Flex, GCC, Gettext, Glibc, Grep, Gzip, M4, Make, Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Kbd</title>
|
---|
| 30 |
|
---|
[9dfc02f] | 31 | <para>Prepare Kbd for compilation:</para>
|
---|
[73aedd1d] | 32 |
|
---|
| 33 | <screen><userinput>./configure</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[673b0d8] | 39 | <para>Now install it:</para>
|
---|
[73aedd1d] | 40 |
|
---|
| 41 | <screen><userinput>make install</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
[5df2845] | 44 |
|
---|
[b32e803] | 45 | <!-- The "Configuring your keyboard" section has been moved to
|
---|
| 46 | Chapter 7 and renamed to "Configuring Linux console" -->
|
---|
[5888299] | 47 |
|
---|
[c6cb3aa] | 48 | <sect2 id="contents-kbd" role="content"><title>Contents of Kbd</title>
|
---|
[673b0d8] | 49 |
|
---|
[c6cb3aa] | 50 | <segmentedlist>
|
---|
| 51 | <segtitle>Installed programs</segtitle>
|
---|
| 52 | <seglistitem><seg>chvt, deallocvt, dumpkeys,
|
---|
[673b0d8] | 53 | fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
|
---|
| 54 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
| 55 | psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
---|
| 56 | setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
|
---|
[c6cb3aa] | 57 | showconsolefont, showkey, unicode_start and unicode_stop</seg></seglistitem>
|
---|
| 58 | </segmentedlist>
|
---|
[673b0d8] | 59 |
|
---|
[c6cb3aa] | 60 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 61 |
|
---|
[b8a819f] | 62 | <varlistentry id="chvt">
|
---|
| 63 | <term><command>chvt</command></term>
|
---|
[c6cb3aa] | 64 | <listitem>
|
---|
[673b0d8] | 65 | <indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
|
---|
[c6cb3aa] | 66 | <para>changes the foreground virtual terminal.</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
[673b0d8] | 69 |
|
---|
[b8a819f] | 70 | <varlistentry id="deallocvt">
|
---|
| 71 | <term><command>deallocvt</command></term>
|
---|
[c6cb3aa] | 72 | <listitem>
|
---|
[673b0d8] | 73 | <indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
|
---|
[c6cb3aa] | 74 | <para>deallocates unused virtual terminals.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
[673b0d8] | 77 |
|
---|
[b8a819f] | 78 | <varlistentry id="dumpkeys">
|
---|
| 79 | <term><command>dumpkeys</command></term>
|
---|
[c6cb3aa] | 80 | <listitem>
|
---|
[673b0d8] | 81 | <indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
|
---|
[c6cb3aa] | 82 | <para>dumps the keyboard translation tables.</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </varlistentry>
|
---|
[673b0d8] | 85 |
|
---|
[b8a819f] | 86 | <varlistentry id="fgconsole">
|
---|
| 87 | <term><command>fgconsole</command></term>
|
---|
[c6cb3aa] | 88 | <listitem>
|
---|
[673b0d8] | 89 | <indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
|
---|
[c6cb3aa] | 90 | <para>prints the number of the active virtual terminal.</para>
|
---|
| 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
[673b0d8] | 93 |
|
---|
[b8a819f] | 94 | <varlistentry id="getkeycodes">
|
---|
| 95 | <term><command>getkeycodes</command></term>
|
---|
[c6cb3aa] | 96 | <listitem>
|
---|
[673b0d8] | 97 | <indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
|
---|
[c6cb3aa] | 98 | <para>prints the kernel scancode-to-keycode mapping table.</para>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
[673b0d8] | 101 |
|
---|
[b8a819f] | 102 | <varlistentry id="getunimap">
|
---|
| 103 | <term><command>getunimap</command></term>
|
---|
[c6cb3aa] | 104 | <listitem>
|
---|
[673b0d8] | 105 | <indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
|
---|
[c6cb3aa] | 106 | <para>prints the currently used unimap.</para>
|
---|
| 107 | </listitem>
|
---|
| 108 | </varlistentry>
|
---|
[673b0d8] | 109 |
|
---|
[b8a819f] | 110 | <varlistentry id="kbd_mode">
|
---|
| 111 | <term><command>kbd_mode</command></term>
|
---|
[c6cb3aa] | 112 | <listitem>
|
---|
[673b0d8] | 113 | <indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
|
---|
[c6cb3aa] | 114 | <para>reports or sets the keyboard mode.</para>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
[673b0d8] | 117 |
|
---|
[b8a819f] | 118 | <varlistentry id="kbdrate">
|
---|
| 119 | <term><command>kbdrate</command></term>
|
---|
[c6cb3aa] | 120 | <listitem>
|
---|
[673b0d8] | 121 | <indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
|
---|
[c6cb3aa] | 122 | <para>sets the keyboard repeat and delay rates.</para>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
[673b0d8] | 125 |
|
---|
[b8a819f] | 126 | <varlistentry id="loadkeys">
|
---|
| 127 | <term><command>loadkeys</command></term>
|
---|
[c6cb3aa] | 128 | <listitem>
|
---|
[673b0d8] | 129 | <indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
|
---|
[c6cb3aa] | 130 | <para>loads the keyboard translation tables.</para>
|
---|
| 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
[673b0d8] | 133 |
|
---|
[b8a819f] | 134 | <varlistentry id="loadunimap">
|
---|
| 135 | <term><command>loadunimap</command></term>
|
---|
[c6cb3aa] | 136 | <listitem>
|
---|
[673b0d8] | 137 | <indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
|
---|
[c6cb3aa] | 138 | <para>loads the kernel unicode-to-font mapping table.</para>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
[673b0d8] | 141 |
|
---|
[b8a819f] | 142 | <varlistentry id="mapscrn">
|
---|
| 143 | <term><command>mapscrn</command></term>
|
---|
[c6cb3aa] | 144 | <listitem>
|
---|
[673b0d8] | 145 | <indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
|
---|
[c6cb3aa] | 146 | <para>is an obsolete program that used to load
|
---|
[673b0d8] | 147 | a user-defined output character mapping table into the console driver. This is
|
---|
[ef57e3b] | 148 | now done by <command>setfont</command>.</para>
|
---|
[c6cb3aa] | 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
[5df2845] | 151 |
|
---|
[b8a819f] | 152 | <varlistentry id="openvt">
|
---|
| 153 | <term><command>openvt</command></term>
|
---|
[c6cb3aa] | 154 | <listitem>
|
---|
[673b0d8] | 155 | <indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
|
---|
[c6cb3aa] | 156 | <para>starts a program on a new virtual terminal (VT).</para>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
[673b0d8] | 159 |
|
---|
[b8a819f] | 160 | <varlistentry id="psf">
|
---|
| 161 | <term><command>psf*</command></term>
|
---|
[c6cb3aa] | 162 | <listitem>
|
---|
[673b0d8] | 163 | <indexterm zone="ch-system-kbd psf"><primary sortas="b-psf*">psf*</primary></indexterm>
|
---|
[c6cb3aa] | 164 | <para>are a set of tools for handling Unicode character tables for console fonts.</para>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[673b0d8] | 167 |
|
---|
[b8a819f] | 168 | <varlistentry id="resizecons">
|
---|
| 169 | <term><command>resizecons</command></term>
|
---|
[c6cb3aa] | 170 | <listitem>
|
---|
[673b0d8] | 171 | <indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
|
---|
[c6cb3aa] | 172 | <para>changes the kernel idea of the console size.</para>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
[673b0d8] | 175 |
|
---|
[b8a819f] | 176 | <varlistentry id="setfont">
|
---|
| 177 | <term><command>setfont</command></term>
|
---|
[c6cb3aa] | 178 | <listitem>
|
---|
[673b0d8] | 179 | <indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
|
---|
[c6cb3aa] | 180 | <para>lets you change the EGA/VGA fonts on the console.</para>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
[673b0d8] | 183 |
|
---|
[b8a819f] | 184 | <varlistentry id="setkeycodes">
|
---|
| 185 | <term><command>setkeycodes</command></term>
|
---|
[c6cb3aa] | 186 | <listitem>
|
---|
[673b0d8] | 187 | <indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
|
---|
[c6cb3aa] | 188 | <para>loads kernel scancode-to-keycode
|
---|
[673b0d8] | 189 | mapping table entries, useful if you have some unusual keys on your keyboard.</para>
|
---|
[c6cb3aa] | 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
[673b0d8] | 192 |
|
---|
[b8a819f] | 193 | <varlistentry id="setleds">
|
---|
| 194 | <term><command>setleds</command></term>
|
---|
[c6cb3aa] | 195 | <listitem>
|
---|
[673b0d8] | 196 | <indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
|
---|
[c6cb3aa] | 197 | <para>sets the keyboard flags and LEDs. Many
|
---|
[ef57e3b] | 198 | people find it useful to have <quote>Num Lock</quote> on by default, <command>setleds +num</command> achieves this.</para>
|
---|
[c6cb3aa] | 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
[673b0d8] | 201 |
|
---|
[b8a819f] | 202 | <varlistentry id="setlogcons">
|
---|
| 203 | <term><command>setlogcons</command></term>
|
---|
[c6cb3aa] | 204 | <listitem>
|
---|
[673b0d8] | 205 | <indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
|
---|
[c6cb3aa] | 206 | <para>sends kernel messages to the console.</para>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
[673b0d8] | 209 |
|
---|
[b8a819f] | 210 | <varlistentry id="setmetamode">
|
---|
| 211 | <term><command>setmetamode</command></term>
|
---|
[c6cb3aa] | 212 | <listitem>
|
---|
[673b0d8] | 213 | <indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
|
---|
[c6cb3aa] | 214 | <para>defines the keyboard meta-key handling.</para>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[673b0d8] | 217 |
|
---|
[b8a819f] | 218 | <varlistentry id="setvesablank">
|
---|
| 219 | <term><command>setvesablank</command></term>
|
---|
[c6cb3aa] | 220 | <listitem>
|
---|
[673b0d8] | 221 | <indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
|
---|
[c6cb3aa] | 222 | <para>lets you fiddle with the built-in
|
---|
[673b0d8] | 223 | hardware screensaver (no toasters, just a blank screen).</para>
|
---|
[c6cb3aa] | 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
[673b0d8] | 226 |
|
---|
[b8a819f] | 227 | <varlistentry id="showconsolefont">
|
---|
| 228 | <term><command>showconsolefont</command></term>
|
---|
[c6cb3aa] | 229 | <listitem>
|
---|
[673b0d8] | 230 | <indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
|
---|
[c6cb3aa] | 231 | <para>shows the current EGA/VGA console screen font.</para>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
[673b0d8] | 234 |
|
---|
[b8a819f] | 235 | <varlistentry id="showkey">
|
---|
| 236 | <term><command>showkey</command></term>
|
---|
[c6cb3aa] | 237 | <listitem>
|
---|
[673b0d8] | 238 | <indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
|
---|
[c6cb3aa] | 239 | <para>reports the scancodes and keycodes and
|
---|
[673b0d8] | 240 | ASCII codes of the keys pressed on the keyboard.</para>
|
---|
[c6cb3aa] | 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
[673b0d8] | 243 |
|
---|
[b8a819f] | 244 | <varlistentry id="unicode_start">
|
---|
| 245 | <term><command>unicode_start</command></term>
|
---|
[c6cb3aa] | 246 | <listitem>
|
---|
[673b0d8] | 247 | <indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
|
---|
[c6cb3aa] | 248 | <para>puts the keyboard and console in UNICODE mode. Never use it on LFS,
|
---|
| 249 | because applications are not configured to support UNICODE.</para>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
[b8a819f] | 253 | <varlistentry id="unicode_stop">
|
---|
| 254 | <term><command>unicode_stop</command></term>
|
---|
[c6cb3aa] | 255 | <listitem>
|
---|
[673b0d8] | 256 | <indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
|
---|
[c6cb3aa] | 257 | <para>reverts keyboard and console from UNICODE mode.</para>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 | </variablelist>
|
---|
[673b0d8] | 261 |
|
---|
| 262 | </sect2>
|
---|
| 263 |
|
---|
| 264 | </sect1>
|
---|