source: chapter06/kbd.xml@ 7027db5

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 7027db5 was 7027db5, checked in by Ken Moffat <ken@…>, 12 years ago

Remove resizecons.

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

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