# cat /proc/acpi/wakeup
Examples:
EHC1 S3 *enabled pci:0000:00:1d.0
EHC2 S3 *enabled pci:0000:00:1a.0
# echo "EHC1" > /proc/acpi/wakeup
# echo "EHC2" > /proc/acpi/wakeup
Create file like this one:
# nano /etc/tmpfiles.d/ehc1-disable-wake.conf
With lines:
w+ /proc/acpi/wakeup - - - - EHC1
w+ /proc/acpi/wakeup - - - - EHC2
Then reboot and check again -- specified devices will not wake up a machine until you let them again.
Thank you for all the hints here.
I decided to disable my devices via
/sys/devices/*/*/power/wakeup, since/proc/acpi/wakeupis only a toggle, and I want it to be disabled for sure, also I can then easily specify multiple devices:e.g. for
XHC S3 *disabled pci:0000:00:14.0the tmpfiles looks like this:Hopefully this is helpful for someone.
Edit: Also be careful with sysfs and tmpfiles, because some devices will be available after tmpfiles is processed
source: https://wiki.archlinux.org/index.php/Systemd#Temporary_files