## Check whether USB events might be causing the wakeup

If EHC1, EHC1 or XHC (USB3) are shown as enabled, then it’s possible that a USB device might be the culprit :

One can disable specific device-types using the following script :

However, this is a blunt tool if a single USB device is causing the problem.

## Track down the mouse…

First, get an idea of which strings/devices you should be searching for :

Now, specify that you need the ‘mouse’ device id:

Use the device id found to disable the power wakeup (just once) :

Test the resume-from-suspend cycle is no longer triggered by the mouse…

## Make the change permanent…

Put the one-liner above in a (probably new) file /etc/rc.d/rc.local with a bash invocation :

And then make it executable, and usable by systemd :

Check that the rc-local.service does exist (though it appears to be defined internally, rather than through a .service file like many other services) :

All done.