Re: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-18 Thread Alan Stern
Please tell your email client to wrap lines after 72 columns or so. On Thu, 18 Dec 2014, Du, Changbin wrote: > When I am checking usb remote wakeup code, I found that usb remote > wakeup will not work after system going to S3 sate and I confirmed > with my PC. USB remote _does_ work. > During e

RE: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-18 Thread Du, Changbin
> There's a simple solution: Call device_set_wakeup_enable() for the device! > You can do this from the command line by: > > echo auto >/sys/bus/usb/devices/.../power/control > > where the "..." is the pathname for your device. > Yes, this can enable auto-suspend for usb device like a mous

RE: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-19 Thread Alan Stern
On Fri, 19 Dec 2014, Du, Changbin wrote: > > There's a simple solution: Call device_set_wakeup_enable() for the device! > > You can do this from the command line by: > > > > echo auto >/sys/bus/usb/devices/.../power/control > > > > where the "..." is the pathname for your device. > > > Yes,

RE: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-22 Thread Du, Changbin
> You have to make sure that wakeup is also enabled for the host > controller the device is attached to. For some host controllers, it > may also be necessary to enable wakeup for the root hub. > Yes, the root-hub is not wakeup enabled by default, actually hub devices are not enabled. It works af

RE: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-23 Thread Alan Stern
On Tue, 23 Dec 2014, Du, Changbin wrote: > > You have to make sure that wakeup is also enabled for the host > > controller the device is attached to. For some host controllers, it > > may also be necessary to enable wakeup for the root hub. > > > Yes, the root-hub is not wakeup enabled by defaul