]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-backlight@.service.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[thirdparty/systemd.git] / man / systemd-backlight@.service.xml
CommitLineData
38e19f93
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
12b42c76 3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
38e19f93 4<!--
572eb058
ZJS
5 SPDX-License-Identifier: LGPL-2.1+
6
38e19f93
LP
7 This file is part of systemd.
8
9 Copyright 2013 Lennart Poettering
10
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
15
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
24<refentry id="systemd-backlight@.service" conditional='ENABLE_BACKLIGHT'>
25
798d3a52
ZJS
26 <refentryinfo>
27 <title>systemd-backlight@.service</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>systemd-backlight@.service</refentrytitle>
42 <manvolnum>8</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>systemd-backlight@.service</refname>
47 <refname>systemd-backlight</refname>
48 <refpurpose>Load and save the display backlight brightness at boot and shutdown</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <para><filename>systemd-backlight@.service</filename></para>
12b42c76 53 <para><filename>/usr/lib/systemd/systemd-backlight</filename></para>
798d3a52
ZJS
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para><filename>systemd-backlight@.service</filename> is a service
60 that restores the display backlight brightness at early boot and
61 saves it at shutdown. On disk, the backlight brightness is stored
62 in <filename>/var/lib/systemd/backlight/</filename>. During
a8eaaee7
JE
63 loading, if the udev property <option>ID_BACKLIGHT_CLAMP</option> is
64 not set to false, the brightness is clamped to a value of at
798d3a52
ZJS
65 least 1 or 5% of maximum brightness, whichever is greater. This
66 restriction will be removed when the kernel allows user space to
67 reliably set a brightness value which does not turn off the
68 display.</para>
69 </refsect1>
70
71 <refsect1>
72 <title>Kernel Command Line</title>
73
74 <para><filename>systemd-backlight</filename> understands the
75 following kernel command line parameter:</para>
76
77 <variablelist class='kernel-commandline-options'>
78 <varlistentry>
79 <term><varname>systemd.restore_state=</varname></term>
80
81 <listitem><para>Takes a boolean argument. Defaults to
82 <literal>1</literal>. If <literal>0</literal>, does not
83 restore the backlight settings on boot. However, settings will
84 still be stored on shutdown. </para></listitem>
85 </varlistentry>
86 </variablelist>
87 </refsect1>
88
89 <refsect1>
90 <title>See Also</title>
91 <para>
92 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
93 </para>
94 </refsect1>
38e19f93
LP
95
96</refentry>