1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
8 Copyright 2010 Lennart Poettering
11 <refentry id=
"vconsole.conf" conditional='ENABLE_VCONSOLE'
>
13 <title>vconsole.conf
</title>
14 <productname>systemd
</productname>
18 <contrib>Developer
</contrib>
19 <firstname>Lennart
</firstname>
20 <surname>Poettering
</surname>
21 <email>lennart@poettering.net
</email>
27 <refentrytitle>vconsole.conf
</refentrytitle>
28 <manvolnum>5</manvolnum>
32 <refname>vconsole.conf
</refname>
33 <refpurpose>Configuration file for the virtual console
</refpurpose>
37 <para><filename>/etc/vconsole.conf
</filename></para>
41 <title>Description
</title>
43 <para>The
<filename>/etc/vconsole.conf
</filename> file configures
44 the virtual console, i.e. keyboard mapping and console font. It is
45 applied at boot by udev using
<filename>90-vconsole.rules
</filename> file.
46 You can safely mask this file if you want to avoid this kind of initialization.
49 <para>The basic file format of the
50 <filename>vconsole.conf
</filename> is a newline-separated list of
51 environment-like shell-compatible variable assignments. It is
52 possible to source the configuration from shell scripts, however,
53 beyond mere variable assignments no shell features are supported,
54 allowing applications to read the file without implementing a
55 shell compatible execution engine.
</para>
57 <para>Note that the kernel command line options
58 <varname>vconsole.keymap=
</varname>,
59 <varname>vconsole.keymap_toggle=
</varname>,
60 <varname>vconsole.font=
</varname>,
61 <varname>vconsole.font_map=
</varname>,
62 <varname>vconsole.font_unimap=
</varname> may be used
63 to override the console settings at boot.
</para>
65 <para>Depending on the operating system other configuration files
66 might be checked for configuration of the virtual console as well,
67 however only as fallback.
</para>
69 <para><filename>/etc/vconsole.conf
</filename> is usually created and updated
71 <citerefentry><refentrytitle>systemd-localed.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
72 <citerefentry><refentrytitle>localectl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
73 may be used to instruct
<command>systemd-localed.service
</command> to
74 query or update configuration.
</para>
78 <title>Options
</title>
80 <para>The following options are understood:
</para>
85 <term><varname>KEYMAP=
</varname></term>
86 <term><varname>KEYMAP_TOGGLE=
</varname></term>
88 <listitem><para>Configures the key mapping table for the keyboard.
89 <varname>KEYMAP=
</varname> defaults to
<literal>us
</literal> if not set. The
90 <varname>KEYMAP_TOGGLE=
</varname> can be used to configure a second toggle keymap and is by
91 default unset.
</para></listitem>
95 <term><varname>FONT=
</varname></term>
96 <term><varname>FONT_MAP=
</varname></term>
97 <term><varname>FONT_UNIMAP=
</varname></term>
99 <listitem><para>Configures the console font, the console map
100 and the unicode font map.
</para></listitem>
107 <title>Kernel Command Line
</title>
109 <para>A few configuration parameters from
<filename>vconsole.conf
</filename> may be overridden
110 on the kernel command line:
</para>
112 <variablelist class='kernel-commandline-options'
>
114 <term><varname>vconsole.keymap=
</varname></term>
115 <term><varname>vconsole.keymap_toggle=
</varname></term>
117 <listitem><para>Overrides
<varname>KEYMAP=
</varname> and
<varname>KEYMAP_TOGGLE=
</varname>.
122 <term><varname>vconsole.font=
</varname></term>
123 <term><varname>vconsole.font_map=
</varname></term>
124 <term><varname>vconsole.font_unimap=
</varname></term>
126 <listitem><para>Overrides
<varname>FONT=
</varname>,
<varname>FONT_MAP=
</varname>, and
127 <varname>FONT_UNIMAP=
</varname>.
</para></listitem>
133 <title>Example
</title>
136 <title>German keyboard and console
</title>
138 <para><filename>/etc/vconsole.conf
</filename>:
</para>
140 <programlisting>KEYMAP=de-latin1
141 FONT=eurlatgr
</programlisting>
147 <title>See Also
</title>
149 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
150 <citerefentry><refentrytitle>systemd-vconsole-setup.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
151 <citerefentry project='mankier'
><refentrytitle>loadkeys
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
152 <citerefentry project='die-net'
><refentrytitle>setfont
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
153 <citerefentry project='man-pages'
><refentrytitle>locale.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
154 <citerefentry><refentrytitle>systemd-localed.service
</refentrytitle><manvolnum>8</manvolnum></citerefentry>