]> code.delx.au - monosys/commitdiff
fix-suspend.service
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 28 Apr 2017 14:43:35 +0000 (00:43 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 28 Apr 2017 14:43:35 +0000 (00:43 +1000)
etc/systemd/system/fix-suspend.service [new file with mode: 0644]

diff --git a/etc/systemd/system/fix-suspend.service b/etc/systemd/system/fix-suspend.service
new file mode 100644 (file)
index 0000000..f796829
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Fix suspend
+After=basic.target
+
+[Service]
+Type=oneshot
+ExecStart=/bin/bash -c 'for x in EHC1 EHC2 XHC; do echo $x > /proc/acpi/wakeup; done'
+
+[Install]
+WantedBy=basic.target