From 3cecf171f36e23723495e56cfba596ef9fd5994b Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 24 Feb 2020 18:53:27 -0700 Subject: [PATCH] Added script to disable bizarre power-on loop after system sleep in arch (macbook) --- systemd-utils/macbook_pro13/suspend-fix.service | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 systemd-utils/macbook_pro13/suspend-fix.service diff --git a/systemd-utils/macbook_pro13/suspend-fix.service b/systemd-utils/macbook_pro13/suspend-fix.service new file mode 100755 index 0000000..145a2d3 --- /dev/null +++ b/systemd-utils/macbook_pro13/suspend-fix.service @@ -0,0 +1,7 @@ +[Unit] +Description=Disables magnetic sensor wakeup, allowing arch to sleep +[Service] +Type=oneshot +ExecStart=/bin/sh -c "echo XHC! > /proc/acpi/wakeup && echo LID0 > /proc/acpi/wakeup" +[Install] +WantedBy=multi-user.target