Patent ID: 9715267
Date: 2017-07-25
CPC Classifications: G06F,Y02D

Claim:
1. A method for switching operating systems, applicable to an electronic apparatus, the method comprising: executing a boot procedure by means of a boot firmware; loading a first operation system (OS) to a system memory by means of the boot firmware to run the first OS, wherein only the first OS and a first running data of the first OS exists in the system memory when running the first OS; in case of running the first OS, notifying the first OS to switch the electronic apparatus to enter a power saving mode when a switching signal is received, the power saving mode is ACPI S3 mode; in the power saving mode, storing the first running data of the first OS from the system memory to a first dump area of a storage unit; and loading a second OS to the system memory and waking up the second OS, such that the second OS enters a normal operating mode, wherein only the second OS and a second running data of the second OS exists in the system memory when the second OS is switched to the normal operating mode, wherein after the step of loading the first OS to the system memory, the method further comprises: in case of running the first OS, starting a monitoring program to detect whether the switching signal is received and notifying the first OS by the monitoring program when detecting that the switching signal is received and making the first OS enter the power saving mode, wherein after the step of notifying the first OS to enter the power saving mode, the method further comprises: when the first OS enters the power saving mode, sending a request signal to a system chipset by the first OS to request the system chipset to enter the power saving mode; when the system chipset enters the power saving mode, storing the first running data of the first OS from the system memory to the first dump area of the storage unit by means of the boot firmware; and loading the second OS to the system memory by means of the boot firmware.