CN111050388B - Doze mode control method, device, mobile terminal and storage medium - Google Patents

Doze mode control method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN111050388B
CN111050388B CN201911221921.XA CN201911221921A CN111050388B CN 111050388 B CN111050388 B CN 111050388B CN 201911221921 A CN201911221921 A CN 201911221921A CN 111050388 B CN111050388 B CN 111050388B
Authority
CN
China
Prior art keywords
mobile terminal
time period
state
screen
doze mode
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.)
Active
Application number
CN201911221921.XA
Other languages
Chinese (zh)
Other versions
CN111050388A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911221921.XA priority Critical patent/CN111050388B/en
Publication of CN111050388A publication Critical patent/CN111050388A/en
Application granted granted Critical
Publication of CN111050388B publication Critical patent/CN111050388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a Doze mode control method and device, a mobile terminal and a storage medium, and relates to the technical field of mobile terminals. The method is applied to the mobile terminal and comprises the following steps: detecting state information of the mobile terminal; when the state information of the mobile terminal meets the specified state condition, acquiring the current moment; when the current time is in a designated time period, controlling the mobile terminal to enter a Doze mode, wherein the designated time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state; and closing the native Doze detection function of the mobile terminal, wherein the native Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state. Through the method, the mobile terminal can quickly enter the Doze mode, the problem that the mobile terminal cannot easily enter the Doze mode at present is avoided, and therefore power saving efficiency is improved.

Description

Doze mode control method, device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for controlling a Doze mode, a mobile terminal, and a storage medium.
Background
With the rapid development of the mobile internet, the mobile terminal is also continuously updated, more and more applications can be run by the mobile terminal, and the functions that can be realized are more and more powerful. Correspondingly, the power consumption speed of the mobile terminal is also continuously increased, the charging frequency of the mobile terminal is increased, and the use experience of a user is reduced.
Therefore, a Doze mode of the mobile terminal is proposed, and the Doze mode can achieve the purpose of saving power by limiting functions of application wakeup, network connection and the like in the mobile terminal. However, the condition for the mobile terminal to enter the Doze mode is relatively strict at present, and the power saving effect cannot be achieved well.
Disclosure of Invention
In view of the foregoing problems, the present application provides a Doze mode control method, apparatus, mobile terminal and storage medium to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a Doze mode control method, where the method is applied to a mobile terminal, and the method includes: detecting state information of the mobile terminal; when the state information of the mobile terminal meets the specified state condition, acquiring the current moment; when the current time is within a specified time period, controlling the mobile terminal to enter a Doze mode, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state; and closing the native Doze detection function of the mobile terminal, wherein the native Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state.
In a second aspect, an embodiment of the present application provides a Doze mode control apparatus, which is applied to a mobile terminal, and includes: the device comprises a detection module, a current moment acquisition module, a control module and a closing module. The detection module is used for detecting the state information of the mobile terminal. The current moment acquisition module is used for acquiring the current moment when the state information of the mobile terminal meets the specified state condition. The control module is used for controlling the mobile terminal to enter the Doze mode when the current time is within a specified time period, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in the screen-off state. The closing module is used for closing a native Doze detection function of the mobile terminal, and the native Doze detection function is used for controlling the mobile terminal to exit from the Doze mode when detecting that the mobile terminal is in a motion state.
In a third aspect, an embodiment of the present application provides a mobile terminal, including one or more processors, memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the Doze mode control method described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored, and the program code may be called by a processor to execute the Doze mode control method described above.
According to the Doze mode control method and device, the mobile terminal and the storage medium, whether the mobile terminal can enter the Doze mode or not can be effectively determined by detecting the state information of the mobile terminal. When the state information of the mobile terminal meets the specified state condition, the current time is obtained, and when the current time is in the specified time period, the mobile terminal is controlled to enter the Doze mode, wherein the specified time period is obtained based on the historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in the screen-off state, so that whether the mobile terminal is in the unused time period or not can be accurately judged according to the use habit of a user to the mobile terminal, the mobile terminal is allowed to enter the Doze mode in the time period, and the mobile terminal can quickly enter the Doze mode. In addition, through closing the native Doze detect function of mobile terminal after getting into the Doze mode, native Doze detect function is used for when detecting that mobile terminal is in the motion state, controls mobile terminal and withdraws from the Doze mode to effectively avoided the mobile terminal who gets into the Doze mode, withdraw from the Doze mode because of the influence of environment when not used, lead to the problem that can't reach the power saving.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a Doze mode control method according to one embodiment of the present application.
Fig. 2 shows a flowchart of a Doze mode control method according to another embodiment of the present application.
Fig. 3 shows a flowchart of a Doze mode control method according to yet another embodiment of the present application.
Fig. 4 shows a flow chart of a method according to an embodiment of step S330 in the Doze mode control method shown in fig. 3 of the present application.
Fig. 5 shows a flow chart of the method according to an embodiment of step S332 in the Doze mode control method shown in fig. 4 of the present application.
Fig. 6 shows a flowchart of a Doze mode control method according to yet another embodiment of the present application.
Fig. 7 is a functional block diagram of a Doze mode control apparatus according to an embodiment of the present application.
Fig. 8 shows a block diagram of a mobile terminal according to an embodiment of the present application.
Fig. 9 is a storage medium storing or carrying program code for implementing a Doze mode control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the rapid development of the mobile internet, the mobile terminal is also continuously updated, and at present, the mobile terminal has more and more applications and more functions that can be implemented, such as shooting, playing games, playing videos, and the like. The increase in power consumption has led to the charging of the mobile terminal by the user becoming more and more frequent, thereby reducing the user experience.
Therefore, in order to save the system power consumption of the mobile terminal, a Doze mode is introduced into the mobile terminal of the Android system (Android). The Doze mode can achieve the purpose of saving power by limiting functions of application wakeup, network connection and the like in the mobile terminal. However, the conditions for the mobile terminal to enter the Doze mode are relatively strict, and the mobile terminal generally needs to keep the screen-off state for one hour, and the mobile terminal also needs to keep the non-charging state and the static state during the hour to enter the Doze mode. Therefore, it is difficult for a general mobile terminal to satisfy the above conditions and cannot enter the Doze mode, so that the mobile terminal cannot better utilize the Doze mode to achieve the power saving effect.
The inventor finds in practical research that if whether the mobile terminal is currently used is judged according to the historical use data of the mobile terminal, the time for detecting that the mobile terminal is in the unused state can be reduced, and when the mobile terminal is detected to be in the unused state, the mobile terminal is enabled to enter the Doze mode, so that the mobile terminal can be enabled to enter the Doze mode more quickly, the power consumption of the mobile terminal can be effectively reduced, and the power saving goal is achieved.
However, the inventors have also found that since the Doze mode has a function of motion detection which causes a mobile terminal entering the Doze mode to exit the Doze mode because of moving or detecting a moving state, the mobile terminal cannot stably and efficiently enter the Doze mode even when not being used in many scenes, such as a car ride, a user moving, and the like, and thus the power saving purpose is not achieved.
Therefore, in view of the above problems, the inventor proposes a method, an apparatus, a mobile terminal, and a storage medium for controlling a Doze mode in an embodiment of the present application, which can determine whether a current mobile terminal is in an unused state through historical usage data of the mobile terminal, and when the current mobile terminal is in the unused state, control the mobile terminal to enter the Doze mode, thereby avoiding a process of detecting the state of the mobile terminal for a long time, determining whether the mobile terminal is used, and implementing that the mobile terminal quickly enters the Doze mode, thereby achieving a purpose of saving power.
Referring to fig. 1, fig. 1 shows a flowchart of a Doze mode control method provided in an embodiment of the present application, which may be applied to a mobile terminal, where the mobile terminal may be a mobile terminal with a touch screen, and optionally, the mobile terminal includes but is not limited to: smart phones, tablet computers, personal computers, e-book readers, audio players, video players, and the like.
Wherein, the Doze mode control method may include:
s110, detecting the state information of the mobile terminal.
In this embodiment, the mobile terminal may detect its state information, so as to control whether the mobile terminal enters the Doze mode according to the detected state information. The state information may be used to determine whether the mobile terminal can enter the Doze mode. For example, since the Doze mode setting cannot enter the Doze mode when the mobile terminal is in the charged state, the state information may be current detection information of a battery thereof, and it may be determined whether the mobile terminal is in the charged state according to the current detection information.
In some embodiments, the mobile terminal may also detect the state of its battery, the state of the screen, the motion state, and the like. The monitoring can be performed by detecting whether the battery is in a charging state, whether the screen is in a bright screen state or a dark screen state, whether the mobile terminal is in a static state, and the like, so as to obtain state information.
And S120, when the state information of the mobile terminal meets the specified state condition, acquiring the current moment.
When the state information of the mobile terminal meets the specified state condition, the mobile terminal is indicated to meet the setting requirement of the Doze mode. As an example, if the specified state condition is that the mobile terminal is in a non-charging state, the specified state condition is satisfied when it can be determined that the mobile terminal is not in a charging state according to state information of the mobile terminal (e.g., current detection information of a battery).
When the specified state condition is met, the mobile terminal acquires the current time, and in some embodiments, the mobile terminal may acquire the current time through a clock module configured by the mobile terminal. The current time can also be obtained from a cloud server in communication with the mobile terminal, wherein the cloud server records time data in real time. The current time may also be obtained from the other electronic device in a shared manner by establishing communication with the other electronic device. Optionally, the mobile terminal may establish communication with other electronic devices through WiFi, bluetooth, wired connection, and the like.
And S130, when the current time is in a designated time period, controlling the mobile terminal to enter a Doze mode, wherein the designated time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state.
In some embodiments, the mobile terminal may determine whether the current time is within a specified time period. Optionally, the relevant data of the specified time period may be stored locally in the mobile terminal in advance, so as to facilitate the mobile terminal to call. The specified time period is obtained based on the historical usage data of the mobile terminal, and it can be understood that the historical usage data in this embodiment may reflect the usage time and the non-usage condition of the mobile terminal within a time period, that is, reflect the usage habit of the mobile terminal by the user. As an example, for example, through analysis of historical usage data of a mobile terminal, a user will not typically use the mobile terminal within a time period of 12. When the mobile terminal detects that the current time is 12: and 30, if the current time can be determined to be in the designated time period, controlling the mobile terminal to enter the Doze mode, thereby achieving the purpose of saving power.
In some embodiments, the screen of the mobile terminal is used when the user uses the mobile terminal, for example, watching a video, playing a game, looking up information, and the like. Accordingly, the historical usage data of the mobile terminal may be determined by the time the user uses the screen of the mobile terminal. Specifically, when the mobile terminal is in the off-screen state all the time in a period of time, it may be indicated that the user has a high probability of not using the mobile terminal in the period of time, so the historical usage data may represent the period of time in which the mobile terminal is in the off-screen state.
And S140, closing the primary Doze detection function of the mobile terminal, wherein the primary Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state.
In some embodiments, after the mobile terminal enters the Doze mode and the mobile terminal is still in the specified time period at the current time, the mobile terminal may control the mobile terminal to turn off the native Doze detection function, where the native Doze detection function is mainly used to control the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in the motion state, so as to prevent that, in some scenes, for example, riding and walking, the user does not use the mobile terminal, and after the mobile terminal detects that the mobile terminal is in the motion state through the native Doze detection function, a misjudgment is made to make the mobile terminal exit the Doze mode, so that the purpose of saving power cannot be achieved.
In this embodiment, the mobile terminal detects its own state information, and can effectively determine whether the mobile terminal can enter the Doze mode. When the state information of the mobile terminal meets the specified state condition, the current time is obtained, and when the current time is in the specified time period, the mobile terminal is controlled to enter the Doze mode, wherein the specified time period is obtained based on the historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in the screen-off state, so that whether the mobile terminal is in the unused time period at the current time can be accurately and quickly judged according to the use habit of a user on the mobile terminal, the mobile terminal is allowed to enter the Doze mode in the time period, and the mobile terminal can quickly enter the Doze mode. In addition, through closing the native Doze detect function of mobile terminal after getting into the Doze mode, native Doze detect function is used for when detecting that mobile terminal is in the motion state, controls mobile terminal and withdraws from the Doze mode to effectively avoided the mobile terminal who gets into the Doze mode, withdraw from the Doze mode because of the influence of environment when not used, lead to the problem that can't reach the power saving.
Referring to fig. 2, fig. 2 is a flowchart illustrating a Doze mode control method according to another embodiment of the present application, where the method may include:
s210, detecting the state information of the mobile terminal.
The specific implementation of S210 may refer to S110, and is not described herein.
And S220, when the state information of the mobile terminal meets the screen-off state and the non-charging state, determining that the state information of the mobile terminal meets the specified state condition.
In some embodiments, the specified state condition may be used to determine whether the mobile terminal is currently able to enter the Doze mode. Alternatively, the specified status condition may include that the mobile terminal satisfies a screen-out state and satisfies a non-charging state. When the mobile terminal is in the bright screen state, the mobile terminal is used or is about to be used with a high probability, and at the moment, the mobile terminal cannot enter the Doze mode, otherwise, the use of the mobile terminal by a user is influenced, so that the mobile terminal can meet the conditions of the screen-off state and the non-charging state at the same time as the specified state conditions, and the mobile terminal is ensured to enter the Doze mode in the unused state. The mobile terminal can determine whether the state information satisfies a non-charging state by detecting whether a battery of the mobile terminal has current input, and can determine whether the state information satisfies a screen-off state by detecting a display state of a touch screen of the mobile terminal. Accordingly, the state information may include current detection information, brightness detection information, and the like.
In other embodiments, specifying the state condition may further include the mobile terminal satisfying a state in which no application is running in the background. Since there may also be a case where the user uses the mobile terminal through the background of the mobile terminal when the mobile terminal is in the screen-off state and the non-charging state, for example, a music playing application is run in the background of the mobile terminal. Therefore, whether the user uses the mobile terminal can be judged more accurately by detecting whether the application program runs in the background of the mobile terminal, and the influence on the use experience of the user caused by the misjudgment of the mobile terminal entering the Doze mode is avoided.
And S230, when the state information of the mobile terminal meets the specified state condition, acquiring the current moment.
The specific implementation of S230 may refer to S120, and therefore is not described herein.
S240, when the current time is in the designated time period, the time length from the screen-off start to the current time of the mobile terminal is obtained.
As an example, for example, the current time is 12, 30, and the specified time period is 12 to 14, so that the mobile terminal determines that the current time is within the specified time period, at this time, the mobile terminal obtains the time length from the screen-off start to the current time, for example, the mobile terminal is in the screen-off state from 12.
And S250, when the duration is greater than or equal to the time threshold, controlling the mobile terminal to enter the Doze mode. The specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in the screen-off state.
As an example, the time threshold is 15 minutes, for example, and when the acquired duration from the screen-off to the current time is 20 minutes, the mobile terminal controls it to enter the Doze mode.
In some embodiments, when the acquired duration from the screen-off start to the current time is less than the time threshold, the mobile terminal may repeatedly perform S240 and S240 until the mobile terminal is controlled to enter the Doze mode when the acquired duration from the screen-off start to the current time is greater than or equal to the time threshold.
And S260, closing the native Doze detection function of the mobile terminal, wherein the native Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state.
The specific implementation of S260 may refer to S140, and therefore is not described herein.
In this embodiment, by obtaining the duration from the screen-off to the current time of the mobile terminal when the current time is within the specified time period, when the duration is greater than or equal to the time threshold, the mobile terminal is controlled to enter the Doze mode, so that it is ensured that the mobile terminal is controlled to enter the Doze mode when the user does not use the mobile terminal for a long time, and the situation that the user re-uses the mobile terminal after the screen-off is avoided, so that the mobile terminal enters the Doze mode and then exits the Doze mode soon is avoided. Thereby ensuring that the mobile terminal can enter the Doze mode more efficiently.
Referring to fig. 3, fig. 3 is a flowchart illustrating a Doze mode control method according to another embodiment of the present application, where the method may include:
s310, detecting the state information of the mobile terminal.
And S320, when the state information of the mobile terminal meets the specified state condition, acquiring the current moment.
The specific implementation of S310-S320 can refer to S110-S120, and therefore is not described herein.
And S330, acquiring historical use data of the mobile terminal in preset days.
The mobile terminal can call the use time record of the screen within preset days, and the use time record is used as historical use data.
In some embodiments, historical usage data of the mobile terminal over a preset number of days may be obtained as follows.
First, 24 hours a day may be divided into a plurality of time periods in a time period division manner. Optionally, the divided time periods may be equal time periods or unequal time periods, and are not limited herein. And then dividing each day in the preset days according to the time period division mode. For example, the time period may be 48 time periods each day, each time period being 30 minutes, according to a 30-minute division.
As an example, each day may be divided equally in terms of Δ t (in minutes) time, for a total of n =24 x 60/Δ t. Wherein, the set of the plurality of time periods can be represented by P = { P1, P2, P3 \8230; pn }. The time of each segment is Δ t, where the beginning time to the end time of the time segment is incremented, e.g., P1 corresponds to a time segment of 00:00-00:30 And P2 is 00:30-01, P3 is 01:00-01, and so on to obtain the time period of P1-Pn.
Secondly, the mobile terminal can calculate the screen turn-off time period through the screen turn-on and turn-off data recorded in the preset number of days. The on-off screen data may include a plurality of on-screen time points and a plurality of off-screen time points.
As an example, assuming that the preset number of days is D, the plurality of on-screen time points and the plurality of off-screen time points for each day may be sorted in order from small to large, so as to obtain an on-off-screen sequence, for example, the on-off-screen sequence may be represented as: bright screen (t 1), dead screen (t 2), bright screen (t 3), dead screen (t 4) \8230. According to the screen on-off sequence, the screen on-off time period of one day can be calculated as follows: t 1-t 2, t 3-t 4, \ 8230;. The screen-up time periods of the preset number of days can be represented as Ld = { Ld1, ld2, \8230, ld }, ld represents the screen-up time period on the d-th day, and Ldk represents the k-th screen-up time period on the d-th day, wherein the d-day has m screen-up time periods.
Then, canComparing the bright screen time period Ld { Ld1, ld2, \8230;, ldk \8230;, ldm } with the starting time of the time division sequence P { P1, \8230;, pn } if there is a bright screen time period Ld and the time period P k If there is an overlap, it can be considered that the corresponding time period P is reached k The mobile terminal is used, and the time period may be denoted as Udk =1, if there is no bright screen time period Ld and P k When they overlap, udk =0, wherein P k Indicating the kth bright screen period. Specifically, it can be expressed by the following formula:
Figure BDA0002301085200000101
finally, calculating the use probability Rk of each P time period according to the time period marked as Udk =1, wherein the used probability Rk of the mobile terminal corresponding to each time period can be obtained by dividing the number of days in the bright screen time period of the mobile terminal corresponding to each time period by the total preset number of days.
Wherein the probability of use R of the time period Pk k Calculated using the following formula:
Figure BDA0002301085200000102
wherein D represents the total days, U dk And the display unit is used for displaying the time slot Pk of the kth time slot in d days.
The probability R that the mobile terminal is used in the moving process (namely, the probability that the mobile terminal is in a bright screen state) corresponding to each time period in P { P1, \8230;, pn } can be calculated by the method k . Then R is k The historical use data can be obtained as the historical use data of the mobile terminal in the preset number of days.
In other embodiments, as shown in fig. 4, S330 may include the following steps:
s331, dividing time of day in preset days into a plurality of time periods.
In some embodiments, the 24 hours a day may be divided into time periods in a time division manner. Optionally, the divided time periods may be equal time periods, or may also be unequal time periods, which is not limited herein. And then dividing each day in the preset days according to the time period division mode.
S332, the probability that the mobile terminal corresponding to each time period is in the screen-off state is obtained.
As an example, for example, the divided plural time periods include: the mobile terminal screen off state detection method comprises a first time period P1, a second time period P2, a third time period P3 \8230andan nth time period Pn, wherein each time period is associated with the probability that one mobile terminal is in the screen off state in advance, for example, the probability that the mobile terminal corresponding to the first time period P1 is in the screen off state is 50%, the probability that the mobile terminal corresponding to the second time period P2 is in the screen off state is 40%, and the like. Wherein, the probability corresponding to each time period can be calculated according to the historical use data of the mobile terminal. Optionally, the probabilities and the time periods corresponding to each probability may be stored locally in the mobile terminal, or stored in a cloud in communication with the mobile terminal, and when the mobile terminal needs to be used, the probabilities may be directly called from the local or cloud server.
In some embodiments, as shown in fig. 5, S332 may include the steps of:
s3321, selecting a time period of the mobile terminal in the screen-off state from the plurality of time periods as a screen-off time period.
As an example, the plurality of periods may include periods P1, P2, P3 \8230pm, for example, and the periods P2, P3 are selected as the screen-off periods, assuming that it is determined from the history of the mobile terminal that the mobile terminal is in the screen-off state in the periods P2, P3. It is understood that each day includes time periods P1, P2, P3 \ 8230Pm.
And S3322, selecting any time period from the time periods of each day as a target time period, wherein the time period selected from the time periods of each day is the same time period of each day.
As an example, assuming a preset number of days of the week of seven days, for example, a time period P1 in one day is selected as the target time period, P1 specifically being a time of 00-00.
S3323, acquiring the number of days in which the target time period is determined as the screen-off time period among the preset number of days.
As an example, the number of days in the week that P1 is determined as the off-screen period is acquired, for example, during the time period 00-00 on monday, tuesday, wednesday, the mobile terminal is in the off-screen state; the mobile terminal appears in an over-screen state during the time periods 00-00 on thursday, friday, saturday, and sunday. It can be determined that the number of days in which the target period P1 is determined as the off-screen period in the week is 3 days.
S3324, obtaining the probability of the mobile terminal in the screen-off state corresponding to the target time period based on the number of days and the preset number of days.
In some embodiments, the ratio of the number of days in which the target time period is determined to be the screen-off time period in the preset number of days to the preset number of days may be used as the probability that the mobile terminal corresponding to the target time period is in the screen-off state. As an example, the number of days in which the target time period P1 is determined as the screen-off time period in the week is 3 days, and the probability that the mobile terminal corresponding to the target time period P1 is in the screen-off state is 3/7.
Similarly, the probability that the mobile terminal corresponding to the time periods such as P2, P3, \8230amand Pm is in the screen-off state can be calculated through S3322-S3324.
And S333, determining the probability that the mobile terminal is in the screen-off state as historical use data.
As an example, the time periods of P1, P2, P3, \8230'; pm and the probabilities that their respective corresponding mobile terminals are in the screen-off state may be determined as the historical usage data.
In the embodiment, by acquiring the probability that the mobile terminal is in the screen-off state and determining the probability as the historical usage data, whether the mobile terminal is used by the user in the specified time period can be accurately and effectively determined through the historical usage data.
S340, determining a designated time period according to the historical usage data.
In some embodiments, in other embodiments, the S333 may be implemented by determining, as the specified time period, a time period corresponding to a probability that the mobile terminal is in the use state (the bright-screen state) is less than a probability threshold. As an example, a threshold T of the probability of use is set, as the period P k Using probability of R k When the time is less than the threshold value, the user does not use the mobile phone in the time period.
In other embodiments, in S333, a time period corresponding to a probability that the mobile terminal is in the screen-off state being greater than or equal to the probability threshold may be determined as the specified time period. For example, if the probability threshold is 2/7 and the probability that the mobile terminal corresponding to P1 is in the off-screen state is 3/7, P1 may be determined as the specified time period.
And S350, when the current time is in a specified time period, controlling the mobile terminal to enter a Doze mode, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state.
And S360, closing the primary Doze detection function of the mobile terminal, wherein the primary Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state.
The embodiments of S350-S360 can refer to S130-S140, and are not described herein.
In this embodiment, through obtaining the historical use data of the mobile terminal in the preset number of days, and determine the designated time period according to the historical use data, thereby determining whether the mobile terminal is to enter the Doze mode according to the use habit of the user to the mobile terminal, effectively increasing the probability that the mobile terminal enters the Doze mode, and enabling the mobile terminal to enter the Doze mode quickly, avoiding the problem that the current movement state of the mobile terminal needs to be detected for a long time, and the information such as the surrounding environment is taken as the basis for the mobile terminal to enter the Doze mode, so that the mobile terminal can better utilize the Doze mode to achieve the purpose of saving power.
Referring to fig. 6, fig. 6 shows a flowchart of a Doze mode control method according to yet another embodiment of the present application, where the method may include:
and S410, detecting the state information of the mobile terminal.
And S420, when the state information of the mobile terminal meets the specified state condition, acquiring the current moment.
And S430, when the current time is in a specified time period, controlling the mobile terminal to enter a Doze mode, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state.
And S440, closing the native Doze detection function of the mobile terminal, wherein the native Doze detection function is used for controlling the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state.
The specific implementation of S410-S440 can refer to S110-S140, and therefore is not described herein.
And S450, controlling the mobile terminal to keep the Doze mode and starting a native Doze detection function of the mobile terminal when the current time is not within the designated time period.
In some embodiments, when the mobile terminal detects that the current time is not within the specified time period and the mobile terminal still satisfies the specified state condition, the mobile terminal may not exit the Doze mode, but needs to start the native Doze detection function during movement and start to detect whether the mobile terminal is in a motion state in real time. Alternatively, when the mobile terminal is detected to be in a motion state, the movement may control it to exit the Doze mode.
In some embodiments, the mobile terminal may determine whether the mobile terminal is in a motion state through data detected by an acceleration sensor, a gyro sensor, or the like, and may determine that the mobile terminal is in a motion state if the acceleration detected by the acceleration sensor, the gyro sensor, or the like is not 0, and may determine that the mobile terminal is in a stationary state if the acceleration detected by the acceleration sensor, the gyro sensor, or the like is 0.
In this embodiment, by controlling the mobile terminal to maintain the Doze mode and starting the native Doze detection function of the mobile terminal when the current time is not within the specified time period, it can be ensured that the mobile terminal can quickly respond to the operation of the user when the user may use the mobile terminal, thereby improving the user experience.
Referring to fig. 7, which illustrates a Doze mode control apparatus 200 provided in an embodiment of the present application, where the apparatus 200 may be applied to a mobile terminal, the Doze mode control apparatus 200 includes: a detection module 210, a current time acquisition module 220, a control module 230, and a shutdown module 240.
The detecting module 210 is configured to detect status information of the mobile terminal.
A current time obtaining module 220, configured to obtain the current time when the state information of the mobile terminal meets a specified state condition.
And the control module 230 is configured to control the mobile terminal to enter the Doze mode when the current time is within a specified time period, where the specified time period is obtained based on historical usage data of the mobile terminal and is used to represent a time period when the mobile terminal is in the screen-off state.
And a closing module 240, configured to close a native Doze detection function of the mobile terminal, where the native Doze detection function is configured to control the mobile terminal to exit the Doze mode when it is detected that the mobile terminal is in a motion state.
Further, the apparatus 200 further comprises:
and the appointed state condition determining module is used for determining that the state information of the mobile terminal meets the appointed state condition when the state information of the mobile terminal meets the screen-off state and the non-charging state.
Further, the control module 230 is specifically configured to, when the current time is within a specified time period, obtain a duration from the screen-off to the current time of the mobile terminal; and when the duration is greater than or equal to the time threshold, controlling the mobile terminal to enter the Doze mode.
Further, the apparatus 200 further comprises:
and the historical use data acquisition module is used for acquiring the historical use data of the mobile terminal in the preset number of days.
And the specified time period determining module is used for determining the specified time period according to the historical use data.
Further, the historical usage data acquisition module includes:
a time period dividing unit for dividing time of each day in preset days into a plurality of time periods.
And the probability acquisition unit is used for acquiring the probability that the mobile terminal corresponding to each time period is in the screen-off state.
And the historical use data determining unit is used for determining the probability that the mobile terminal is in the screen-off state as the historical use data.
Further, the probability obtaining unit includes:
and the screen turn-off time period selecting subunit is used for selecting a time period in which the mobile terminal is in a screen turn-off state from the plurality of time periods as a screen turn-off time period.
And the target time period selecting subunit is used for selecting any one time period from the multiple time periods of each day as the target time period, wherein any one time period selected from the multiple time periods of each day is the same time period of each day.
And the screen-off time number acquisition subunit is used for acquiring the number of days of which the target time period is determined as the screen-off time period in the preset number of days.
And the probability acquiring subunit is used for acquiring the probability of the mobile terminal in the screen-off state corresponding to the target time period based on the number of days and the preset number of days.
Further, the designated time period determining module is specifically configured to determine a time period corresponding to a probability that the mobile terminal is in the off-screen state is greater than or equal to a probability threshold as the designated time period.
Further, the apparatus 200 further comprises:
and the detection function starting module is used for controlling the mobile terminal to keep the Doze mode and starting the native Doze detection function of the mobile terminal when the current time is not in the designated time period.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 7, a block diagram of a mobile terminal according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be the mobile terminal 100 capable of running the program in the foregoing embodiments. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more programs, wherein the one or more programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts throughout the mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU) 110, a Graphics Processing Unit (GPU) 110, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) 120, and may also include a Read-Only Memory (Read-Only Memory) 120. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area can also store data (such as a phone book, audio and video data, chat record data) created by the terminal in use and the like.
The touch screen is used to Display information input by a user, information provided to the user, and various graphic user interfaces of the mobile terminal, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer readable medium 300 has stored therein a program code 310, and the program code 310 can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has a storage space for program code for performing any of the method steps of the above-described method. The program code can be read from and written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
In summary, the method, the device, the mobile terminal, and the storage medium for controlling the Doze mode provided in the embodiments of the present application detect the state information of the mobile terminal itself, and can effectively determine whether the mobile terminal can enter the Doze mode. When the state information of the mobile terminal meets the specified state condition, the current time is obtained, and when the current time is in the specified time period, the mobile terminal is controlled to enter the Doze mode, wherein the specified time period is obtained based on the historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in the screen-off state, so that whether the mobile terminal is in the unused time period or not can be accurately and quickly judged according to the use habit of a user to the mobile terminal, the mobile terminal is allowed to enter the Doze mode in the time period, the probability that the mobile terminal enters the Doze mode can be greatly increased, and the mobile terminal can quickly enter the Doze mode to achieve the effect of saving standby power consumption. In addition, through closing the native Doze detect function of mobile terminal after getting into the Doze mode, native Doze detect function is used for when detecting that mobile terminal is in the motion state, controls mobile terminal and withdraws from the Doze mode to effectively avoided the mobile terminal who gets into the Doze mode, withdraw from the Doze mode because of the influence of environment when not used, lead to the problem that can't reach the power saving.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A Doze mode control method applied to a mobile terminal, the method comprising:
detecting state information of the mobile terminal;
when the state information of the mobile terminal meets the specified state condition, acquiring the current moment;
when the current time is within a specified time period, controlling the mobile terminal to enter a Doze mode, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period that the mobile terminal is in a screen-off state, the historical use data is the probability that the mobile terminal is in the screen-off state corresponding to each time period, and the time periods are obtained by dividing the time of each day in preset days;
closing a native Doze detection function of the mobile terminal, wherein the native Doze detection function is used for controlling the mobile terminal to exit the Doze mode when the mobile terminal is detected to be in a motion state;
and when the current time is not in the designated time period, controlling the mobile terminal to keep the Doze mode, and starting a native Doze detection function of the mobile terminal.
2. The method according to claim 1, further comprising, after the detecting the status information of the mobile terminal:
and when the state information of the mobile terminal meets the screen-off state and the non-charging state, determining that the state information of the mobile terminal meets the specified state condition.
3. The method according to claim 2, wherein said controlling the mobile terminal to enter into Doze mode when the current time is within a specified time period comprises:
when the current time is within a specified time period, acquiring the time length from the screen-off to the current time of the mobile terminal;
and when the duration is greater than or equal to a time threshold, controlling the mobile terminal to enter the Doze mode.
4. The method according to claim 1, wherein the method for obtaining the probability that the mobile terminal corresponding to each time period is in the off-screen state comprises:
selecting a time period of the mobile terminal in a screen-off state from the plurality of time periods as a screen-off time period;
selecting any one time period from the plurality of time periods of each day as a target time period, wherein any one time period selected from the plurality of time periods of each day is the same time period of each day;
acquiring the number of days of the target time period determined as the screen-off time period in the preset number of days;
acquiring the number of days that the mobile terminal is in a screen-off state in the preset number of days of the target time period
And obtaining the probability of the mobile terminal in the screen-off state corresponding to the target time period based on the number of days and the preset number of days.
5. The method of claim 4, wherein determining the specified time period from the historical usage data comprises:
and determining the time period corresponding to the probability that the mobile terminal is in the screen-off state and greater than or equal to the probability threshold as the specified time period.
6. A Doze mode control apparatus applied to a mobile terminal, the apparatus comprising:
the detection module is used for detecting the state information of the mobile terminal;
a current moment obtaining module, configured to obtain a current moment when the state information of the mobile terminal meets a specified state condition;
the control module is used for controlling the mobile terminal to enter a Doze mode when the current time is within a specified time period, wherein the specified time period is obtained based on historical use data of the mobile terminal and is used for representing the time period when the mobile terminal is in a screen-off state, the historical use data is the probability that the mobile terminal is in the screen-off state corresponding to each time period, and the time periods are obtained by dividing the time of each day in preset days;
a closing module, configured to close a native Doze detection function of the mobile terminal, where the native Doze detection function is configured to control the mobile terminal to exit the Doze mode when detecting that the mobile terminal is in a motion state; and when the current moment is not in the designated time period, controlling the mobile terminal to keep the Doze mode, and starting a native Doze detection function of the mobile terminal.
7. A mobile terminal, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, which program code can be called by a processor to execute the method according to any of claims 1-5.
CN201911221921.XA 2019-12-03 2019-12-03 Doze mode control method, device, mobile terminal and storage medium Active CN111050388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911221921.XA CN111050388B (en) 2019-12-03 2019-12-03 Doze mode control method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911221921.XA CN111050388B (en) 2019-12-03 2019-12-03 Doze mode control method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111050388A CN111050388A (en) 2020-04-21
CN111050388B true CN111050388B (en) 2023-01-06

Family

ID=70233483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911221921.XA Active CN111050388B (en) 2019-12-03 2019-12-03 Doze mode control method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111050388B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766611B (en) * 2020-06-02 2023-08-11 深圳市万普拉斯科技有限公司 Low-power consumption control optimization method and device, mobile terminal and storage medium
CN113766614B (en) * 2021-06-10 2023-04-18 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment
CN116382786B (en) * 2023-06-07 2023-09-01 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635058A (en) * 2017-07-31 2018-01-26 捷开通讯(深圳)有限公司 The control method of mobile terminal and its Doze patterns, readable storage medium storing program for executing
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN109474979A (en) * 2018-12-29 2019-03-15 联想(北京)有限公司 Information processing method and electronic equipment
CN110198558A (en) * 2019-05-09 2019-09-03 深圳市万普拉斯科技有限公司 Standby optimization method, device, computer equipment and storage medium
CN110461032A (en) * 2019-09-05 2019-11-15 北京安云世纪科技有限公司 A kind of electricity-saving control method and device of mobile terminal
CN110519834A (en) * 2019-09-05 2019-11-29 北京安云世纪科技有限公司 A kind of electricity saving method and device of mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101624903B1 (en) * 2009-09-16 2016-05-30 삼성전자주식회사 Apparatus and method for reducing power consumption in portable terminal
KR101906834B1 (en) * 2011-04-19 2018-10-11 삼성전자주식회사 Device and method for selecting resource of application in wireless terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635058A (en) * 2017-07-31 2018-01-26 捷开通讯(深圳)有限公司 The control method of mobile terminal and its Doze patterns, readable storage medium storing program for executing
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN109474979A (en) * 2018-12-29 2019-03-15 联想(北京)有限公司 Information processing method and electronic equipment
CN110198558A (en) * 2019-05-09 2019-09-03 深圳市万普拉斯科技有限公司 Standby optimization method, device, computer equipment and storage medium
CN110461032A (en) * 2019-09-05 2019-11-15 北京安云世纪科技有限公司 A kind of electricity-saving control method and device of mobile terminal
CN110519834A (en) * 2019-09-05 2019-11-29 北京安云世纪科技有限公司 A kind of electricity saving method and device of mobile terminal

Also Published As

Publication number Publication date
CN111050388A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111050388B (en) Doze mode control method, device, mobile terminal and storage medium
CN108681475B (en) Application program preloading method and device, storage medium and mobile terminal
US9058128B1 (en) Power management for electronic devices
CN107809542B (en) Application program control method and device, storage medium and electronic equipment
CN111309400A (en) Process control method, device, storage medium and electronic equipment
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN108595224B (en) Application program prompting method and device, storage medium and terminal
CN107343096B (en) Information reminding method and device, storage medium and electronic equipment
CN103299687A (en) Extending battery life of a portable electronic device
CN110554762A (en) Method and terminal for controlling application program
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
US20170053517A1 (en) Method, device and storage medium for reminding in shutdown state
CN107526424B (en) Terminal energy saving method and device
CN109471516B (en) Terminal, power consumption control method and device thereof, and computer readable storage medium
CN108171965B (en) Arrival reminding method and device, storage medium and mobile terminal
CN111045507B (en) List management and control method, device, mobile terminal and storage medium
CN107748697B (en) Application closing method and device, storage medium and electronic equipment
CN110795172A (en) Foreground process control method and device, electronic equipment and storage medium
CN113050783B (en) Terminal control method and device, mobile terminal and storage medium
CN110830653B (en) Sensor control method, sensor control device, mobile terminal and storage medium
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
CN111479016A (en) Terminal use duration reminding method and device, terminal and storage medium
CN111290565A (en) Doze mode control method, device, terminal and storage medium
CN113055984A (en) Terminal control method and device, mobile terminal and storage medium

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