On Thu, 21 Sep 2006 rasmit.ranjan at wipro.com wrote: > Hi, > I face a problem while suspending any USB device through sysfs > interface. > I tried this with kernel 2.6.16.28. I tried the following thing > > echo -n 3 > /sys/bus/usb/devices/3-1.1.0/power/state 3-1.1.0 is not a valid USB device pathname. Hubs don't have a "port 0". > > After this when i display the content of the above file by > > cat /sys/bus/usb/3-1.1.0/power/state > > I get 2 not 3. But inspite of this the corresponding device interface > gets suspended properly. The Power Management core was changed, as you have seen. > But this inconsistency does not happen with kernel 2.6.15.4. It seems > like now we need to echo 2 instead of 3 to suspend through sysfs > interface in 2.6.16. Is it true ? Please suggest Either echo 2 or echo 3 will work (they do the same thing). At some point in the future the /sys/bus/devices/.../power/state files will be removed entirely. Alan Stern