3

In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available.

Is this information available programatically, either in Windows (perhaps WMI?) or Linux? I've looked in MSDN with little success so far.

Soo Wei Tan
  • 3,262
  • 2
  • 34
  • 36

2 Answers2

3

Linux:

lsusb -v | grep MaxPower

Anonymouse
  • 76
  • 1
  • 2
    I think this just shows the maximum amount that can be drawn, not what's being drawn by a particular device. http://superuser.com/questions/297959/how-do-you-check-how-much-power-a-usb-port-can-deliver – slm Jan 25 '13 at 14:24
2

I think WMI is going to be your best bet here. I'm not familar with exactly what you want, but I'd start with the Win32_VoltageProbe class.

popester
  • 1,936
  • 9
  • 13
  • There's also Win32_CurrentProbe, which would be more relevant since the voltage should always be 5V for USB. The easiest way to use this is to use this PowerShell command: `Get-WmiObject -class Win32_CurrentProbe` or `Get-WmiObject -class Win32_VoltageProbe`. However, both of these return no results on my system, so maybe CurrentProbe and VoltageProbe compatible USB hosts & hubs might be rare. – AlcubierreDrive May 07 '13 at 19:55