During detection of input, switch over to dc power