an electronic device receives information associated with power supply control transmitted from a server and controls a selection of power sources from among an ac power source and a secondary power supply such as a battery on the basis of the received information associated with power supply control .