public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Andrew Barr <andrew.james.barr@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Cut power to a USB port?
Date: Mon, 1 Jan 2007 22:52:02 +0100	[thread overview]
Message-ID: <200701012252.02647.oliver@neukum.org> (raw)
In-Reply-To: <1167684985.28023.4.camel@localhost>

Am Montag, 1. Januar 2007 21:56 schrieb Andrew Barr:
> 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

You could use usbfs to send commands to the hub.

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

The ability to cut each port's power individually is optional. Your
hardware may well be incapable of what you want.

	Regards
		Oliver


  reply	other threads:[~2007-01-01 21:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-01 20:56 Cut power to a USB port? Andrew Barr
2007-01-01 21:52 ` Oliver Neukum [this message]
2007-01-02  8:32 ` Greg KH
2007-01-02 15:28   ` Andrew Barr
2007-01-02 16:36     ` Randy Dunlap
2007-01-02 17:08       ` Andrew Barr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701012252.02647.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=andrew.james.barr@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox