source: chapter06/kbd.xml@ 2ca8941

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 2ca8941 was 2ca8941, checked in by Matthew Burgess <matthew@…>, 11 years ago

Remove trailing whitespace from all files.

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

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