login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
January
»
2
Re: Cut power to a USB port?
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: Cut power to a USB port?
Date: Tuesday, January 2, 2007 - 9:36 am
On Tue, 02 Jan 2007 10:28:38 -0500 Andrew Barr wrote:
quoted text
> On Tue, 2007-01-02 at 00:32 -0800, Greg KH wrote: > > On Mon, Jan 01, 2007 at 03:56:25PM -0500, Andrew Barr wrote: > > > I have a simple question perhaps someone can help me with here... > > > > > > I have one of those simple LED keyboard lamps that get their power from > > > the USB port. Is there some way in Linux, using files under /sys I would > > > imagine, to cut power to the USB port into which this lamp is plugged? I > > > know I would have to manually figure out what port it's plugged into, as > > > it is not a "real" USB device...e.g. it just draws power. I would like > > > to be able to programmatically switch the lamp on and off. > > > > Search the archives of the linux-usb-devel mailing list for a program > > that might do this for you (depending on your hardware.) > > What search terms should I use? Searching on "power" and "port power" at > Gmane in the gmane.linux.usb.devel group doesn't readily give me > anything.
You can try: usbpoweroff.c (
http://www.informatik.uni-halle.de/~ladischc/usbpoweroff.c
) or hub-ctrl-2.c (
http://www.gniibe.org/log/linux
)
quoted text
> For the record, my hardware: > > 00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01) > 00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01) > 00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM > (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01) > 00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 > EHCI Controller (rev 01) > > IBM Thinkpad R51 2883-ELU.
--- ~Randy -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Cut power to a USB port?
, Andrew Barr
, (Mon Jan 1, 1:56 pm)
Re: Cut power to a USB port?
, Oliver Neukum
, (Mon Jan 1, 2:52 pm)
Re: Cut power to a USB port?
, Greg KH
, (Tue Jan 2, 1:32 am)
Re: Cut power to a USB port?
, Andrew Barr
, (Tue Jan 2, 8:28 am)
Re: Cut power to a USB port?
, Randy Dunlap
, (Tue Jan 2, 9:36 am)
Re: Cut power to a USB port?
, Andrew Barr
, (Tue Jan 2, 10:08 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Axel Lin
[PATCH] tc6393xb: fix wrong goto labels for error handling
git
:
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
Re: mingw, windows, crlf/lf, and git
Nicolas Pitre
Re: [PATCH 2/2] Implement a simple delta_base cache
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jeff King
[PATCH 1/4] t4012: use test_cmp instead of cmp
git-commits-head
:
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
Staging: batman-adv: splitting /proc vis file into vis_server and vis_data
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
ocfs2: Stop orphan scan as early as possible during umount
Linux Kernel Mailing List
x86, apic: clean up spurious vector sanity check
linux-netdev
:
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Lennert Buytenhek
Re: [PATCH 3/6] [NET] dsa: add support for original DSA tagging format
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Pavel Emelyanov
[PATCH net-2.6.26 2/2][NETNS]: The generic per-net pointers.
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
John Baldwin
Re: Possible case of sched_ule never honoring cpu_set affinity?
韓家標 Bill Hacker
Re: ZFS honesty
samira
sata atapi on ich9r
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
Colocation donated by:
Syndicate