USB drive light does not turn off after "safely removing"
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Fri Apr 11 16:51:08 UTC 2008
Tim wrote:
> On Fri, 2008-04-11 at 09:43 -0500, Mikkel L. Ellertson wrote:
>> As far as I know, Linux does not shut down the power to the USB
>> socket when you "safely remove" a drive. It is something that could
>> be added, though it will not be simple.
>
> I don't think that you could do that. Even if you could, how would it
> then tell if something was plugged back in again? It couldn't.
>
You have to turn the power back on. But how long do you wait? I
don't know enough about USB to know if they can detect when the
device is removed if it is powered down. It may also be possible to
tell a device to shut down.
As far as turning the power off, I know the kernel can do it. There
were a couple of kernels that were enforcing the power limits on USB
sockets, but it was causing too many problems for users. Each device
is supposed to report its maximum power draw, and each hub is
supposed to report how much each port can draw, as well as the total
for the hub. If you plug in a device that draws more then the port
can handle, or enough devices that you exceed the hub total, the
port is supposed to shut down.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20080411/62ba9bc8/attachment-0001.bin
More information about the users
mailing list