A power management system identifies a power source and a power recipient between a first device and a second device based on their respective states. The system identifies that the first device and the second device are connected using a universal serial bus (USB) type-C connectors. The system further determines a respective state for the first device and the second device, e.g., tilt or orientation of the devices. Based on the respective states, the system identifies the power source and the power recipient between the first device and the second device, e.g., using pre-stored information from a database. Further, the system causes energy to be transferred from the power source to the power recipient