It is incredibly annoying to me that my mouse wakes the computer when I barely touch it. If I want my PC to turn on, I press the Super key.
I find very hacky scripts online, I tried some but they didn’t work. How did you disable it?
This option is missing from settings.
I created a systemd service by putting the following in /etc/systemd/system/disable-mouse-wakeup.service
Then I ran
sudo systemctl enable --now disable-mouse-wakeup
It works perfectly on my AMD machine.
On mine it was playing with some /sys/bus/usb/devices/1-4/power/wakeup or something, (use the right device number from lsusb), also there is some settings in the BIOS to power or not USB when sleeping, obviously if some USB port have no power, wakeup cannot work :) Every setup/BIOS is kinda different though.
And I have had the same problem as OP with just knocking the desk and the computer wakes up and it is annoying!
My latest trackball I switched it to Bluetooth mode so when PC is sleeping, no BT at all.
unfortunately, that doesn’t work.
Run
cat /proc/acpi/wakeup
and try some of the other devices instead of XHC0 if they are enabledEdit: Remember to run
sudo systemctl stop disable-mouse-wakeup
to reset them if it doesn’t workUnfortunately, disabling the devices doesn’t work.
I had this device earlier but I disabled it with your systemctl service earlier and although I stopped the service, it didn’t come back. Probably, it’s back on next reboot.
XHC S0 *enabled pci:0000:00:14.0
I didn’t test LID0 or Powerbutton.
Those wakelock devices map to specific devices. If you run
lsusb
you will see thepci:0000:00:1c.4
and others.RP05
.That should be what is needed to disable waking up from the mouse.