Re: controlling LED's on USB flash drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ This is a very late followup to a thread from April:

   http://mail.nl.linux.org/kernelnewbies/2006-04/msg00287.html ]

Relevant context is:

  >> Well, Greg, the reason I was asking was because I wanted to know if the LED
  >> of my drive could be switched off when I umount it. In windows I noticed that
  >> the LED is switched off when the drive is ready to be unplugged. Is it that they
  >> might be removing power to the drive? Could we acheive a similar result?
  >
  >Yes, Windows is removing power to that specific port.

Question: is it possible to achieve LED-off through another means?

In particular: if I do 'eject -s -v /dev/sda' the LED turns
off for a fraction of a second, but then comes back on.  At
the same time, this appears in /var/log/messages:

  Jun 11 09:38:25 gentoo SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
  Jun 11 09:38:25 gentoo sda: Write Protect is off
  Jun 11 09:38:25 gentoo sda: Mode Sense: 27 00 00 00
  Jun 11 09:38:25 gentoo sda: assuming drive cache: write through
  Jun 11 09:38:25 gentoo sda: sda1

I have no way to tell if the LED off means "I turned off
but then the host SCSI found me again" or if it's just
an activity-related flicker.

Question: is it possible to disable the revalidation (re-recognition,
whatever) so the device stays offline after 'eject -s'?  OR: is it
possible to send an eject command as part of scsi_remove_single_device?

Setup: Gentoo, 2.6.16, Seagate ST910082 100GB USB drive.

Thanks in advance,
^Ed
-- 
Ed Santiago               Toolsmith               esm@xxxxxxxxxxxxxx


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux