I have one USB-C PD adapter wired up and another one on the way. Designed and 3D printed a simple enclosure for the electronics & wiring: https://printables.com/model/1161611-r
1 / 2
Comments
ioreg -arw0 -c AppleSmartBattery
In the XML output, there are entries under AdapterDetails/UsbHvcMenu.
The MacBook adapter lists 5V 2.96A, 9V 2.98A, 15V 2.99A, 20V 3.39A.
This power bank lists 5V 3A, 9V 3A, 12V 2.5A.
The tool & code: https://github.com/jasoncoon/mac-adapter
The output:
The CLI can now generate an HTML page in addition to XML, JSON, and Markdown.
App & code: https://github.com/jasoncoon/mac-adapter