source: chapter06/kbd.xml@ 2f494dc

Last change on this file since 2f494dc was 28b40e2, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Finished the PDF fixes.

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

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