Equipment control method and device, electronic equipment and storage medium

By introducing switching strategies between normal, low power consumption and target sleep modes in mobile devices, the problem of short standby time of mobile devices is solved, a low energy consumption state is achieved when the device is not operated by a user, and the use time of the device is extended.

CN118632333APending Publication Date: 2024-09-10HONGHU WANLIAN (JIANGSU) TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832737.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The standby time of mobile devices is short, and existing technology can only trigger energy-saving mode when the battery is low, and cannot further extend the use time of the device.

Method used

Provides device control methods, including normal mode, low power mode and target sleep mode. Mode switching is based on preset duration and user operation or message push. Low power mode consumes less energy than normal mode, and target sleep mode consumes less energy. , wake up via the power button.

Benefits of technology

It realizes the gradual reduction of power consumption when there is no user operation on the device, extending the use time of the device and improving the standby time, and it has nothing to do with the power of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632333A
    Figure CN118632333A
Patent Text Reader

Abstract

The invention discloses an equipment control method and device and a storage medium. The method comprises the following steps: in a normal mode, if a user operation is not obtained within a first preset duration, entering a low-power-consumption mode; in the low power consumption mode, if the user operation and the message push are not obtained within a second preset duration, entering a target sleep mode according to a preset sleep type; if the user operation or message push is obtained in a second preset duration, recovering to the normal mode; and in the target sleep mode, awakening the target sleep mode to the normal mode according to an awakening instruction triggered by a power key. The power consumption of the device can be gradually reduced through the low-power-consumption mode and the target sleep mode, entering the low-power-consumption mode and the target sleep mode is irrelevant to the electric quantity of the device, the target sleep mode can be gradually entered when the device is not operated by a user, the energy consumption of the device is reduced, and the service life of the device is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile device power management, and in particular to a device control method, device and storage medium. Background Art

[0002] With the popularity of mobile devices, the power of mobile devices has become a new concern. Currently, the energy-saving method adopted by mobile devices is to adjust the device to a power-saving mode when the power is less than a threshold (such as 20% of the total power).

[0003] However, this method can only extend the use time of the device after the power level is less than the threshold. How to further extend the standby time of mobile devices has become an urgent problem to be solved. Summary of the invention

[0004] The present invention provides a device control method, a device and a storage medium to solve the problem of short standby time of current mobile equipment.

[0005] According to a first aspect of the present invention, there is provided a device control method, comprising:

[0006] In the normal mode, if no user operation is obtained within the first preset time, the low power consumption mode is entered;

[0007] In the low power consumption mode, if no user operation or message push is obtained within the second preset time, the target sleep mode is entered according to the preset sleep type; if a user operation or message push is obtained within the second preset time, the normal mode is restored;

[0008] In the target sleep mode, the target sleep mode is awakened to the normal mode according to a wake-up instruction triggered by a power button.

[0009] According to a second aspect of the present invention, there is provided a device control apparatus, comprising:

[0010] A low power mode switching module, configured to enter a low power mode in a normal mode if no user operation is obtained within a first preset time period;

[0011] A sleep mode switching module, configured to, in the low power consumption mode, enter a target sleep mode according to a preset sleep type if no user operation or message push is obtained within a second preset time period; and to restore to the normal mode if a user operation or message push is obtained within the second preset time period;

[0012] The wake-up module is used to wake up the target sleep mode from the target sleep mode to the normal mode according to the wake-up instruction triggered by the power button.

[0013] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device control method described in any embodiment.

[0017] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for enabling a processor to implement the device control method described in any embodiment of the present invention when the computer instructions are executed.

[0018] The technical solution provided by the present invention, in the normal mode, if no user operation is obtained within the first preset time, the low power mode is entered; in the low power mode, if no user operation and message push are obtained within the second preset time, the target sleep mode is entered according to the preset sleep type; if the user operation or message push is obtained within the second preset time, the normal mode is restored; in the target sleep mode, the target sleep mode is awakened to the normal mode according to the wake-up instruction triggered by the power button. Compared with the current mobile device that only triggers the energy-saving mode when the battery is low, the technical solution provided by the embodiment of the present invention provides three operating modes of the device, namely the normal mode, the low power mode and the target sleep mode. When the user operation is not obtained within the first preset time, the device enters the low power mode, and the energy consumption of the low power mode is lower than that of the normal mode. After entering the low power mode, if there is a new user operation or message push within the second preset time, the normal mode is restored to respond to the user operation or message push. If there is no new user operation and message push within the second preset time, it means that there is no need for the device to continue to maintain the low power mode, and it can enter a mode with lower energy consumption, that is, the target sleep mode. The low power mode and target sleep mode can be used to gradually reduce the power consumption of the device. Entering the low power mode and target sleep mode has nothing to do with the power of the device. When there is no user operation on the device, the device can gradually enter the target sleep mode, thereby reducing the energy consumption of the device and increasing the usage time of the device.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a device control method provided in Embodiment 1 of the present invention;

[0022] Figure 2 is a structural schematic diagram of a device control device provided in Embodiment 2 of the present invention;

[0023] Figure 3 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Embodiment 1

[0027] Figure 1 : is a flow chart of a device control method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of power control of a mobile device. The method can be executed by a device control device, which can be implemented in the form of hardware and / or software. The method includes:

[0028] S110: In the normal mode, if no user operation is obtained within a first preset time period, enter the low power consumption mode.

[0029] The device can be a mobile device such as a device with an embedded battery, such as a tablet computer, a mobile phone, or a walkie-talkie. When the device obtains a user operation or a message push input by the user, the timer is used to count the time and obtain a first timing result. If the first timing result is less than the first preset time length and the user operation or message push is triggered, the timing is restarted. Until the first timing result is equal to the first preset time length. When the first timing result is equal to the first preset time length, it means that the first preset time length has passed since the most recent user operation or message push, and the device has no new user operation or new message push within the first preset time length, and can enter the low power consumption mode.

[0030] Optionally, the entering the low power consumption mode may be implemented in the following manner:

[0031] Turn off the screen power supply; reduce the operating frequency of the device components so that the operating frequency of the device components is lower than the operating frequency in the normal mode, and the device components include a combination of one or more of the following components: processor, memory, graphics card or communication module.

[0032] In low power mode, turning off the screen power can reduce energy consumption. The communication module includes a Bluetooth module, a wireless network module (WIFI), a near field communication protocol module (NFC) or a serial port module (USB). In low power mode, the operating frequency of each device component is lower than its operating frequency in normal mode.

[0033] The above-mentioned implementation can reduce the overall power consumption of the device by turning off the screen power supply and reducing the operating frequency of the device components in the low power consumption mode.

[0034] Furthermore, if no user operation is obtained within the first preset time, before entering the low power consumption mode, it also includes: obtaining the first preset time, the second preset time or the preset sleep type through the configuration page, and the preset sleep type is sleep to memory or sleep to disk.

[0035] The first preset duration is the time to switch from normal mode to low power mode without user operation and message push. The second preset duration is the time to switch from low power mode to target sleep mode without user operation and message push. Users can configure the first preset duration and the second preset duration according to their needs. Optionally, the second preset duration can be configured to 0 hours, 0 minutes, and 0 seconds. At this time, the device can directly enter the target sleep mode after switching to low power mode.

[0036] The user can select the type of sleep mode, i.e., the preset sleep type. The preset sleep type can be sleep to memory or sleep to disk. The configuration interface can provide the user with the options of sleep to memory and sleep to disk, and the user determines the preset sleep type by selecting the operation.

[0037] The above implementation method provides the user with configuration of the first preset duration, the second preset duration or the preset sleep type through the configuration page, thereby improving the usability.

[0038] S120. In the low power consumption mode, if no user operation or message push is obtained within the second preset time period, enter the target sleep mode according to the preset sleep type; if user operation or message push is obtained within the second preset time period, restore to the normal mode.

[0039] After entering the low power mode, timing is performed to obtain a second timing result. If the second timing result is less than the second preset time length and a user operation or message push is triggered, the timing is restarted. The low power mode is exited and the device is restored to the normal mode. When returning to the normal mode, the screen power is turned on and the operating frequency of the device components is restored to the operating frequency of the normal mode.

[0040] After the timing, if no user operation or message push is triggered, the timing continues until the second timing result is equal to the second preset time. When the second timing result is equal to the second preset time, it means that the device is still not used in the low power mode and can enter the target sleep mode.

[0041] Optionally, entering the target sleep mode according to a preset sleep type may be implemented as follows:

[0042] If the preset sleep type is sleep to memory, one processor core is kept running at the lowest operating frequency, and the memory is configured to run at the lowest operating frequency; the power supply of the remaining processor cores, graphics card and communication module is turned off.

[0043] In the sleep-to-memory sleep mode, the memory and one processor core are at the lowest operating frequency, which can achieve fast wake-up. The device can have a multi-core processor. In the embodiment of the present invention, one core is selected from multiple cores to operate at the lowest operating frequency, and the remaining cores are all powered off, thereby significantly reducing the power consumption of the device.

[0044] The above method can realize the sleep mode of sleeping in memory, and provides a sleep mode that can be quickly awakened.

[0045] Optionally, entering the target sleep mode according to a preset sleep type may be implemented as follows:

[0046] If the preset sleep type is sleep to disk, the memory mapping data is written to the disk, the power supply of the power chip is retained; and the power supply of all processor cores, memory, graphics card and communication modules is turned off.

[0047] In the hibernation to disk mode, the memory data is written to the disk so that the memory mapping data is retained in the disk. The hibernation to disk mode can be realized by the above method. After the memory mapping data is stored in the disk, the power supply of the memory and all processor cores can be turned off, further reducing the energy consumption of the device.

[0048] S130. In the target sleep mode, according to the wake-up instruction triggered by the power button, the target sleep mode is awakened to the normal mode, the power consumption of the target sleep mode is less than the power consumption of the low power consumption mode, and the power consumption of the low power consumption mode is less than the power consumption of the normal mode.

[0049] When the device enters the target sleep mode, it can receive a wake-up command triggered by the user through the power button. When the user triggers the wake-up command through the power button, it wakes up according to the data storage location (such as memory or disk) corresponding to the target sleep mode and enters the normal mode.

[0050] Optionally, waking up from the target sleep mode to the normal mode may be implemented as follows:

[0051] If the target sleep mode is to sleep to memory, restore the power supply of the remaining processor cores, graphics card and communication module; restore the processing frequency of all processor cores and the working frequency of memory; wake up to the normal mode according to the data in the memory.

[0052] In response to the wake-up instruction, the power supply of the device components that have been powered off is restored, and the operating frequency of all device components is restored to the operating frequency of the normal mode. Since the status data of the application is stored in the memory, it can be quickly awakened according to the data in the memory. This process does not require the application to be initialized and loaded, which improves the awakening speed.

[0053] Optionally, waking up from the target sleep mode to the normal mode may be implemented as follows:

[0054] If the target sleep mode is sleep to disk, restore power to all components; restore processing frequencies of all processor cores and operating frequencies of memory; write the mapping data to the memory, and wake up to the normal mode according to the mapping data in the memory.

[0055] In response to the wake-up instruction, power supply to the device components that have been powered off is restored, and the operating frequencies of all device components are restored to the operating frequencies of the normal mode.

[0056] Write the mapping data in the disk to the memory. Since the mapping data contains the status data of the application, it can be quickly awakened according to the data in the memory. This process does not require the application to be initialized and loaded, which improves the awakening speed.

[0057] The sleep-to-memory sleep mode provided by the present invention can realize fast wake-up, and the sleep-to-disk sleep mode can realize significant reduction in energy consumption.

[0058] Illustratively, the embodiment of the present invention was tested using a device with 4 cores and 2.0 GHz, a battery specification of 3.7 V, and 9000 mAh, and the obtained data is shown in Table 1.

[0059] Table 1

[0060]

[0061] The device control method provided by the present invention, in the normal mode, if no user operation is obtained within the first preset time length, then enter the low power mode; in the low power mode, if no user operation and message push are obtained within the second preset time length, then enter the target sleep mode according to the preset sleep type; if the user operation or message push is obtained within the second preset time length, then restore to the normal mode; in the target sleep mode, according to the wake-up instruction triggered by the power button, wake up from the target sleep mode to the normal mode. Compared with the current mobile device that only triggers the energy-saving mode when the battery is low, the device control method provided by the embodiment of the present invention provides three operating modes of the device, namely the normal mode, the low power mode and the target sleep mode. When the user operation is not obtained within the first preset time length, the device enters the low power mode, and the energy consumption of the low power mode is lower than that of the normal mode. After entering the low power mode, if there is a new user operation or message push within the second preset time length, it is restored to the normal mode to respond to the user operation or message push. If there is no new user operation and message push within the second preset time length, it means that there is no need for the device to continue to maintain the low power mode, and it can enter a mode with lower energy consumption, that is, the target sleep mode. The low power mode and target sleep mode can be used to gradually reduce the power consumption of the device. Entering the low power mode and target sleep mode has nothing to do with the power of the device. When there is no user operation on the device, the device can gradually enter the target sleep mode, thereby reducing the energy consumption of the device and increasing the usage time of the device.

[0062] Embodiment 2

[0063] Figure 2 : is a schematic diagram of the structure of a device control device provided in Embodiment 2 of the present invention, the device comprising:

[0064] The low power mode switching module 21 is used to enter the low power mode in the normal mode if no user operation is obtained within a first preset time period;

[0065] The sleep mode switching module 22 is used to enter the target sleep mode according to the preset sleep type in the low power consumption mode if no user operation or message push is obtained within the second preset time length; if a user operation or message push is obtained within the second preset time length, restore to the normal mode;

[0066] The wake-up module 23 is used to wake up the target sleep mode from the target sleep mode to the normal mode according to a wake-up instruction triggered by a power button in the target sleep mode.

[0067] Optionally, based on the above implementation, a configuration module is further included, which is used to obtain the first preset duration, the second preset duration or the preset sleep type through the configuration page, and the preset sleep type is sleep to memory or sleep to disk.

[0068] Optionally, based on the above implementation, the low power consumption mode switching module 21 is used to:

[0069] Turn off the screen power;

[0070] The operating frequency of a device component is reduced so that the operating frequency of the device component is lower than the operating frequency in the normal mode, and the device component includes a combination of one or more of the following components: a processor, a memory, a graphics card, or a communication module.

[0071] Optionally, based on the above implementation, the sleep mode switching module 22 is used to:

[0072] If the preset sleep type is sleep to memory, one processor core is kept running at the lowest operating frequency, and the memory is configured to run at the lowest operating frequency;

[0073] Turn off power to the remaining processor cores, graphics card, and communication modules.

[0074] Optionally, based on the above implementation, the sleep mode switching module 22 is used to:

[0075] If the preset sleep type is sleep to disk, the memory mapping data is written to the disk, and the power supply of the power chip is retained;

[0076] Turn off power to all processor cores, memory, graphics cards, and communication modules.

[0077] Optionally, based on the above implementation, the wake-up module 23 is used to:

[0078] If the target sleep mode is sleep to memory, restoring power to the remaining processor cores, graphics card, and communication module;

[0079] The processing frequencies of all processor cores and the operating frequencies of the memories are restored; and the system is awakened to the normal mode according to the data in the memories.

[0080] Optionally, based on the above implementation, the wake-up module 23 is used to:

[0081] If the target sleep mode is sleep to disk, restore power to all components;

[0082] Restore the processing frequency of all processor cores and the operating frequency of memory;

[0083] The mapping data is written into a memory, and the mode is awakened to the normal mode according to the mapping data in the memory.

[0084] The device control device provided by the present invention includes a low power mode switching module 21, which is used to enter the low power mode in the normal mode if no user operation is obtained within the first preset time length; a sleep mode switching module 22, which is used to enter the target sleep mode according to the preset sleep type if no user operation and message push are obtained within the second preset time length in the low power mode; if the user operation or message push is obtained within the second preset time length, it is restored to the normal mode; and a wake-up module 23, which is used to wake up from the target sleep mode to the normal mode according to the wake-up instruction triggered by the power button in the target sleep mode. Compared with the current mobile device that only triggers the energy-saving mode when the battery is low, the device control device provided by the embodiment of the present invention provides three operating modes of the device, namely the normal mode, the low power mode and the target sleep mode. When no user operation is obtained within the first preset time length, the device enters the low power mode, and the energy consumption of the low power mode is lower than that of the normal mode. After entering the low power mode, if there is a new user operation or message push within the second preset time length, it is restored to the normal mode to respond to the user operation or message push. If there is no new user operation or message push within the second preset time, it means that the device does not need to continue to maintain the low power mode, and can enter a lower power consumption mode, namely the target sleep mode. The low power mode and the target sleep mode can gradually reduce the power consumption of the device. Entering the low power mode and the target sleep mode has nothing to do with the power of the device. When there is no user operation on the device, it can gradually enter the target sleep mode, reduce the energy consumption of the device, and increase the use time of the device.

[0085] The equipment control device provided in the embodiment of the present invention can execute the equipment control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0086] Embodiment 3

[0087] Figure 31 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device 10 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 may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0088] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

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

[0090] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a device control method.

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

[0092] Various implementations 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0093] The computer programs for implementing the device control method 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, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0094] Embodiment 4

[0095] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions can be used to enable a processor to execute a device control method, wherein the method includes:

[0096] In the normal mode, if no user operation is obtained within the first preset time, the low power consumption mode is entered;

[0097] In the low power consumption mode, if no user operation or message push is obtained within the second preset time, the target sleep mode is entered according to the preset sleep type; if a user operation or message push is obtained within the second preset time, the normal mode is restored;

[0098] In the target sleep mode, according to the wake-up instruction triggered by the power button, the target sleep mode is awakened to the normal mode, the power consumption of the target sleep mode is less than the power consumption of the low power consumption mode, and the power consumption of the low power consumption mode is less than the power consumption of the normal mode.

[0099] Optionally, based on the above implementation, if no user operation is obtained within the first preset time, before entering the low power consumption mode, the method further includes:

[0100] The first preset duration, the second preset duration or the preset sleep type is obtained through the configuration page, and the preset sleep type is sleep to memory or sleep to disk.

[0101] Optionally, based on the above implementation, entering the low power consumption mode includes:

[0102] Turn off the screen power;

[0103] The operating frequency of a device component is reduced so that the operating frequency of the device component is lower than the operating frequency in the normal mode, and the device component includes a combination of one or more of the following components: a processor, a memory, a graphics card, or a communication module.

[0104] Optionally, based on the above implementation, entering the target sleep mode according to a preset sleep type includes:

[0105] If the preset sleep type is sleep to memory, one processor core is kept running at the lowest operating frequency, and the memory is configured to run at the lowest operating frequency;

[0106] Turn off power to the remaining processor cores, graphics card, and communication modules.

[0107] Optionally, based on the above implementation, entering the target sleep mode according to a preset sleep type includes:

[0108] If the preset sleep type is sleep to disk, the memory mapping data is written to the disk, and the power supply of the power chip is retained;

[0109] Turn off power to all processor cores, memory, graphics cards, and communication modules.

[0110] Optionally, based on the above implementation, waking up from the target sleep mode to the normal mode includes:

[0111] If the target sleep mode is sleep to memory, restoring power to the remaining processor cores, graphics card, and communication module;

[0112] The processing frequencies of all processor cores and the operating frequencies of the memories are restored; and the system is awakened to the normal mode according to the data in the memories.

[0113] Optionally, based on the above implementation, waking up from the target sleep mode to the normal mode includes:

[0114] If the target sleep mode is sleep to disk, restore power to all components;

[0115] Restore the processing frequency of all processor cores and the operating frequency of memory;

[0116] The mapping data is written into a memory, and the mode is awakened to the normal mode according to the mapping data in the memory.

[0117] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0119] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0120] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A device control method, characterized in that: include: In the normal mode, if no user operation is obtained within the first preset time, the low power consumption mode is entered; In the low power consumption mode, if no user operation and message push are obtained within the second preset time period, the target sleep mode is entered according to the preset sleep type; If a user operation or message push is obtained within the second preset time, the normal mode is restored; In the target sleep mode, according to the wake-up instruction triggered by the power button, the target sleep mode is awakened to the normal mode, the power consumption of the target sleep mode is less than the power consumption of the low power consumption mode, and the power consumption of the low power consumption mode is less than the power consumption of the normal mode.

2. The method according to claim 1, characterized in that If no user operation is obtained within the first preset time, before entering the low power consumption mode, the method further includes: The first preset duration, the second preset duration or the preset sleep type is obtained through the configuration page, and the preset sleep type is sleep to memory or sleep to disk.

3. The method according to claim 1, characterized in that Enter low power modes, including: Turn off the screen power; The operating frequency of a device component is reduced so that the operating frequency of the device component is lower than the operating frequency in the normal mode, and the device component includes a combination of one or more of the following components: a processor, a memory, a graphics card, or a communication module.

4. The method according to claim 2, characterized in that: Enter the target sleep mode according to the preset sleep type, including: If the preset sleep type is sleep to memory, one processor core is kept running at the lowest operating frequency, and the memory is configured to run at the lowest operating frequency; Turn off power to the remaining processor cores, graphics card, and communication modules.

5. The method according to claim 2, characterized in that: Enter the target sleep mode according to the preset sleep type, including: If the preset sleep type is sleep to disk, the memory mapping data is written to the disk, and the power supply of the power chip is retained; Turn off power to all processor cores, memory, graphics cards, and communication modules.

6. The method according to claim 4, characterized in that Waking up from the target sleep mode to the normal mode includes: If the target sleep mode is sleep to memory, restoring power to the remaining processor cores, graphics card, and communication module; The processing frequencies of all processor cores and the operating frequencies of the memories are restored; and the system is awakened to the normal mode according to the data in the memories.

7. The method according to claim 5, characterized in that Waking up from the target sleep mode to the normal mode includes: If the target sleep mode is sleep to disk, restore power to all components; Restore the processing frequency of all processor cores and the operating frequency of memory; The mapping data is written into a memory, and the mode is awakened to the normal mode according to the mapping data in the memory.

8. A device control device, characterized in that: include: A low power mode switching module, configured to enter a low power mode in a normal mode if no user operation is obtained within a first preset time period; A sleep mode switching module, configured to enter a target sleep mode according to a preset sleep type in a low power consumption mode if no user operation or message push is received within a second preset time period; If a user operation or message push is obtained within the second preset time, the normal mode is restored; The wake-up module is used to wake up the target sleep mode from the target sleep mode to the normal mode according to the wake-up instruction triggered by the power button.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the device control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the device control method according to any one of claims 1 to 7 when executed.