Re: 回复: 回复: how to disable usb hub suspend function

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, gavin.kx wrote:

 not only disable auto suspend, also disable usb suspend when system suspend.

There is no way to do that.  It oesn't even make sense.  How can you 
suspend the entire system while leaving the hub at full power?

Alan Stern

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


回复: 回复: how to disable usb hub suspend function

2013-01-11 Thread gavin.kx

i use it on the android platform, and i can't generate the control file. what 
can i do ?




gavin.kx

From: Alan Stern
Date: 2013-01-11 23:11
To: gavin.kx
CC: linux-usb
Subject: Re: how to disable usb hub suspend function
On Fri, 11 Jan 2013, gavin.kx wrote:

 Dear sir:
 i have a project that need disable usb hub suspend function, How can i do ? 
 Thank you !

You can prevent any USB device from suspending by doing:

echo on /sys/bus/usb/devices/.../power/control

Fill in the ... part with the path for the device you want.

Alan Stern

回复: 回复: how to disable usb hub suspend function

2013-01-11 Thread gavin.kx
not only disable auto suspend, also disable usb suspend when system suspend.

gavin.kx

发件人: gavin.kx
发送时间: 2013-01-12 09:57
收件人: Alan Stern
抄送: linux-usb
主题: 回复: 回复: how to disable usb hub suspend function

i use it on the android platform, and i can't generate the control file. what 
can i do ?




gavin.kx

From: Alan Stern
Date: 2013-01-11 23:11
To: gavin.kx
CC: linux-usb
Subject: Re: how to disable usb hub suspend function
On Fri, 11 Jan 2013, gavin.kx wrote:

 Dear sir:
 i have a project that need disable usb hub suspend function, How can i do ? 
 Thank you !

You can prevent any USB device from suspending by doing:

echo on /sys/bus/usb/devices/.../power/control

Fill in the ... part with the path for the device you want.

Alan 
SternN�r��yb�X��ǧv�^�)޺{.n�+{��^n�r���z���h����G���h�(�階�ݢj���m��z�ޖ���f���h���~�m�