WO2023142764A1 - 操作***的唤醒方法及装置、电子设备、存储介质 - Google Patents

操作***的唤醒方法及装置、电子设备、存储介质 Download PDF

Info

Publication number
WO2023142764A1
WO2023142764A1 PCT/CN2022/139601 CN2022139601W WO2023142764A1 WO 2023142764 A1 WO2023142764 A1 WO 2023142764A1 CN 2022139601 W CN2022139601 W CN 2022139601W WO 2023142764 A1 WO2023142764 A1 WO 2023142764A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
target
wake
target operating
module
Prior art date
Application number
PCT/CN2022/139601
Other languages
English (en)
French (fr)
Inventor
康君平
王照金
唐海云
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023142764A1 publication Critical patent/WO2023142764A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of electronic equipment, in particular to a method and device for waking up an operating system, electronic equipment, and a storage medium.
  • Today's electronic devices can have multiple different operating systems installed at the same time. Wherein, a plurality of different operating systems can be used to perform different tasks, thereby improving the computing and processing capability of the electronic device.
  • the embodiment of the present application discloses a method and device for waking up an operating system, an electronic device, and a storage medium, which can automatically switch the electronic device to an optimal operating system and improve the intelligence of the electronic device.
  • the first aspect of the embodiment of the present application discloses a method for waking up an operating system, which is applied to an electronic device, and the electronic device can run a first operating system and a second operating system, and the method includes:
  • the target wake-up module When the first operating system and/or the second operating system are in a dormant state, if the target wake-up module generates a wake-up signal, control the target operating system corresponding to the target wake-up module from Sleep state switches to running state.
  • the second aspect of the embodiment of the present application discloses a device for waking up an operating system, which is applied to an electronic device, and the electronic device is capable of running a first operating system and a second operating system, and the device includes:
  • a wake-up unit configured to control the wake-up module corresponding to the target wake-up module according to the wake-up signal when the first operating system and/or the second operating system are in a dormant state, if the target wake-up module generates a wake-up signal.
  • the target operating system switches from hibernate to running.
  • the third aspect of the embodiment of the present application discloses an electronic device, including:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to execute the method for waking up the operating system disclosed in the first aspect of the embodiments of the present application.
  • the fourth aspect of the embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes the computer to execute the method for waking up the operating system disclosed in the first aspect of the embodiment of the present application.
  • the fifth aspect of the embodiment of the present application discloses a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is made to execute part or all of the steps of any method of the first aspect of the embodiment of the present application.
  • the sixth aspect of the embodiment of the present application discloses an application release platform, the application release platform is used to release a computer program product, wherein, when the computer program product runs on a computer, the computer executes the first aspect of the embodiment of the present application. Part or all of the steps of any one method in one aspect.
  • FIG. 1 is a schematic structural diagram of an electronic device with multiple operating systems disclosed in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for waking up an operating system disclosed in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another method for waking up an operating system disclosed in an embodiment of the present application
  • FIG. 4 is a sequence diagram disclosed in an embodiment of the present application.
  • FIG. 5 is another timing diagram disclosed in the embodiment of the present application.
  • FIG. 6 is another timing diagram disclosed in the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of another method for waking up an operating system disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a device for waking up an operating system disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • the embodiment of the present application discloses a method and device for waking up an operating system, an electronic device, and a storage medium, which can automatically switch the electronic device to an optimal operating system and improve the intelligence of the electronic device.
  • an application scenario applicable to the operating system wake-up method is firstly introduced.
  • the method can be applied to electronic devices capable of running multiple operating systems, including but not limited to portable devices such as mobile phones and tablet computers, wearable devices such as smart watches and smart bracelets, and desktop devices such as TVs and desktop computers , is not limited here.
  • FIG. 1 is a schematic structural diagram of an electronic device with multiple operating systems disclosed in an embodiment of the present application.
  • the electronic device may include multiple (including two or more) different operating systems, and FIG. 120), which should not be construed as limiting the embodiment of this application.
  • the computing processing capability and operating power consumption of the first operating system 110 and the second operating system 120 may be different.
  • the first operating system 110 may include but not limited to Android (Android) operating system, Linux operating system
  • the second operating system 120 may include but not limited to real-time operating system (Real Time Operating System, RTOS), windows operating system .
  • the electronic device may further include one or more hardware modules, and the hardware modules may include but not limited to buttons, touch screens, and sensors.
  • some hardware modules can still be in the running state when the operating system is in the dormant state, and the hardware modules in the running state can generate a wake-up signal when the wake-up condition is met, and then control the corresponding operating system from the dormant state to switch according to the wake-up signal.
  • Operating status For example, if the operating system corresponding to the touch screen is the first operating system, when the first operating system is in a dormant state, if the touch screen detects a touch signal, the touch screen can generate a wake-up signal to The first operating system is woken up by a wakeup signal.
  • the electronic device may configure one or more hardware modules for each operating system as a wake-up module, so as to automatically wake up the corresponding operating system through a wake-up signal generated by the wake-up module. There is no need for the user to manually switch, thereby improving the intelligence of the electronic device.
  • the wake-up module corresponding to the operating system can be flexibly configured by the electronic device or the user according to requirements, which is not limited here. It should be noted that, in FIG. 1 , hardware module 1 and hardware module 2 are exemplarily configured as wake-up modules of the first operating system 110, and hardware module 3, hardware module 4... and hardware module n are configured as the second operating system 120. The wake-up module should not be limited to this embodiment of the application.
  • FIG. 2 is a schematic flowchart of a method for waking up an operating system disclosed in an embodiment of the present application.
  • the method for waking up the operating system can be applied to the above-mentioned electronic device, and the electronic device can at least run the first operating system and the second operating system, and the method can include the following steps:
  • the target wake-up module When the first operating system and/or the second operating system are in the sleep state, if the target wake-up module generates a wake-up signal, control the target operating system corresponding to the target wake-up module to switch from the sleep state to the running state according to the wake-up signal .
  • the electronic device may include multiple different operating systems, for example, 2, 3 or 4, which is not limited herein. It can be understood that, in order to facilitate the description of the method for waking up the operating system disclosed in the embodiment of the present application, the embodiment of the present application uses two operating systems (namely, the first operating system and the second operating system) for description, and should not be implemented in this application. Examples constitute limitations.
  • the target operating system corresponding to the target wake-up module may be the first operating system or the second operating system; if the target wake-up module is previously configured as the wake-up module of the first operating system, the target operating system is the first operating system system; similarly, if the target wake-up module is previously configured as a wake-up module of the second operating system, the target operating system is the second operating system.
  • the target wake-up module may be a display screen, a button or various sensors included in the electronic device, which is not limited here.
  • the dormancy state means that the operating system only runs the necessary functions without powering off, shuts down other functions except the necessary functions, and can be woken up in time to switch from the dormant state to the running state.
  • Necessary functions may include, but are not limited to, receiving wakeup signals, saving system data, and the like.
  • the electronic device can configure a corresponding wake-up module for each operating system, and the wake-up module can generate a wake-up signal when the wake-up condition is met, and then control the corresponding operating system to switch from the sleep state to the running state according to the wake-up signal.
  • the wake-up module detects that the target event is triggered, it may determine that the wake-up module meets the wake-up condition.
  • the modem module when the modem module detects that the call event is triggered, it can determine that the modem module meets the wake-up condition; when the touch screen detects that the touch event is triggered, it can determine that the touch screen meets the wake-up condition, which is not limited here.
  • the target wake-up module When the first operating system and/or the second operating system are in a dormant state, if the target wake-up module generates a wake-up signal, the target operation corresponding to the target wake-up module can be controlled according to the wake-up signal.
  • the system switches from the sleep state to the running state. That is to say, through the embodiment of the present application, the electronic device can automatically switch to the operating system matching the target wake-up module according to the target wake-up module, without manual switching by the user, thereby improving the intelligence of the electronic device.
  • the wake-up and switching process of the operating system are automatically carried out in the background of the electronic device, and the user does not feel the switching of the system, thereby achieving the effect of non-inductive switching and improving the user's comfort. Use experience.
  • FIG. 3 is a schematic flowchart of another method for waking up an operating system disclosed in an embodiment of the present application.
  • the method for waking up the operating system can be applied to the above-mentioned electronic device, and the electronic device can at least run the first operating system and the second operating system, and the method can include the following steps:
  • the target wake-up module When the first operating system and/or the second operating system are in the sleep state, if the target wake-up module generates a wake-up signal, control the target operating system corresponding to the target wake-up module to switch from the sleep state to the running state according to the wake-up signal .
  • the target operating system corresponding to the target wake-up module may be configured by an electronic device or by a user.
  • the target operating system may be the optimal operating system for processing the target event, the target event is an event that triggers the target wake-up module to generate a wake-up signal, and the optimal operating system refers to an operating system whose processing effect on the target event is greater than the effect threshold; Treatment effects include treatment quality and/or treatment effects.
  • the subsequently awakened target operating system can process the target event, so as to improve the processing effect of the target event.
  • the target operating system may be determined according to a system selection instruction input by the user, and the system selection instruction includes any one of the first operating system and the second operating system.
  • the system selection instruction includes the first operating system
  • the first operating system may be used as the target operating system corresponding to the target wake-up module.
  • the target operating system may be an operating system determined by the electronic device from the first operating system and the second operating system according to a matching rule, wherein the matching rule includes the operating system corresponding to each wake-up module.
  • the touch screen corresponds to the first operating system
  • the buttons correspond to the second operating system, etc., which are not limited herein.
  • the electronic device can use the first operating system as the target operating system; if the target wake-up module is a button, the electronic device can use the second operating system as the target operating system.
  • a target wake-up module usually only corresponds to one target operating system, so as to avoid conflicts caused by multiple target operating systems corresponding to the target wake-up module running simultaneously after the target wake-up module generates a wake-up signal.
  • a target operating system may correspond to N target wake-up modules; further, when M target wake-up modules in the N target wake-up modules generate a wake-up signal, the target operating system may switch from the dormant state to the running state; Wherein, N is a positive integer, and M is a positive integer less than or equal to N.
  • the target event may refer to various functional tasks that the electronic device can handle, including but not limited to: phone call event, alarm clock event, key input event, touch event, and the like.
  • the wake-up module can generate a corresponding wake-up signal.
  • the awakened target operating system is usually the optimal operating system for processing the target event corresponding to the wake-up signal, so after the target operating system switches from the sleep state to the running state, the target operating system corresponding to the wake-up signal can Events are processed to improve the processing effect on target events.
  • the target operating system may require other submodules in the electronic device or non-target operating systems to perform cooperative processing.
  • the target operating system handles the alarm clock event, it needs to output the prompt audio through the speaker module; Phone call events can be sent to non-target operating systems for processing.
  • the target operating system may determine the submodules and/or non-target operating systems required to process the target event corresponding to the wake-up signal; wherein, the non-target operating system may be the first operating system and the second In operating system, an operating system other than the target operating system.
  • the non-target operating system may be the second operating system; if the target operating system is the second operating system, the non-target operating system may be the first operating system.
  • the sub-module may be a hardware module included in the electronic device for processing a target event, such as a display screen, a speaker or various sensors, which is not limited herein.
  • the target operating system may send the target event to the submodule and/or the non-target operating system, so that the submodule and/or the non-target operating system process the target event.
  • Implementing the above method can further determine other sub-modules or non-target operating systems needed to process the target event, so that the target event can be processed by a more matching and professional module or operating system, so as to ensure that the target event is processed in a timely manner At the same time, the processing effect on the target event is improved.
  • the target operating system when the target operating system determines that the target event needs to be processed by the non-target operating system, and the non-target operating system is in a dormant state, it can send a running command to the non-target operating system, and then the non-target operating system When a running command is received, it can switch from the dormant state to the running state.
  • a data transmission link may be established between the target operating system and the non-target operating system, and then the target operating system may send an execution instruction to the non-target operating system through the data transmission link.
  • the target operating system and the non-target operating system may also transmit other data or instructions to each other through the data transmission link, which is not limited herein.
  • the target operating system when the non-target operating system is required to process the target event, the target operating system can directly trigger the non-target operating system in the dormant state to switch to the running state to process the target event without the need for the user to manually switch, thereby Improve the intelligence of electronic equipment.
  • the non-target operating system may determine that at least one common module in the electronic device is configured as the corresponding one of the non-target operating system. Wake up the module and control the non-target operating system to switch to sleep state.
  • the common module is a module that can be used as a wake-up module of the first operating system or the second operating system.
  • the first duration can be set by the developer based on a large amount of development data, and the typical value can be 30 seconds, 50 seconds, etc., which is not limited here
  • the idle state refers to a state in which the non-target operating system does not process the target event.
  • the inactive state may include a sleep state and a shutdown state.
  • the non-target operating system can automatically configure the wake-up module for itself when it is about to enter the dormant state, so that the subsequent non-target operating system can automatically switch to the running state according to the wake-up signal generated by the wake-up module, without manual operation by the user. Waking up or switching improves the intelligence of electronic devices.
  • the electronic device may further include one or more public peripheral devices, including but not limited to a display device, a speaker, a button, etc., which are not limited herein.
  • a display device including but not limited to a liquid crystal display, a liquid crystal display, etc.
  • a button a button
  • the electronic device includes multiple operating systems, in order to avoid conflicts caused by multiple operating systems controlling the same peripheral device at the same time, if the operating system wants to control the peripheral device, it needs to have the control right of the peripheral device to control peripheral devices.
  • the control right of the peripheral device of the electronic device can be switched to the target operating system, so that the target operating system can listen to the processing of the target event by the peripheral device.
  • the target operating system and the non-target operating system are in the sleep state before the target operating system corresponding to the target wake-up module is controlled from the sleep state to the running state according to the wake-up signal, the target operating system and the non-target operating system If neither has the control right of the peripheral device, the control right of the peripheral device of the electronic device can be directly assigned to the target operating system.
  • the non-target operating system if the non-target operating system is in the running state before the target operating system corresponding to the target wake-up module is controlled to switch from the sleep state to the running state according to the wake-up signal, and the non-target operating system has a peripheral device
  • the target operating system can send a switching instruction to the non-target operating system, and then the non-target operating system can switch the control right of the peripheral device to the target operating system according to the switching instruction.
  • the non-target operating system can also switch the target operating system to run in the foreground of the electronic device according to the switching instruction.
  • the control right of the peripheral device of the electronic device can be allocated to the target operating system, so that the target operating system can assist in processing the target event through the peripheral device, thereby improving the processing effect and efficiency of the target event; in addition , it can also prevent the control command sent by the target operating system to the peripheral device from conflicting with other operating systems, thereby ensuring the normal operation of the electronic device.
  • the target operating system can receive the input target operation through the peripheral device (for example: keys, touch screen or sound collection device), and then the target The operating system can process the received target operation.
  • the peripheral device for example: keys, touch screen or sound collection device
  • the target operating system can receive input touch operations through the touch screen, and then respond to the touch operations; for another example, the target operating system can collect sound information through a sound collection device, and then process the sound information. Not limited.
  • the target operating system can control the peripheral devices to perform corresponding operations according to the processing result, wherein the processing result is that the target operating system The result of processing the target event.
  • the target operating system processes the alarm clock event, and the processing result is that the display screen needs to be switched to the bright screen state and the alarm clock interface is displayed, and the prompt audio is output through the speaker; then the target operating system can control the display screen to switch to the bright screen state. screen status and display the alarm clock interface, and control the speaker to output prompt audio.
  • the electronic device after the electronic device has the control right of the peripheral device, it can receive the operation input by the user or output the processing result through the external device, so that the target operating system can improve the target event with the assistance of the peripheral device. processing effect and processing efficiency.
  • the target operating system may also receive the second processing result, and control the peripheral device to execute the corresponding Operation, wherein the second processing result is a result obtained by processing the target event by the non-target operating system.
  • the target operating system has the control right of the peripheral device.
  • the non-target operating system is already running, and the non-target operating system has control over the peripheral device, then the target operating system can send peripheral control commands to the non-target operating system, and then the non-target operating system can send
  • the peripheral device control instruction controls the peripheral device to perform the corresponding operation, and the peripheral device control instruction is obtained by the target operating system processing the target event.
  • the target operating system processes the alarm clock event, and the processing result includes outputting prompt audio through the speaker, then the target operating system can generate a peripheral control command for the speaker, and send the peripheral control command to the non-target The operating system, and then the non-target operating system can control the speaker to output prompt audio according to the peripheral device control instruction.
  • the target operating system when the target operating system runs in the background of the electronic device and does not have the control right of the peripheral device, the target operating system can send the processing result to the non-target operating system running in the foreground and having the control right of the peripheral device , so that the non-target operating system controls the external device to perform the corresponding operation according to the received processing result, thereby improving the flexibility of processing the target event inside the electronic device, and also improving the processing efficiency of the target event.
  • the target operating system processes the target event, and if the obtained processing result needs to use the peripheral device, then the control right of the peripheral device is allocated to the target operating system, or the target operating system generates a peripheral device Control commands are sent to a non-target operating system that has control of the peripheral.
  • the control right of the peripheral device may not be assigned to the target operating system, so as to avoid frequent switching of the control right of the peripheral device.
  • Implementing the methods disclosed in the above embodiments can automatically switch to the operating system that matches the target wake-up module according to the target wake-up module, without manual switching by the user, thereby improving the intelligence of the electronic device.
  • the wake-up and switching process of the operating system are automatically carried out in the background of the electronic device, and the user does not feel the switching of the system, thereby achieving the effect of non-inductive switching and improving the user's comfort.
  • the control right of the peripheral device of the electronic device can be switched to the target operating system, so that the target operating system can assist in processing the target event through the peripheral device, thereby improving The processing effect and processing efficiency of the target event; in addition, it can also prevent the control commands sent by the target operating system to the peripheral device from conflicting with other operating systems, ensuring the normal operation of the electronic device; and, the electronic device has a peripheral device.
  • the external device can receive the operation input by the user or output the processing result, so that the target operating system can improve the processing effect and efficiency of the target event with the assistance of the peripheral device.
  • FIG. 4 and FIG. 5 are only examples for convenience of describing the method, and should not be construed as limiting the embodiment of the present application.
  • FIG. 4 is a timing diagram disclosed in an embodiment of the present application.
  • step 1 when the wake-up module 130 is triggered by the target event, it can send a wake-up signal to the corresponding first operating system 110;
  • step 2 the first operating system 110 can switch from the dormant state to the running state when receiving the wake-up signal;
  • Step 3 the first operating system 110 determines the submodule and/or non-target operating system required to process the target event corresponding to the wake-up signal;
  • Step 4 If the second operating system 120 needs to process the target event, the first operating system 110 wakes up the second operating system 120, and sends the target event to the second operating system 120 for processing;
  • Step 5 the first operating system 110 When the switch to the sleep state is satisfied, configure the corresponding wake-up module and switch to the sleep state;
  • Step 6 The second operating system 120 processes the target event, and configures the corresponding wake
  • FIG. 5 is another timing diagram disclosed in the embodiment of the present application.
  • step 1 when the first operating system is in a dormant state and the second operating system is in a running state, step 1: when the wake-up module 130 is triggered by a target event, it can send a wake-up signal to the corresponding first operating system 110; step 2 : the first operating system 110 can switch from the dormant state to the running state when receiving the wake-up signal; step 3: the first operating system 110 processes the target event corresponding to the wake-up signal to obtain peripheral control instructions; step 4: The first operating system 110 sends a peripheral device control instruction to the second operating system 120; Step 5: The second operating system 120 controls the peripheral device to perform the corresponding operation according to the peripheral device control instruction; Step 6: The first operating system 110 meets the switching requirements. In the case of going to the dormant state, configure the corresponding wake-up module and switch to the dormant state.
  • FIG. 6 is another timing diagram disclosed in the embodiment of the present application.
  • step 1 when the first operating system is in a dormant state and the second operating system is in a running state, step 1: when the wake-up module 130 is triggered by a target event, it can send a wake-up signal to the corresponding first operating system 110; step 2 : the first operating system 110 can switch from the sleep state to the running state when receiving the wake-up signal; step 3: the first operating system 110 processes the target event corresponding to the wake-up signal to obtain a processing result; step 4: the first The operating system 110 sends a switching instruction to the second operating system 120; step 5: the second operating system 120 switches the control right of the peripheral device to the first operating system 110 according to the switching instruction; step 6: the first operating system 110 according to the processing As a result, the peripheral device is controlled to perform the corresponding operation; Step 7: the first operating system 110 configures the corresponding wake-up module and switches to the sleep state under the condition that the switch to the sleep
  • FIG. 7 is a schematic flowchart of another method for waking up an operating system disclosed in an embodiment of the present application.
  • the method for waking up the operating system can be applied to the above-mentioned electronic device, and the electronic device can at least run the first operating system and the second operating system, and the method can include the following steps:
  • the target wake-up module When the first operating system and/or the second operating system are in the sleep state, if the target wake-up module generates a wake-up signal, control the target operating system corresponding to the target wake-up module to switch from the sleep state to the running state according to the wake-up signal .
  • the operating system after controlling the target operating system corresponding to the target wake-up module to switch from the dormant state to the running state according to the wake-up signal; The operating system switches to hibernate state.
  • the target operating system detects that the display device of the electronic device is switched to the screen-off state, and the screen-off state reaches the screen-off time, the target operating system is controlled to switch to the sleep state.
  • the first duration may be greater than 0 seconds, such as 10 seconds, 20 seconds, etc., which is not limited herein. Therefore, after the screen of the display device is turned off, a certain buffer time can be given to the electronic device, thereby avoiding frequent switching of the target operating system in a short period of time.
  • the control according to the first wake-up signal when the first operating system and/or the second operating system are in a dormant state, if it is detected that the first wake-up signal generated by the first wake-up module for the target operating system and the signal generated by the second wake-up module for the For the second wake-up signal of other operating systems, when the importance of the first target event corresponding to the first wake-up signal is greater than the importance of the second target event corresponding to the second wake-up signal, the control according to the first wake-up signal The target operating system switches from the sleep state to the running state; wherein, the other operating systems are operating systems in the first operating system and the second operating system except the target operating system.
  • the operating system with higher importance is woken up to process the target event with higher importance.
  • the wake-up signal controls the target operating system to switch from the sleep state to the running state according to the fourth wake-up signal; wherein, the third wake-up signal generated by the public wake-up module can wake up the target operating system or other operating systems, and the other operating systems are the first operating system and an operating system other than the target operating system in the second operating system; the fourth wake-up signal generated by the dedicated wake-up module can only wake up the target operating system.
  • the corresponding operating system can be woken up preferentially according to the wake-up signal generated by the dedicated wake-up module, and the wake-up signal generated by the common wake-up module is prevented from erroneously waking up the target operating system, thereby improving the fault tolerance of the method.
  • the target operating system meets the requirements for switching to the dormant state, determine at least one shared module among the shared modules included in the electronic device through the target operating system and configure it as a wake-up module corresponding to the target operating system, and control the switching of the target operating system to sleep state.
  • the target operating system when it is determined that the target operating system is in the idle state for a second duration (the second duration can be set by the developer based on a large amount of development data, the typical value is 35 seconds, 45 seconds, etc., which is not limited here) , it can be determined that the target operating system satisfies the condition of switching to the sleep state; wherein, the idle state refers to a state in which the target operating system does not process the target event.
  • the non-working state when it is determined that the second association modules associated with the target operating system are all in the non-working state, it may be determined that the target operating system meets the conditions for switching to the dormant state; wherein, the second association module is required to target For a module controlled by the operating system, the non-working state may include a sleep state and a shutdown state.
  • the electronic device may include a first dedicated module corresponding to the target operating system, and/or a second dedicated module corresponding to a non-target operating system; wherein, the wake-up signal generated by the first dedicated module is only used to wake up the target operation system, the wake-up signal generated by the second dedicated module is only used to wake up the non-target operating system.
  • the first dedicated module and the second dedicated module may not be configured to the corresponding operating system, but may also wake up the corresponding operating module.
  • the electronic device can also include a shared module, which can be configured as a wake-up module of the first operating system or the second operating system, so the wake-up signal generated by the shared module can be used to wake up the target operation system or non-target operating system.
  • the shared module in order to avoid conflicts caused by simultaneous wake-up of the target operating system and non-target operating system, when the operating system is about to enter the sleep state, the shared module can be configured as a wake-up module corresponding to the operating system, so that subsequent The wakeup signal is only used to wake up the corresponding operating system.
  • the above method it is possible to determine that at least one shared module is configured as a wake-up module corresponding to the target operating system among the shared modules included in the electronic device, and the subsequent wake-up signal generated by the wake-up module is only used to wake up the target operating system, thereby avoiding the wake-up module
  • the generated wake-up signal causes multiple operating systems to be woken up at the same time to generate conflicts; at the same time, the controllability and flexibility of the wake-up control of the operating systems are improved.
  • the target operating system may determine at least one common module among the common modules included in the electronic device, and configure at least one common module as a wake-up module for the target operating system to take effect.
  • the common module can also realize other functions of itself.
  • the touch screen when used as a wake-up module, it can generate a wake-up signal if a touch event is detected, but it can also be used as an interaction window between the user and the electronic device to realize the functions of display and touch.
  • the shared module when the shared module is configured as the wake-up module to be activated by the target operating system, if the wake-up module to be validated is still running, the function currently executed by the wake-up module to be validated may conflict with the wake-up function, resulting in false wake-up target operating system.
  • the touch screen when used as a wake-up module, it can generate a wake-up signal if it detects a touch event, but when the touch screen is controlled by another operating system as an interactive window, it may also detect a touch event and wake up by mistake target operating system.
  • the target operating system may determine that the wake-up module to be effective is effective only when it is determined that the wake-up module to be effective is in an idle state;
  • the signal switches from the dormant state to the running state, and the idle state refers to a state in which the wake-up module to take effect is not executing tasks.
  • the target operating system can configure the corresponding wake-up module when it is about to enter the dormant state, and only confirm that the configuration takes effect when the configured wake-up module is in an idle state, so as to avoid the current execution function of the wake-up module to be effective and the wake-up function A conflict occurs, and the target operating system is woken up by mistake.
  • the target operating system may determine that the wake-up module to be activated takes effect only when it is determined that both the target operating system and the non-target operating system enter the sleep state.
  • the operating power consumption of the second operating system may be less than that of the first operating system; and optionally, if the electronic device is currently in the first operating mode and the target operating system is the second operating system , the target operating system can configure all the common modules included in the electronic device as wake-up modules corresponding to the target operating system.
  • all the shared modules included in the electronic device are configured as wake-up modules corresponding to the target operating system, wherein the electronic device is in the first operating system.
  • the running power consumption in the running mode is smaller than the running power consumption when the electronic device is in the second running mode.
  • the first operation mode may include a low power consumption mode
  • the second operation mode may include a high performance mode. It can be understood that, when the electronic device is in the low power consumption mode, if all the hardware modules are configured as the wake-up modules of the second operating system with low power consumption, the low power consumption can be woken up when any wake-up module generates a wake-up signal. Power consumption is the second operating system, so as to meet the needs of electronic equipment for low-power operation.
  • the first operating system is an Android operating system
  • the second operating system is an RTOS operating system
  • the operating power consumption of the RTOS operating system is less than that of the Android operating system, so if the electronic device is currently in low power consumption mode, all hardware modules can be configured as wake-up modules of the RTOS operating system.
  • any subsequent wake-up module When any subsequent wake-up module generates a wake-up signal, it will wake up the RTOS operating system to process the target event, so as to meet the requirements of low-power operation of electronic devices. Require.
  • all hardware modules can be configured as wake-up modules of a low-power operating system.
  • any subsequent wake-up module generates a wake-up signal, it will wake up the low-power consumption mode.
  • the operating system of the system processes the target event, so as to meet the requirements of the low power consumption operation of the electronic equipment.
  • the operating performance of the first operating system may be higher than that of the second operating system; further optionally, if the electronic device is currently in a high-performance mode and the target operating system is the first operating system, Then all the hardware modules included in the electronic device can be configured as wake-up modules corresponding to the target operating system.
  • the first operation can be woken up when any wake-up module generates a wake-up signal. system, so as to meet the requirements of high-performance operation of electronic equipment.
  • all hardware modules can be configured as wake-up modules of the high-performance operating system, and when any subsequent wake-up module generates a wake-up signal, it will wake up the high-performance operating system
  • the target event is processed to meet the requirements of high-performance operation of electronic equipment.
  • Implementing the methods disclosed in the above embodiments can automatically switch to the operating system that matches the target wake-up module according to the target wake-up module, without manual switching by the user, thereby improving the intelligence of the electronic device.
  • the wake-up and switching process of the operating system are automatically carried out in the background of the electronic device, and the user does not feel the switching of the system, thereby achieving the effect of non-inductive switching and improving the user's comfort.
  • At least one hardware module is configured as a wake-up module corresponding to the target operating system in the hardware modules included in the electronic device, and the wake-up signal generated by the wake-up module is only used to wake up the target operating system, thereby avoiding
  • the wake-up signal generated by the wake-up module causes multiple operating systems to be woken up at the same time to cause conflicts; at the same time, it also improves the controllability and flexibility of the wake-up control of the operating system; and the corresponding wake-up module can be configured when entering the sleep state, And only when the configured wake-up module is determined to be in the idle state is it determined that the configuration is effective, so as to avoid conflicts between the functions currently executed by the wake-up module to be effective and the wake-up function, and accidentally wake up the target operating system; and, the electronic device can be in low power consumption mode, all hardware modules are configured as wake-up modules of the low-power operating system.
  • any subsequent wake-up module When any subsequent wake-up module generates a wake-up signal, it will wake up the low-power operating system to process the target event, so as to meet the electronic The requirements for low-power operation of the device; and, when the electronic device is in the high-performance mode, all hardware modules can be configured as high-performance operating system wake-up modules.
  • any subsequent wake-up module When any subsequent wake-up module generates a wake-up signal, it will A high-performance operating system is awakened to process target events, thereby meeting the requirements for high-performance operation of electronic devices.
  • FIG. 8 is a schematic structural diagram of a device for waking up an operating system disclosed in an embodiment of the present application.
  • the apparatus may be applied to the above-mentioned electronic equipment, where the electronic equipment can run at least the first operating system and the second operating system, and the apparatus may include a wake-up unit 801, wherein:
  • the wake-up unit 801 is configured to control the target operating system corresponding to the target wake-up module from the sleep state according to the wake-up signal if the target wake-up module generates a wake-up signal when the first operating system and/or the second operating system are in a sleep state. Switch to running state.
  • the target wake-up module when the first operating system and/or the second operating system are in the dormant state, if the target wake-up module generates a wake-up signal, the target operating system corresponding to the target wake-up module can be controlled from the dormant state according to the wake-up signal. Switch to running state. That is to say, through the embodiment of the present application, the electronic device can automatically switch to the operating system matching the target wake-up module according to the target wake-up module, without manual switching by the user, thereby improving the intelligence of the electronic device.
  • the wake-up and switching process of the operating system are automatically carried out in the background of the electronic device, and the user does not feel the switching of the system, thereby achieving the effect of non-inductive switching and improving the user's comfort. Use experience.
  • the device shown in FIG. 8 may also include a processing unit not shown, where:
  • the processing unit is configured to process the target event corresponding to the wake-up signal through the target operating system after controlling the target operating system corresponding to the target wake-up module to switch from the sleep state to the running state according to the wake-up signal.
  • the awakened target operating system is usually the optimal operating system for processing the target event corresponding to the wake-up signal, so after the target operating system switches from the dormant state to the running state, the target operating system corresponding to the wake-up signal can Events are processed to improve the processing effect on target events.
  • the wakeup unit 801 is further configured to use the target operating system to determine the submodule and/or non-target operating system required to process the target event corresponding to the wake-up signal, and the non-target operating system is the first operating system and in the second operating system, an operating system other than the target operating system; and, sending target events to the submodule and/or the non-target operating system through the target operating system, so that the submodule and/or non-target operating system responds to The target event is processed, and the sub-module is a hardware module included in the electronic device that can execute the target event.
  • Implementing the above-mentioned device can further determine other sub-modules or non-target operating systems required to process the target event, so that the target event can be processed by a more matching and professional module or operating system, so as to ensure that the target event is processed in a timely manner At the same time, the processing effect on the target event is improved.
  • the device shown in FIG. 8 may also include a first sending unit not shown, where:
  • the first sending unit is configured to determine the submodule and/or non-target operating system required to process the target event corresponding to the wake-up signal through the target operating system, if the target event needs to be processed by the non-target operating system, and the non-target operating system In the dormant state, the target operating system sends a running instruction to the non-target operating system, so that the non-target operating system switches from the dormant state to the running state.
  • the target operating system when the non-target operating system is required to process the target event, the target operating system can directly trigger the non-target operating system in the dormant state to switch to the running state to process the target event without the need for the user to manually switch, thereby Improve the intelligence of electronic equipment.
  • the device shown in FIG. 8 may also include a first configuration unit not shown, wherein:
  • the first configuration unit is used to determine the non-target operation after the target event is sent to the sub-module and/or non-target operating system through the target operating system, so that the sub-module and/or non-target operating system processes the target event
  • the system satisfies the need to switch to the dormant state
  • the common module is a module that can be configured as a wake-up module of the first operating system or the second operating system.
  • the non-target operating system can automatically configure the wake-up module for itself when it is about to enter the dormant state, so that the subsequent non-target operating system can automatically switch to the running state according to the wake-up signal generated by the wake-up module, without manual operation by the user. Waking up or switching improves the intelligence of electronic devices.
  • the device shown in FIG. 8 may also include a second sending unit not shown, where:
  • the second sending unit is used to process the target event corresponding to the wake-up signal through the target operating system, if the non-target operating system is in the running state, and the non-target operating system has the control right of the peripheral device, then through the target operation
  • the system sends peripheral control commands to the non-target operating system, so that the non-target operating system controls the peripheral devices to perform corresponding operations according to the peripheral control commands.
  • the peripheral control commands are obtained by the target operating system from processing target events.
  • the operating system is an operating system other than the target operating system among the first operating system and the second operating system.
  • the target operating system when the target operating system runs in the background of the electronic device and does not have the control right of the peripheral device, the target operating system can send the processing result to the non-target operating system running in the foreground and having the control right of the peripheral device , so that the non-target operating system controls the external device to perform the corresponding operation according to the received processing result, thereby improving the flexibility of processing the target event inside the electronic device, and also improving the processing efficiency of the target event.
  • the processing unit is further configured to assign the control right of the peripheral device of the electronic device to the target operating system, so that the target operating system processes the target event through the peripheral device.
  • the control right of the peripheral device of the electronic device can be switched to the target operating system, so that the target operating system can assist in processing the target event through the peripheral device, thereby improving the processing effect and efficiency of the target event; in addition , it can also prevent the control command sent by the target operating system to the peripheral device from conflicting with other operating systems, thereby ensuring the normal operation of the electronic device.
  • the processing unit is further configured to, when the non-target operating system is running and the non-target operating system has the control right of the peripheral device, send A switching instruction, so that the non-target operating system switches the control right of the peripheral device to the target operating system according to the switching instruction, and the non-target operating system is an operating system other than the target operating system among the first operating system and the second operating system .
  • the control right of the peripheral device of the electronic device can be switched to the target operating system, so that the target operating system can assist in processing the target event through the peripheral device, thereby improving the processing effect and efficiency of the target event; in addition , it can also prevent the control command sent by the target operating system to the peripheral device from conflicting with other operating systems, thereby ensuring the normal operation of the electronic device.
  • the device shown in FIG. 8 may also include an unillustrated peripheral control unit, wherein:
  • the peripheral control unit is used to receive the input target operation through the peripheral device after switching the control right of the peripheral device of the electronic device to the target operating system, and process the target operation through the target operating system;
  • the target operating system controls the peripheral device to perform corresponding operations according to the processing result, and the processing result is the result obtained by the target operating system processing the target event.
  • the electronic device after the electronic device has the control right of the peripheral device, it can receive the operation input by the user or output the processing result through the external device, so that the target operating system can improve the target event with the assistance of the peripheral device. processing effect and processing efficiency.
  • the device shown in FIG. 8 may also include a second configuration unit not shown, wherein:
  • the second configuration unit is used to control the target operating system corresponding to the target wake-up module to switch from the dormant state to the running state according to the wake-up signal, and to switch to the dormant state through the target operating system when it is determined that the target operating system meets the requirements for switching to the dormant state.
  • the shared modules included in the device it is determined that at least one shared module is configured as a wake-up module corresponding to the target operating system, and controls the target operating system to switch to a sleep state, and the shared module is a wake-up module that can be configured as the first operating system or the second operating system module.
  • At least one hardware module can be determined among the hardware modules included in the electronic device to be configured as a wake-up module corresponding to the target operating system, and the subsequent wake-up signal generated by the wake-up module is only used to wake up the target operating system, thereby avoiding the wake-up module
  • the generated wake-up signal causes multiple operating systems to be woken up at the same time to cause conflicts; at the same time, it also improves the controllability and flexibility of the wake-up control of the operating systems.
  • the second configuration unit is further configured to determine at least one shared module among the hardware modules included in the electronic device, and configure the at least one shared module as a wake-up module for the target operating system to take effect; and , when it is determined that the wake-up module to be activated is in an idle state, determine that the wake-up module to be activated is effective, wherein the activated wake-up module is used to generate a wake-up signal, so that the target operating system switches from the sleep state to the running state according to the wake-up signal.
  • the target operating system can configure the corresponding wake-up module when it is about to enter the dormant state, and determine that the configuration takes effect only when the configured wake-up module is in an idle state, so as to avoid the difference between the currently executed function of the wake-up module to be effective and the wake-up function A conflict occurs, and the target operating system is woken up by mistake.
  • the second configuration unit is further configured to configure all common modules included in the electronic device as The wakeup module corresponding to the target operating system.
  • all hardware modules can be configured as wake-up modules of a low-power operating system.
  • any subsequent wake-up module generates a wake-up signal, it will wake up the low-power consumption mode.
  • the operating system of the system processes the target event, so as to meet the requirements of the low power consumption operation of the electronic equipment.
  • the second configuration unit is further configured to configure all common modules included in the electronic device as A wake-up module corresponding to the target operating system, wherein the operating power consumption of the electronic device in the first operating mode is smaller than the operating power consumption of the electronic device in the second operating mode.
  • all hardware modules can be configured as wake-up modules of the high-performance operating system, and when any subsequent wake-up module generates a wake-up signal, it will wake up the high-performance operating system
  • the target event is processed to meet the requirements of high-performance operation of electronic equipment.
  • FIG. 9 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • the electronic equipment may include:
  • a memory 901 storing executable program codes
  • a processor 902 coupled with a memory 901;
  • the processor 902 invokes the executable program code stored in the memory 901 to execute the methods for waking up the operating system disclosed in the foregoing embodiments.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein the computer program causes the computer to execute the methods for waking up the operating system disclosed in the foregoing embodiments.
  • the embodiment of the present application also discloses an application distribution platform, wherein the application distribution platform is used to distribute computer program products, wherein, when the computer program products are run on the computer, the computer is made to execute part of the method in the above method embodiments or all steps.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-accessible memory.
  • the technical solution of the present application in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to make a computer device (which may be a personal computer, server, or network device, etc., specifically, a processor in the computer device) execute some or all of the steps of the above-mentioned methods in various embodiments of the present application.
  • ROM read-only Memory
  • RAM random access memory
  • PROM programmable read-only memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • EEPROM Electronically Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

本申请实施例涉及电子设备技术领域,公开了一种操作***的唤醒方法及装置、电子设备、存储介质,该方法应用于电子设备,电子设备能够运行第一操作***和第二操作***,该方法包括:在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。实施本申请实施例,能够自动将电子设备切换至最优的操作***,提高了电子设备的智能化程度。

Description

操作***的唤醒方法及装置、电子设备、存储介质
本申请要求于2022年1月28日提交、申请号为202210106666.X、发明名称为“操作***的唤醒方法及装置、电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,具体涉及一种操作***的唤醒方法及装置、电子设备、存储介质。
背景技术
如今的电子设备可以同时安装有多个不同的操作***。其中,多个不同的操作***可以用于执行不同的任务,从而提高了电子设备的运算处理能力。
在实践中发现,在如今的电子设备中,不同操作***之间的切换通常需要用户手动进行,智能化程度低。
发明内容
本申请实施例公开了一种操作***的唤醒方法及装置、电子设备、存储介质,能够自动将电子设备切换至最优的操作***,提高了电子设备的智能化程度。
本申请实施例第一方面公开一种操作***的唤醒方法,应用于电子设备,所述电子设备能够运行第一操作***和第二操作***,所述方法包括:
在所述第一操作***和/或所述第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
本申请实施例第二方面公开一种操作***的唤醒装置,应用于电子设备,所述电子设备能够运行第一操作***和第二操作***,所述装置包括:
唤醒单元,用于在所述第一操作***和/或所述第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
本申请实施例第三方面公开一种电子设备,包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本申请实施例第一方面公开的操作***的唤醒方法。
本申请实施例第四方面公开一种计算机可读存储介质,其存储计算机程序,其中,所述计算机程序使得计算机执行本申请实施例第一方面公开的操作***的唤醒方法。
本申请实施例第五方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本申请实施例第一方面的任意一种方法的部分或全部步骤。
本申请实施例第六方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本申请实施例第一方面的任意一种方法的部分或全部步骤。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图进行简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例公开的一种多操作***的电子设备的结构示意图;
图2是本申请实施例公开的一种操作***的唤醒方法的流程示意图;
图3是本申请实施例公开的另一种操作***的唤醒方法的流程示意图;
图4是本申请实施例公开的一种时序图;
图5是本申请实施例公开的另一种时序图;
图6是本申请实施例公开的又一种时序图;
图7是本申请实施例公开的又一种操作***的唤醒方法的流程示意图;
图8是本申请实施例公开的一种操作***的唤醒装置的结构示意图;
图9是本申请实施例公开的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。此外可以理解,本申请实施例的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同的对象,而不是用于描述特定顺序。
本申请实施例公开了一种操作***的唤醒方法及装置、电子设备、存储介质,能够自动将电子设备切换至最优的操作***,提高了电子设备的智能化程度。
以下将结合具体实施例进行详细描述。
为了更加清楚地说明本申请实施例公开的一种操作***的唤醒方法及装置、电子设备、存储介质,首先介绍一种适用于该操作***的唤醒方法的应用场景。可选的,该方法可以应用于能够运行多个操作***的电子设备,包括但不限于手机、平板电脑等便携式设备,智能手表、智能手环等可穿戴设备,以及电视、台式电脑等台式设备,在此不作限定。
请参阅图1,图1是本申请实施例公开的一种多操作***的电子设备的结构示意图。可选的,该电子设备可以包括多个(包括两个及两个以上)不同的操作***,图1仅是示例性地示出两个操作***(即第一操作***110和第二操作***120),不应对本申请实施例构成限定。
可以理解的是,第一操作***110与第二操作***120的运算处理能力及运行功耗可以是不同的。可选的,第一操作***110可以包括但不限于Android(安卓)操作***、Linux操作***,第二操作***120可以包括但不限于实时操作***(Real Time Operating System,RTOS)、windows操作***。进一步地,电子设备还可以包括一个或多个硬件模块,硬件模块可以包括但不限于按键、触控屏以及传感器。可选的,部分硬件模块在操作***处于休眠状态时仍可以处于运行状态,处于运行状态的硬件模块在满足唤醒条件时可以产生唤醒信号,进而根据唤醒信号控制对应的操作***从休眠状态切换至运行状态。举例来说,触控屏对应的操作***为第一操作***,则在第一操作***处于休眠状态的情况下,若触控屏检测到触控信号,则触控屏可以产生唤醒信号,以通过唤醒信号唤醒第一操作***。
对此,电子设备可以为各个操作***配置一个或多个的硬件模块作为唤醒模块,以通过唤醒模块产生的唤醒信号来自动唤醒对应的操作***。无需用户手动进行切换,从而提高了电子设备的智能化程度。
可选的,操作***对应的唤醒模块可以由电子设备或者用户根据需求进行灵活配置,在此不作限定。需要说明的是,图1中示例性地将硬件模块1、硬件模块2配置为第一操作***110的唤醒模块,将硬件模块3、硬件模块4…以及硬件模块n配置为第二操作***120的唤醒模块,不应对本申请实施例构成限定。
基于此,以下内容对本申请实施例公开的操作***的唤醒方法进行介绍。
请参阅图2,图2是本申请实施例公开的一种操作***的唤醒方法的流程示意图。该操作***的唤醒方法可以应用于上述的电子设备,该电子设备至少能够运行第一操作***和第二操作***,该方法可以包括以下步骤:
202、在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
本申请实施例中,电子设备可以包括多个不同的操作***,例如:2个、3个或者4个,在此不作限定。可以理解的是,为了方便对本申请实施例公开的操作***的唤醒方法进行说明,本申请实施例以两个操作***(即第一操作***和第二操作***)进行说明,不应对本申请实施例构成限定。
本申请实施例中,目标唤醒模块对应的目标操作***可以是第一操作***或者第二操作***;若目标唤醒模块之前被配置为第一操作***的唤醒模块,则目标操作***为第一操作***;同理的,若目标唤醒模块之前被配置为第二操作***的唤醒模块,则目标操作***为第二操作***。目标唤醒模块可以为电子设备包括的显示屏、按键或者各种传感器,在此不作限定。
休眠状态是指操作***在不掉电的情况下,仅运行必要功能,关闭除必要功能外的其他功能,并且能够被及时地唤醒,从休眠状态切换到运行状态。必要功能可以包括但不限于接收唤醒信号、保存***数据等。
在相关技术中,当操作***处于休眠状态时,通常需要用户手动进行唤醒,以切换至用户想要切换的操作***,过程操作繁琐,且智能化程度低。
而本申请实施例中,电子设备可以为各个操作***配置对应的唤醒模块,唤醒模块在满足唤醒条件时可以产生唤醒信号,进而可以根据唤醒信号控制对应的操作***从休眠状态切换至运行状态。无需用户手动进行切换,从而提高了电子设备的智能化程度。可选的,唤醒模块在检测到目标事件触发时,可以确定唤醒模块满足唤醒条件。例如:调制解调器(Modem)模块在检测到呼叫事件触发时,可以确定调制解调器模块满足唤醒条件;触控屏在检测到触控事件触发时,可以确定触控屏满足唤醒条件,在此不作限定。
实施上述各实施例公开的方法,在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则可以根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。也就是说,通过本申请实施例,电子设备可以根据目标唤醒模块的不同自动切换至与目标唤醒模块相匹配的操作***,无需用户手动进行切换,从而提高了电子设备的智能化程度。此外,本申请实施例中,操作***的唤醒和切换过程都是在电子设备的后台自动进行的,对此用户对***的切换并无感觉,从而达到了无感切换的效果,提高了用户的使用体验度。
请参阅图3,图3是本申请实施例公开的另一种操作***的唤醒方法的流程示意图。该操作***的唤醒方法可以应用于上述的电子设备,该电子设备至少能够运行第一操作系 统和第二操作***,该方法可以包括以下步骤:
302、在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
本申请实施例中,目标唤醒模块对应的目标操作***可以是电子设备或者用户配置的。可选的,目标操作***可以是处理目标事件的最优操作***,目标事件是触发目标唤醒模块产生唤醒信号的事件,最优操作***是指对目标事件的处理效果大于效果阈值的操作***;处理效果包括处理质量和/或处理效果。对此,后续被唤醒的目标操作***可以对目标事件进行处理,以提高对目标事件的处理效果。
可选的,目标操作***可以是根据用户输入的***选择指令确定的,***选择指令包括第一操作***和第二操作***中的任一个操作***。
举例来说,***选择指令包括第一操作***,则可以将第一操作***作为目标唤醒模块对应的目标操作***。
在另一种实施例中,目标操作***可以是电子设备根据匹配规则,在第一操作***和第二操作***中确定出的一个操作***,其中,匹配规则包括各个唤醒模块对应的操作***。例如:触控屏对应第一操作***,按键对应第二操作***等,在此不作限定。进一步举例来说,假设目标唤醒模块为触控屏,则电子设备可以将第一操作***作为目标操作***;若目标唤醒模块为按键,则电子设备可以将第二操作***作为目标操作***。
需要进一步说明的是,一个目标唤醒模块通常仅对应一个目标操作***,以避免目标唤醒模块产生唤醒信号之后,目标唤醒模块对应的多个目标操作***同时运行而产生冲突。可选的,一个目标操作***可以对应N个目标唤醒模块;进一步地在N个目标唤醒模块中的M个目标唤醒模块产生唤醒信号的情况下,目标操作***可以从休眠状态切换至运行状态;其中,N为正整数,M为小于或等于N的正整数。
304、通过所述目标操作***对所述唤醒信号对应的目标事件进行处理。
本申请实施例中,目标事件可以是指电子设备能够处理的各种功能任务,包括但不限于:电话呼叫事件、闹钟事件、按键键入事件、触控事件等。目标事件的触发被唤醒模块检测到后,唤醒模块可以产生对应的唤醒信号。
如上所述,被唤醒的目标操作***通常是处理唤醒信号对应的目标事件的最优操作***,所以在目标操作***从休眠状态切换至运行状态之后,可以通过目标操作***对唤醒信号对应的目标事件进行处理,以提高对目标事件的处理效果。
可以理解的是,目标操作***在处理目标事件的过程中,可能需要电子设备中的其他子模块或者非目标操作***进行协同处理。例如,目标操作***在处理闹钟事件时,需要通过扬声模块来输出提示音频;又例如,目标操作***在处理电话呼叫事件时,而由于非目标操作***才拥有接听的权限,则目标操作***可以将电话呼叫事件发送给非目标操作***进行处理。
对此,在一种实施例中,目标操作***可以确定处理唤醒信号对应的目标事件所需要的子模块和/或非目标操作***;其中,非目标操作***可以是第一操作***和第二操作***中,除目标操作***之外的操作***。例如:若目标操作***为第一操作***,则非目标操作***可以是第二操作***;若目标操作***为第二操作***,则非目标操作***可以是第一操作***。子模块可以是电子设备包括的硬件模块中用于处理目标事件的硬件模块,例如:显示屏、扬声器或者各种传感器,在此不作限定。
进一步地,目标操作***可以将目标事件发送给子模块和/或非目标操作***,以使得子模块和/或非目标操作***对目标事件进行处理。
实施上述方法,可以进一步确定出处理目标事件需要的其他子模块或者非目标操作***,以使得目标事件可以由更加匹配、更加专业的模块或者操作***进行处理,从而在保证目标事件被及时处理的同时,提高了对目标事件的处理效果。
作为一种可选的实施方式,目标操作***在确定目标事件需要非目标操作***进行处理,且非目标操作***处于休眠状态时,可以向非目标操作***发送运行指令,进而非目标操作***在接收到运行指令时,可以从休眠状态切换至运行状态。
可选的,目标操作***和非目标操作***之间可以建立有数据传输链路,进而目标操作***可以通过数据传输链路向非目标操作***发送运行指令。在另一种实施例中,目标操作***和非目标操作***还可以通过数据传输链路相互传输其他的数据或者指令,在此不作限定。
实施上述方法,在需要非目标操作***处理目标事件时,目标操作***可以直接触发处于休眠状态的非目标操作***切换至运行状态,以对目标事件进行处理,而不需要用户手动进行切换,从而提高电子设备的智能化程度。
在另一种实施例中,在确定非目标操作***满足切换至休眠状态的情况下,非目标操作***可以在电子设备包括的共用模块中确定出至少一个共用模块配置为非目标操作***对应的唤醒模块,并控制非目标操作***切换至休眠状态。其中,共用模块是可以作为第一操作***或者第二操作***的唤醒模块的模块。
可选的,在确定非目标操作***处于空闲状态达到第一时长(第一时长可以由开发人员根据大量的开发数据设定,典型值可以是30秒、50秒等,在此不作限定)时,可以确定非目标操作***满足切换至休眠状态的情况;其中,空闲状态是指非目标操作***未处理目标事件的状态。
在另一种实施例中,在确定与非目标操作***相关联的第一关联模块都处于未工作状态时,可以确定非目标操作***满足切换至休眠状态的情况;其中,第一关联模块是需要非目标操作***进行控制的模块,未工作状态可以包括休眠状态和关闭状态。
实施上述方法,非目标操作***可以在即将进入休眠状态时,自动为自己配置唤醒模块,以使得后续非目标操作***可以根据唤醒模块产生的唤醒信号自动切换至运行状态,而不需要用户手动进行唤醒或者切换,提高了电子设备的智能化程度。
本申请实施例中,电子设备还可以包括有一种或多种公共外设装置,包括但不限于显示装置、扬声器、按键等,在此不作限定。可以理解的是,由于电子设备包括多个操作***,为了避免多个操作***同时控制同一个外设装置而产生冲突,所以操作***想要控制外设装置,则需要拥有外设装置的控制权才能控制外设装置。对此可选的,可以将电子设备的外设装置的控制权切换给目标操作***,以使得目标操作***可以听过外设装置对目标事件处理。
可选的,若在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之前,目标操作***和非目标操作***都处于休眠状态,则目标操作***和非目标操作***都未拥有外设装置的控制权,则可以直接将电子设备的外设装置的控制权配置给目标操作***。
在另一种实施例中,若在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之前,非目标操作***处于运行状态,且非目标操作***拥有外设装置的控制权,则目标操作***可以向非目标操作***发送切换指令,进而非目标操作***可以根据切换指令将外设装置的控制权切换给目标操作***。可选的,非目标操作***还可以根据切换指令将目标操作***切换至电子设备的前台运行。
实施上述方法,可以将电子设备的外设装置的控制权配置给目标操作***,以使得目 标操作***可以通过外设装置协助处理目标事件,从而提高了对目标事件的处理效果和处理效率;此外,也可以避免目标操作***对外设装置发送的控制指令与其他操作***产生冲突,保证了电子设备的正常运行。
进一步地,在将电子设备的外设装置的控制权配置给目标操作***之后,目标操作***可以通过外设装置(例如:按键、触控屏或者声音采集装置)接收输入的目标操作,进而目标操作***可以对接收到目标操作进行处理。
例如,目标操作***可以通过触控屏接收输入的触控操作,进而对触控操作进行响应处理;又例如,目标操作***可以通过声音采集装置采集声音信息,进而对声音信息进行处理,在此不作限定。
在另一种实施例中,在将电子设备的外设装置的控制权配置给目标操作***之后,目标操作***可以根据处理结果控制外设装置执行对应的操作,其中,处理结果是目标操作***对目标事件进行处理得到的结果。
举例来说,目标操作***对闹钟事件进行处理,得到的处理结果是需要将显示屏切换至亮屏状态并显示闹钟界面,以及通过扬声器输出提示音频;则目标操作***可以控制显示屏切换至亮屏状态并显示闹钟界面,以及控制扬声器输出提示音频。
实施上述方法,电子设备在拥有外设装置的控制权之后,可以通过外置装置来接收用户输入的操作或者对处理结果进行输出,使得目标操作***可以在外设装置的协助下,提高对目标事件的处理效果和处理效率。
在又一种实施例中,在将电子设备的外设装置的控制权配置给目标操作***之后,目标操作***还可以接收第二处理结果,并根据第二处理结果控制外设装置执行对应的操作,其中,第二处理结果是非目标操作***对目标事件进行处理得到的结果。
以上介绍的是目标操作***拥有外设装置控制权的情况,而在另一些可选的实施例中,若在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之前,非目标操作***已经处于运行状态,且非目标操作***拥有外设装置的控制权,则目标操作***可以向非目标操作***发送外设控制指令,进而非目标操作***可以根据目标操作***发送的外设控制指令控制外设装置执行对应的操作,该外设控制指令是目标操作***对目标事件进行处理得到的。
举例来说,目标操作***对闹钟事件进行处理,得到的处理结果中包括通过扬声器输出提示音频,则目标操作操作***可以生成针对扬声器的外设控制指令,并将外设控制指令发送给非目标操作***,进而非目标操作***可以根据外设控制指令控制扬声器输出提示音频。
实施上述方法,当目标操作***在电子设备的后台运行,且未拥有外设装置的控制权时,目标操作***可以将处理结果发送给在前台运行且拥有外设装置的控制权的非目标操作***,以使得非目标操作***根据接收到处理结果控制外置装置执行对应的操作,从而提高了电子设备内部在处理目标事件的灵活性,也提高了对目标事件的处理效率。
需要进一步说明的是,目标操作***对目标事件进行处理,若得到的处理结果需要使用到外设装置,则才将外设装置的控制权配置给目标操作***,或者让目标操作***生成外设控制指令发送给拥有外设控制权的非目标操作***。可选的,若得到的处理结果不需要使用到外设装置,则可以不将外设装置的控制权配置给目标操作***,以避免频繁地切换外设装置的控制权。
实施上述各实施例公开的方法,可以根据目标唤醒模块的不同自动切换至与目标唤醒模块相匹配的操作***,无需用户手动进行切换,从而提高了电子设备的智能化程度。此外,本申请实施例中,操作***的唤醒和切换过程都是在电子设备的后台自动进行的,对 此用户对***的切换并无感觉,从而达到了无感切换的效果,提高了用户的使用体验度;以及,可以进一步确定出处理目标事件需要的其他子模块或者非目标操作***,以使得目标事件可以由更加匹配、更加专业的模块或者操作***进行处理,从而在保证目标事件被及时处理的同时,提高了对目标事件的处理效果;以及,可以将电子设备的外设装置的控制权切换给目标操作***,以使得目标操作***可以通过外设装置协助处理目标事件,从而提高了对目标事件的处理效果和处理效率;此外,也可以避免目标操作***对外设装置发送的控制指令与其他操作***产生冲突,保证了电子设备的正常运行;以及,电子设备在拥有外设装置的控制权之后,可以通过外置装置来接收用户输入的操作或者对处理结果进行输出,使得目标操作***可以在外设装置的协助下,提高对目标事件的处理效果和处理效率。
为了更加清楚地说明本申请实施例公开的操作***的唤醒方法,以下通过图4和图5对该方法从时序的角度进行介绍。可以理解的是,图4和图5仅是为了方便说明该方法作出的示例,不应对本申请实施例构成限定。
请参阅图4,图4是本申请实施例公开的一种时序图。其中,在第一操作***110和第二操作***120都处于休眠状态的情况下,步骤1:唤醒模块130在被目标事件触发时,可以向对应的第一操作***110发送唤醒信号;步骤2:第一操作***110在接收到唤醒信号时,可以从休眠状态切换至运行状态;步骤3:第一操作***110确定处理唤醒信号对应的目标事件需要的子模块和/或非目标操作***;步骤4:若需要第二操作***120处理目标事件,则第一操作***110唤醒第二操作***120,并将目标事件发送给第二操作***120进行处理;步骤5:第一操作***110在满足切换至休眠状态的情况下,配置对应的唤醒模块并切换至休眠状态;步骤6:第二操作***120对目标事件进行处理,并在满足切换至休眠状态的情况下,配置对应的唤醒模块然后切换至休眠状态。
请参阅图5,图5是本申请实施例公开的另一种时序图。其中,在第一操作***处于休眠状态,第二操作***处于运行状态的情况下,步骤1:唤醒模块130在被目标事件触发时,可以向对应的第一操作***110发送唤醒信号;步骤2:第一操作***110在接收到唤醒信号时,可以从休眠状态切换至运行状态;步骤3:第一操作***110对唤醒信号对应的目标事件进行处理,以得到外设控制指令;步骤4:第一操作***110向第二操作***120发送外设控制指令;步骤5:第二操作***120根据外设控制指令控制外设装置执行对应的操作;步骤6:第一操作***110在满足切换至休眠状态的情况下,配置对应的唤醒模块并切换至休眠状态。
请参阅图6,图6是本申请实施例公开的又一种时序图。其中,在第一操作***处于休眠状态,第二操作***处于运行状态的情况下,步骤1:唤醒模块130在被目标事件触发时,可以向对应的第一操作***110发送唤醒信号;步骤2:第一操作***110在接收到唤醒信号时,可以从休眠状态切换至运行状态;步骤3:第一操作***110对唤醒信号对应的目标事件进行处理,以得到处理结果;步骤4:第一操作***110向第二操作***120发送切换指令;步骤5:第二操作***120根据切换指令,将外设装置的控制权切换给第一操作***110;步骤6:第一操作***110根据处理结果控制外设装置执行对应的操作;步骤7:第一操作***110在满足切换至休眠状态的情况下,配置对应的唤醒模块并切换至休眠状态。
请参阅图7,图7是本申请实施例公开的又一种操作***的唤醒方法的流程示意图。该操作***的唤醒方法可以应用于上述的电子设备,该电子设备至少能够运行第一操作***和第二操作***,该方法可以包括以下步骤:
702、在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产 生唤醒信号,则根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
在一种实施例中,在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之后;若目标操作***检测到电子设备的显示装置切换至熄屏状态,则控制目标操作***切换至休眠状态。
可选的,若目标操作***检测到电子设备的显示装置切换至熄屏状态,且处于熄屏状态达到熄屏时长,则控制目标操作***切换至休眠状态。
其中,考虑到如果显示装置一旦熄屏就将目标操作***切换至休眠状态,而短时间内显示装置又切换至亮屏状态,需要使用目标操作***,则目标操作***又需要切换至运行状态,这种情况将导致目标操作***在短时间内频繁地切换操作***,从而可能影响电子设备的正常运行。对此可选的,第一时长可以大于0秒,例如10秒、20秒等,在此不作限定。从而可以在显示装置熄屏之后,给电子设备一定的缓冲时间,进而避免了在短时间内频繁地切换目标操作***的情况。
可选的,在第一操作***和/或第二操作***处于休眠状态的情况下,若检测到第一唤醒模块产生的针对目标操作***的第一唤醒信号,以及第二唤醒模块产生的针对其他操作***的第二唤醒信号,则在第一唤醒信号对应的第一目标事件对应的重要程度大于第二唤醒信号对应的第二目标事件对应的重要程度的情况下,根据第一唤醒信号控制目标操作***从休眠状态切换至运行状态;其中,其他操作***是第一操作***和第二操作***中除目标操作***之外的操作***。
其中,若同时接收到针对不同操作***的唤醒信号,则唤醒重要程度较高的操作***,以处理重要程度较高的目标事件。
在第一操作***和/或第二操作***处于休眠状态的情况下,若检测到公共唤醒模块产生的针对目标操作***的第三唤醒信号,以及专属唤醒模块产生的针对目标操作***的第四唤醒信号,则根据第四唤醒信号控制目标操作***从休眠状态切换至运行状态;其中,公开唤醒模块产生的第三唤醒信号能够唤醒目标操作***或者其他操作***,其他操作***是第一操作***和第二操作***中除目标操作***之外的操作***;专属唤醒模块产生的第四唤醒信号只能唤醒目标操作***。
实施上述方法,可以优先根据专属唤醒模块产生的唤醒信号来唤醒对应的操作***,避免公共唤醒模块误产生的唤醒信号,错误地唤醒目标操作***,从而提高了该方法的容错性。
704、在确定目标操作***满足切换至休眠状态的情况下,通过目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为目标操作***对应的唤醒模块,并控制目标操作***切换至休眠状态。
本申请实施例中,在确定目标操作***处于空闲状态达到第二时长(第二时长可以由开发人员根据大量的开发数据设定,典型值为35秒、45秒等,在此不作限定)时,可以确定目标操作***满足切换至休眠状态的情况;其中,空闲状态是指目标操作***未处理目标事件的状态。
在另一种实施例中,在确定与目标操作***相关联的第二关联模块都处于未工作状态时,可以确定目标操作***满足切换至休眠状态的情况;其中,第二关联模块是需要目标操作***进行控制的模块,未工作状态可以包括休眠状态和关闭状态。
本申请实施例中,电子设备可以包括目标操作***对应的第一专属模块,和/或非目标操作***对应的第二专属模块;其中,第一专属模块产生的唤醒信号只用于唤醒目标操作***,第二专属模块产生的唤醒信号只用于唤醒非目标操作***。可选的,第一专属模块 和第二专属模块可以不用配置至对应的操作***,也可以唤醒对应的操作模块。
在另一种实施例中,电子设备还可以包括共用模块,共用模块是能够配置为第一操作***或者第二操作***的唤醒模块的模块,所以共用模块产生的唤醒信号可以用于唤醒目标操作***或者非目标操作***。对此,为了避免目标操作***和非目标操作***被同时唤醒而产生冲突,可以在操作***即将进入休眠状态时,将共用模块配置为一个操作***对应的唤醒模块,从而后续该共用模块产生的唤醒信号只用于唤醒对应的操作***。
实施上述方法,可以在电子设备包括的共用模块中确定出至少一个共用模块配置为目标操作***对应的唤醒模块,后续该唤醒模块产生的唤醒信号只用于唤醒目标操作***,从而避免了唤醒模块产生的唤醒信号使得多个操作***同时被唤醒而产生冲突;同时也提高了对操作***唤醒控制的可控性和灵活性。
在一种实施例中,目标操作***可以在电子设备包括的共用模块中确定出至少一个共用模块,并将至少一个共用模块配置为目标操作***待生效的唤醒模块。
可以理解的是,共用模块除了作为唤醒模块,其还可以实现其本身带有的其他的功能。举例来说,触控屏在作为唤醒模块时,若检测到触控事件可以产生唤醒信号,但是其还可以作为用户与电子设备的交互窗口,实现显示、触控的功能。对此,当共用模块被配置为目标操作***待生效的唤醒模块时,若待生效的唤醒模块还处于运行状态,则待生效的唤醒模块当前执行的功能可能与唤醒功能产生冲突,而误唤醒目标操作***。
举例来说,触控屏在作为唤醒模块时,若检测到触控事件可以产生唤醒信号,但是触控屏在被其他操作***控制作为交互窗口时,也可能检测到触控事件,从而误唤醒目标操作***。
对此可选的,目标操作***可以在确定待生效的唤醒模块处于空闲状态时,才确定待生效的唤醒模块生效;其中,生效的唤醒模块用于生成唤醒信号,以使得目标操作***根据唤醒信号从休眠状态切换至运行状态,空闲状态是指待生效的唤醒模块未在执行任务的状态。
实施上述方法,目标操作***可以在将进入休眠状态时配置对应的唤醒模块,并在确定配置的唤醒模块处于空闲状态时才确定配置生效,以避免待生效的唤醒模块当前执行的功能与唤醒功能产生冲突,而误唤醒目标操作***。
在另一种实施例中,目标操作***可以在确定目标操作***和非目标操作***都进入休眠状态时,才确定待生效的唤醒模块生效。
需要说明的是,若除目标操作***之外的其他操作***未进入休眠状态,则其他操作***在运行过程中可能还会调用到待生效的唤醒模块,进而可能导致待生效的唤醒模块在被调用的过程中误产生唤醒信号唤醒目标操作***。对此实施上述方法,可以在电子设备包括的操作***都进入休眠状态时才确定配置的待生效的唤醒模块生效,以避免待生效的唤醒模块在被调用的过程中误产生唤醒信号唤醒目标操作***。
在一种实施例中,第二操作***的运行功耗可以小于第一操作***的运行功耗;进而可选的,若电子设备当前处于第一运行模式,且目标操作***为第二操作***,则目标操作***可以将电子设备包括的共用模块都配置为目标操作***对应的唤醒模块。
可选的,若电子设备当前处于第二运行模式,且目标操作***为第一操作***,则将电子设备包括的共用模块都配置为目标操作***对应的唤醒模块,其中,电子设备处于第一运行模式时的运行功耗,小于电子设备处于第二运行模式时的运行功耗。
可选的,第一运行模式可以包括低功耗模式,第二运行模式可以包括高性能模式。可以理解的是,在电子设备处于低功耗模式的情况下,如果将所有的硬件模块都配置为低功耗的第二操作***的唤醒模块,则可以在任一个唤醒模块产生唤醒信号时唤醒低功耗第二 操作***,从而满足电子设备低功耗运行的需求。举例来说,第一操作***是安卓操作***,第二操作***是RTOS操作***;RTOS操作***的运行功耗是小于安卓操作***的运行功耗的,对此若电子设备当前处于低功耗模式,则可以将所有硬件模块都配置为RTOS操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒RTOS操作***对目标事件进行处理,从而满足电子设备低功耗运行的要求。
实施上述方法,可以在电子设备处于低功耗模式时,将所有的硬件模块都配置为低功耗的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒低功耗的操作***对目标事件进行处理,从而满足电子设备低功耗运行的要求。
在另一种实施例中,第一操作***的运行性能可以高于第二操作***的运行性能;进而可选的,若电子设备当前处于高性能模式,且目标操作***为第一操作***,则可以将电子设备包括的硬件模块都配置为目标操作***对应的唤醒模块。
同理的,在电子设备当前处于高性能模式的情况下,如果将所有的硬件模块都配置为高性能的第一操作***的唤醒模块,则可以在任一个唤醒模块产生唤醒信号时唤醒第一操作***,从而满足电子设备高性能运行的要求。
实施上述方法,可以在电子设备处于高性能模式时,将所有的硬件模块都配置为高性能的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒高性能的操作***对目标事件进行处理,从而满足电子设备高性能运行的要求。
实施上述各实施例公开的方法,可以根据目标唤醒模块的不同自动切换至与目标唤醒模块相匹配的操作***,无需用户手动进行切换,从而提高了电子设备的智能化程度。此外,本申请实施例中,操作***的唤醒和切换过程都是在电子设备的后台自动进行的,对此用户对***的切换并无感觉,从而达到了无感切换的效果,提高了用户的使用体验度;以及,可以在电子设备包括的硬件模块中确定出至少一个硬件模块配置为目标操作***对应的唤醒模块,后续该唤醒模块产生的唤醒信号只用于唤醒目标操作***,从而避免了唤醒模块产生的唤醒信号使得多个操作***同时被唤醒而产生冲突;同时也使得提高对操作***唤醒控制的可控性和灵活性;以及,可以在将进入休眠状态时配置对应的唤醒模块,并在确定配置的唤醒模块处于空闲状态时才确定配置生效,以避免待生效的唤醒模块当前执行的功能与唤醒功能产生冲突,而误唤醒目标操作***;以及,可以在电子设备处于低功耗模式时,将所有的硬件模块都配置为低功耗的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒低功耗的操作***对目标事件进行处理,从而满足电子设备低功耗运行的要求;以及,可以在电子设备处于高性能模式时,将所有的硬件模块都配置为高性能的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒高性能的操作***对目标事件进行处理,从而满足电子设备高性能运行的要求。
请参阅图8,图8是本申请实施例公开的一种操作***的唤醒装置的结构示意图。该装置可以应用于上述的电子设备,该电子设备至少能够运行第一操作***和第二操作***,该装置可以包括唤醒单元801,其中:
唤醒单元801,用于在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
实施上述装置,可以在第一操作***和/或第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则可以根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。也就是说,通过本申请实施例,电子设备可以根据目标唤醒模块的不同自动切换至与目标唤醒模块相匹配的操作***,无需用户手动进行切换,从而提高了电子设备的智能化程度。此外,本申请实施例中,操作***的唤醒和切换过程都是 在电子设备的后台自动进行的,对此用户对***的切换并无感觉,从而达到了无感切换的效果,提高了用户的使用体验度。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的处理单元,其中:
处理单元,用于在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之后,通过目标操作***对唤醒信号对应的目标事件进行处理。
实施上述装置,被唤醒的目标操作***通常是处理唤醒信号对应的目标事件的最优操作***,所以在目标操作***从休眠状态切换至运行状态之后,可以通过目标操作***对唤醒信号对应的目标事件进行处理,以提高对目标事件的处理效果。
作为一种可选的实施方式,唤醒单元801,还用于通过目标操作***确定处理唤醒信号对应的目标事件所需要的子模块和/或非目标操作***,非目标操作***是第一操作***和第二操作***中,除目标操作***之外的操作***;以及,通过目标操作***将目标事件发送给子模块和/或非目标操作***,以使得子模块和/或非目标操作***对目标事件进行处理,子模块是电子设备包括的能够执行目标事件的硬件模块。
实施上述装置,可以进一步确定出处理目标事件需要的其他子模块或者非目标操作***,以使得目标事件可以由更加匹配、更加专业的模块或者操作***进行处理,从而在保证目标事件被及时处理的同时,提高了对目标事件的处理效果。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的第一发送单元,其中:
第一发送单元,用于在通过目标操作***确定处理唤醒信号对应的目标事件所需要的子模块和/或非目标操作***之后,若目标事件需要非目标操作***进行处理,且非目标操作***处于休眠状态,则通过目标操作***向非目标操作***发送运行指令,以使得非目标操作***从休眠状态切换至运行状态。
实施上述装置,在需要非目标操作***处理目标事件时,目标操作***可以直接触发处于休眠状态的非目标操作***切换至运行状态,以对目标事件进行处理,而不需要用户手动进行切换,从而提高电子设备的智能化程度。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的第一配置单元,其中:
第一配置单元,用于在通过目标操作***将目标事件发送给子模块和/或非目标操作***,以使得子模块和/或非目标操作***对目标事件进行处理之后,在确定非目标操作***满足切换至休眠状态的情况下,通过非目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为非目标操作***对应的唤醒模块,并控制非目标操作***切换至休眠状态,共用模块是能够配置为第一操作***或者第二操作***的唤醒模块的模块。
实施上述装置,非目标操作***可以在即将进入休眠状态时,自动为自己配置唤醒模块,以使得后续非目标操作***可以根据唤醒模块产生的唤醒信号自动切换至运行状态,而不需要用户手动进行唤醒或者切换,提高了电子设备的智能化程度。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的第二发送单元,其中:
第二发送单元,用于在通过目标操作***对唤醒信号对应的目标事件进行处理之后,若非目标操作***处于运行状态,且所述非目标操作***拥有外设装置的控制权,则通过目标操作***向非目标操作***发送外设控制指令,以使得非目标操作***根据外设控制指令控制外设装置执行对应的操作,外设控制指令是目标操作***对目标事件进行处理得到的,非目标操作***是第一操作***和第二操作***中,除目标操作***之外的操作***。
实施上述装置,当目标操作***在电子设备的后台运行,且未拥有外设装置的控制权时,目标操作***可以将处理结果发送给在前台运行且拥有外设装置的控制权的非目标操作***,以使得非目标操作***根据接收到处理结果控制外置装置执行对应的操作,从而 提高了电子设备内部在处理目标事件的灵活性,也提高了对目标事件的处理效率。
作为一种可选的实施方式,处理单元,还用于将电子设备的外设装置的控制权配置给目标操作***,以使得目标操作***通过外设装置对目标事件进行处理。
实施上述装置,可以将电子设备的外设装置的控制权切换给目标操作***,以使得目标操作***可以通过外设装置协助处理目标事件,从而提高了对目标事件的处理效果和处理效率;此外,也可以避免目标操作***对外设装置发送的控制指令与其他操作***产生冲突,保证了电子设备的正常运行。
作为一种可选的实施方式,处理单元,还用于在非目标操作***处于运行状态,且非目标操作***拥有外设装置的控制权的情况下,通过目标操作***向非目标操作***发送切换指令,以使非目标操作***根据切换指令将外设装置的控制权切换给目标操作***,非目标操作***是第一操作***和第二操作***中,除目标操作***之外的操作***。
实施上述装置,可以将电子设备的外设装置的控制权切换给目标操作***,以使得目标操作***可以通过外设装置协助处理目标事件,从而提高了对目标事件的处理效果和处理效率;此外,也可以避免目标操作***对外设装置发送的控制指令与其他操作***产生冲突,保证了电子设备的正常运行。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的外设控制单元,其中:
外设控制单元,用于在将电子设备的外设装置的控制权切换给目标操作***之后,通过外设装置接收输入的目标操作,并通过目标操作***对目标操作进行处理;
或者,通过目标操作***根据处理结果,控制外设装置执行对应的操作,处理结果是目标操作***对目标事件进行处理得到的结果。
实施上述装置,电子设备在拥有外设装置的控制权之后,可以通过外置装置来接收用户输入的操作或者对处理结果进行输出,使得目标操作***可以在外设装置的协助下,提高对目标事件的处理效果和处理效率。
作为一种可选的实施方式,图8所示的装置还可以包括未图示的第二配置单元,其中:
第二配置单元,用于在根据唤醒信号控制与目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之后,在确定目标操作***满足切换至休眠状态的情况下,通过目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为目标操作***对应的唤醒模块,并控制目标操作***切换至休眠状态,共用模块是能够配置为第一操作***或者第二操作***的唤醒模块的模块。
实施上述装置,可以在电子设备包括的硬件模块中确定出至少一个硬件模块配置为目标操作***对应的唤醒模块,后续该唤醒模块产生的唤醒信号只用于唤醒目标操作***,从而避免了唤醒模块产生的唤醒信号使得多个操作***同时被唤醒而产生冲突;同时也使得提高对操作***唤醒控制的可控性和灵活性。
作为一种可选的实施方式,第二配置单元,还用于在电子设备包括的硬件模块中确定出至少一个共用模块,并将至少一个共用模块配置为目标操作***待生效的唤醒模块;以及,在确定待生效的唤醒模块处于空闲状态时,确定待生效的唤醒模块生效,其中,生效的唤醒模块用于生成唤醒信号,以使得目标操作***根据唤醒信号从休眠状态切换至运行状态。
实施上述装置,目标操作***可以在将进入休眠状态时配置对应的唤醒模块,并在确定配置的唤醒模块处于空闲状态时才确定配置生效,以避免待生效的唤醒模块当前执行的功能与唤醒功能产生冲突,而误唤醒目标操作***。
作为一种可选的实施方式,第二配置单元,还用于在电子设备当前处于第一运行模式,且目标操作***为第二操作***的情况下,将电子设备包括的共用模块都配置为目标操作 ***对应的唤醒模块。
实施上述装置,可以在电子设备处于低功耗模式时,将所有的硬件模块都配置为低功耗的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒低功耗的操作***对目标事件进行处理,从而满足电子设备低功耗运行的要求。
作为一种可选的实施方式,第二配置单元,还用于在电子设备当前处于第二运行模式,且目标操作***为第一操作***的情况下,将电子设备包括的共用模块都配置为目标操作***对应的唤醒模块,其中,电子设备处于第一运行模式时的运行功耗,小于电子设备处于第二运行模式时的运行功耗。
实施上述装置,可以在电子设备处于高性能模式时,将所有的硬件模块都配置为高性能的操作***的唤醒模块,对此后续任一个唤醒模块产生唤醒信号时,都会唤醒高性能的操作***对目标事件进行处理,从而满足电子设备高性能运行的要求。
请参阅图9,图9是本申请实施例公开的一种电子设备的结构示意图。如图9所示,该电子设备可以包括:
存储有可执行程序代码的存储器901;
与存储器901耦合的处理器902;
其中,处理器902调用存储器901中存储的可执行程序代码,执行上述各实施例公开的操作***的唤醒方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行上述各实施例公开的操作***的唤醒方法。
本申请实施例还公开一种应用发布平台,其中,应用发布平台用于发布计算机程序产品,其中,当计算机程序产品在计算机上运行时,使得计算机执行如以上各方法实施例中的方法的部分或全部步骤。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。
以上对本申请实施例公开的一种操作***的唤醒方法及装置、电子设备、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种操作***的唤醒方法,其特征在于,应用于电子设备,所述电子设备能够运行第一操作***和第二操作***,所述方法包括:
    在所述第一操作***和/或所述第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
  2. 根据权利要求1所述的方法,其特征在于,在所述根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之后,所述方法还包括:
    通过所述目标操作***对所述唤醒信号对应的目标事件进行处理。
  3. 根据权利要求2所述的方法,其特征在于,所述通过所述目标操作***对所述唤醒信号对应的目标事件进行处理,包括:
    通过所述目标操作***确定处理所述唤醒信号对应的目标事件所需要的子模块和/或非目标操作***,所述非目标操作***是所述第一操作***和第二操作***中除所述目标操作***之外的操作***,所述子模块是所述电子设备包括的能够执行所述目标事件的硬件模块;
    通过所述目标操作***将所述目标事件发送给所述子模块和/或非目标操作***,以使得所述子模块和/或非目标操作***对所述目标事件进行处理。
  4. 根据权利要求3所述的方法,其特征在于,在所述通过所述目标操作***确定处理所述唤醒信号对应的目标事件所需要的子模块和/或非目标操作***之后,所述方法还包括:
    若所述目标事件需要所述非目标操作***进行处理,且所述非目标操作***处于休眠状态,则通过所述目标操作***向所述非目标操作***发送运行指令,以使得所述非目标操作***从休眠状态切换至运行状态。
  5. 根据权利要求3或4所述的方法,其特征在于,在所述通过所述目标操作***将所述目标事件发送给所述子模块和/或非目标操作***,以使得所述子模块和/或非目标操作***对所述目标事件进行处理之后,所述方法还包括:
    在确定所述非目标操作***满足切换至休眠状态的情况下,通过所述非目标操作***在所述电子设备包括的共用模块中确定出至少一个共用模块配置为所述非目标操作***对应的唤醒模块,并控制所述非目标操作***切换至休眠状态,所述共用模块是能够配置为所述第一操作***或者所述第二操作***的唤醒模块的模块。
  6. 根据权利要求2所述的方法,其特征在于,在所述通过所述目标操作***对所述唤醒信号对应的目标事件进行处理之后,所述方法还包括:
    若非目标操作***处于运行状态,且所述非目标操作***拥有外设装置的控制权,则通过所述目标操作***向所述非目标操作***发送外设控制指令,以使得所述非目标操作***根据所述外设控制指令控制所述外设装置执行对应的操作,所述外设控制指令是所述目标操作***对所述目标事件进行处理得到的,所述非目标操作***是所述第一操作***和第二操作***中,除所述目标操作***之外的操作***。
  7. 根据权利要求2所述的方法,其特征在于,所述通过所述目标操作***对所述唤醒信号对应的目标事件进行处理,包括:
    将所述电子设备的外设装置的控制权配置给所述目标操作***,以使得所述目标操作***通过所述外设装置对所述目标事件进行处理。
  8. 根据权利要求7所述的方法,其特征在于,所述将所述电子设备的外设装置的控制权切换给所述目标操作***,包括:
    若非目标操作***处于运行状态,且所述非目标操作***拥有外设装置的控制权,则通过所述目标操作***向所述非目标操作***发送切换指令,以使所述非目标操作***根据所述切换指令将所述外设装置的控制权切换给所述目标操作***,所述非目标操作***是所述第一操作***和第二操作***中,除所述目标操作***之外的操作***。
  9. 根据权利要求7或8所述的方法,其特征在于,在所述将所述电子设备的外设装置的控制权切换给所述目标操作***之后,所述方法还包括:
    通过所述外设装置接收输入的目标操作,并通过所述目标操作***对所述目标操作进行处理;
    或者,通过所述目标操作***根据处理结果控制所述外设装置执行对应的操作,所述处理结果是所述目标操作***对所述目标事件进行处理得到的结果。
  10. 根据权利要求7所述的方法,其特征在于,在所述将所述电子设备的外设装置的控制权配置给所述目标操作***之后,所述方法还包括:
    通过所述目标操作***接收第二处理结果,并根据所述第二处理结果控制所述外设装置执行相应的操作,所述第二处理结果是非目标操作***对所述目标事件进行处理得到的结果,所述非目标操作***是所述第一操作***和第二操作***中除所述目标操作***之外的操作***。
  11. 根据权利要求1所述的方法,其特征在于,在所述根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态之后,所述方法还包括:
    在确定所述目标操作***满足切换至休眠状态的情况下,通过所述目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***对应的唤醒模块,并控制所述目标操作***切换至休眠状态,所述共用模块是能够配置为所述第一操作***或者所述第二操作***的唤醒模块的模块。
  12. 根据权利要求11所述的方法,其特征在于,在所述确定所述目标操作***满足切换至休眠状态的情况下,通过所述目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***对应的唤醒模块之前,所述方法还包括:
    在确定所述目标操作***处于空闲状态达到第二时长时,确定所述目标操作***满足切换至休眠状态,所述空闲状态是指所述目标操作***未处理目标事件的状态。
  13. 根据权利要求11所述的方法,其特征在于,在所述确定所述目标操作***满足切换至休眠状态的情况下,通过所述目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***对应的唤醒模块之前,所述方法还包括:
    在确定与所述目标操作***相关联的第二关联模块都处于未工作状态时,确定所述目标操作***满足切换至休眠状态,其中,所述第二关联模块是需要所述目标操作***进行控制的模块,所述未工作状态包括休眠状态和关闭状态。
  14. 根据权利要求11所述的方法,其特征在于,所述通过所述目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***对应的唤醒模块,包括:
    在所述电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***待生效的唤醒模块;
    在确定所述待生效的唤醒模块处于空闲状态时,确定所述待生效的唤醒模块生效,其中,生效的唤醒模块用于生成唤醒信号,以使得所述目标操作***根据所述唤醒信号从休眠状态切换至运行状态。
  15. 根据权利要求14所述的方法,其特征在于,在所述电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***待生效的唤醒模块之后,所述方法还包括:
    在确定所述目标操作***和所述非目标操作***都进入休眠状态时,确定所述待生效的唤醒模块生效。
  16. 根据权利要求11所述的方法,其特征在于,所述第二操作***的运行功耗小于所述第一操作***的运行功耗;所述通过所述目标操作***在电子设备包括的共用模块中确定出至少一个共用模块配置为所述目标操作***对应的唤醒模块,包括:
    若所述电子设备当前处于第一运行模式,且所述目标操作***为所述第二操作***,则通过所述目标操作***将所述电子设备包括的共用模块都配置为所述目标操作***对应的唤醒模块。
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    若所述电子设备当前处于第二运行模式,且所述目标操作***为所述第一操作***,则通过所述目标操作***将电子设备包括的共用模块都配置为所述目标操作***对应的唤醒模块,所述电子设备处于所述第一运行模式时的运行功耗,小于所述电子设备处于所述第二运行模式时的运行功耗。
  18. 一种操作***的唤醒装置,其特征在于,应用于电子设备,所述电子设备能够运行第一操作***和第二操作***,所述装置包括:
    唤醒单元,用于在所述第一操作***和/或所述第二操作***处于休眠状态的情况下,若目标唤醒模块产生唤醒信号,则根据所述唤醒信号控制与所述目标唤醒模块对应的目标操作***从休眠状态切换至运行状态。
  19. 一种电子设备,其特征在于,包括存储有可执行程序代码的存储器,以及与所述存储器耦合的处理器;其中,所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1~17任一项所述的方法。
  20. 一种计算机可读存储介质,其存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~17任一项所述的方法。
PCT/CN2022/139601 2022-01-28 2022-12-16 操作***的唤醒方法及装置、电子设备、存储介质 WO2023142764A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210106666.XA CN116560735A (zh) 2022-01-28 2022-01-28 操作***的唤醒方法及装置、电子设备、存储介质
CN202210106666.X 2022-01-28

Publications (1)

Publication Number Publication Date
WO2023142764A1 true WO2023142764A1 (zh) 2023-08-03

Family

ID=87470363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139601 WO2023142764A1 (zh) 2022-01-28 2022-12-16 操作***的唤醒方法及装置、电子设备、存储介质

Country Status (2)

Country Link
CN (1) CN116560735A (zh)
WO (1) WO2023142764A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160274654A1 (en) * 2012-09-13 2016-09-22 Atmel Corporation Voltage scaling system with sleep mode
CN106528092A (zh) * 2016-10-18 2017-03-22 珠海市魅族科技有限公司 ***唤醒方法及装置
CN107295166A (zh) * 2017-06-09 2017-10-24 青岛海信移动通信技术股份有限公司 一种双***移动终端的启动方法以及移动终端
CN110502928A (zh) * 2019-08-28 2019-11-26 上海金卓网络科技有限公司 双操作***、工作状态控制方法、装置及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160274654A1 (en) * 2012-09-13 2016-09-22 Atmel Corporation Voltage scaling system with sleep mode
CN106528092A (zh) * 2016-10-18 2017-03-22 珠海市魅族科技有限公司 ***唤醒方法及装置
CN107295166A (zh) * 2017-06-09 2017-10-24 青岛海信移动通信技术股份有限公司 一种双***移动终端的启动方法以及移动终端
CN110502928A (zh) * 2019-08-28 2019-11-26 上海金卓网络科技有限公司 双操作***、工作状态控制方法、装置及存储介质

Also Published As

Publication number Publication date
CN116560735A (zh) 2023-08-08

Similar Documents

Publication Publication Date Title
CN107483721B (zh) 基于黑屏手势的控制方法、装置、存储介质及移动终端
US7698584B2 (en) Method, apparatus and system for enabling a new data processing device operating state
CN107395889B (zh) 降低移动终端功耗的方法、装置、存储介质及移动终端
EP1591909B1 (en) Task-oriented processing as an auxiliary to primary computing environments
US5978923A (en) Method and apparatus for a computer power management function including selective sleep states
WO2020192019A1 (zh) 一种基于语音识别的电视唤醒方法、智能电视及存储介质
JP5809366B2 (ja) ポータブルコンピューティングデバイスにおいて要求をスケジューリングするための方法およびシステム
KR101324604B1 (ko) 다중 대기 상태 운용 방법 및 이를 적용한 방송수신장치
WO2020062669A1 (zh) 电器设备的控制方法、***、装置、设备及介质
EP3650983B1 (en) Method for managing trigger, and terminal device
JPH10293629A (ja) 集中した機能性を備える装置のためのパワー管理システム
JP2004334877A (ja) コンピュータデバイスに対する情報の補助処理のための方法およびシステム
WO2021109875A1 (zh) 实现游戏应用的方法、装置、存储介质及电子设备
CN110853644B (zh) 语音唤醒方法、装置、设备及存储介质
CN112114887A (zh) 被控设备、唤醒被控设备的方法及存储介质
KR100385020B1 (ko) 리모트 컨트롤러로 구동되는 컴퓨터 시스템의 자동 암호확인 방법
CN110502928B (zh) 双操作***、工作状态控制方法、装置及存储介质
US9672048B2 (en) Electronic device and method for waking up operating system thereof
WO2023142764A1 (zh) 操作***的唤醒方法及装置、电子设备、存储介质
US20200413344A1 (en) Control method and device
CN110543333A (zh) 针对处理器的休眠处理方法、装置、移动终端和存储介质
WO2023078262A1 (zh) 应用的处理方法、装置和电子设备
WO2023130866A1 (zh) 操作***的切换方法及装置、电子设备、存储介质
CN117501700A (zh) 应用唤醒方法、显示设备、移动终端及服务器
CN112269322A (zh) 智能设备的唤醒方法、装置、电子设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923550

Country of ref document: EP

Kind code of ref document: A1