summaryrefslogtreecommitdiffstats
path: root/other/systemd/mba6x-backlight.service
blob: 8fbfde1fa97537045d6ea863785781d5067ea1c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# copy to /etc/systemd/system/ (at least on Arch Linux)

[Unit]
Description=Load/Save Screen Backlight Brightness of backlight:mba6x_backlight
DefaultDependencies=no
RequiresMountsFor=/var/lib/systemd/backlight
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=sysinit.target shutdown.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-backlight load backlight:mba6x_backlight
ExecStop=/usr/lib/systemd/systemd-backlight save backlight:mba6x_backlight

[Install]
WantedBy=multi-user.target