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