Guest User

Untitled

a guest
Jun 23rd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. sudo -s
  2. echo AS43 > /proc/acpi/wakeup
  3. echo PTXH > /proc/acpi/wakeup
  4.  
  5. [Unit]
  6. Description=fix to prevent system from waking immediately after suspend
  7.  
  8. [Service]
  9. Type=simple
  10. ExecStartPre=/bin/sh -c '/bin/echo GPP2 > /proc/acpi/wakeup'
  11. ExecStart=/bin/sh -c '/bin/echo AS43 > /proc/acpi/wakeup'
  12. ExecStartPost=/bin/sh -c '/bin/echo PTXH > /proc/acpi/wakeup'
  13. RemainAfterExit=yes
  14. TimeoutSec=90s
  15.  
  16. [Install]
  17. WantedBy=sleep.target
  18. WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment