How To Disable USB Wake from Suspend?

Hi folks,
The following solution is working for me.

  1. Check what is on USB ports:
    lsusb –t

  2. Find the bus where is Human Interface Device.
    In my case Bus 03, Port 1. The device will be 3-1

  3. Create a file
    sudo nano /lib/systemd/system-sleep/mouse_disable_wakeup.sh

  4. Insert the script

    #!/bin/sh
    case "$1" in
    pre)
    echo disabled > /sys/bus/usb/devices/3-1/power/wakeup
    ;;
    esac

  5. Save and Exit

  6. 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.

  1. Restart

I found this solution here.

1 Like