Glad you finally found something that works for you, even if only once! If it worked once, it can be made to work again...
It seems that when the computer reboots it sets all the USB ports to be wake - disabled again.
Any commands in the file
/etc/rc.local are executed as root, as the last step of the boot process.
So that is a good place to put the commands to enable USB wake.
Code:
sudo nano /etc/rc.local
Use the cursor keys to navigate to near the end of the file, the line before
exit 0 which is the final command, meaning
exit with an error code of
0 (and 0 = "no errors")
There put:
Code:
echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb6/power/wakeup
echo enabled > /sys/bus/usb/devices/usb7/power/wakeup
echo enabled > /sys/bus/usb/devices/usb8/power/wakeup
Or whatever worked for you.
So the file might look like this:
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#
# Here follows a quick & dirty kludge to enable USB wake events
echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb6/power/wakeup
echo enabled > /sys/bus/usb/devices/usb7/power/wakeup
echo enabled > /sys/bus/usb/devices/usb8/power/wakeup
exit 0
Save the file with
<CTRL> O ("Oh") and then
<RETURN>
Exit nano with
<CTRL> X
Reboot
Shutdown.
Can you wake on USB?