On Sat, 10 Feb 2007, Frédéric RISS wrote: > > Yes, remote wakeup works under MacOS. I installed the MacOS USB development > > packages which should allow me to dump some USB activity. Do you think > > there may be something useful in these logs?
Are you talking about waking up from Suspend-to-RAM or from Suspend-to-Disk? > > I suppose it's also possible that the device needs some magic command to > > be issued to do remote wakeup. I've read that under MacOS it uses a > > small specific kernel driver in addition to the HID one. Is something > > like that possible? If yes, how can one find out? > > I installed the MacOS USB Probe program and I'm seeing a control > transaction from the IR Receiver driver at the time of suspend. The > transaction is described by a structure named DevRequest and containing > these fields: > > UInt8 bmRequestType = 0x02 > UInt8 bRequest = 0x01 > UInt16 wValue = 0x0000 > UInt16 wIndex = 0x83 > UInt16 wLength = 0x0 > void * pData = ?? > UInt32 wLenDone = ?? That request is just a Clear-Halt for endpoint 0x83. I doubt that it has anything to do with remote wakeup. > I tried to reproduce such a request using: > > status = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), > 0x01, 0x02, 0, 0x83, NULL, 0, 100); > > from generic.c:generic_suspend when the device Ids match my device. As I > don't fully understand what this is doing, I also tried with > usb_rcvctrlpipe. Neither did produce an error, but neither helped to > enable the device to initiate a remote wakeup. > > I'd appreciate some advice about that. Is it possible that this command > is what's needed to make remote wakeup work? Probably not. > Should I try to put the > above call at some other place in the suspend process? > > I can try to dig other information out of the traces, if someone tells > me what to look for. Anything you can't understand... Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel