summaryrefslogtreecommitdiffstats
path: root/other/systemd/mba6x-backlight.service
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2014-12-06 17:03:23 -0500
committerAmin Bandali <me@aminb.org>2014-12-06 17:03:23 -0500
commiteb690e7306ad6f349737c452388fc6b2b97b8dc7 (patch)
tree774beac1b09e2fbaa11c075765ffa938c48f499d /other/systemd/mba6x-backlight.service
parente34038a27a28a3f7660444d24fb543d513dec63e (diff)
downloadconfigs-eb690e7306ad6f349737c452388fc6b2b97b8dc7.tar.gz
configs-eb690e7306ad6f349737c452388fc6b2b97b8dc7.tar.xz
configs-eb690e7306ad6f349737c452388fc6b2b97b8dc7.zip
systemd service for saving/loading mba6x_backlight brightness
Diffstat (limited to 'other/systemd/mba6x-backlight.service')
-rw-r--r--other/systemd/mba6x-backlight.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/other/systemd/mba6x-backlight.service b/other/systemd/mba6x-backlight.service
new file mode 100644
index 0000000..04441a7
--- /dev/null
+++ b/other/systemd/mba6x-backlight.service
@@ -0,0 +1,18 @@
+# copy to /usr/lib/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