All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Kennedy <akennedy@techmoninc.com>
To: linux-pm@lists.osdl.org
Subject: Re: Ejecting/Powering off/ -> Turn off the device lamp.
Date: Mon, 22 May 2006 11:50:10 -0500	[thread overview]
Message-ID: <4471EBC2.9000607@techmoninc.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0605221238290.5806-100000@iolanthe.rowland.org>

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

Alan Stern wrote:
> On Mon, 22 May 2006, Andy Kennedy wrote:
>
>   
>> All,
>>
>> I have done an extensive search on this issue and cannot find the answer 
>> to my specific question.  Whereas I understand that an individual device 
>> on a USB host (on board) cannot be "powered off" nor "ejected" I wonder 
>> if the device can be sent a command from userspace to turn off it's LED 
>> indicator lamp.  Most of the devices that I have seen, when the device 
>> is no longer in use, goes into a blink cycle.
>>
>> Is there a way to signal the device to stop the cycle and actually power 
>> off the LED?
>>     
>
> It's hard to answer that question without knowing what kind of device
> you're talking about.  Some USB devices (like hubs) can be told to turn
> off their indicators; most cannot.
>
> Alan Stern
>   
Very sorry. . . I did leave out the most important part:  I am working 
with various flash disks / USB mass storage devices.

I am working with an embedded system that will have no user interaction 
save the USB port.  The unit will recognize the mass storage device via 
the hotplug scripts, then execute a series of commands. . . after which 
the device will be unmounted and then could be removed.  That is the 
purpose for wanting to extinguish the lamp.  It would be hard to explain 
to a lay person to "Watch the little light.  It should blink very fast 
for a few seconds/minutes then blink slow for a few seconds, then fast 
again. . . then you can remove it." and expect them to comprehend the 
meaning of the "little blinking light."

I have TTLs on the embedded system; I may just have to use those.

Andy Kennedy

[-- Attachment #2: akennedy.vcf --]
[-- Type: text/x-vcard, Size: 256 bytes --]

begin:vcard
fn:Andy Kennedy
n:;Andy Kennedy
org:TechMon Research Inc.
adr;dom:;;2221 Dianne Drive;Birmingham;AL;35235
email;internet:akennedy@techmoninc.com
title:Sr. Software Engineer
tel;work:(205) 854-9895
tel;cell:(256) 453-1814
version:2.1
end:vcard


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



  reply	other threads:[~2006-05-22 16:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-22 16:21 Ejecting/Powering off/ -> Turn off the device lamp Andy Kennedy
2006-05-22 16:40 ` Alan Stern
2006-05-22 16:50   ` Andy Kennedy [this message]
2006-05-22 17:07     ` David Brownell
2006-05-22 17:03 ` David Brownell

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=4471EBC2.9000607@techmoninc.com \
    --to=akennedy@techmoninc.com \
    --cc=linux-pm@lists.osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.