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 | <para>Some of the scripts in the LFS-Bootscripts package depend on
|
---|
87 | <command>kbd_mode</command>, <command>openvt</command>, and
|
---|
88 | <command>setfont</command>. As <filename class="directory">/usr</filename>
|
---|
89 | may not be available during the early stages of booting, those binaries
|
---|
90 | need to be on the root partition:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>mv -v /usr/bin/{kbd_mode,openvt,setfont} /bin</userinput></screen>
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 id="contents-kbd" role="content">
|
---|
100 | <title>Contents of Kbd</title>
|
---|
101 |
|
---|
102 | <segmentedlist>
|
---|
103 | <segtitle>Installed programs</segtitle>
|
---|
104 |
|
---|
105 | <seglistitem>
|
---|
106 | <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
|
---|
107 | kbdrate, loadkeys, loadunimap,
|
---|
108 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
109 | psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
---|
110 | setfont, setkeycodes, setleds, setmetamode,
|
---|
111 | showconsolefont, showkey, unicode_start, and unicode_stop</seg>
|
---|
112 | </seglistitem>
|
---|
113 | </segmentedlist>
|
---|
114 |
|
---|
115 | <variablelist>
|
---|
116 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
117 | <?dbfo list-presentation="list"?>
|
---|
118 | <?dbhtml list-presentation="table"?>
|
---|
119 |
|
---|
120 | <varlistentry id="chvt">
|
---|
121 | <term><command>chvt</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>Changes the foreground virtual terminal</para>
|
---|
124 | <indexterm zone="ch-system-kbd chvt">
|
---|
125 | <primary sortas="b-chvt">chvt</primary>
|
---|
126 | </indexterm>
|
---|
127 | </listitem>
|
---|
128 | </varlistentry>
|
---|
129 |
|
---|
130 | <varlistentry id="deallocvt">
|
---|
131 | <term><command>deallocvt</command></term>
|
---|
132 | <listitem>
|
---|
133 | <para>Deallocates unused virtual terminals</para>
|
---|
134 | <indexterm zone="ch-system-kbd deallocvt">
|
---|
135 | <primary sortas="b-deallocvt">deallocvt</primary>
|
---|
136 | </indexterm>
|
---|
137 | </listitem>
|
---|
138 | </varlistentry>
|
---|
139 |
|
---|
140 | <varlistentry id="dumpkeys">
|
---|
141 | <term><command>dumpkeys</command></term>
|
---|
142 | <listitem>
|
---|
143 | <para>Dumps the keyboard translation tables</para>
|
---|
144 | <indexterm zone="ch-system-kbd dumpkeys">
|
---|
145 | <primary sortas="b-dumpkeys">dumpkeys</primary>
|
---|
146 | </indexterm>
|
---|
147 | </listitem>
|
---|
148 | </varlistentry>
|
---|
149 |
|
---|
150 | <varlistentry id="fgconsole">
|
---|
151 | <term><command>fgconsole</command></term>
|
---|
152 | <listitem>
|
---|
153 | <para>Prints the number of the active virtual terminal</para>
|
---|
154 | <indexterm zone="ch-system-kbd fgconsole">
|
---|
155 | <primary sortas="b-fgconsole">fgconsole</primary>
|
---|
156 | </indexterm>
|
---|
157 | </listitem>
|
---|
158 | </varlistentry>
|
---|
159 |
|
---|
160 | <varlistentry id="getkeycodes">
|
---|
161 | <term><command>getkeycodes</command></term>
|
---|
162 | <listitem>
|
---|
163 | <para>Prints the kernel scancode-to-keycode mapping table</para>
|
---|
164 | <indexterm zone="ch-system-kbd getkeycodes">
|
---|
165 | <primary sortas="b-getkeycodes">getkeycodes</primary>
|
---|
166 | </indexterm>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | <varlistentry id="kbd_mode">
|
---|
171 | <term><command>kbd_mode</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>Reports or sets the keyboard mode</para>
|
---|
174 | <indexterm zone="ch-system-kbd kbd_mode">
|
---|
175 | <primary sortas="b-kbd_mode">kbd_mode</primary>
|
---|
176 | </indexterm>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="kbdrate">
|
---|
181 | <term><command>kbdrate</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>Sets the keyboard repeat and delay rates</para>
|
---|
184 | <indexterm zone="ch-system-kbd kbdrate">
|
---|
185 | <primary sortas="b-kbdrate">kbdrate</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="loadkeys">
|
---|
191 | <term><command>loadkeys</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>Loads the keyboard translation tables</para>
|
---|
194 | <indexterm zone="ch-system-kbd loadkeys">
|
---|
195 | <primary sortas="b-loadkeys">loadkeys</primary>
|
---|
196 | </indexterm>
|
---|
197 | </listitem>
|
---|
198 | </varlistentry>
|
---|
199 |
|
---|
200 | <varlistentry id="loadunimap">
|
---|
201 | <term><command>loadunimap</command></term>
|
---|
202 | <listitem>
|
---|
203 | <para>Loads the kernel unicode-to-font mapping table</para>
|
---|
204 | <indexterm zone="ch-system-kbd loadunimap">
|
---|
205 | <primary sortas="b-loadunimap">loadunimap</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="mapscrn">
|
---|
211 | <term><command>mapscrn</command></term>
|
---|
212 | <listitem>
|
---|
213 | <para>An obsolete program that used to load a user-defined output
|
---|
214 | character mapping table into the console driver; this is now done
|
---|
215 | by <command>setfont</command></para>
|
---|
216 | <indexterm zone="ch-system-kbd mapscrn">
|
---|
217 | <primary sortas="b-mapscrn">mapscrn</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | <varlistentry id="openvt">
|
---|
223 | <term><command>openvt</command></term>
|
---|
224 | <listitem>
|
---|
225 | <para>Starts a program on a new virtual terminal (VT)</para>
|
---|
226 | <indexterm zone="ch-system-kbd openvt">
|
---|
227 | <primary sortas="b-openvt">openvt</primary>
|
---|
228 | </indexterm>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 |
|
---|
232 | <varlistentry id="psfaddtable">
|
---|
233 | <term><command>psfaddtable</command></term>
|
---|
234 | <listitem>
|
---|
235 | <para>A link to <command>psfxtable</command></para>
|
---|
236 | <indexterm zone="ch-system-kbd psfaddtable">
|
---|
237 | <primary sortas="b-psfaddtable">psfaddtable</primary>
|
---|
238 | </indexterm>
|
---|
239 | </listitem>
|
---|
240 | </varlistentry>
|
---|
241 |
|
---|
242 | <varlistentry id="psfgettable">
|
---|
243 | <term><command>psfgettable</command></term>
|
---|
244 | <listitem>
|
---|
245 | <para>A link to <command>psfxtable</command></para>
|
---|
246 | <indexterm zone="ch-system-kbd psfgettable">
|
---|
247 | <primary sortas="b-psfgettable">psfgettable</primary>
|
---|
248 | </indexterm>
|
---|
249 | </listitem>
|
---|
250 | </varlistentry>
|
---|
251 |
|
---|
252 | <varlistentry id="psfstriptable">
|
---|
253 | <term><command>psfstriptable</command></term>
|
---|
254 | <listitem>
|
---|
255 | <para>A link to <command>psfxtable</command></para>
|
---|
256 | <indexterm zone="ch-system-kbd psfstriptable">
|
---|
257 | <primary sortas="b-psfstriptable">psfstriptable</primary>
|
---|
258 | </indexterm>
|
---|
259 | </listitem>
|
---|
260 | </varlistentry>
|
---|
261 |
|
---|
262 | <varlistentry id="psfxtable">
|
---|
263 | <term><command>psfxtable</command></term>
|
---|
264 | <listitem>
|
---|
265 | <para>Handle Unicode character tables for console fonts</para>
|
---|
266 | <indexterm zone="ch-system-kbd psfxtable">
|
---|
267 | <primary sortas="b-psfxtable">psfxtable</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="resizecons">
|
---|
273 | <term><command>resizecons</command></term>
|
---|
274 | <listitem>
|
---|
275 | <para>Changes the kernel idea of the console size</para>
|
---|
276 | <indexterm zone="ch-system-kbd resizecons">
|
---|
277 | <primary sortas="b-resizecons">resizecons</primary>
|
---|
278 | </indexterm>
|
---|
279 | </listitem>
|
---|
280 | </varlistentry>
|
---|
281 |
|
---|
282 | <varlistentry id="setfont">
|
---|
283 | <term><command>setfont</command></term>
|
---|
284 | <listitem>
|
---|
285 | <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
|
---|
286 | Array (VGA) fonts on the console</para>
|
---|
287 | <indexterm zone="ch-system-kbd setfont">
|
---|
288 | <primary sortas="b-setfont">setfont</primary>
|
---|
289 | </indexterm>
|
---|
290 | </listitem>
|
---|
291 | </varlistentry>
|
---|
292 |
|
---|
293 | <varlistentry id="setkeycodes">
|
---|
294 | <term><command>setkeycodes</command></term>
|
---|
295 | <listitem>
|
---|
296 | <para>Loads kernel scancode-to-keycode mapping table entries; this is
|
---|
297 | useful if there are unusual keys on the keyboard</para>
|
---|
298 | <indexterm zone="ch-system-kbd setkeycodes">
|
---|
299 | <primary sortas="b-setkeycodes">setkeycodes</primary>
|
---|
300 | </indexterm>
|
---|
301 | </listitem>
|
---|
302 | </varlistentry>
|
---|
303 |
|
---|
304 | <varlistentry id="setleds">
|
---|
305 | <term><command>setleds</command></term>
|
---|
306 | <listitem>
|
---|
307 | <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
|
---|
308 | <indexterm zone="ch-system-kbd setleds">
|
---|
309 | <primary sortas="b-setleds">setleds</primary>
|
---|
310 | </indexterm>
|
---|
311 | </listitem>
|
---|
312 | </varlistentry>
|
---|
313 |
|
---|
314 | <varlistentry id="setmetamode">
|
---|
315 | <term><command>setmetamode</command></term>
|
---|
316 | <listitem>
|
---|
317 | <para>Defines the keyboard meta-key handling</para>
|
---|
318 | <indexterm zone="ch-system-kbd setmetamode">
|
---|
319 | <primary sortas="b-setmetamode">setmetamode</primary>
|
---|
320 | </indexterm>
|
---|
321 | </listitem>
|
---|
322 | </varlistentry>
|
---|
323 |
|
---|
324 | <varlistentry id="showconsolefont">
|
---|
325 | <term><command>showconsolefont</command></term>
|
---|
326 | <listitem>
|
---|
327 | <para>Shows the current EGA/VGA console screen font</para>
|
---|
328 | <indexterm zone="ch-system-kbd showconsolefont">
|
---|
329 | <primary sortas="b-showconsolefont">showconsolefont</primary>
|
---|
330 | </indexterm>
|
---|
331 | </listitem>
|
---|
332 | </varlistentry>
|
---|
333 |
|
---|
334 | <varlistentry id="showkey">
|
---|
335 | <term><command>showkey</command></term>
|
---|
336 | <listitem>
|
---|
337 | <para>Reports the scancodes, keycodes, and ASCII codes of the keys
|
---|
338 | pressed on the keyboard</para>
|
---|
339 | <indexterm zone="ch-system-kbd showkey">
|
---|
340 | <primary sortas="b-showkey">showkey</primary>
|
---|
341 | </indexterm>
|
---|
342 | </listitem>
|
---|
343 | </varlistentry>
|
---|
344 |
|
---|
345 | <varlistentry id="unicode_start">
|
---|
346 | <term><command>unicode_start</command></term>
|
---|
347 | <listitem>
|
---|
348 | <para>Puts the keyboard and console in UNICODE mode. Don't use this
|
---|
349 | program unless your keymap file is in the ISO-8859-1 encoding. For
|
---|
350 | other encodings, this utility produces incorrect results.</para>
|
---|
351 | <indexterm zone="ch-system-kbd unicode_start">
|
---|
352 | <primary sortas="b-unicode_start">unicode_start</primary>
|
---|
353 | </indexterm>
|
---|
354 | </listitem>
|
---|
355 | </varlistentry>
|
---|
356 |
|
---|
357 | <varlistentry id="unicode_stop">
|
---|
358 | <term><command>unicode_stop</command></term>
|
---|
359 | <listitem>
|
---|
360 | <para>Reverts keyboard and console from UNICODE mode</para>
|
---|
361 | <indexterm zone="ch-system-kbd unicode_stop">
|
---|
362 | <primary sortas="b-unicode_stop">unicode_stop</primary>
|
---|
363 | </indexterm>
|
---|
364 | </listitem>
|
---|
365 | </varlistentry>
|
---|
366 |
|
---|
367 | </variablelist>
|
---|
368 |
|
---|
369 | </sect2>
|
---|
370 |
|
---|
371 | </sect1>
|
---|