'Turn off returning from suspend by the mouse'

There is a strange phenomenon that the main PC returns from the suspend without automatically. I was observing it, and it seemed to wake when the refrigerator groaned.

It’s not actually link PC and refrigerator, so I think the mouse is picking up the vibration of the refrigerator.

So disable to return by mouse.

Installing input-utils

sudo apt install input-utils

Check the mouse

$ sudo lsinput


   bustype : BUS_USB
   vendor : 0x47d
   product : 0x8018
   version: 273
   name : "Kensington Expert Wireless TB Mo"
   phys : "usb-0000:02:00.0-4/input0"
   uniq : ""
   bits ev : (null) (null) (null) (null)

   bustype : BUS_USB
   vendor : 0x47d
   product : 0x8018
   version: 273
   name : "Kensington Expert Wireless TB Co"
   phys : "usb-0000:02:00.0-4/input0"
   uniq : ""
   bits ev : (null) (null) (null)

Note this number,0000:02:00.0 for reference.

Output a list of devices that have return enabled

cat/proc/acpi/wakeup | grep enable
GPP0 S4 *enabled pci:0000:00:01.1
GPP8 S4 *enabled pci:0000:00:03.1
GPPA S4 *enabled pci:0000:00:03.3
GP17 S4 *enabled pci:0000:00:07.1
XHC0 S4 *enabled pci:0000:0b:00.3
GP18 S4 *enabled pci:0000:00:08.1
GPP2 S4 *enabled pci:0000:00:01.3
AS43 S4 *enabled pci:0000:04:00.0
PTXH S4 *enabled pci:0000:02:00.0

You should only disable the last PTXH.

Turn it off

When I sudo normally, an error returned , so I became superuser at once before the command.

$ sudo-i
# echo PTXH > /proc/acpi/wakeup 
# exit

I success to disable return with mouse, but it can’t return with the keyboard too. The ten keypad connected from another USB terminal was able to return.

It seem that the input devices that distributed from one USB terminal are stopped altogether. For the time being, I separate the keyboards connection from mouse.

Make it disabled automatically by reboot

$ sudo crontab -e

Add the following line

@reboot echo PTXH > /proc/acpi/wakeup 

Reboot and confirm to do well.


Sleep wake from the mouse was disabled for the time being. However, the unexplained return itself is still occurring, and there seems to be another cause.


I don’t want to wake by touching the mouse.Notes on how to keep Linux from waking from USB mouseStart-up with crontab