On Fri, 6 Jan 2006, Franck wrote:

> Anyways I noticed something weird when testing remote wakeup. I
> plugged a mouse and then suspend it through sysfs:
> 
>     $ echo -n 3 > /sys/bus/usb/devices/.../power/state
>     $ cat /sys/bus/usb/devices/.../power/state
>     3
> 
> mouse is suspended. I push on one of its buttons to remote wakeup the
> device. The device is woken up but if I look at the state in sysfs,
> it's still suspended:
> 
>     $ cat /sys/bus/usb/devices/.../power/state
>     3
> 
> Am I missing something ?

Maybe you're missing some patches?  The power state value should be set 
back to 0 (PMSG_ON) in drivers/usb/core/hub.c:finish_device_resume().

Or maybe you're not using the correct path in sysfs?  Although the device 
state does get set back to 0, I just noticed that the interface's state 
does not.  That's bug.  The question is, should the state get set by the 
device driver or by usbcore?

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to