source: chapter06/kbd.xml@ c11bcb7

Last change on this file since c11bcb7 was c11bcb7, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Merged r8366 from trunk.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8367 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 12.8 KB
RevLine 
[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
[81fd230]8<sect1 id="ch-system-kbd" role="wrap">
[bdea25ce]9 <?dbhtml filename="kbd.html"?>
10
[c11bcb7]11 <sect1info condition="script">
12 <productname>kbd</productname>
13 <productnumber>&kbd-version;</productnumber>
14 <address>&kbd-url;</address>
15 </sect1info>
16
[bdea25ce]17 <title>Kbd-&kbd-version;</title>
18
19 <indexterm zone="ch-system-kbd">
20 <primary sortas="a-Kbd">Kbd</primary>
21 </indexterm>
[5df2845]22
[bdea25ce]23 <sect2 role="package">
24 <title/>
[403a610]25
26 <para>The Kbd package contains key-table files and keyboard utilities.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
[e4a5635]33 <seg>&kbd-ch6-sbu;</seg>
34 <seg>&kbd-ch6-du;</seg>
[403a610]35 </seglistitem>
36 </segmentedlist>
37
[bdea25ce]38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Kbd</title>
42
43 <para>The behaviour of the Backspace and Delete keys is not consistent
44 across the keymaps in the Kbd package. The following patch fixes this
45 issue for i386 keymaps:</para>
[fa21b3d]46
47<screen><userinput>patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
48
[bdea25ce]49 <para>After patching, the Backspace key generates the character with code 127,
50 and the Delete key generates a well-known escape sequence.</para>
[fa21b3d]51
[bdea25ce]52 <para>Patch Kbd to fix a bug in <command>setfont</command> that is triggered
53 when compiling with GCC-&gcc-version;:</para>
[2e02c35]54
55<screen><userinput>patch -Np1 -i ../&kbd-gcc4_fixes-patch;</userinput></screen>
56
[bdea25ce]57 <para>Prepare Kbd for compilation:</para>
[73aedd1d]58
[b540268]59<screen><userinput>./configure --datadir=/lib/kbd</userinput></screen>
60
61 <variablelist>
62 <title>The meaning of the configure options:</title>
63
64 <varlistentry>
65 <term><parameter>--datadir=/lib/kbd</parameter></term>
66 <listitem>
67 <para>This option puts keyboard layout data in a directory that will
68 always be on the root partition instead of the default <filename
69 class="directory">/usr/share/kbd</filename>.</para>
70 </listitem>
71 </varlistentry>
72
73 </variablelist>
[73aedd1d]74
[bdea25ce]75 <para>Compile the package:</para>
[73aedd1d]76
77<screen><userinput>make</userinput></screen>
78
[bdea25ce]79 <para>This package does not come with a test suite.</para>
[0be3d41]80
[bdea25ce]81 <para>Install the package:</para>
[73aedd1d]82
83<screen><userinput>make install</userinput></screen>
84
[bdea25ce]85 <note>
86 <para>For some languages (e.g., Belarusian) the Kbd package doesn't
[b540268]87 provide a useful keymap where the stock <quote>by</quote> keymap assumes
88 the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
89 such languages have to download working keymaps separately.</para>
[bdea25ce]90 </note>
91
[b540268]92 <para>Some of the scripts in the LFS-Bootscripts package depend on
93 <command>kbd_mode</command>, <command>openvt</command>, and
94 <command>setfont</command>. As <filename class="directory">/usr</filename>
95 may not be available during the early stages of booting, those binaries
96 need to be on the root partition:</para>
97
98<screen><userinput>mv -v /usr/bin/{kbd_mode,openvt,setfont} /bin</userinput></screen>
99
100
101
102
[bdea25ce]103 </sect2>
104
105 <sect2 id="contents-kbd" role="content">
106 <title>Contents of Kbd</title>
107
108 <segmentedlist>
109 <segtitle>Installed programs</segtitle>
110
111 <seglistitem>
[8f4b4bf]112 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
113 kbdrate, loadkeys, loadunimap,
[bdea25ce]114 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
115 psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
[8f4b4bf]116 setfont, setkeycodes, setleds, setmetamode,
[bdea25ce]117 showconsolefont, showkey, unicode_start, and unicode_stop</seg>
118 </seglistitem>
119 </segmentedlist>
120
121 <variablelist>
122 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
123 <?dbfo list-presentation="list"?>
124 <?dbhtml list-presentation="table"?>
125
126 <varlistentry id="chvt">
127 <term><command>chvt</command></term>
128 <listitem>
129 <para>Changes the foreground virtual terminal</para>
130 <indexterm zone="ch-system-kbd chvt">
131 <primary sortas="b-chvt">chvt</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="deallocvt">
137 <term><command>deallocvt</command></term>
138 <listitem>
139 <para>Deallocates unused virtual terminals</para>
140 <indexterm zone="ch-system-kbd deallocvt">
141 <primary sortas="b-deallocvt">deallocvt</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="dumpkeys">
147 <term><command>dumpkeys</command></term>
148 <listitem>
149 <para>Dumps the keyboard translation tables</para>
150 <indexterm zone="ch-system-kbd dumpkeys">
151 <primary sortas="b-dumpkeys">dumpkeys</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="fgconsole">
157 <term><command>fgconsole</command></term>
158 <listitem>
159 <para>Prints the number of the active virtual terminal</para>
160 <indexterm zone="ch-system-kbd fgconsole">
161 <primary sortas="b-fgconsole">fgconsole</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="getkeycodes">
167 <term><command>getkeycodes</command></term>
168 <listitem>
169 <para>Prints the kernel scancode-to-keycode mapping table</para>
170 <indexterm zone="ch-system-kbd getkeycodes">
171 <primary sortas="b-getkeycodes">getkeycodes</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="kbd_mode">
177 <term><command>kbd_mode</command></term>
178 <listitem>
179 <para>Reports or sets the keyboard mode</para>
180 <indexterm zone="ch-system-kbd kbd_mode">
181 <primary sortas="b-kbd_mode">kbd_mode</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="kbdrate">
187 <term><command>kbdrate</command></term>
188 <listitem>
189 <para>Sets the keyboard repeat and delay rates</para>
190 <indexterm zone="ch-system-kbd kbdrate">
191 <primary sortas="b-kbdrate">kbdrate</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="loadkeys">
197 <term><command>loadkeys</command></term>
198 <listitem>
199 <para>Loads the keyboard translation tables</para>
200 <indexterm zone="ch-system-kbd loadkeys">
201 <primary sortas="b-loadkeys">loadkeys</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="loadunimap">
207 <term><command>loadunimap</command></term>
208 <listitem>
209 <para>Loads the kernel unicode-to-font mapping table</para>
210 <indexterm zone="ch-system-kbd loadunimap">
211 <primary sortas="b-loadunimap">loadunimap</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="mapscrn">
217 <term><command>mapscrn</command></term>
218 <listitem>
219 <para>An obsolete program that used to load a user-defined output
220 character mapping table into the console driver; this is now done
221 by <command>setfont</command></para>
222 <indexterm zone="ch-system-kbd mapscrn">
223 <primary sortas="b-mapscrn">mapscrn</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="openvt">
229 <term><command>openvt</command></term>
230 <listitem>
231 <para>Starts a program on a new virtual terminal (VT)</para>
232 <indexterm zone="ch-system-kbd openvt">
233 <primary sortas="b-openvt">openvt</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="psfaddtable">
239 <term><command>psfaddtable</command></term>
240 <listitem>
241 <para>A link to <command>psfxtable</command></para>
242 <indexterm zone="ch-system-kbd psfaddtable">
243 <primary sortas="b-psfaddtable">psfaddtable</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="psfgettable">
249 <term><command>psfgettable</command></term>
250 <listitem>
251 <para>A link to <command>psfxtable</command></para>
252 <indexterm zone="ch-system-kbd psfgettable">
253 <primary sortas="b-psfgettable">psfgettable</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="psfstriptable">
259 <term><command>psfstriptable</command></term>
260 <listitem>
261 <para>A link to <command>psfxtable</command></para>
262 <indexterm zone="ch-system-kbd psfstriptable">
263 <primary sortas="b-psfstriptable">psfstriptable</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="psfxtable">
269 <term><command>psfxtable</command></term>
270 <listitem>
271 <para>Handle Unicode character tables for console fonts</para>
272 <indexterm zone="ch-system-kbd psfxtable">
273 <primary sortas="b-psfxtable">psfxtable</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="resizecons">
279 <term><command>resizecons</command></term>
280 <listitem>
281 <para>Changes the kernel idea of the console size</para>
282 <indexterm zone="ch-system-kbd resizecons">
283 <primary sortas="b-resizecons">resizecons</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="setfont">
289 <term><command>setfont</command></term>
290 <listitem>
291 <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
292 Array (VGA) fonts on the console</para>
293 <indexterm zone="ch-system-kbd setfont">
294 <primary sortas="b-setfont">setfont</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="setkeycodes">
300 <term><command>setkeycodes</command></term>
301 <listitem>
302 <para>Loads kernel scancode-to-keycode mapping table entries; this is
303 useful if there are unusual keys on the keyboard</para>
304 <indexterm zone="ch-system-kbd setkeycodes">
305 <primary sortas="b-setkeycodes">setkeycodes</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="setleds">
311 <term><command>setleds</command></term>
312 <listitem>
313 <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
314 <indexterm zone="ch-system-kbd setleds">
315 <primary sortas="b-setleds">setleds</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="setmetamode">
321 <term><command>setmetamode</command></term>
322 <listitem>
323 <para>Defines the keyboard meta-key handling</para>
324 <indexterm zone="ch-system-kbd setmetamode">
325 <primary sortas="b-setmetamode">setmetamode</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="showconsolefont">
331 <term><command>showconsolefont</command></term>
332 <listitem>
333 <para>Shows the current EGA/VGA console screen font</para>
334 <indexterm zone="ch-system-kbd showconsolefont">
335 <primary sortas="b-showconsolefont">showconsolefont</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="showkey">
341 <term><command>showkey</command></term>
342 <listitem>
343 <para>Reports the scancodes, keycodes, and ASCII codes of the keys
344 pressed on the keyboard</para>
345 <indexterm zone="ch-system-kbd showkey">
346 <primary sortas="b-showkey">showkey</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="unicode_start">
352 <term><command>unicode_start</command></term>
353 <listitem>
354 <para>Puts the keyboard and console in UNICODE mode. Don't use this
355 program unless your keymap file is in the ISO-8859-1 encoding. For
356 other encodings, this utility produces incorrect results.</para>
357 <indexterm zone="ch-system-kbd unicode_start">
358 <primary sortas="b-unicode_start">unicode_start</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="unicode_stop">
364 <term><command>unicode_stop</command></term>
365 <listitem>
366 <para>Reverts keyboard and console from UNICODE mode</para>
367 <indexterm zone="ch-system-kbd unicode_stop">
368 <primary sortas="b-unicode_stop">unicode_stop</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 </variablelist>
374
375 </sect2>
[673b0d8]376
377</sect1>
Note: See TracBrowser for help on using the repository browser.