This is an old revision of the document!
Source: Reddit
[Unit] Description=something [Service] ExecStart=/bin/bash -c "echo EHC1 >> /proc/acpi/wakeup; echo XHC >> /proc/acpi/wakeup" [Install] WantedBy=multi-user.target
- Place this file in /etc/systemd/system/ - Then do sudo systemctl daemon-reload, - do sudo systemctl start acpi-wakeup-disable - and check on it with systemctl status something, - then enable it so it starts after boot with sudo systemctl enable acpi-wakeup-disable.