Guest User

Untitled

a guest
Sep 20th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. [Unit]
  2. Description=Disable Wakeup on Devices
  3. After=multi-user.target
  4.  
  5. [Service]
  6. Type=oneshot
  7. ExecStart=/bin/bash -c "echo disabled > /sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00/power/wakeup"
  8. ExecStartPost=/bin/bash -c "for device in /sys/bus/usb/devices/*/power/wakeup; do echo disabled > \"$device\"; done"
  9. ExecStartPost=/bin/bash -c "find /sys/devices -type f -name 'wakeup' | awk '{print \"echo disabled | sudo tee \" $0}' | bash"
  10. ExecStartPost=/bin/bash -c "echo -n 'enabled' > /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/power/wakeup"
  11.  
  12. [Install]
  13. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment