1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-kbd" xreflabel="Kbd" role="wrap">
|
---|
7 | <title>Kbd-&kbd-version;</title>
|
---|
8 | <?dbhtml filename="kbd.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-kbd"><primary sortas="a-Kbd">Kbd</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Kbd package contains key-table files and keyboard utilities.</para>
|
---|
14 |
|
---|
15 | <segmentedlist>
|
---|
16 | <segtitle>&buildtime;</segtitle>
|
---|
17 | <segtitle>&diskspace;</segtitle>
|
---|
18 | <seglistitem><seg>0.1 SBU</seg><seg>12 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | <segmentedlist>
|
---|
22 | <segtitle>Kbd installation depends on</segtitle>
|
---|
23 | <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
|
---|
24 | Diffutils, Flex, GCC, Gettext, Glibc, Grep, Gzip, M4, Make, Sed</seg></seglistitem>
|
---|
25 | </segmentedlist>
|
---|
26 | </sect2>
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Kbd</title>
|
---|
30 |
|
---|
31 | <para>Prepare Kbd for compilation:</para>
|
---|
32 |
|
---|
33 | <screen><userinput>./configure</userinput></screen>
|
---|
34 |
|
---|
35 | <para>Compile the package:</para>
|
---|
36 |
|
---|
37 | <screen><userinput>make</userinput></screen>
|
---|
38 |
|
---|
39 | <para>Now install it:</para>
|
---|
40 |
|
---|
41 | <screen><userinput>make install</userinput></screen>
|
---|
42 |
|
---|
43 | </sect2>
|
---|
44 |
|
---|
45 | <!-- The "Configuring your keyboard" section has been moved to
|
---|
46 | Chapter 7 and renamed to "Configuring Linux console" -->
|
---|
47 |
|
---|
48 | <sect2 id="contents-kbd" role="content"><title>Contents of Kbd</title>
|
---|
49 |
|
---|
50 | <segmentedlist>
|
---|
51 | <segtitle>Installed programs</segtitle>
|
---|
52 | <seglistitem><seg>chvt, deallocvt, dumpkeys,
|
---|
53 | fgconsole, getkeycodes, getunimap, kbd_mode, kbdrate, loadkeys, loadunimap,
|
---|
54 | mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
|
---|
55 | psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
|
---|
56 | setfont, setkeycodes, setleds, setlogcons, setmetamode, setvesablank,
|
---|
57 | showconsolefont, showkey, unicode_start and unicode_stop</seg></seglistitem>
|
---|
58 | </segmentedlist>
|
---|
59 |
|
---|
60 | <variablelist><title>Short descriptions</title>
|
---|
61 |
|
---|
62 | <varlistentry id="chvt">
|
---|
63 | <term><command>chvt</command></term>
|
---|
64 | <listitem>
|
---|
65 | <indexterm zone="ch-system-kbd chvt"><primary sortas="b-chvt">chvt</primary></indexterm>
|
---|
66 | <para>changes the foreground virtual terminal.</para>
|
---|
67 | </listitem>
|
---|
68 | </varlistentry>
|
---|
69 |
|
---|
70 | <varlistentry id="deallocvt">
|
---|
71 | <term><command>deallocvt</command></term>
|
---|
72 | <listitem>
|
---|
73 | <indexterm zone="ch-system-kbd deallocvt"><primary sortas="b-deallocvt">deallocvt</primary></indexterm>
|
---|
74 | <para>deallocates unused virtual terminals.</para>
|
---|
75 | </listitem>
|
---|
76 | </varlistentry>
|
---|
77 |
|
---|
78 | <varlistentry id="dumpkeys">
|
---|
79 | <term><command>dumpkeys</command></term>
|
---|
80 | <listitem>
|
---|
81 | <indexterm zone="ch-system-kbd dumpkeys"><primary sortas="b-dumpkeys">dumpkeys</primary></indexterm>
|
---|
82 | <para>dumps the keyboard translation tables.</para>
|
---|
83 | </listitem>
|
---|
84 | </varlistentry>
|
---|
85 |
|
---|
86 | <varlistentry id="fgconsole">
|
---|
87 | <term><command>fgconsole</command></term>
|
---|
88 | <listitem>
|
---|
89 | <indexterm zone="ch-system-kbd fgconsole"><primary sortas="b-fgconsole">fgconsole</primary></indexterm>
|
---|
90 | <para>prints the number of the active virtual terminal.</para>
|
---|
91 | </listitem>
|
---|
92 | </varlistentry>
|
---|
93 |
|
---|
94 | <varlistentry id="getkeycodes">
|
---|
95 | <term><command>getkeycodes</command></term>
|
---|
96 | <listitem>
|
---|
97 | <indexterm zone="ch-system-kbd getkeycodes"><primary sortas="b-getkeycodes">getkeycodes</primary></indexterm>
|
---|
98 | <para>prints the kernel scancode-to-keycode mapping table.</para>
|
---|
99 | </listitem>
|
---|
100 | </varlistentry>
|
---|
101 |
|
---|
102 | <varlistentry id="getunimap">
|
---|
103 | <term><command>getunimap</command></term>
|
---|
104 | <listitem>
|
---|
105 | <indexterm zone="ch-system-kbd getunimap"><primary sortas="b-getunimap">getunimap</primary></indexterm>
|
---|
106 | <para>prints the currently used unimap.</para>
|
---|
107 | </listitem>
|
---|
108 | </varlistentry>
|
---|
109 |
|
---|
110 | <varlistentry id="kbd_mode">
|
---|
111 | <term><command>kbd_mode</command></term>
|
---|
112 | <listitem>
|
---|
113 | <indexterm zone="ch-system-kbd kbd_mode"><primary sortas="b-kbd_mode">kbd_mode</primary></indexterm>
|
---|
114 | <para>reports or sets the keyboard mode.</para>
|
---|
115 | </listitem>
|
---|
116 | </varlistentry>
|
---|
117 |
|
---|
118 | <varlistentry id="kbdrate">
|
---|
119 | <term><command>kbdrate</command></term>
|
---|
120 | <listitem>
|
---|
121 | <indexterm zone="ch-system-kbd kbdrate"><primary sortas="b-kbdrate">kbdrate</primary></indexterm>
|
---|
122 | <para>sets the keyboard repeat and delay rates.</para>
|
---|
123 | </listitem>
|
---|
124 | </varlistentry>
|
---|
125 |
|
---|
126 | <varlistentry id="loadkeys">
|
---|
127 | <term><command>loadkeys</command></term>
|
---|
128 | <listitem>
|
---|
129 | <indexterm zone="ch-system-kbd loadkeys"><primary sortas="b-loadkeys">loadkeys</primary></indexterm>
|
---|
130 | <para>loads the keyboard translation tables.</para>
|
---|
131 | </listitem>
|
---|
132 | </varlistentry>
|
---|
133 |
|
---|
134 | <varlistentry id="loadunimap">
|
---|
135 | <term><command>loadunimap</command></term>
|
---|
136 | <listitem>
|
---|
137 | <indexterm zone="ch-system-kbd loadunimap"><primary sortas="b-loadunimap">loadunimap</primary></indexterm>
|
---|
138 | <para>loads the kernel unicode-to-font mapping table.</para>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | <varlistentry id="mapscrn">
|
---|
143 | <term><command>mapscrn</command></term>
|
---|
144 | <listitem>
|
---|
145 | <indexterm zone="ch-system-kbd mapscrn"><primary sortas="b-mapscrn">mapscrn</primary></indexterm>
|
---|
146 | <para>is an obsolete program that used to load
|
---|
147 | a user-defined output character mapping table into the console driver. This is
|
---|
148 | now done by <command>setfont</command>.</para>
|
---|
149 | </listitem>
|
---|
150 | </varlistentry>
|
---|
151 |
|
---|
152 | <varlistentry id="openvt">
|
---|
153 | <term><command>openvt</command></term>
|
---|
154 | <listitem>
|
---|
155 | <indexterm zone="ch-system-kbd openvt"><primary sortas="b-openvt">openvt</primary></indexterm>
|
---|
156 | <para>starts a program on a new virtual terminal (VT).</para>
|
---|
157 | </listitem>
|
---|
158 | </varlistentry>
|
---|
159 |
|
---|
160 | <varlistentry id="psf">
|
---|
161 | <term><command>psf*</command></term>
|
---|
162 | <listitem>
|
---|
163 | <indexterm zone="ch-system-kbd psf"><primary sortas="b-psf*">psf*</primary></indexterm>
|
---|
164 | <para>are a set of tools for handling Unicode character tables for console fonts.</para>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | <varlistentry id="resizecons">
|
---|
169 | <term><command>resizecons</command></term>
|
---|
170 | <listitem>
|
---|
171 | <indexterm zone="ch-system-kbd resizecons"><primary sortas="b-resizecons">resizecons</primary></indexterm>
|
---|
172 | <para>changes the kernel idea of the console size.</para>
|
---|
173 | </listitem>
|
---|
174 | </varlistentry>
|
---|
175 |
|
---|
176 | <varlistentry id="setfont">
|
---|
177 | <term><command>setfont</command></term>
|
---|
178 | <listitem>
|
---|
179 | <indexterm zone="ch-system-kbd setfont"><primary sortas="b-setfont">setfont</primary></indexterm>
|
---|
180 | <para>lets you change the EGA/VGA fonts on the console.</para>
|
---|
181 | </listitem>
|
---|
182 | </varlistentry>
|
---|
183 |
|
---|
184 | <varlistentry id="setkeycodes">
|
---|
185 | <term><command>setkeycodes</command></term>
|
---|
186 | <listitem>
|
---|
187 | <indexterm zone="ch-system-kbd setkeycodes"><primary sortas="b-setkeycodes">setkeycodes</primary></indexterm>
|
---|
188 | <para>loads kernel scancode-to-keycode
|
---|
189 | mapping table entries, useful if you have some unusual keys on your keyboard.</para>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | <varlistentry id="setleds">
|
---|
194 | <term><command>setleds</command></term>
|
---|
195 | <listitem>
|
---|
196 | <indexterm zone="ch-system-kbd setleds"><primary sortas="b-setleds">setleds</primary></indexterm>
|
---|
197 | <para>sets the keyboard flags and LEDs. Many
|
---|
198 | people find it useful to have <quote>Num Lock</quote> on by default, <command>setleds +num</command> achieves this.</para>
|
---|
199 | </listitem>
|
---|
200 | </varlistentry>
|
---|
201 |
|
---|
202 | <varlistentry id="setlogcons">
|
---|
203 | <term><command>setlogcons</command></term>
|
---|
204 | <listitem>
|
---|
205 | <indexterm zone="ch-system-kbd setlogcons"><primary sortas="b-setlogcons">setlogcons</primary></indexterm>
|
---|
206 | <para>sends kernel messages to the console.</para>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="setmetamode">
|
---|
211 | <term><command>setmetamode</command></term>
|
---|
212 | <listitem>
|
---|
213 | <indexterm zone="ch-system-kbd setmetamode"><primary sortas="b-setmetamode">setmetamode</primary></indexterm>
|
---|
214 | <para>defines the keyboard meta-key handling.</para>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 |
|
---|
218 | <varlistentry id="setvesablank">
|
---|
219 | <term><command>setvesablank</command></term>
|
---|
220 | <listitem>
|
---|
221 | <indexterm zone="ch-system-kbd setvesablank"><primary sortas="b-setvesablank">setvesablank</primary></indexterm>
|
---|
222 | <para>lets you fiddle with the built-in
|
---|
223 | hardware screensaver (no toasters, just a blank screen).</para>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="showconsolefont">
|
---|
228 | <term><command>showconsolefont</command></term>
|
---|
229 | <listitem>
|
---|
230 | <indexterm zone="ch-system-kbd showconsolefont"><primary sortas="b-showconsolefont">showconsolefont</primary></indexterm>
|
---|
231 | <para>shows the current EGA/VGA console screen font.</para>
|
---|
232 | </listitem>
|
---|
233 | </varlistentry>
|
---|
234 |
|
---|
235 | <varlistentry id="showkey">
|
---|
236 | <term><command>showkey</command></term>
|
---|
237 | <listitem>
|
---|
238 | <indexterm zone="ch-system-kbd showkey"><primary sortas="b-showkey">showkey</primary></indexterm>
|
---|
239 | <para>reports the scancodes and keycodes and
|
---|
240 | ASCII codes of the keys pressed on the keyboard.</para>
|
---|
241 | </listitem>
|
---|
242 | </varlistentry>
|
---|
243 |
|
---|
244 | <varlistentry id="unicode_start">
|
---|
245 | <term><command>unicode_start</command></term>
|
---|
246 | <listitem>
|
---|
247 | <indexterm zone="ch-system-kbd unicode_start"><primary sortas="b-unicode_start">unicode_start</primary></indexterm>
|
---|
248 | <para>puts the keyboard and console in UNICODE mode. Never use it on LFS,
|
---|
249 | because applications are not configured to support UNICODE.</para>
|
---|
250 | </listitem>
|
---|
251 | </varlistentry>
|
---|
252 |
|
---|
253 | <varlistentry id="unicode_stop">
|
---|
254 | <term><command>unicode_stop</command></term>
|
---|
255 | <listitem>
|
---|
256 | <indexterm zone="ch-system-kbd unicode_stop"><primary sortas="b-unicode_stop">unicode_stop</primary></indexterm>
|
---|
257 | <para>reverts keyboard and console from UNICODE mode.</para>
|
---|
258 | </listitem>
|
---|
259 | </varlistentry>
|
---|
260 | </variablelist>
|
---|
261 |
|
---|
262 | </sect2>
|
---|
263 |
|
---|
264 | </sect1>
|
---|