source: chapter06/kbd.xml@ 1857e34

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.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 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 1857e34 was 1857e34, checked in by Ken Moffat <ken@…>, 12 years ago

Really remove resizecons.

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

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