[go: up one dir, main page]

CN114253385A - Power consumption management method and device of mobile terminal and computer readable storage medium - Google Patents

Power consumption management method and device of mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN114253385A
CN114253385A CN202011025087.XA CN202011025087A CN114253385A CN 114253385 A CN114253385 A CN 114253385A CN 202011025087 A CN202011025087 A CN 202011025087A CN 114253385 A CN114253385 A CN 114253385A
Authority
CN
China
Prior art keywords
mobile terminal
preset
state
power consumption
applications
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011025087.XA
Other languages
Chinese (zh)
Other versions
CN114253385B (en
Inventor
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011025087.XA priority Critical patent/CN114253385B/en
Publication of CN114253385A publication Critical patent/CN114253385A/en
Application granted granted Critical
Publication of CN114253385B publication Critical patent/CN114253385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure relates to a power consumption management method and apparatus of a mobile terminal and a computer-readable storage medium. The method comprises the following steps: detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state; and when the mobile terminal is in the preset state, reducing the power consumption of the mobile terminal according to the preset state. Therefore, the duration of the endurance of the mobile terminal can be prolonged, and the user experience is improved. In addition, according to different preset states, the corresponding power consumption reduction mode is adopted, so that the power consumption can be reduced, the requirements of users in different states can be met, and the user experience is further improved. In addition, by reducing the power consumption of the mobile terminal, the shell temperature of the mobile terminal can be reduced, and the system breakdown of the mobile terminal due to overheating is avoided.

Description

Power consumption management method and device of mobile terminal and computer readable storage medium
Technical Field
The present disclosure relates to the field of mobile terminal technologies, and in particular, to a power consumption management method and apparatus for a mobile terminal, and a computer-readable storage medium.
Background
With the development of communication technology, mobile terminals (e.g., smart phones and tablet computers) are becoming more and more popular, the awareness is becoming higher, the requirements of consumers on the mobile terminals are becoming higher and higher, and the design trend of the mobile terminals is becoming thinner and lighter, so that the battery capacity is relatively limited. With the development of the 5G network, the increase of the functions of the 5G mobile terminal leads to the fact that the inside is small in size and the battery capacity is more difficult to increase, so that the power consumption of the mobile terminal is reduced, and the duration of the mobile terminal is prolonged.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a power consumption management method and apparatus for a mobile terminal, and a computer-readable storage medium.
According to a first aspect of the embodiments of the present disclosure, a power consumption management method for a mobile terminal is provided, including:
detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state; and when the mobile terminal is in the preset state, reducing the power consumption of the mobile terminal according to the preset state.
Optionally, the detecting whether the mobile terminal is in a preset state includes:
under the condition that operation information of a user for the mobile terminal is not detected within a first preset time, acquiring the acceleration and the angular velocity of the mobile terminal in real time;
under the condition that the acceleration is always smaller than a first preset acceleration threshold value and the duration of the angular velocity which is always smaller than the first preset angular velocity threshold value is larger than or equal to a second preset duration, determining that the mobile terminal is in the static non-interactive state;
determining that the mobile terminal is in the motion non-interactive state under the condition that the acceleration is greater than a second preset acceleration threshold or the angular velocity is greater than a second preset angular velocity threshold, wherein the second preset acceleration threshold is greater than the first preset acceleration threshold, and the second preset angular velocity threshold is greater than the first preset angular velocity threshold;
determining that the mobile terminal is in the high resource occupancy state if at least one of the following conditions is met:
the occupancy rate of a processor of the mobile terminal is greater than a preset occupancy rate threshold value;
the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold value;
the current running applications in the mobile terminal comprise preset high-resource-demand applications.
Optionally, when the preset state is the static non-interactive state, the reducing power consumption of the mobile terminal according to the preset state includes:
closing applications meeting preset conditions in the currently running applications in the mobile terminal; and/or
And controlling the mobile terminal to enter a dormant state.
Optionally, when the preset state is the motion non-interactive state, the reducing power consumption of the mobile terminal according to the preset state includes:
closing applications meeting preset conditions in target applications, wherein the target applications comprise applications except motion-related applications in the currently running applications in the mobile terminal; and/or
Controlling currently running applications in the mobile terminal and hardware in the mobile terminal except for the hardware related to the motion to enter a dormant state, wherein the hardware related to the motion comprises: an acceleration sensor for detecting the acceleration, an angular velocity sensor for detecting the angular velocity, and means for counting steps.
Optionally, when the preset state is the high resource occupation state, the reducing power consumption of the mobile terminal according to the preset state includes:
closing applications meeting preset conditions in the applications running in the background currently in the mobile terminal; and/or
And controlling the hardware in the idle state in the mobile terminal to be powered off.
Optionally, when the step of reducing the power consumption of the mobile terminal according to the preset state includes that the application meeting the preset condition in the current background running application in the mobile terminal is closed, the method further includes:
and restarting the application meeting the preset condition under the condition that the mobile terminal is detected to exit the high resource occupation state.
Optionally, the preset condition is that the usage frequency is lower than a preset frequency threshold or the duration of the background operation is greater than a preset duration threshold.
According to a second aspect of the embodiments of the present disclosure, there is provided a power consumption management apparatus of a mobile terminal, including:
the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is configured to detect whether the mobile terminal is in a preset state, and the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state;
the power consumption reducing module is configured to reduce the power consumption of the mobile terminal according to the preset state when the detecting module detects that the mobile terminal is in the preset state.
According to a third aspect of the embodiments of the present disclosure, there is provided a power consumption management apparatus of a mobile terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state;
and when the mobile terminal is in the preset state, reducing the power consumption of the mobile terminal according to the preset state.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the power consumption management method of a mobile terminal provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state; and when the mobile terminal is in the preset state, the power consumption of the mobile terminal is reduced according to the preset state, so that the endurance of the mobile terminal is prolonged, and the user experience is improved. In addition, according to different preset states, the corresponding power consumption reduction mode is adopted, so that the power consumption can be reduced, the requirements of users in different states can be met, and the user experience is further improved. In addition, by reducing the power consumption of the mobile terminal, the shell temperature of the mobile terminal can be reduced, and the system breakdown of the mobile terminal due to overheating is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a power consumption management method of a mobile terminal according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a structure of a mobile terminal according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a power consumption management apparatus of a mobile terminal according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a power consumption management apparatus of a mobile terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a power consumption management method of a mobile terminal according to an exemplary embodiment, where the method may be applied to the mobile terminal, and particularly, to a processor of the mobile terminal, as shown in fig. 1, the method may include the following steps.
In S101, it is detected whether the mobile terminal is in a preset state.
In the present disclosure, the mobile terminal may be, for example, a smart phone, a tablet computer, a smart wearable device, or the like. The preset states may include a static non-interactive state, a motion non-interactive state, and a high resource usage state (e.g., high CPU occupancy, high GPU occupancy, high memory occupancy, a mobile terminal running a large game, etc.). When the mobile terminal is not operated by a user for a long time and is statically placed at a fixed position (for example, a desktop, a car, etc.), the mobile terminal can be considered to be in a static non-interactive state; however, in a case where the mobile terminal is in a motion state (for example, the user walks, runs, climbs stairs, etc. with the mobile terminal) without user operation for a long time, the mobile terminal may be considered to be in a motion non-interactive state.
In S102, when the mobile terminal is in a preset state, the power consumption of the mobile terminal is reduced according to the preset state.
When the mobile terminal is detected to be in any one of a static non-interactive state, a motion non-interactive state and a high resource occupation state, a corresponding power consumption reduction mode can be adopted according to the current state of the mobile terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state; and when the mobile terminal is in the preset state, the power consumption of the mobile terminal is reduced according to the preset state, so that the endurance of the mobile terminal is prolonged, and the user experience is improved. In addition, according to different preset states, the corresponding power consumption reduction mode is adopted, so that the power consumption can be reduced, the requirements of users in different states can be met, and the user experience is further improved. In addition, by reducing the power consumption of the mobile terminal, the shell temperature of the mobile terminal can be reduced, and the system breakdown of the mobile terminal due to overheating is avoided.
The following is a detailed description of a specific embodiment of detecting whether the mobile terminal is in the preset state in S101.
In the present disclosure, in the case where it is detected that the mobile terminal is not operated by the user for a long time, it is further determined whether the mobile terminal is in a stationary state or a moving state according to the acceleration and the angular velocity of the mobile terminal. I.e. determining whether the mobile terminal is in a stationary non-interactive state or in a moving non-interactive state.
Specifically, in the case that operation information (e.g., related operation information such as a touch screen, a power key, a volume key, and the like) of a user for the mobile terminal is not detected within a first preset time period (e.g., 1 minute), it may be determined that the mobile terminal is in a non-interactive state, and at this time, the acceleration and the angular velocity of the mobile terminal may be obtained in real time to determine whether the mobile terminal is in a stationary state or a moving state. For example, the acceleration of the mobile terminal may be detected in real time by an acceleration sensor in a Micro-Electro-Mechanical System (MEMS) in the mobile terminal, while the angular velocity of the mobile terminal is detected in real time by an angular velocity sensor in the MEMS.
Under the condition that the acceleration is always smaller than the first preset acceleration threshold value and the duration of the angular velocity which is always smaller than the first preset angular velocity threshold value is greater than or equal to the second preset duration, the mobile terminal is indicated to be in a static state, and at the moment, the mobile terminal can be determined to be in a static non-interactive state.
When the acceleration is greater than the second preset acceleration threshold or the angular velocity is greater than the second preset angular velocity threshold, it indicates that the mobile terminal is in a motion state, and at this time, it may be determined that the mobile terminal is in a motion non-interactive state. The second preset acceleration threshold is larger than the first preset acceleration threshold, and the second preset angular velocity threshold is larger than the first preset angular velocity threshold.
In addition, the mobile terminal may be determined to be in a high resource occupancy state if at least one of the following conditions is met: an occupancy rate of a processor (e.g., a CPU) of the mobile terminal is greater than a preset occupancy rate threshold; the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold value; the applications currently running in the mobile terminal include preset high-resource-demand applications (e.g., a large game).
In one embodiment, the occupancy rate of a processor (e.g., a CPU) of the mobile terminal may be monitored in real time, and in the case that the occupancy rate of the processor of the mobile terminal is monitored to be greater than a preset occupancy rate threshold, it may be determined that the mobile terminal is currently in a high-resource occupancy state.
Illustratively, if the preset occupancy threshold is 69%, and the occupancy of the processor of the mobile terminal is detected to be 76%, it may be determined that the mobile terminal is in a high resource occupancy state.
In another embodiment, the current animation frame rate of the mobile terminal may be monitored in real time, and the mobile terminal is determined to be currently in a high resource occupation state when the animation frame rate of the mobile terminal is monitored to be greater than a preset animation frame rate threshold. The animation frame rate is the number of frames of images refreshed per second, and can also be understood as the number of times that the graphics processor can refresh per second. In practical application, the preset animation frame rate threshold is a set value obtained by flexibly setting by a developer according to practical application requirements or summarizing through a large number of experimental values.
In another embodiment, the currently running application in the mobile terminal may be obtained first, and then it is determined whether the currently running application includes a preset application with high resource demand (i.e., an application with high system resource occupancy rate for the terminal). When the currently running application includes a preset application with high resource demand, it can be determined that the mobile terminal is currently in a high resource occupation state.
For example, the currently running applications include an application a, an application B, an application C, and an application D, the preset high-resource-demand application includes an application C and an application G, and the currently running application includes the application C with the high resource demand, and at this time, it may be determined that the mobile terminal is currently in a high-resource-occupation state.
In yet another embodiment, the occupancy rate of the processor of the mobile terminal and the current animation frame rate of the mobile terminal may be monitored in real time, and in the case that the occupancy rate of the processor of the mobile terminal is monitored to be greater than a preset occupancy rate threshold value and the current animation frame rate of the mobile terminal is monitored to be greater than a preset animation frame rate threshold value, it is determined that the mobile terminal is currently in a high resource occupancy state.
In another embodiment, the occupancy rate of the processor of the mobile terminal may be monitored in real time, and it may be determined whether the currently running application includes a preset application with a high resource requirement, and it may be determined that the mobile terminal is currently in a high resource occupancy state when it is monitored that the occupancy rate of the processor of the mobile terminal is greater than a preset occupancy rate threshold and the currently running application includes the preset application with a high resource requirement.
In another embodiment, the current animation frame rate of the mobile terminal may be monitored in real time, and it may be determined whether the currently running application includes a preset application with a high resource requirement, and it may be determined that the mobile terminal is currently in a high resource occupation state when it is monitored that the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold and the currently running application includes the preset application with a high resource requirement.
In yet another embodiment, the occupancy rate of the processor of the mobile terminal and the current animation frame rate of the mobile terminal may be monitored in real time, and it may be determined whether the currently running application includes a preset high-resource-demand application, and it may be determined that the mobile terminal is currently in a high-resource occupancy state when it is monitored that the occupancy rate of the processor of the mobile terminal is greater than a preset occupancy rate threshold, the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold, and the currently running application includes the preset high-resource-demand application.
The following describes in detail a specific embodiment of reducing power consumption of the mobile terminal according to the preset state in S102.
In case that the mobile terminal is detected to be in a stationary non-interactive state, the power consumption of the mobile terminal may be reduced in the following various ways.
In one embodiment, all applications currently running in the mobile terminal may be directly shut down.
In another embodiment, the applications meeting the preset conditions in the applications currently running in the mobile terminal are closed. The preset condition may be that the usage frequency is lower than a preset frequency threshold or the duration of the background operation is greater than a preset duration threshold.
In the present disclosure, when the usage frequency of a certain application is lower than the preset frequency threshold, it indicates that the user may occasionally use the application, and the probability of using the application subsequently is relatively small, so that the application with the usage frequency lower than the preset frequency threshold in the currently running application may be turned off to reduce the influence on the subsequent use of the mobile phone by the user as much as possible.
The longer a certain application is placed in the background for running, the lower the probability that the application may be reused is, and therefore, applications that are placed in the background for running and have a duration greater than a preset duration threshold among the currently running applications may be closed. The preset time threshold may be preset by a developer or a user, for example, 30 minutes, that is, an application that has not been used by the user in the last 30 minutes may be closed.
In another embodiment, the mobile terminal is controlled to enter a sleep state, i.e., enter a power saving mode, and a portion of the voltage output is turned down or turned off, for example, the screen of the mobile terminal is controlled to be turned off, and the power consumption of the processor is reduced.
In order to reduce the power consumption of the mobile terminal as much as possible, in another embodiment, applications meeting a preset condition among applications currently running in the mobile terminal are closed, and the mobile terminal is controlled to enter a sleep state.
In the case where it is detected that the mobile terminal is in a motion non-interactive state, power consumption of the mobile terminal may be reduced in the following various ways.
In one embodiment, applications meeting the preset conditions in the target applications are closed, wherein the target applications include applications other than the applications related to the motion in the applications currently running in the mobile terminal, so as to meet the requirement of the user for recording the motion state of the user by using the mobile terminal. The application related to the running may be, for example, a step-counting application, such as WeChat, a dedicated step-counting application, etc.
In another embodiment, the currently running application in the mobile terminal and each hardware in the mobile terminal except for the hardware related to the motion are controlled to enter the dormant state, that is, the processing speed of the currently running application in the mobile terminal and each hardware in the mobile terminal except for the hardware related to the motion is reduced, so as to achieve the purpose of reducing the power consumption of the mobile terminal. Wherein the motion-related hardware comprises: an acceleration sensor for detecting acceleration, an angular velocity sensor for detecting angular velocity, and a device for counting steps.
In order to reduce the power consumption of the mobile terminal as much as possible, in another embodiment, the applications meeting the preset conditions in the target applications are closed, and the currently running applications in the mobile terminal and the hardware in the mobile terminal except for the motion-related hardware are controlled to enter a sleep state.
In the case where it is detected that the mobile terminal is in a high resource occupancy state, the power consumption of the mobile terminal may be reduced in a number of ways.
In one embodiment, applications meeting the preset conditions in applications running in a background at present in the mobile terminal are closed to close applications which are not needed or unimportant at present, occupation of important resources such as a memory, a GPU and a CPU is reduced, and the resources are left to the applications running in a current scene (for example, a large game scene) as much as possible, so that the performance state of the applications in the current scene is optimal, and the problem that user experience is affected due to severe jamming or unsmooth pictures caused by insufficient processing resources, memory resources and the like of the mobile terminal when the mobile terminal runs in the scene such as the large game can be solved, and the running smoothness of the mobile terminal and the user experience are improved.
In another embodiment, hardware (e.g., a camera, a speaker, a processing core, etc.) in an idle state in a mobile terminal is controlled to power down. Specifically, as shown in fig. 2, the processor may control one or more hardware in the mobile terminal in an idle state to Power down by communicating with a Power Management Integrated Circuit (PMIC), to turn off a Power enable pin of related hardware (for example, a hardware 1 in fig. 2) directly connected to the PMIC through the PMIC, and to turn off a Low Dropout Regulator (LDO) to disconnect the hardware connected to the LDO (for example, a hardware 2 in fig. 2).
In addition, when the mobile terminal is detected to be in the preset state, after the applications meeting the preset conditions in the applications running in the current background in the mobile terminal are closed, if the mobile terminal is detected to exit from the high resource occupation state, the applications meeting the preset conditions are restarted, so that the time for restarting the applications is saved, and the user experience is improved.
Fig. 3 is a block diagram illustrating a power consumption management apparatus of a mobile terminal according to an exemplary embodiment. Referring to fig. 3, the apparatus 300 includes: a detecting module 301, configured to detect whether the mobile terminal is in a preset state, where the preset state includes a static non-interactive state, a moving non-interactive state, and a high resource occupation state; a power consumption reduction module 302 configured to reduce the power consumption of the mobile terminal according to the preset state when the detection module 301 detects that the mobile terminal is in the preset state.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state; and when the mobile terminal is in the preset state, the power consumption of the mobile terminal is reduced according to the preset state, so that the endurance of the mobile terminal is prolonged, and the user experience is improved. In addition, according to different preset states, the corresponding power consumption reduction mode is adopted, so that the power consumption can be reduced, the requirements of users in different states can be met, and the user experience is further improved. In addition, by reducing the power consumption of the mobile terminal, the shell temperature of the mobile terminal can be reduced, and the system breakdown of the mobile terminal due to overheating is avoided.
Optionally, the detection module 301 includes: the obtaining sub-module is configured to obtain the acceleration and the angular velocity of the mobile terminal in real time under the condition that the operation information of a user for the mobile terminal is not detected within a first preset time period; the determining submodule is configured to determine that the mobile terminal is in the static non-interactive state under the condition that the acceleration is always smaller than a first preset acceleration threshold value, and the duration of the angular velocity which is always smaller than the first preset angular velocity threshold value is greater than or equal to a second preset duration; the determining submodule is further configured to determine that the mobile terminal is in the motion non-interaction state when the acceleration is greater than a second preset acceleration threshold or the angular velocity is greater than a second preset angular velocity threshold, where the second preset acceleration threshold is greater than the first preset acceleration threshold, and the second preset angular velocity threshold is greater than the first preset angular velocity threshold; the determining sub-module is further configured to determine that the mobile terminal is in the high resource occupancy state if at least one of the following conditions is met: the occupancy rate of a processor of the mobile terminal is greater than a preset occupancy rate threshold value; the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold value; the current running applications in the mobile terminal comprise preset high-resource-demand applications.
Optionally, when the preset state is the static non-interactive state, the power consumption reduction module 302 is configured to close an application meeting a preset condition in currently running applications in the mobile terminal; and/or controlling the mobile terminal to enter a dormant state.
Optionally, when the preset state is the motion non-interactive state, the power consumption reduction module 302 is configured to close applications meeting a preset condition in a target application, where the target application includes applications other than a motion-related application in applications currently running in the mobile terminal; and/or controlling the application currently running in the mobile terminal and each hardware except the hardware related to the motion in the mobile terminal to enter a dormant state, wherein the hardware related to the motion comprises: an acceleration sensor for detecting the acceleration, an angular velocity sensor for detecting the angular velocity, and means for counting steps.
Optionally, when the preset state is the high resource occupation state, the power consumption reduction module 302 is configured to close an application meeting a preset condition in an application currently running in a background in the mobile terminal; and/or controlling hardware in an idle state in the mobile terminal to be powered off.
Optionally, in a case that the power consumption reduction module 302 is configured to close an application meeting a preset condition in applications currently running in the background in the mobile terminal, the apparatus further includes: and the restarting module is configured to restart the application meeting the preset condition under the condition that the mobile terminal is detected to exit the high-resource occupation state.
Optionally, the preset condition is that the usage frequency is lower than a preset frequency threshold or the duration of the background operation is greater than a preset duration threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the power consumption management method of a mobile terminal provided by the present disclosure.
Fig. 4 is a block diagram illustrating a power consumption management apparatus 400 of a mobile terminal according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the power consumption management method of the mobile terminal described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 406 provide power to the various components of device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described power consumption management method of the mobile terminal.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described power consumption management method of a mobile terminal is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned power consumption management method of a mobile terminal when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A power consumption management method of a mobile terminal, comprising:
detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state;
and when the mobile terminal is in the preset state, reducing the power consumption of the mobile terminal according to the preset state.
2. The method according to claim 1, wherein the detecting whether the mobile terminal is in a preset state comprises:
under the condition that operation information of a user for the mobile terminal is not detected within a first preset time, acquiring the acceleration and the angular velocity of the mobile terminal in real time;
under the condition that the acceleration is always smaller than a first preset acceleration threshold value and the duration of the angular velocity which is always smaller than the first preset angular velocity threshold value is larger than or equal to a second preset duration, determining that the mobile terminal is in the static non-interactive state;
determining that the mobile terminal is in the motion non-interactive state under the condition that the acceleration is greater than a second preset acceleration threshold or the angular velocity is greater than a second preset angular velocity threshold, wherein the second preset acceleration threshold is greater than the first preset acceleration threshold, and the second preset angular velocity threshold is greater than the first preset angular velocity threshold;
determining that the mobile terminal is in the high resource occupancy state if at least one of the following conditions is met:
the occupancy rate of a processor of the mobile terminal is greater than a preset occupancy rate threshold value;
the current animation frame rate of the mobile terminal is greater than a preset animation frame rate threshold value;
the current running applications in the mobile terminal comprise preset high-resource-demand applications.
3. The method according to claim 1, wherein when the preset state is the static non-interactive state, the reducing power consumption of the mobile terminal according to the preset state comprises:
closing applications meeting preset conditions in the currently running applications in the mobile terminal; and/or
And controlling the mobile terminal to enter a dormant state.
4. The method according to claim 1, wherein when the preset state is the motion non-interactive state, the reducing power consumption of the mobile terminal according to the preset state comprises:
closing applications meeting preset conditions in target applications, wherein the target applications comprise applications except motion-related applications in the currently running applications in the mobile terminal; and/or
Controlling currently running applications in the mobile terminal and hardware in the mobile terminal except for the hardware related to the motion to enter a dormant state, wherein the hardware related to the motion comprises: an acceleration sensor for detecting the acceleration, an angular velocity sensor for detecting the angular velocity, and means for counting steps.
5. The method according to claim 1, wherein when the preset state is the high resource occupation state, the reducing power consumption of the mobile terminal according to the preset state comprises:
closing applications meeting preset conditions in the applications running in the background currently in the mobile terminal; and/or
And controlling the hardware in the idle state in the mobile terminal to be powered off.
6. The method according to claim 5, wherein in the case that the step of reducing the power consumption of the mobile terminal according to the preset state includes closing an application meeting a preset condition in applications currently running in a background in the mobile terminal, the method further includes:
and restarting the application meeting the preset condition under the condition that the mobile terminal is detected to exit the high resource occupation state.
7. The method according to any one of claims 3 to 6, wherein the preset condition is that the frequency of use is lower than a preset frequency threshold or that the duration of time for which the background operation is placed is greater than a preset duration threshold.
8. A power consumption management apparatus of a mobile terminal, comprising:
the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is configured to detect whether the mobile terminal is in a preset state, and the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state;
the power consumption reducing module is configured to reduce the power consumption of the mobile terminal according to the preset state when the detecting module detects that the mobile terminal is in the preset state.
9. A power consumption management apparatus of a mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting whether the mobile terminal is in a preset state or not, wherein the preset state comprises a static non-interactive state, a motion non-interactive state and a high resource occupation state;
and when the mobile terminal is in the preset state, reducing the power consumption of the mobile terminal according to the preset state.
10. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 7.
CN202011025087.XA 2020-09-25 2020-09-25 Power consumption management method and device for mobile terminal and computer readable storage medium Active CN114253385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011025087.XA CN114253385B (en) 2020-09-25 2020-09-25 Power consumption management method and device for mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011025087.XA CN114253385B (en) 2020-09-25 2020-09-25 Power consumption management method and device for mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114253385A true CN114253385A (en) 2022-03-29
CN114253385B CN114253385B (en) 2024-08-20

Family

ID=80789242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011025087.XA Active CN114253385B (en) 2020-09-25 2020-09-25 Power consumption management method and device for mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114253385B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116861425A (en) * 2023-07-07 2023-10-10 北京亿赛通科技发展有限责任公司 Data scanning method and device and endpoint equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050164633A1 (en) * 2004-01-26 2005-07-28 Nokia Corporation Method, apparatus and computer program product for intuitive energy management of a short-range communication transceiver associated with a mobile terminal
JP2013137407A (en) * 2011-12-28 2013-07-11 Brother Ind Ltd Image display device
EP2642368A2 (en) * 2012-03-19 2013-09-25 VIA Technologies, Inc. Running state power saving via reduced instructions per clock operation
CN104267798A (en) * 2014-09-09 2015-01-07 联想(北京)有限公司 Data processing method and device
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
CN108169775A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN109189200A (en) * 2018-07-17 2019-01-11 歌尔科技有限公司 A kind of wearable device and its power consumption control method
CN109254646A (en) * 2018-09-12 2019-01-22 广东小天才科技有限公司 Power saving method and device for intelligent equipment and intelligent equipment
WO2019071615A1 (en) * 2017-10-13 2019-04-18 华为技术有限公司 Method for reducing power consumption of terminal, and terminal
WO2020052471A1 (en) * 2018-09-14 2020-03-19 中兴通讯股份有限公司 Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
CN111124173A (en) * 2019-11-22 2020-05-08 Oppo(重庆)智能科技有限公司 Working state switching method and device of touch screen, mobile terminal and storage medium
CN111596752A (en) * 2020-03-27 2020-08-28 深圳市和盈互联科技有限公司 Method and device for controlling power consumption mode of terminal and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050164633A1 (en) * 2004-01-26 2005-07-28 Nokia Corporation Method, apparatus and computer program product for intuitive energy management of a short-range communication transceiver associated with a mobile terminal
JP2013137407A (en) * 2011-12-28 2013-07-11 Brother Ind Ltd Image display device
EP2642368A2 (en) * 2012-03-19 2013-09-25 VIA Technologies, Inc. Running state power saving via reduced instructions per clock operation
CN104267798A (en) * 2014-09-09 2015-01-07 联想(北京)有限公司 Data processing method and device
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
WO2019071615A1 (en) * 2017-10-13 2019-04-18 华为技术有限公司 Method for reducing power consumption of terminal, and terminal
CN111052040A (en) * 2017-10-13 2020-04-21 华为技术有限公司 Method for reducing power consumption of terminal and terminal
CN108169775A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN109189200A (en) * 2018-07-17 2019-01-11 歌尔科技有限公司 A kind of wearable device and its power consumption control method
CN109254646A (en) * 2018-09-12 2019-01-22 广东小天才科技有限公司 Power saving method and device for intelligent equipment and intelligent equipment
WO2020052471A1 (en) * 2018-09-14 2020-03-19 中兴通讯股份有限公司 Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
CN111124173A (en) * 2019-11-22 2020-05-08 Oppo(重庆)智能科技有限公司 Working state switching method and device of touch screen, mobile terminal and storage medium
CN111596752A (en) * 2020-03-27 2020-08-28 深圳市和盈互联科技有限公司 Method and device for controlling power consumption mode of terminal and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
俞成海;徐立波;马大伟;王丰;汪佳文;: "一种改进的引入预判决及速度阈值的垂直切换算法", 浙江理工大学学报(自然科学版), no. 06, 10 November 2016 (2016-11-10) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116861425A (en) * 2023-07-07 2023-10-10 北京亿赛通科技发展有限责任公司 Data scanning method and device and endpoint equipment

Also Published As

Publication number Publication date
CN114253385B (en) 2024-08-20

Similar Documents

Publication Publication Date Title
CN106375604B (en) The method and apparatus of controlling terminal electricity
US10282561B2 (en) Method and apparatus for managing application
CN107608561B (en) Touch screen control method and device
US20170055221A1 (en) Method and apparatus for starting energy saving mode
CN110995929A (en) Terminal control method, device, terminal and storage medium
CN106033397B (en) Memory buffer area adjusting method, device and terminal
CN110262692B (en) Touch screen scanning method, device and medium
CN113703937A (en) Animation switching method and device and storage medium
CN114442792A (en) Method and device for adjusting operating frequency of processor and storage medium
CN114595785B (en) Model training method and device, electronic equipment and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN108874450B (en) Method and device for waking up voice assistant
CN111338501A (en) Pressure-sensitive vibration processing method and device, mobile terminal and electronic equipment
CN109062625B (en) Application program loading method and device and readable storage medium
CN110968523A (en) Memory defragmentation method and device
CN114253385B (en) Power consumption management method and device for mobile terminal and computer readable storage medium
CN112947739A (en) Terminal application program management method and device, terminal and storage medium
CN105786561B (en) Method and device for calling process
CN111240456A (en) Power saving setting method, power saving setting device and computer storage medium
CN109491655B (en) Input event processing method and device
CN112748817A (en) Information control method and device, terminal and storage medium
CN112423092A (en) Video recording method and video recording device
CN111722919A (en) Method and device for running background application program, storage medium and electronic equipment
CN112492378B (en) Control method, device and equipment of network television box and storage medium
US10691193B2 (en) Method, apparatus and computer-readable medium for terminal control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant