Moreover, if, for example, the battery pack is determined to have a fault during the activation of the electronic device, such as a notebook computer, and the electronic device is thus switched to a sleep mode, the electronic device is prevented from being reactivated until the removal of the battery pack is sensed.