USB and main power are switched with on/off switch