Mouse movement disrupts suspend

Thinkpad and 20.04. I have a wireless mouse on this laptop. If I close the lid the laptop goes into suspend. However, while the lid is closed, if I move the external mouse the laptop comes out of suspend even though the list is closed. Ideas?

On a really old BIOS based PC i had to change the suspend to S3 which is a deeper sleep than normal - so if you have a BIOS in that old thinkpad (or even some EFI settings) check if there is anything like that to fiddle with.

“old thinkpad (or even some EFI settings) check if there is anything like that to fiddle with.”
OK, the Thinkpad is a T510 so looked in the BIOS and could not find anything.
Just for grins, I went to my T450S Thinkpad and the same thing happens – USB mouse movement causes machine to come out of suspend while lid is closed.
Don’t recall this behavior on 18.04.

It’s an old issue: https://askubuntu.com/questions/746865/mouse-movement-wakes-computer-from-suspend-cant-disable-it

Thanks, that worked – for a booted system. However, if I want to make it permanent it references a
“in order to disable after reboot, add disable routine into /etc/rc.local before exit 0 line.”
There is no rc.local in /etc. ??

Does this still work in 20.04? https://stackoverflow.com/a/53362812/1626229

Yes it does. However, I did not have to do the ```
sudo systemctl enable rc-local.service