I am creating a system that should handle broken devices that may or may not have a working USB connector. I would like to know if the USB subsystem can be asked if the port consumes power or not.
If you really want to do this, you will have to dig deep:
http://www.usb.org/developers - all relevant USB standards documentshttp://www.beyondlogic.org/usbnutshell/usb1.shtml - some useful informationhttp://www.libusb.org/ - a very low level USB management libraryhttp://www.acpi.info/DOWNLOADS/ACPIspec40a.pdf - ACPI may provide some helphttp://msdn.microsoft.com/en-us/library/aa394504%28v=VS.85%29.aspx - WMI class for accessing USB related information
for a solution without development and / or verification during debugging:http://www.devicedriverfinder.com/blog/device-drivers/how-to-check-usb-power-usage
Source: https://habr.com/ru/post/893968/More articles:Does it make sense for this piece of code? - javascriptUsing LLDT and configuring GDT for it - assemblyWhat is the correct way to test for Unicode support in a Smalltalk implementation? - smalltalkThe HOME button does not work, can I listen to it? - androidA tool for creating an ASCII graph from a set of vertices and edges? - graphFirebug cd equivalent in Chrome console / developer tools - google-chromeWrapper is disabled in server configuration allow_url_include = 0 - javascriptUnderstanding CATransform3D - uiviewIs there a way to make the UNIQUE case insensitive in Mysql 5.1.x? - mysqlandroid toast is not suitable for text - androidAll Articles