Disable Sleep Wake By Devices
grep . /sys/bus/*/devices/*/power/wakeup | grep enabled- To disable all of them and make sure it is indeed a device that's causing it:
for dev in /sys/bus/*/devices/*/power/wakeup do
echo disabled | sudo tee $dev > /dev/null
end- Then to go through each device:
echo disabled | sudo tee /sys/bus/acpi/devices/ID/power/wakeup > /dev/null - When you found the culprit, create a file with the content in the example.
touch /etc/udev/rules.d/disable-wake.rules - KERNEL might change, so it's recommended to use device and vendor ids. To get them, run (replace with your actual device)
grep . /sys/bus/usb/devices/1-1/id{Vendor,Product} - Reboot.
Examples:
ACTION=="add", SUBSYSTEM=="pci", KERNEL=="0000:0a:00.3", ATTR{power/wakeup}="disabled"ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c547", ATTR{power/wakeup}="disabled"