Solar power supply detection