Debian Codegraph @

man/vconsole.conf.xml

raw
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % entities SYSTEM "custom-entities.ent" >
5 %entities;
6 ]>
7 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
8
9 <refentry id="vconsole.conf" conditional='ENABLE_VCONSOLE'
10 xmlns:xi="http://www.w3.org/2001/XInclude">
11 <refentryinfo>
12 <title>vconsole.conf</title>
13 <productname>systemd</productname>
14 </refentryinfo>
15
16 <refmeta>
17 <refentrytitle>vconsole.conf</refentrytitle>
18 <manvolnum>5</manvolnum>
19 </refmeta>
20
21 <refnamediv>
22 <refname>vconsole.conf</refname>
23 <refpurpose>Configuration file for the virtual console</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
27 <para><filename>/etc/vconsole.conf</filename></para>
28 </refsynopsisdiv>
29
30 <refsect1>
31 <title>Description</title>
32
33 <para>The <filename>/etc/vconsole.conf</filename> file configures
34 the virtual console, i.e. keyboard mapping and console font. It is
35 applied at boot by udev using <filename>90-vconsole.rules</filename> file.
36 You can safely mask this file if you want to avoid this kind of initialization.
37 </para>
38
39 <para>The format of <filename>vconsole.conf</filename> is a newline-separated list of environment-like
40 shell-compatible variable assignments, ignoring comments and empty lines. It is possible to source the
41 configuration from shell scripts, however, beyond mere variable assignments no shell features are
42 supported, allowing applications to read the file without implementing a shell compatible execution
43 engine. See
44 <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> for a
45 detailed description of the format.</para>
46
47 <para>Note that the kernel command line options
48 <varname>vconsole.keymap=</varname>,
49 <varname>vconsole.keymap_toggle=</varname>,
50 <varname>vconsole.font=</varname>,
51 <varname>vconsole.font_map=</varname>,
52 <varname>vconsole.font_unimap=</varname> may be used
53 to override the console settings at boot.</para>
54
55 <para>Depending on the operating system other configuration files
56 might be checked for configuration of the virtual console as well,
57 however only as fallback.</para>
58
59 <para>If the boot loader reports the firmware-configured keyboard layout via the
60 <varname>LoaderKeyboardLayout</varname> EFI variable (see the
61 <ulink url="https://systemd.io/BOOT_LOADER_INTERFACE">Boot Loader Interface</ulink>),
62 it is used as the lowest-priority fallback for <varname>KEYMAP=</varname>.
63 Any setting from credentials, <filename>/etc/vconsole.conf</filename>, or the kernel
64 command line overrides it.</para>
65
66 <para><filename>/etc/vconsole.conf</filename> is usually created and updated
67 using
68 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
69 <citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
70 may be used to instruct <command>systemd-localed.service</command> to
71 query or update configuration.</para>
72 </refsect1>
73
74 <refsect1>
75 <title>Options</title>
76
77 <para>The following options are understood:</para>
78
79 <variablelist class='environment-variables'>
80
81 <varlistentry>
82 <term><varname>KEYMAP=</varname></term>
83 <term><varname>KEYMAP_TOGGLE=</varname></term>
84
85 <listitem><para>Configures the key mapping table for the keyboard. <varname>KEYMAP=</varname>
86 defaults to <literal>&SYSTEMD_DEFAULT_KEYMAP;</literal> if not set. As a special case, if
87 <literal>@kernel</literal> is specified, no keymap will be loaded, i.e. the kernel's default keymap
88 will be used. The <varname>KEYMAP_TOGGLE=</varname> can be used to configure a second toggle keymap
89 and is by default unset.</para></listitem>
90 </varlistentry>
91
92 <varlistentry>
93 <term><varname>FONT=</varname></term>
94 <term><varname>FONT_MAP=</varname></term>
95 <term><varname>FONT_UNIMAP=</varname></term>
96
97 <listitem><para>Configures the console font, the console map
98 and the unicode font map.</para></listitem>
99 </varlistentry>
100
101 </variablelist>
102 </refsect1>
103
104 <refsect1>
105 <title>Kernel Command Line</title>
106
107 <para>A few configuration parameters from <filename>vconsole.conf</filename> may be overridden
108 on the kernel command line:</para>
109
110 <variablelist class='kernel-commandline-options'>
111 <varlistentry>
112 <term><varname>vconsole.keymap=</varname></term>
113 <term><varname>vconsole.keymap_toggle=</varname></term>
114
115 <listitem><para>Overrides <varname>KEYMAP=</varname> and <varname>KEYMAP_TOGGLE=</varname>.
116 </para>
117
118 <xi:include href="version-info.xml" xpointer="v232"/></listitem>
119 </varlistentry>
120 <varlistentry>
121
122 <term><varname>vconsole.font=</varname></term>
123 <term><varname>vconsole.font_map=</varname></term>
124 <term><varname>vconsole.font_unimap=</varname></term>
125
126 <listitem><para>Overrides <varname>FONT=</varname>, <varname>FONT_MAP=</varname>, and
127 <varname>FONT_UNIMAP=</varname>.</para>
128
129 <xi:include href="version-info.xml" xpointer="v232"/></listitem>
130 </varlistentry>
131 </variablelist>
132 </refsect1>
133
134 <refsect1>
135 <title>Example</title>
136
137 <example>
138 <title>German keyboard and console</title>
139
140 <para><filename>/etc/vconsole.conf</filename>:</para>
141
142 <programlisting>KEYMAP=de-latin1
143 FONT=eurlatgr</programlisting>
144 </example>
145
146 </refsect1>
147
148 <refsect1>
149 <title>See Also</title>
150 <para><simplelist type="inline">
151 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
152 <member><citerefentry><refentrytitle>systemd-vconsole-setup.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
153 <member><citerefentry project='mankier'><refentrytitle>loadkeys</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
154 <member><citerefentry project='die-net'><refentrytitle>setfont</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
155 <member><citerefentry project='man-pages'><refentrytitle>locale.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
156 <member><citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
157 </simplelist></para>
158 </refsect1>
159
160 </refentry>