RE: How to selective suspend usb on linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks for the reply.
Yes CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND are chosen.
I wrote a sample program using libusb. I am closing the device handler and setting the files in PM folder (/sys/bus/usb/devices/2-2/power/control and autosuspend_delay_us).
Is it enough to make the device auto suspended.

Thanks,
Viswandh

-----Original Message-----
From: Chen Peter-B29397 [mailto:B29397@xxxxxxxxxxxxx] 
Sent: Wednesday, June 20, 2012 11:21 AM
To: Viswanadha Palepu; linux-usb@xxxxxxxxxxxxxxx
Subject: RE: How to selective suspend usb on linux

 
> 
> Hi
> I tried usb selective suspend on kernels 2.6.32 and 2.6.35 using the 
> /sys/bus/usb/devices/x-x/power/level and autosuspend.
> 
> But on 2.6.35 its not working, even I changed the level to control and 
> autosuspend to autosuspend_us_delay.
> Is there any other way to selective suspend usb 2.0?
> 
I remembered the autosuspend should be OK at 2.6.35, you only need to do below command to auto suspend your device.
echo auto > /sys/bus/usb/devices/x-x/power/control

Please make sure CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND are chosen.

> 
> --
> 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


--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux