# 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.
It works only for the first line in the config (in your example w /proc/acpi/wakeup - - - - EHC1)
The other files are beeing ignored since they are duplicate path lines. My source: https://lists.freedesktop.org/archives/systemd-devel/2018-May/040718.html
My conf under /etc/tmpfiles.d:
The output im getting at /var/log/messages:
Any idea on how to get tmpfiles to not ignore the lines?
Greetings :)