A system hibernation method, device, equipment, storage medium and product

CN122963635APending Publication Date: 2026-10-23BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511445970.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-10
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

这一状态导致了持续的电力消耗问题,特别是当车辆长时间处于停止状态时,不必要的耗电将会电池寿命和用户体验

Benefits of technology

[0061]本发明公开的系统休眠方法首先在目标休眠模式下,若第二系统已完成休眠准备,则向第二系统发送休眠指示信号,令第二系统开始执行第二系统的进程挂起操作;最后确认第二系统进入休眠状态。本发明公开的系统休眠方法,通过在目标休眠模式下休眠第二系统,可以减少处理负载和能耗,降低不必要的数据交互,从而延长电池使用寿命。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122963635A_ABST
    Figure CN122963635A_ABST
Patent Text Reader

Abstract

The application discloses a system hibernation method, device, equipment, storage medium and product, and the method comprises the following steps: in a target hibernation mode, if a second system has completed hibernation preparation, a hibernation instruction signal is sent to the second system, so that the second system starts to perform a process suspension operation of the second system; and it is confirmed that the second system enters a hibernation state. The system hibernation method disclosed by the application can reduce processing load and energy consumption, reduce unnecessary data interaction, and prolong the service life of a battery by hibernating the second system in the target hibernation mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle control technology, and in particular to a system hibernation method, apparatus, device, storage medium, and product. Background Technology

[0002] The vehicle's System-on-Chip (SoC) is a core chip integrated into the automotive electronic control system, containing two operating systems. In Sentry Mode, the vehicle uses external sensors and cameras to monitor its surroundings in real time, intelligently identifying abnormal behavior and recording video while parked, while simultaneously sending alerts to the owner. In Sentry Mode, only one of the two systems on the SoC needs to provide the necessary functionality.

[0003] In existing technologies, when a vehicle is in Sentry mode, the SoC's two systems and related peripherals remain operational. This leads to continuous power consumption, especially when the vehicle is stationary for extended periods; unnecessary power consumption negatively impacts battery life and user experience. Summary of the Invention

[0004] This invention provides a system hibernation method, apparatus, device, storage medium, and product to reduce unnecessary energy consumption in vehicles.

[0005] According to one aspect of the present invention, a system hibernation method is provided, comprising:

[0006] In the target hibernation mode, if the second system has completed hibernation preparation, a hibernation indication signal is sent to the second system, causing the second system to start executing the process suspension operation of the second system;

[0007] Confirm that the second system has entered hibernation mode.

[0008] Furthermore, in response to the notification to enable the target hibernation mode, the second system performs a hibernation preparation operation.

[0009] Further, perform hibernation preparation operations, including:

[0010] Control the target application and target service corresponding to the second system to perform at least one of the following operations: requesting a CPU lock, releasing a CPU lock, saving target data, and terminating the target process; and / or

[0011] Control the target peripheral device corresponding to the second system to enter a low-power state.

[0012] Further, confirming that the second system has entered a hibernation state includes:

[0013] If a process suspension termination signal is received from the second system, it is confirmed that the second system has entered a hibernation state.

[0014] Furthermore, the method also includes:

[0015] If a wake-up command is received from the control unit before the process suspension end signal sent by the second system is received, the wake-up command is recorded, and the second system is woken up after the second system completes the process suspension operation.

[0016] Furthermore, waking up the second system includes:

[0017] In response to the wake-up command from the control unit, a wake-up signal is sent to the second system.

[0018] Furthermore, after confirming that the second system has entered a hibernation state, the process also includes:

[0019] The sleep state of the second system is fed back to the control unit.

[0020] Furthermore, after feeding back the sleep state of the second system to the control unit, the process also includes:

[0021] If the target hibernation mode is exited, the hibernation operation of the first system is executed.

[0022] Further, performing the hibernation operation of the first system includes:

[0023] Perform the hibernation preparation operation of the first system;

[0024] If hibernation preparation is complete, the process suspension operation of the first system is started, and a process suspension start signal is sent to the control unit.

[0025] If the process suspension operation of the first system has been completed, a process suspension end signal is sent to the control unit, and the sending of the delayed sleep command is stopped.

[0026] Furthermore, after initiating the process suspension operation, the following steps are also included:

[0027] If a wake-up command is received from the control unit, the wake-up command is recorded, and the first system is woken up after the first system completes the process suspension operation.

[0028] Furthermore, the method also includes:

[0029] In the target sleep mode, in response to the sleep command of the control unit, a delayed sleep command is sent to the control unit at a set frequency; wherein, the delayed sleep command is used to feed back the working status of the first system to the control unit.

[0030] According to another aspect of the present invention, a system hibernation device is provided, comprising:

[0031] The second system process suspension module is used to send a hibernation indication signal to the second system if the second system has completed hibernation preparation in the target hibernation mode, so that the second system can start executing the process suspension operation of the second system.

[0032] The hibernation state confirmation module is used to confirm that the second system has entered hibernation state.

[0033] Optionally, the device is also used for:

[0034] The second system responds to the notification to enable the target hibernation mode and performs a hibernation preparation operation.

[0035] Optionally, the device is also used for:

[0036] Control the target application and target service corresponding to the second system to perform at least one of the following operations: requesting a CPU lock, releasing a CPU lock, saving target data, and terminating the target process; and / or

[0037] Control the target peripheral device corresponding to the second system to enter a low-power state.

[0038] Optionally, the hibernation state confirmation module is also used for:

[0039] If a process suspension termination signal is received from the second system, it is confirmed that the second system has entered a hibernation state.

[0040] Optionally, the hibernation state confirmation module is also used for:

[0041] If a wake-up command is received from the control unit before the process suspension end signal sent by the second system is received, the wake-up command is recorded, and the second system is woken up after the second system completes the process suspension operation.

[0042] Optionally, the hibernation state confirmation module is also used for:

[0043] In response to the wake-up command from the control unit, a wake-up signal is sent to the second system.

[0044] Optionally, the device is also used for:

[0045] The sleep state of the second system is fed back to the control unit.

[0046] Optionally, the first system further includes a hibernation module, used to perform a hibernation operation of the first system if the target hibernation mode is exited.

[0047] Optionally, the hibernation module is also used for:

[0048] Perform the hibernation preparation operation of the first system;

[0049] If hibernation preparation is complete, the process suspension operation of the first system is started, and a process suspension start signal is sent to the control unit.

[0050] If the process suspension operation of the first system has been completed, a process suspension end signal is sent to the control unit, and the sending of the delayed sleep command is stopped.

[0051] Optionally, the hibernation module is also used for:

[0052] If a wake-up command is received from the control unit, the wake-up command is recorded, and the first system is woken up after the first system completes the process suspension operation.

[0053] Optionally, the device is also used for:

[0054] In the target sleep mode, in response to the sleep command of the control unit, a delayed sleep command is sent to the control unit at a set frequency; wherein, the delayed sleep command is used to feed back the working status of the first system to the control unit.

[0055] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0056] At least one processor; and

[0057] A memory communicatively connected to the at least one processor; wherein,

[0058] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the system hibernation method according to any embodiment of the present invention.

[0059] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the system hibernation method according to any embodiment of the present invention.

[0060] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program / instructions, which, when executed by a processor, implement the steps of the system hibernation method described in any embodiment of the present invention.

[0061] The system hibernation method disclosed in this invention first, in the target hibernation mode, if the second system has completed hibernation preparation, sends a hibernation indication signal to the second system, causing the second system to begin executing the process suspension operation; finally, it confirms that the second system has entered hibernation state. The system hibernation method disclosed in this invention, by hibernating the second system in the target hibernation mode, can reduce processing load and energy consumption, reduce unnecessary data interaction, and thus extend battery life.

[0062] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0063] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0064] Figure 1 This is a flowchart of a system hibernation method provided in Embodiment 1 of the present invention;

[0065] Figure 2 This is a flowchart of a system hibernation method provided in Embodiment 2 of the present invention;

[0066] Figure 3 This is a wake-up flowchart of a second system provided according to Embodiment 2 of the present invention;

[0067] Figure 4 This is a schematic diagram of a system hibernation process according to Embodiment 2 of the present invention;

[0068] Figure 5 This is a schematic diagram of a system hibernation device according to Embodiment 3 of the present invention;

[0069] Figure 6 This is a schematic diagram of the structure of an electronic device that implements the system hibernation method of Embodiment 4 of the present invention. Detailed Implementation

[0070] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0071] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0072] Example 1

[0073] Figure 1 This is a flowchart of a system hibernation method provided in Embodiment 1 of the present invention. This embodiment is applicable to vehicle energy saving. The method can be executed by a first system, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0074] S110. In the target hibernation mode, if the second system has completed hibernation preparation, a hibernation indication signal is sent to the second system to cause the second system to start executing the process suspension operation of the second system.

[0075] The target sleep mode can be the vehicle's sentry mode. In this mode, the vehicle uses external sensors and cameras to monitor the surrounding environment in real time, intelligently identifying abnormal behavior and recording video while the vehicle is parked, while simultaneously sending alerts to the owner. The Microcontroller Unit (MCU) is the core control unit of the automotive electronic system, equivalent to the car's "brain," responsible for coordinating and managing all electronic systems such as engine control, autonomous driving assistance, and the smart cockpit.

[0076] In this embodiment, the vehicle's System-on-Chip (SoC) is a core chip integrated into the automotive electronic control system, containing two operating systems: a first system and a second system. The first system is the main control system, providing necessary functional support in the target sleep mode, while the second system requires no operation in the target sleep mode. Therefore, in the target sleep mode, the second system can be put into sleep mode to reduce power consumption. Preferably, the first system can be a Linux system, and the second system can be an Android system, where Linux is a free and open-source operating system, and Android is an open-source operating system based on Linux.

[0077] Specifically, when the vehicle is locked, the MCU detects the door closing and locking signals, triggering the SOC's sleep protocol and sending a sleep command to the first system. Upon receiving the sleep command, if the vehicle is currently in the target sleep mode, the first system can continuously send delayed sleep commands to the control unit at a set frequency. These delayed sleep commands indicate to the control unit that the first system is still operational, ensuring that pre-sleep preparations, such as data write-to-disk writes, can be completed before the second system goes into sleep mode.

[0078] In this embodiment, the hibernation preparation of the second system includes processing of various applications and services related to the second system, as well as notifying the relevant peripherals of the second system to enter a low-power state.

[0079] Specifically, the second system can notify relevant applications and services via Binder and use the UART (Universal Asynchronous Receiver / Transmitter) protocol to notify relevant peripherals to enter a low-power state. Binder is an inter-process communication mechanism that supports both IPC (Inter-Process Communication) and RPC (Remote Procedure Call), while UART is an asynchronous serial communication protocol that enables full-duplex communication and is commonly used in embedded systems and sensor modules. In the second system, relevant applications and services can request CPU locks for power management to complete their pre-sleep processing, such as saving data and terminating unnecessary processes. Once all applications and services release the locks, it indicates that all tasks have been properly handled, and the second system is ready to sleep. The first system can coordinate with the second system via RPC and the Binder mechanism to confirm whether the second system has completed its sleep preparation. RPC is a communication protocol that allows different processes to call each other's methods; the client sends parameters to the server, and the server executes the parameters and returns the result.

[0080] Furthermore, if the second system has completed its hibernation preparation, the first system can send a hibernation indication signal to the second system to cause the second system to begin executing the process suspension operation of the second system.

[0081] Specifically, the first system can send a hibernation indication signal to the second system, and the second system responds to the signal by starting a process suspension operation (Suspend to RAM, STR), thereby achieving a hibernation state.

[0082] S120, Confirm that the second system has entered hibernation mode.

[0083] In this embodiment, after the second system begins executing STR, the first system can send STR start information to the control unit. When the second system completes STR execution, it notifies the first system that STR has ended. Upon receiving the STR end signal from the second system, the first system confirms that the second system has entered a sleep state and sends the STR end signal back to the control unit. Thus, the sleep operation of the second system is complete.

[0084] The system hibernation method disclosed in this invention first, in the target hibernation mode, if the second system has completed hibernation preparation, sends a hibernation indication signal to the second system, causing the second system to begin executing the process suspension operation; finally, it confirms that the second system has entered hibernation state. The system hibernation method disclosed in this invention, by hibernating the second system in the target hibernation mode, can reduce processing load and energy consumption, reduce unnecessary data interaction, and thus extend battery life.

[0085] Example 2

[0086] Figure 2 This is a flowchart of a system hibernation method provided in Embodiment 2 of the present invention. This embodiment is a refinement of the above embodiment, such as... Figure 2 As shown, the method includes:

[0087] S210. In the target hibernation mode, if the second system has completed hibernation preparation, a hibernation indication signal is sent to the second system to cause the second system to start executing the process suspension operation of the second system.

[0088] In this embodiment, when the vehicle is locked, the control unit (MCU) detects the door closing and locking signals and sends a hibernation command to the first system. Upon receiving the hibernation command, if the vehicle is currently in the target hibernation mode, the first system can continuously send delayed hibernation commands to the control unit at a set frequency. These delayed hibernation commands indicate to the control unit that the first system is still operational, ensuring that pre-hibernation preparations, such as data write-to-disk writes, can be completed before the second system goes into hibernation.

[0089] Preferably, the target hibernation mode is the vehicle's sentry mode, with the first system being a Linux system and the second system being an Android system. The Linux system comprises three modules: Linux APP / service, Linux native power, and Linux power service. The Linux APP / service primarily manages the lifecycle of background daemons and provides system- or application-level services; Linux native power manages power states at the kernel level, controlling hardware power consumption and sleep states; and the Linux power service primarily provides power state monitoring, policy settings, and advanced energy consumption analysis. In sentry mode, the Linux APP / service requests the Linux power service to hibernate the Android system. If the Linux power service receives a hibernation command from the control unit, it sends delayed hibernation commands to the control unit at a set frequency.

[0090] In this embodiment, the second system performs a hibernation preparation operation in response to the notification to enable the target hibernation mode.

[0091] Optionally, the method for performing the hibernation preparation operation may be: controlling the target application and target service corresponding to the second system to perform at least one of the following operations: requesting a CPU lock, releasing a CPU lock, saving target data, and terminating the target process; and / or controlling the target peripheral device corresponding to the second system to enter a low-power state.

[0092] Specifically, before entering hibernation, the second system needs to notify its peripherals to enter a low-power state and also instruct its applications and services to prepare for hibernation. These applications and services can request CPU locks for power management to complete their pre-hibernation processing, such as saving data and terminating unnecessary processes. Once all applications and services release the locks, it indicates that all tasks have been properly handled and the second system is ready to hibernate. If the second system is ready to hibernate, the first system can send a hibernation indication signal to the second system, causing it to begin suspending its processes.

[0093] Preferably, the second system can be an Android system. The Android system includes two modules: Android powerservice and Android native power. Android powerservice, as a system-level service, is responsible for coordinating power behavior between applications and hardware; Android native power is responsible for performing hardware operations at the lower level. After all services in the Android system release the CPU lock, Android powerservice sends a signal indicating that all services have released the CPU lock to Linux power service, notifying the Linux system that it is ready to hibernate. Then, Linux power service sends a hibernation indication signal to Android power service, triggering the Android system's process suspension (STR) operation to begin. Simultaneously, Linux power service sends Android STR start information to Linux native power, which then sends this information to the MCU.

[0094] S220. If a process suspension termination signal is received from the second system, it is confirmed that the second system has entered a hibernation state.

[0095] In this embodiment, when the second system finishes executing the STR, the second system notifies the first system that the STR has ended. Upon receiving the STR end signal from the second system, the first system confirms that the second system has entered a sleep state and feeds back the STR end signal to the control unit.

[0096] Specifically, when the Android system STR finishes execution, the Android native power sends the Android STR completion information to the Linux native power. The Linux native power then sends this information to the MCU and notifies the Linux power service that the Android STR has ended.

[0097] Furthermore, if a wake-up command from the control unit is received before the process suspension end signal sent by the second system is received, the wake-up command is recorded, and the second system is woken up after the second system completes the process suspension operation.

[0098] Specifically, the Android system cannot be interrupted when executing STR. If the MCU notifies the wake-up before the Android STR ends, the wake-up instruction is recorded first, and the wake-up is performed after the Android STR ends.

[0099] Optionally, the method for waking up the second system may be: in response to the wake-up command of the control unit, sending a wake-up signal to the second system.

[0100] Figure 3 This is a wake-up flowchart of a second system provided in an embodiment of the present invention. As shown in the figure, when the first system is working and the second system is in sleep mode, if the control unit (MCU) detects an external wake-up source such as a user approaching the vehicle or a door opening signal, it can send a wake-up command to the first system and transmit the reason for the external wake-up to the first system. After responding to the wake-up command, the first system executes the wake-up program and sends a wake-up signal to the second system. If the second system wakes up successfully, it notifies the first system that the second system has been successfully woken up.

[0101] Furthermore, after confirming that the second system has entered a hibernation state, the hibernation state of the second system can also be fed back to the control unit.

[0102] Furthermore, after feeding back the hibernation status of the second system to the control unit, the following can also be done: if the target hibernation mode is exited, then the hibernation operation of the first system is executed.

[0103] Specifically, once the second system goes into hibernation, if the target hibernation mode exits, the current vehicle no longer needs the support of the first system, and the first system can also begin hibernation.

[0104] Optionally, the method for performing the hibernation operation of the first system may be: performing a hibernation preparation operation of the first system; if the hibernation preparation has been completed, then starting the process suspension operation of the first system and sending a process suspension start signal to the control unit; if the process suspension operation of the first system has been completed, then sending a process suspension end signal to the control unit and stopping sending delayed hibernation commands.

[0105] Specifically, the target hibernation mode can be sentinel mode, and the primary system can be a Linux system. When sentinel mode exits, the Linux application / service notifies the Linux power service that sentinel mode has exited. All Linux system-related services can then request CPU locks for power management to complete their pre-hibernation processing, such as saving data and terminating unnecessary processes. Once all services release the locks, it indicates that all tasks have been properly handled, and the Linux system is ready for hibernation. After hibernation preparation is complete, the Linux power service triggers the Linux system's Process Suspension Operation (STR) to begin. The Linux native power sends the Linux STR start information to the MCU. When the Linux STR ends, the Linux native power notifies the MCU that the Linux STR has ended. The Linux system completes hibernation and stops sending delayed hibernation commands.

[0106] Furthermore, after the process suspension operation begins, it can also: if a wake-up command is received from the control unit, record the wake-up command, and wait for the first system to complete the process suspension operation before waking up the first system.

[0107] Specifically, the Linux system cannot be interrupted when executing STR. If the MCU notifies the system to wake up before the Linux STR ends, the wake-up command will be recorded first, and the system will be woken up after the Linux STR ends.

[0108] Furthermore, the system hibernation method also includes: in the target hibernation mode, in response to the hibernation command of the control unit, sending a delayed hibernation command to the control unit at a set frequency; wherein the delayed hibernation command is used to feed back the working status of the first system to the control unit.

[0109] Specifically, after the control unit sends a hibernation command to the first system, the first system responds by sending a delayed hibernation command to the control unit. The delayed hibernation command notifies the control unit that the first system is still operational, ensuring that the second system can complete some data write-to-disk tasks before entering hibernation, until the first system finishes hibernation and stops sending delayed hibernation commands. Preferably, the delayed hibernation command can be sent by starting a Postpone (delayed hibernation) timer. This timer allows sufficient cleanup time for critical services, preventing data loss or abnormal termination.

[0110] Figure 4This is a schematic diagram of a system hibernation process provided by an embodiment of the present invention. As shown in the figure, the first system is a Linux system, and the second system is an Android system. After the sentinel mode is enabled, the Linux APP / service requests the Linux power service to hibernate the Android system. The Linux power service responds to the hibernation command from the control unit (MCU) and sends a delayed hibernation command to the control unit. After the Android power service completes hibernation preparation, it sends a signal to the Linux power service that all services have released the CPU lock. The Linux power service sends a hibernation indication signal to the Android power service, triggering the start of the Android system's process suspension operation (STR). At the same time, the Linux power service sends the Android STR start information to the Linux native power, and the Linux native power sends this information to the MCU. The Android native power notifies the Linux native power that the Android STR has ended, and the Linux native power sends this information to the MCU and notifies the Linux power service that the Android STR has ended. When the sentinel mode is exited, the Linux APP / service notifies the Linux power service that the sentinel mode has exited, and the Linux system performs hibernation preparation. When all services release the CPU lock, it indicates that all tasks have been properly handled, and the Linux system has completed hibernation preparation. The Linux power service triggers the start of the Linux system's Process Suspension Operation (STR). The Linux native power sends the start information of the Linux STR to the MCU. When the Linux STR ends, the Linux native power notifies the MCU that the Linux STR has ended. The Linux system then completes hibernation and stops sending delayed hibernation commands.

[0111] The system hibernation method disclosed in this invention can reduce processing load and energy consumption, reduce unnecessary data interaction, and thus extend battery life by hibernating the second system in the target hibernation mode.

[0112] Example 3

[0113] Figure 5 This is a schematic diagram of a system hibernation device provided in Embodiment 3 of the present invention, as shown below. Figure 5As shown, the device includes: a second system process suspension module 310 and a hibernation state confirmation module 320.

[0114] The second system process suspension module 310 is used to send a hibernation indication signal to the second system when the second system has completed hibernation preparation in the target hibernation mode, so that the second system can start to execute the process suspension operation of the second system.

[0115] The hibernation state confirmation module 320 is used to confirm that the second system has entered hibernation state.

[0116] Optionally, the device is also used for:

[0117] The second system responds to the notification to enable the target hibernation mode and performs hibernation preparation operations.

[0118] Optionally, the device is also used for:

[0119] Control the target application and target service corresponding to the second system to perform at least one of the following operations: requesting a CPU lock, releasing a CPU lock, saving target data, and terminating a target process; and / or control the target peripheral device corresponding to the second system to enter a low-power state.

[0120] Optionally, the hibernation state confirmation module 320 is also used for:

[0121] If a process suspension termination signal is received from the second system, it is confirmed that the second system has entered a hibernation state.

[0122] Optionally, the hibernation state confirmation module 320 is also used for:

[0123] If a wake-up command is received from the control unit before the process suspension end signal sent by the second system is received, the wake-up command is recorded, and the second system is woken up after the second system completes the process suspension operation.

[0124] Optionally, the hibernation state confirmation module 320 is also used for:

[0125] In response to the wake-up command from the control unit, a wake-up signal is sent to the second system.

[0126] Optionally, the device is also used for:

[0127] The sleep state of the second system is fed back to the control unit.

[0128] Optionally, the first system also includes a hibernation module, which performs a hibernation operation of the first system if the target hibernation mode is exited.

[0129] Optionally, the hibernation module is also used for:

[0130] Perform hibernation preparation operation for the first system; if hibernation preparation is complete, start the process suspension operation of the first system and send a process suspension start signal to the control unit; if the process suspension operation of the first system is complete, send a process suspension end signal to the control unit and stop sending delayed hibernation commands.

[0131] Optionally, the hibernation module is also used for:

[0132] If a wake-up command is received from the control unit, the wake-up command is recorded, and the first system is woken up after the first system completes the process suspension operation.

[0133] Optionally, the device is also used for:

[0134] In the target sleep mode, in response to the sleep command of the control unit, a delayed sleep command is sent to the control unit at a set frequency; wherein, the delayed sleep command is used to feed back the working status of the first system to the control unit.

[0135] The system hibernation device provided in the embodiments of the present invention can execute the system hibernation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0136] Example 4

[0137] Figure 6 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0138] like Figure 6As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0139] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0140] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as system hibernation methods.

[0141] In some embodiments, the system hibernation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the system hibernation described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the system hibernation method by any other suitable means (e.g., by means of firmware).

[0142] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0143] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0144] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0146] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0147] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

Claims

1. A system hibernation method, characterized in that, The method includes a first system and a second system, and includes: In the target hibernation mode, if the second system has completed hibernation preparation, a hibernation indication signal is sent to the second system, causing the second system to start executing the process suspension operation of the second system; Confirm that the second system has entered hibernation mode.

2. The method according to claim 1, characterized in that, The second system responds to the notification to enable the target hibernation mode and performs a hibernation preparation operation.

3. The method according to claim 2, characterized in that, Perform hibernation preparation operations, including: Control the target application and target service corresponding to the second system to perform at least one of the following operations: requesting a CPU lock, releasing a CPU lock, saving target data, and terminating a target process; and / or Control the target peripheral device corresponding to the second system to enter a low-power state.

4. The method according to any one of claims 1-3, characterized in that, Confirming that the second system has entered a hibernation state includes: If a process suspension termination signal is received from the second system, it is confirmed that the second system has entered a hibernation state.

5. The method according to claim 4, characterized in that, The method further includes: If a wake-up command is received from the control unit before the process suspension end signal sent by the second system is received, the wake-up command is recorded, and the second system is woken up after the second system completes the process suspension operation.

6. The method according to claim 5, characterized in that, Wake up the second system, including: In response to the wake-up command from the control unit, a wake-up signal is sent to the second system.

7. The method according to any one of claims 1-6, characterized in that, After confirming that the second system has entered hibernation mode, the following steps are also included: The sleep state of the second system is fed back to the control unit.

8. The method according to claim 7, characterized in that, After feeding back the sleep state of the second system to the control unit, the following is also included: If the target hibernation mode is exited, the hibernation operation of the first system is executed.

9. The method according to claim 8, characterized in that, Performing the hibernation operation of the first system includes: Perform the hibernation preparation operation of the first system; If hibernation preparation is complete, the process suspension operation of the first system is started, and a process suspension start signal is sent to the control unit. If the process suspension operation of the first system has been completed, a process suspension end signal is sent to the control unit, and the sending of the delayed sleep command is stopped.

10. The method according to claim 9, characterized in that, After the process suspension operation of the first system begins, the process suspension operation also includes: If a wake-up command is received from the control unit, the wake-up command is recorded, and the first system is woken up after the first system completes the process suspension operation.

11. The method according to any one of claims 1-10, characterized in that, The method further includes: In the target sleep mode, in response to the sleep command of the control unit, a delayed sleep command is sent to the control unit at a set frequency; wherein, the delayed sleep command is used to feed back the working status of the first system to the control unit.

12. A system hibernation device, characterized in that, include: The second system process suspension module is used to send a hibernation indication signal to the second system if the second system has completed hibernation preparation in the target hibernation mode, so that the second system can start executing the process suspension operation of the second system. The hibernation state confirmation module is used to confirm that the second system has entered hibernation state.

13. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the system hibernation method according to any one of claims 1-11.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the system hibernation method according to any one of claims 1-11.

15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the system hibernation method as described in any one of claims 1-11.