public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* How to enable/power off a port
@ 2006-04-17 11:42 rasmit.ranjan
  2006-04-17 14:26 ` Greg KH
  2006-04-17 14:35 ` Alan Stern
  0 siblings, 2 replies; 3+ messages in thread
From: rasmit.ranjan @ 2006-04-17 11:42 UTC (permalink / raw)
  To: linux-pm

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

Hi all,
	I can suspend a port from the user space manualy by doing
	
	echo -n 3 > /sys/bus/usb....../power/state

Similarlly can I enable/power off a port from the user space manually ?

Please suggest.

Thanks and regards,
Rasmit Ranjan Swain.


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to enable/power off a port
  2006-04-17 11:42 How to enable/power off a port rasmit.ranjan
@ 2006-04-17 14:26 ` Greg KH
  2006-04-17 14:35 ` Alan Stern
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2006-04-17 14:26 UTC (permalink / raw)
  To: rasmit.ranjan; +Cc: linux-pm

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

On Mon, Apr 17, 2006 at 05:12:11PM +0530, rasmit.ranjan@wipro.com wrote:
> Hi all,
> 	I can suspend a port from the user space manualy by doing
> 	
> 	echo -n 3 > /sys/bus/usb....../power/state
> 
> Similarlly can I enable/power off a port from the user space manually ?

Search the archives of the linux-usb-devel mailing list for a small
program that does this through usbfs.  That's the only way to disable
power for a USB port (and then only for some hubs, not all support it.)

good luck,

greg k-h

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to enable/power off a port
  2006-04-17 11:42 How to enable/power off a port rasmit.ranjan
  2006-04-17 14:26 ` Greg KH
@ 2006-04-17 14:35 ` Alan Stern
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Stern @ 2006-04-17 14:35 UTC (permalink / raw)
  To: rasmit.ranjan; +Cc: linux-pm

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1024 bytes --]

On Mon, 17 Apr 2006 rasmit.ranjan@wipro.com wrote:

> Hi all,
> 	I can suspend a port from the user space manualy by doing
> 	
> 	echo -n 3 > /sys/bus/usb....../power/state
> 
> Similarlly can I enable/power off a port from the user space manually ?

It depends on where the port is.  For ports built into the computer, the 
answer is generally No.  The USB controller hardware in computers does not 
have per-port power control.

On some systems you might be able to turn off power to _all_ the ports
attached to a particular USB host controller by turning off power to the
controller itself (put it in a D3cold state).  But this would affect more
than one port, and most systems won't allow you to do it anyway.

If the port is part of an external hub instead of build into the computer, 
you may be able to do it.  Many hubs do not support per-port power 
control, but some of them do.  You can get more information and a 
userspace program here:

http://www.gniibe.org/ac-power-by-usb/ac-power-control.html

Alan Stern


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-17 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-17 11:42 How to enable/power off a port rasmit.ranjan
2006-04-17 14:26 ` Greg KH
2006-04-17 14:35 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox