From 78c88e4e3114b7f6b04ece8660c029a7ef7b94eb Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 26 Feb 2019 06:51:39 -0700 Subject: [PATCH] ENH: sleep hack --- suspend-fix.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 suspend-fix.service diff --git a/suspend-fix.service b/suspend-fix.service new file mode 100644 index 0000000..ef7081e --- /dev/null +++ b/suspend-fix.service @@ -0,0 +1,10 @@ +# /etc/systemd/system/ +[Unit] +Description=Fix for the suspend issue + +[Service] +Type=oneshot +ExecStart=/bin/sh -c "echo XHC1 > /proc/acpi/wakeup && echo LID0 > /proc/acpi/wakeup" + +[Install] +WantedBy=multi-user.target