On Wed, 3 Feb 2016, Fabio Estevam wrote: > On Wed, Feb 3, 2016 at 1:21 PM, Fabio Estevam <festevam@xxxxxxxxx> wrote: > > Hi Peter, > > > > I am running imx6sl-evk with linux-next 20160203 and I am trying to > > make it wake up via a USB mouse click. > > > > These are the steps I am doing: > > > > - Insert the USB mouse in the USB host port: > > > > usb 1-1: new low-speed USB device number 7 using ci_hdrc > > input: Logitech USB Optical Mouse as > > /devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.0/0003:046 > > D:C077.0006/input/input7 > > hid-generic 0003:046D:C077.0006: input: USB HID v1.11 Mouse [Logitech > > USB Optical Mouse] on usb-ci_hdrc.1-1/input0 > > > > - Configure USB1 to be a wakeup source: > > > > $ echo enabled > /sys/bus/usb/devices/usb1/power/wakeup > > $ echo enabled > /sys/bus/usb/devices/1-1/power/wakeup > > > > - Put the system in suspend > > > > $ echo mem > /sys/power/state > > > > - Clicking in the mouse button does not wakeup the system. > > > > Any ideas? > > Got it running after going through Documentation/usb/chipidea.txt, > where it has a useful script: > > for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done > > Now clicking the mouse can wakeup the system :-) It seems likely that this script does exactly the same thing that you did before by hand. Why does one work but not the other? Could it be that you also needed to do: echo enabled >/sys/bus/usb/devices/usb1/../power/wakeup ? This should be turned on by default, but maybe it isn't. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html