Patent ID: 8760130

Claim:
An electronic apparatus comprising: a power switch for starting up or shutting down the electronic apparatus; a direct-current voltage generation part that outputs a direct-current voltage; a control part that controls an operation of the electronic apparatus; a switching part that switches between an on-state in which the direct-current voltage from the direct-current voltage generation part is supplied to the control part and an off-state in which the direct-current voltage is not supplied to the control part; and a power supply maintaining part that maintains the switching part in the on-state during a predetermined period in a case where the alternating current voltage is supplied, wherein in a case where the direct-current voltage is supplied to the control part by maintaining the switching part in the on-state, the control part detects whether the power switch is the on-state or the off-state, and wherein in a case where the power switch is on, the control part controls the power supply maintaining part to maintain the switching part in the on-state, and in a case where the power switch is off, the control part controls the power supply maintaining part to maintain the switching part in the off-state.