[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[bdea25ce] | 7 |
|
---|
[7027db5] | 8 | <!-- FIXME: upstream git has been persuaded by SuSe to build resizecons on x86_64,
|
---|
| 9 | so the sed will need attention if that change is not removed before the next release -->
|
---|
| 10 |
|
---|
[81fd230] | 11 | <sect1 id="ch-system-kbd" role="wrap">
|
---|
[bdea25ce] | 12 | <?dbhtml filename="kbd.html"?>
|
---|
| 13 |
|
---|
[e747759] | 14 | <sect1info condition="script">
|
---|
| 15 | <productname>kbd</productname>
|
---|
| 16 | <productnumber>&kbd-version;</productnumber>
|
---|
| 17 | <address>&kbd-url;</address>
|
---|
| 18 | </sect1info>
|
---|
| 19 |
|
---|
[bdea25ce] | 20 | <title>Kbd-&kbd-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="ch-system-kbd">
|
---|
| 23 | <primary sortas="a-Kbd">Kbd</primary>
|
---|
| 24 | </indexterm>
|
---|
[5df2845] | 25 |
|
---|
[bdea25ce] | 26 | <sect2 role="package">
|
---|
| 27 | <title/>
|
---|
[403a610] | 28 |
|
---|
[15faad9] | 29 | <para>The Kbd package contains key-table files, console fonts, and keyboard
|
---|
| 30 | utilities.</para>
|
---|
[403a610] | 31 |
|
---|
| 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&buildtime;</segtitle>
|
---|
| 34 | <segtitle>&diskspace;</segtitle>
|
---|
| 35 |
|
---|
| 36 | <seglistitem>
|
---|
[e4a5635] | 37 | <seg>&kbd-ch6-sbu;</seg>
|
---|
| 38 | <seg>&kbd-ch6-du;</seg>
|
---|
[403a610] | 39 | </seglistitem>
|
---|
| 40 | </segmentedlist>
|
---|
| 41 |
|
---|
[bdea25ce] | 42 | </sect2>
|
---|
| 43 |
|
---|
| 44 | <sect2 role="installation">
|
---|
| 45 | <title>Installation of Kbd</title>
|
---|
| 46 |
|
---|
[15faad9] | 47 | <para>The behaviour of <command>loadkeys</command> when run without a
|
---|
| 48 | filename was broken in this release. The following patch fixes this:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput remap="pre">patch -Np1 -i ../&kbd-fixes-patch;</userinput></screen>
|
---|
| 51 |
|
---|
[bdea25ce] | 52 | <para>The behaviour of the Backspace and Delete keys is not consistent
|
---|
| 53 | across the keymaps in the Kbd package. The following patch fixes this
|
---|
| 54 | issue for i386 keymaps:</para>
|
---|
[fa21b3d] | 55 |
|
---|
[0445a3d] | 56 | <screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
|
---|
[fa21b3d] | 57 |
|
---|
[bdea25ce] | 58 | <para>After patching, the Backspace key generates the character with code 127,
|
---|
| 59 | and the Delete key generates a well-known escape sequence.</para>
|
---|
[fa21b3d] | 60 |
|
---|
[15faad9] | 61 | <para>Fix a bug in the Spanish message translations which prevents kbd from
|
---|
| 62 | building with gettext-&gettext-version;:</para>
|
---|
| 63 |
|
---|
| 64 | <screen><userinput remap="pre">sed -i '/guardado\ el/s/\(^.*en\ %\)\(.*\)/\14\$\2/' po/es.po</userinput></screen>
|
---|
| 65 |
|
---|
[7027db5] | 66 | <para>Remove the redundant <command>resizecons</command> program (32-bit x86
|
---|
| 67 | only, needs the defunct svgalib, which predates linux-2.6 and is incompatible
|
---|
| 68 | with modern KMS, to provide the video mode files - for normal use
|
---|
[1857e34] | 69 | <command>setfont</command> sizes the console appropriately) and its manpage.</para>
|
---|
| 70 |
|
---|
[2fa5f26] | 71 | <para>The shipped version of <filename>configure.ac</filename> is newer than
|
---|
| 72 | <filename>aclocal.m4</filename>, so autotools will be run by <command>make</command>
|
---|
| 73 | which will overwrite the change to <filename>configure</filename>. Alter the date
|
---|
| 74 | and time of <filename>configure.ac</filename> - this uses the system timezone, so we
|
---|
| 75 | pick a time that is sufficiently old in all timezones.</para>
|
---|
| 76 |
|
---|
| 77 | <screen><userinput remap="pre">sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/' configure &&
|
---|
[1857e34] | 78 | sed -i 's/resizecons.8 //' man/man8/Makefile.in &&
|
---|
[2fa5f26] | 79 | touch -d '2011-05-07 08:30' configure.ac</userinput></screen>
|
---|
[7027db5] | 80 |
|
---|
[bdea25ce] | 81 | <para>Prepare Kbd for compilation:</para>
|
---|
[73aedd1d] | 82 |
|
---|
[4e6c0c5] | 83 | <screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd</userinput></screen>
|
---|
[b540268] | 84 |
|
---|
| 85 | <variablelist>
|
---|
| 86 | <title>The meaning of the configure options:</title>
|
---|
| 87 |
|
---|
| 88 | <varlistentry>
|
---|
| 89 | <term><parameter>--datadir=/lib/kbd</parameter></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>This option puts keyboard layout data in a directory that will
|
---|
| 92 | always be on the root partition instead of the default <filename
|
---|
| 93 | class="directory">/usr/share/kbd</filename>.</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
| 96 |
|
---|
| 97 | </variablelist>
|
---|
[73aedd1d] | 98 |
|
---|
[bdea25ce] | 99 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 100 |
|
---|
[0445a3d] | 101 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 102 |
|
---|
[bdea25ce] | 103 | <para>This package does not come with a test suite.</para>
|
---|
[0be3d41] | 104 |
|
---|
[bdea25ce] | 105 | <para>Install the package:</para>
|
---|
[73aedd1d] | 106 |
|
---|
[0445a3d] | 107 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 108 |
|
---|
[bdea25ce] | 109 | <note>
|
---|
| 110 | <para>For some languages (e.g., Belarusian) the Kbd package doesn't
|
---|
[b540268] | 111 | provide a useful keymap where the stock <quote>by</quote> keymap assumes
|
---|
| 112 | the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
|
---|
| 113 | such languages have to download working keymaps separately.</para>
|
---|
[bdea25ce] | 114 | </note>
|
---|
| 115 |
|
---|
[b540268] | 116 | <para>Some of the scripts in the LFS-Bootscripts package depend on
|
---|
[a65fcb24] | 117 | <command>kbd_mode</command>, <command>loadkeys</command>,
|
---|
| 118 | <command>openvt</command>, and
|
---|
[b540268] | 119 | <command>setfont</command>. As <filename class="directory">/usr</filename>
|
---|
| 120 | may not be available during the early stages of booting, those binaries
|
---|
| 121 | need to be on the root partition:</para>
|
---|
| 122 |
|
---|
[a65fcb24] | 123 | <screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin</userinput></screen>
|
---|
[b540268] | 124 |
|
---|
[cddcb23] | 125 | <para>If desired, install the documentation:</para>
|
---|
| 126 |
|
---|
| 127 | <screen><userinput remap="install">mkdir -v /usr/share/doc/kbd-&kbd-version;
|
---|
| 128 | cp -R -v doc/* \
|
---|
| 129 | /usr/share/doc/kbd-&kbd-version;</userinput></screen>
|
---|
| 130 |
|
---|
[bdea25ce] | 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2 id="contents-kbd" role="content">
|
---|
| 134 | <title>Contents of Kbd</title>
|
---|
| 135 |
|
---|
| 136 | <segmentedlist>
|
---|
| 137 | <segtitle>Installed programs</segtitle>
|
---|
[fe05b08] | 138 | <segtitle>Installed directory</segtitle>
|
---|
[bdea25ce] | 139 |
|
---|
| 140 | <seglistitem>
|
---|
[8f4b4bf] | 141 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
|
---|
| 142 | kbdrate, loadkeys, loadunimap,
|
---|
[bdea25ce] | 143 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
[7027db5] | 144 | psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
|
---|
[8f4b4bf] | 145 | setfont, setkeycodes, setleds, setmetamode,
|
---|
[bdea25ce] | 146 | showconsolefont, showkey, unicode_start, and unicode_stop</seg>
|
---|
[fe05b08] | 147 | <seg>/lib/kbd</seg>
|
---|
[bdea25ce] | 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 |
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="chvt">
|
---|
| 157 | <term><command>chvt</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>Changes the foreground virtual terminal</para>
|
---|
| 160 | <indexterm zone="ch-system-kbd chvt">
|
---|
| 161 | <primary sortas="b-chvt">chvt</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="deallocvt">
|
---|
| 167 | <term><command>deallocvt</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>Deallocates unused virtual terminals</para>
|
---|
| 170 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
| 171 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="dumpkeys">
|
---|
| 177 | <term><command>dumpkeys</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>Dumps the keyboard translation tables</para>
|
---|
| 180 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
| 181 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="fgconsole">
|
---|
| 187 | <term><command>fgconsole</command></term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>Prints the number of the active virtual terminal</para>
|
---|
| 190 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
| 191 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="getkeycodes">
|
---|
| 197 | <term><command>getkeycodes</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
| 200 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
| 201 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="kbd_mode">
|
---|
| 207 | <term><command>kbd_mode</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>Reports or sets the keyboard mode</para>
|
---|
| 210 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
| 211 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="kbdrate">
|
---|
| 217 | <term><command>kbdrate</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
| 220 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
| 221 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="loadkeys">
|
---|
| 227 | <term><command>loadkeys</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>Loads the keyboard translation tables</para>
|
---|
| 230 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
| 231 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="loadunimap">
|
---|
| 237 | <term><command>loadunimap</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
| 240 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
| 241 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="mapscrn">
|
---|
| 247 | <term><command>mapscrn</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>An obsolete program that used to load a user-defined output
|
---|
| 250 | character mapping table into the console driver; this is now done
|
---|
| 251 | by <command>setfont</command></para>
|
---|
| 252 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
| 253 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="openvt">
|
---|
| 259 | <term><command>openvt</command></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
| 262 | <indexterm zone="ch-system-kbd openvt">
|
---|
| 263 | <primary sortas="b-openvt">openvt</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
| 268 | <varlistentry id="psfaddtable">
|
---|
| 269 | <term><command>psfaddtable</command></term>
|
---|
| 270 | <listitem>
|
---|
| 271 | <para>A link to <command>psfxtable</command></para>
|
---|
| 272 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
| 273 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="psfgettable">
|
---|
| 279 | <term><command>psfgettable</command></term>
|
---|
| 280 | <listitem>
|
---|
| 281 | <para>A link to <command>psfxtable</command></para>
|
---|
| 282 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
| 283 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
| 288 | <varlistentry id="psfstriptable">
|
---|
| 289 | <term><command>psfstriptable</command></term>
|
---|
| 290 | <listitem>
|
---|
| 291 | <para>A link to <command>psfxtable</command></para>
|
---|
| 292 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
| 293 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
| 298 | <varlistentry id="psfxtable">
|
---|
| 299 | <term><command>psfxtable</command></term>
|
---|
| 300 | <listitem>
|
---|
| 301 | <para>Handle Unicode character tables for console fonts</para>
|
---|
| 302 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
| 303 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
[7027db5] | 308 | <!--<varlistentry id="resizecons">
|
---|
[bdea25ce] | 309 | <term><command>resizecons</command></term>
|
---|
| 310 | <listitem>
|
---|
| 311 | <para>Changes the kernel idea of the console size</para>
|
---|
| 312 | <indexterm zone="ch-system-kbd resizecons">
|
---|
| 313 | <primary sortas="b-resizecons">resizecons</primary>
|
---|
| 314 | </indexterm>
|
---|
| 315 | </listitem>
|
---|
[7027db5] | 316 | </varlistentry>-->
|
---|
[bdea25ce] | 317 |
|
---|
| 318 | <varlistentry id="setfont">
|
---|
| 319 | <term><command>setfont</command></term>
|
---|
| 320 | <listitem>
|
---|
| 321 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
| 322 | Array (VGA) fonts on the console</para>
|
---|
| 323 | <indexterm zone="ch-system-kbd setfont">
|
---|
| 324 | <primary sortas="b-setfont">setfont</primary>
|
---|
| 325 | </indexterm>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
| 328 |
|
---|
| 329 | <varlistentry id="setkeycodes">
|
---|
| 330 | <term><command>setkeycodes</command></term>
|
---|
| 331 | <listitem>
|
---|
| 332 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
| 333 | useful if there are unusual keys on the keyboard</para>
|
---|
| 334 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
| 335 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
| 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
| 339 |
|
---|
| 340 | <varlistentry id="setleds">
|
---|
| 341 | <term><command>setleds</command></term>
|
---|
| 342 | <listitem>
|
---|
| 343 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
| 344 | <indexterm zone="ch-system-kbd setleds">
|
---|
| 345 | <primary sortas="b-setleds">setleds</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 | </listitem>
|
---|
| 348 | </varlistentry>
|
---|
| 349 |
|
---|
| 350 | <varlistentry id="setmetamode">
|
---|
| 351 | <term><command>setmetamode</command></term>
|
---|
| 352 | <listitem>
|
---|
| 353 | <para>Defines the keyboard meta-key handling</para>
|
---|
| 354 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
| 355 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
| 356 | </indexterm>
|
---|
| 357 | </listitem>
|
---|
| 358 | </varlistentry>
|
---|
| 359 |
|
---|
| 360 | <varlistentry id="showconsolefont">
|
---|
| 361 | <term><command>showconsolefont</command></term>
|
---|
| 362 | <listitem>
|
---|
| 363 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
| 364 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
| 365 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
| 366 | </indexterm>
|
---|
| 367 | </listitem>
|
---|
| 368 | </varlistentry>
|
---|
| 369 |
|
---|
| 370 | <varlistentry id="showkey">
|
---|
| 371 | <term><command>showkey</command></term>
|
---|
| 372 | <listitem>
|
---|
| 373 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
| 374 | pressed on the keyboard</para>
|
---|
| 375 | <indexterm zone="ch-system-kbd showkey">
|
---|
| 376 | <primary sortas="b-showkey">showkey</primary>
|
---|
| 377 | </indexterm>
|
---|
| 378 | </listitem>
|
---|
| 379 | </varlistentry>
|
---|
| 380 |
|
---|
| 381 | <varlistentry id="unicode_start">
|
---|
| 382 | <term><command>unicode_start</command></term>
|
---|
| 383 | <listitem>
|
---|
| 384 | <para>Puts the keyboard and console in UNICODE mode. Don't use this
|
---|
| 385 | program unless your keymap file is in the ISO-8859-1 encoding. For
|
---|
| 386 | other encodings, this utility produces incorrect results.</para>
|
---|
| 387 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
| 388 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
| 389 | </indexterm>
|
---|
| 390 | </listitem>
|
---|
| 391 | </varlistentry>
|
---|
| 392 |
|
---|
| 393 | <varlistentry id="unicode_stop">
|
---|
| 394 | <term><command>unicode_stop</command></term>
|
---|
| 395 | <listitem>
|
---|
| 396 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
| 397 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
| 398 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
| 399 | </indexterm>
|
---|
| 400 | </listitem>
|
---|
| 401 | </varlistentry>
|
---|
| 402 |
|
---|
| 403 | </variablelist>
|
---|
| 404 |
|
---|
| 405 | </sect2>
|
---|
[673b0d8] | 406 |
|
---|
| 407 | </sect1>
|
---|