From cade0de87f48f6ff7f2a2ffcdb67557b37ceed43 Mon Sep 17 00:00:00 2001 From: Oscar Chujutalli Date: Fri, 27 Oct 2017 18:13:42 -0500 Subject: [PATCH] service to correct erroneous behavior when suspending the system --- service/disable-autowakeup.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 service/disable-autowakeup.service diff --git a/service/disable-autowakeup.service b/service/disable-autowakeup.service new file mode 100644 index 0000000..70704ae --- /dev/null +++ b/service/disable-autowakeup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Disable USB wakeup triggers in /proc/acpi/wakeup + +[Service] +Type=oneshot +ExecStart=/bin/sh -c "echo LID > /proc/acpi/wakeup; echo XHC > /proc/acpi/wakeup" +ExecStop=/bin/sh -c "echo LID > /proc/acpi/wakeup; echo XHC > /proc/acpi/wakeup" +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target