From 67a36e2920f053bde37876d467b4fffa2a61eef9 Mon Sep 17 00:00:00 2001 From: Sebastian Schlicht Date: Wed, 28 Nov 2018 13:52:37 +0100 Subject: [PATCH] Add systemd on resume service --- systemd/g810-led-resume.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/g810-led-resume.service diff --git a/systemd/g810-led-resume.service b/systemd/g810-led-resume.service new file mode 100644 index 0000000..442eba2 --- /dev/null +++ b/systemd/g810-led-resume.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set G810 profile on resume +Before=sleep.target +StopWhenUnneeded=yes + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStop=/usr/bin/g810-led -p /etc/g810-led/profile + +[Install] +WantedBy=sleep.target