how to disable usb hub suspend function
Dear sir: i have a project that need disable usb hub suspend function, How can i do ? Thank you !
Re: Re: how to disable usb hub suspend function
Thank you for your reply. i also want to know by do this, do other devices also can do suspending ? 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�
Re: Re: how to disable usb hub suspend function
i have found the document Thank you very much. current to the USB host controllers during hibernation. (It's possible to work around the hibernation-forces-disconnect problem by using the USB Persist facility.) The reset_resume method is used by the USB Persist facility (see Documentation/usb/persist.txt) and it can also be used under certain circumstances when CONFIG_USB_PERSIST is not enabled. Currently, if a device is reset during a resume and the driver does not have a reset_resume method, the driver won't receive any notification about the resume. Later kernels will call the driver's disconnect method; 2.6.23 doesn't do this. 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�
回复: Re: 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 Stern
Re: Re: 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: Ming Lei Date: 2013-01-11 23:10 To: gavin.kx CC: linux-usb Subject: Re: how to disable usb hub suspend function On Fri, Jan 11, 2013 at 10:16 PM, gavin.kx gavin...@qq.com wrote: Dear sir: i have a project that need disable usb hub suspend function, How can i do ? Suppose you mean USB autosuspend, you can disable it by below command: echo on /sys/bus/usb/devices/HUB-DEV/power/control and HUB-DEV is the hub device's name. Thanks, -- Ming Lei ..
回复: 回复: 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 Stern
回复: 回复: how to disable usb hub suspend function
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�
Re: Re: how to disable usb hub suspend function
if i use suspend function, the hub may occur error, if i removed the hub before suspend then can avoid the suspend? if it could, how can i do ? how to remove and add ? gavin.kx From: Alan Stern Date: 2013-01-12 23:37 To: gavin.kx CC: linux-usb Subject: Re:回复: 回复: how to disable usb hub suspend function 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 ..
Re: Re: how to disable usb hub suspend function
if i use suspend function, the hub may occur error, if i removed the hub before suspend then can avoid the suspend? if it could, how can i do ? how to remove and add ? gavin.kx From: Ming Lei Date: 2013-01-11 23:10 To: gavin.kx CC: linux-usb Subject: Re: how to disable usb hub suspend function On Fri, Jan 11, 2013 at 10:16 PM, gavin.kx gavin...@qq.com wrote: Dear sir: i have a project that need disable usb hub suspend function, How can i do ? Suppose you mean USB autosuspend, you can disable it by below command: echo on /sys/bus/usb/devices/HUB-DEV/power/control and HUB-DEV is the hub device's name. Thanks, -- Ming Lei .N�r��yb�X��ǧv�^�){.n�+{��^n�r���z���h����G���h�(�階�ݢj���m��z�ޖ���f���h���~�m�
回复: Re: how to disable usb hub suspend function
and does have a way to force to remove the usb device? my hub power is supplied by battery, it can work while CPU sleep. gavin.kx 发件人: gavin.kx 发送时间: 2013-01-13 10:59 收件人: Alan Stern 抄送: linux-usb 主题: Re: Re: how to disable usb hub suspend function if i use suspend function, the hub may occur error, if i removed the hub before suspend then can avoid the suspend? if it could, how can i do ? how to remove and add ? gavin.kx From: Alan Stern Date: 2013-01-12 23:37 To: gavin.kx CC: linux-usb Subject: Re:回复: 回复: how to disable usb hub suspend function 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 ..