Irritating USB Flash Memory LED behaviour (usb_storage related?)




Summary: Some new USB memory sticks will not stop blinking the LED.
Behaviour varies across distributions and OS's.
Any helpful hints appreciated.


On a system that we use for mass erasure of USB sticks (64 sticks),
based on Debian with automatical udev-handling of USB sticks disabled,
we have a problem with a batch of new USB sticks: They will continue
blinking for as long as they are plugged in, independent of data
access.

The sticks however stop blinking (as they should) on a SuSE based
desktop system with the usual KDE software. They also stop blinking
when attached to a Windows system.


Good behaviour:
***************

Previously, (good) USB sticks would behave like this:
- blink while the usb_storage module identifies them
and maps them to an SCSI device
- then stop blinking
- blink again while being formatted via our script
- stop blinking after being unmounted
Together with a visual program display, the blinking LED has always
been a good indicator for operating personnel of the stick's status.

Bad behaviour:
**************
The new sticks will start blinking when the usb_storage module kicks
in use, and continue blinking throughout idle phases, mounts, writes,
umounts etc.; an eject command will change the blinking to
a permanently lighted LED, but it will never go off.




I'm at a loss looking for the reason of the continued blinking,
and how to get rid of it (it's a large batch of sticks, and
returning them is out of the question).

Possible causes:
- Kernel
But: the "good" SuSE kernel 2.6.25 is between "bad" Debian 2.6.16
and "bad" Debian 2.6.26.
Also, old USB sticks work fine with each machine.
- Bad USB controller
The new batch of sticks uses a different internal USB
controller from old batches.
But: Windows and SuSE work fine.
- Interaction of KDE components with the USB stick
that is missing on our batch formatting system.
But: Why do old sticks work fine without such interaction?


Questions:
- I always thought that USB stick LEDs cannot be controlled by the
operating system. They just indicates "write accesses".
Is that correct?
- If USB stick leds are not OS-accessible, why do the new
sticks behave differently on different systems?
- If USB stick leds are OS-accessible, has there been any change
in policy of kernel/modules that leave them blinking?
- Can anyone point me to information how SuSE/KDE control the
blinking light, and how I can (write code to) let the LED
react similarly on our Debian-based batch system?
[ For various reasons beyond the scope of this mail,
automatically mounting the sticks is out of the question. ]


Any helpful hints, pointers to knowledge/information etc. are
greatly appreciated.

Best regards,

Claus


--
Claus Fischer <claus.fischer@xxxxxxxxxxxxxxxx>
http://www.clausfischer.com/

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: Hardware hang on a Dell 5150
    ... caused by some sort of race condition in the USB. ... the same symptoms (lockup with blinking LEDs). ... > I just got a new Syntax USB wireless gizmo and I ...
    (comp.os.linux.portable)
  • Re: [PATCH] input: extend EV_LED
    ... The hability to blinking at one rate is *very* common on ... For hardware-blink leds with various frequencies, ... and the new parameter pair is in new line. ... it implies both on- and off- times, leading to a duty cycle ...
    (Linux-Kernel)
  • Re: Dell E310 JC474 motherboard USB issue
    ... your lights are across the front near the usb connectors. ... and boot again and report what happens. ... i dont think talking to a dell tech is worth it at this point. ... four LEDs. ...
    (alt.sys.pc-clone.dell)
  • [Possible BUG] Logitech USB keyboard inconsistent led state
    ... I'm using a logitech USB keyboard, I think it's one of the most cheap ... several times and is on as boot finishes. ... of the 3 leds on the keyboards: ...
    (Linux-Kernel)
  • Re: [PATCH] input: extend EV_LED
    ... The hability to blinking at one rate is *very* common on ... For hardware-blink leds with various frequencies, ... A blinking led is basically a PWM ... and the new parameter pair is in new line. ...
    (Linux-Kernel)