Hi folks,
The following solution is working for me.
-
Check what is on USB ports:
lsusb –t
-
Find the bus where is Human Interface Device.
In my case Bus 03, Port 1. The device will be 3-1 -
Create a file
sudo nano /lib/systemd/system-sleep/mouse_disable_wakeup.sh
-
Insert the script
#!/bin/sh
case "$1" in
pre)
echo disabled > /sys/bus/usb/devices/3-1/power/wakeup
;;
esac -
Save and Exit
-
Make the file executable:
sudo chmod +x /lib/systemd/system-sleep/mouse_disable_wakeup.sh
Also, it is possible to open properties of the file as superuser in Caja and change Permission - Execute - Allow executing as program.
Actually, I am keeping the copy of the file. In case of re-installation, I am just inserting the file to proper place and making it is executable via Caja.
- Restart
I found this solution here.