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