Documentation for USB device interface for power consumption

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

 



Hi there,

Can't see the /{proc,sys} interface documented in places I expect to be
like https://github.com/torvalds/linux/tree/master/drivers/usb

And the mailing list search is pretty awful:
https://marc.info/?l=linux-usb&w=2&r=1&s=power+measure&q=b

My use case is to examine the power draw from my USB port of my iPhone:
lsusb | grep iPhone
Bus 001 Device 009: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6

First problem is to identify the USB port! Currently I am `find
/sys/devices | grep usb` & wondering how on earth it maps to "Bus 001
Device 009: ID 05ac:12a8".

Next I am hoping the see the power consumption my mA or something like
that?


I did eventually find https://unix.stackexchange.com/a/81615/27433 but
why isn't the a /proc like interface to this? Is there a way to see the
negotiation somehow since my iPhone doesn't seem to like 500mA.

Many thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux