Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a low power consumption control optimization method is provided, and this embodiment is illustrated by applying the method to a mobile terminal, it is to be understood that the method may also be applied to a server, and may also be applied to a system including the mobile terminal and the server, and is implemented by interaction between the mobile terminal and the server. In this embodiment, the method includes the steps of:
and 102, monitoring that the mobile terminal is awakened to light on a screen in a low power consumption mode.
The low power consumption mode is to limit applications in a non-white list in the mobile terminal from occupying a Central Processing Unit (CPU) and accessing a network under the condition that the mobile terminal is not connected to a power supply and is not awakened or turned off for a long time, so as to reduce power consumption. The white list refers to a set of applications that are set to run in the background in the low power mode; non-whitelisting refers to a collection of applications that are prohibited from running in the background in Doze mode. The low power Mode (Doze Mode) may include Light Idle (Light ild) and Deep Idle (Deep Idle), where Light ild refers to a lightweight restriction, and the mobile terminal may restrict network policy, delay JobSchedule, and synchronize tasks when entering Light ild; the mobile terminal is wider than the Light Ild limit range in Deep Idle, and entering Deep Idle limits NetworkPolicy, WakeLock, delay JobSchedule, synchronization task, standard Alarm and stop WiFi scan. The network policy is a strategy for controlling the networking of the three-party application, and the three-party application cannot access the network under the condition of a non-foreground process or a low process state priority or a non-white list; WakeLock is an application which cannot be applied under the conditions of non-foreground processes, low process state priority or non-white lists in a low power consumption mode; JobSchedule means that execution is delayed until the low power consumption mode is left, and the execution is normally performed in the low power consumption mode under a white list; the Alarm refers to a delayed response Alarm, and does not influence the Alarm which is accurately awakened; wifi scan refers to stopping Wifi scanning.
Specifically, when the sensor of the mobile terminal monitors that the mobile terminal is awakened from the Doze mode and is on the bright screen, the mobile terminal exits from the Doze mode. For example, the user clicks a screen-up button of the mobile terminal, and the mobile terminal receives a screen-up instruction and controls the mobile terminal to exit the Doze mode and to light up the screen.
And 104, acquiring the awakening duration of the mobile terminal in the bright screen state when the mobile terminal is switched from the bright screen state to the screen-off state.
Specifically, the mobile terminal exits from the low power consumption mode, the mobile terminal is turned off after being awakened for a period of time in the screen-on state, and the screen-off state is switched to obtain the awakening time of the mobile terminal in the screen-on state. The mobile terminal entering the screen-out state may be the user triggering a screen-out button on the mobile terminal.
And step 106, when the awakening duration is less than or equal to the preset bright screen duration, controlling the mobile terminal to enter a low power consumption mode.
The preset screen-on duration is that when the screen-on of the mobile terminal reaches the preset duration, the mobile terminal is controlled to enter a low power consumption mode. The preset screen-on duration can also be determined according to the electric quantity of the mobile terminal battery, and the preset screen-on duration is prolonged along with the reduction of the electric quantity of the mobile terminal battery.
Specifically, when the wake-up duration of the mobile terminal in the bright screen state is less than the preset bright screen duration, the mobile terminal is controlled to enter a low power consumption mode, and NetworkPolicy, delay schedule and the like applied in the mobile terminal are limited. Optionally, when the wake-up duration is less than or equal to the preset bright screen duration, the mobile terminal is controlled to enter a second idle state of deep idle in the low power consumption mode, and in the second idle state, the non-white list application of the terminal is limited to NetworkPolicy, deferred JobSchedule wakelock, JobSchedule, standard Alarm and stop wifi scan.
In the low power consumption control optimization method, when the mobile terminal is monitored to be awakened to be on screen in a low power consumption mode, and when the mobile terminal is switched from a screen-on state to a screen-off state, the awakening time of the mobile terminal in the screen-on state is obtained; comparing the awakening time of the mobile terminal awakened to be bright in the low power consumption mode with the preset bright screen time, and controlling the mobile terminal to enter the low power consumption mode when the awakening time is less than or equal to the preset bright screen time; the mobile terminal is operated in a short time, and can enter the low power consumption mode without waiting for a set time length, so that the time period for the mobile terminal to enter the low power consumption mode is shortened, and the energy consumption of the mobile terminal is further reduced.
In another embodiment, as shown in fig. 2, a low power consumption control optimization method is provided, which is exemplified by being applied to a mobile terminal in this embodiment, and the method in this embodiment includes the following steps:
step 202, acquiring the current electric quantity of a battery of the mobile terminal, and determining the preset screen-on duration of the mobile terminal entering the low power consumption mode according to the current electric quantity.
Optionally, the preset screen-on duration may also be determined according to the electric quantity of the battery of the mobile terminal, and the preset screen-on duration is prolonged along with the reduction of the electric quantity of the battery of the mobile terminal. For example, when the electric quantity is less than 10 banks, the preset screen-on duration T is 5 min; when the electric quantity is more than or equal to 10 banks and less than 20 banks, presetting the screen-on time T to be 4 min; when the electric quantity is more than or equal to 20 banks and less than 40 banks, presetting the screen-on time T to be 3 min; when the electric quantity is more than or equal to 40 libraries and less than 60 libraries, presetting the screen-on time T to be 2 min; when the electric quantity is greater than or equal to 60 storehouses, the preset screen-on time T is 1 min.
And 204, monitoring that the mobile terminal is awakened to light on the screen in the low power consumption mode.
And step 206, when the mobile terminal is switched from the screen-on state to the screen-off state, acquiring the awakening time of the mobile terminal in the screen-on state.
The mobile terminal exits from the low power consumption mode, is turned off after being awakened for a period of time in the screen-on state, and is switched to the screen-off state to obtain the awakening time of the mobile terminal in the screen-on state. For example, the mobile terminal is a mobile phone, the mobile phone is unlocked and exits from the low power consumption mode, the screen is turned off after the information in the mobile phone is clicked and checked, and the time length for checking the information of the mobile phone is the awakening time length of the mobile phone in the bright screen state.
And step 208, when the awakening duration is longer than the preset bright screen duration, controlling the mobile terminal to enter a first idle state of slight idle.
Specifically, when the mobile terminal exits from the low power consumption mode and is awakened by the bright screen, and the awakening duration is longer than the preset bright screen duration, namely the first idle state indicates that the mobile terminal enters a light idle state, the non-white list application is limited to awaken the NetworkPolicy, the JobSchedule and the synchronization task.
Step 210, when the duration of the mobile terminal in the first idle state is equal to the preset duration, controlling the mobile terminal to enter a second idle state of deep idle.
The preset duration refers to a duration from a first lightly idle state to a second deeply idle state, and is shorter than a duration from the first lightly idle state to the second deeply idle state in the native Doze mode. For example, the duration of entering the deep idle second idle state from the lightly idle first idle state in the native Doze mode is 2min, and the preset duration is 1 min.
Specifically, when the duration of the mobile terminal in the first idle state is equal to the preset duration, the mobile terminal is controlled to enter a deep idle second idle state from the lightly idle first idle state in the low power consumption mode, and the JobSchedule, the delay standard Alarm, the synchronization task and the wifi scan which are applied in the non-white list are limited. As shown in fig. 3, when the mobile terminal is awakened to be bright in the low power consumption mode, and the awakening duration is less than or equal to the preset bright screen duration, the mobile terminal is controlled to enter the second deep idle state of the low power consumption mode, and in the original low power consumption mode, the mobile terminal needs to enter the second light idle state of the low power consumption mode and then enter the second deep idle state of the low power consumption mode; when the awakening time length is longer than the preset bright screen time length, the mobile terminal is controlled to enter a first idle state of slight idle, when the time length of the mobile terminal in the first idle state is equal to the preset time length, the mobile terminal is controlled to enter a second idle state of deep idle, and the preset time length is shorter than the time length of the mobile terminal in the original low power consumption mode from the first idle state of slight idle to the second idle state of deep idle.
In one embodiment, when the mobile terminal enters a first idle state, the screen-on duration of the mobile terminal in the first idle state is acquired; when the screen-on duration is less than or equal to the preset duration, controlling the mobile terminal to enter a second idle state; and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state. As shown in fig. 4, in the original low power consumption mode, the mobile terminal wakes up to be on the screen in the first idle state, and needs to enter the second idle state of the low power consumption mode after entering the second idle state of the light idle state again. The mobile terminal is awakened in the current low power consumption mode, when the mobile terminal enters the first idle state, the screen-on duration of the mobile terminal in the first idle state is shorter than the preset duration, the mobile terminal enters the second idle state from the first idle state, the time period of the mobile terminal entering the second idle state is shortened, the mobile terminal rapidly enters the second idle state, the current is reduced, the power consumption loss of the mobile terminal is reduced, and the awakening life of a battery of the mobile terminal is prolonged.
In another embodiment, as shown in fig. 5, a low power consumption control optimization method is provided, for example, the method is applied to a mobile terminal for illustration, and in this embodiment, the method includes the following steps:
step 502, when the mobile terminal enters the low power consumption mode, acquiring the application awakened by the mobile terminal in the bright screen state.
Alternatively, the Application that the mobile terminal is woken up in the bright screen state may be an Application (APP), a Light Application (Light APP), and the like, and the Light Application is an Application that needs no download, i.e., is searched for, such as an applet; the application may be a communication application, an office application, or a reading application, etc.
Step 504, updating a white list corresponding to the low power consumption mode according to the awakened application; the white list is a set of applications that are set to run in the background in the low power mode.
Step 506, managing each application in the updated white list according to the updated white list.
Specifically, the application awakened in the bright screen state is added into a white list of the mobile terminal, the application awakened in the bright screen state in the white list is delayed, and actions such as network access, WakeLock permission application, timed awakening and the like of each application in the updated white list are delayed and managed.
Optionally, according to the updated white list, managing each application in the updated white list includes: distributing the application authority of the wake-up lock to each application in the updated white list; and when the time length of the awakening lock held by each application is equal to a first preset time length, releasing the awakening lock by each application and deleting each application from the white list. For example, applications that are woken up in the bright screen state include an a application and a B application, which are added to a white list, and the delay limits the action rights of the a application and the B application. For example, in the low power consumption mode, the permission of the application for the Wake Lock of the application a is limited by delaying for 30min (minutes), that is, the application a can continue to apply for acquiring the Wake Lock within 30 min; then setting alarm, removing the application A from the white list after 30min, and updating the restriction rule of Wake Lock. The application awakened in the bright screen state is added into the white list, and the delay limit authority of the application awakened in the bright screen state is given, so that data delay and data loss caused by the fact that the mobile terminal rapidly enters the low power consumption mode are avoided, and normal awakening of the application is guaranteed.
Optionally, according to the updated white list, managing each application in the updated white list includes: prolonging the network access time of each application in the updated white list; and when the network access duration is equal to a second preset duration, interrupting the network access of each application and deleting each application from the white list. For example, an application awakened by the mobile terminal in the bright screen state is added into a white list, when the application awakened in the bright screen state is in the low power consumption mode, a network policy of an operating system in the mobile terminal is updated, the network access duration of each application in the updated white list is prolonged, for example, the duration is prolonged by 5min, an alarm is set, the application awakened in the bright screen state is deleted from the white list after 5min, and the network policy is updated. The application awakened in the bright screen state is added into the white list, and the delay limit authority of the application awakened in the bright screen state is given, so that data delay and data loss caused by the fact that the mobile terminal rapidly enters the low power consumption mode are avoided, and normal awakening of the application is guaranteed.
In the low power consumption control optimization method, when the mobile terminal enters a low power consumption mode, the application of the mobile terminal which is awakened in a bright screen state is obtained; updating a white list corresponding to the low power consumption mode according to the awakened application; the white list is a set of applications that are set to run in the background in the low power mode; and managing each application in the updated white list according to the updated white list. Namely, after the mobile terminal enters the low power consumption mode, the application awakened in the bright screen state is added into the white list, and the delay limit authority of the application awakened in the bright screen state is given, so that data delay and data loss caused by the fact that the mobile terminal rapidly enters the low power consumption mode are avoided, the timeliness and integrity of the data are guaranteed, and the normal awakening of the application is guaranteed.
In an embodiment, as shown in fig. 6, a low power consumption control optimization step is provided, which is exemplified by applying the step to a mobile terminal, and in this embodiment, the step includes the following steps:
step 602, when the mobile terminal is switched from the on-screen state to the off-screen state, acquiring the wake-up duration of the mobile terminal in the on-screen state.
Step 604, determining whether the wake-up time is greater than a preset screen-on time, if not, performing step 606, otherwise, performing step 608.
The preset screen-on duration is determined according to the current electric quantity of the mobile terminal battery.
Step 606, the mobile terminal is controlled to enter a deep idle second idle state.
Step 608, the mobile terminal is controlled to enter a first idle state of light idle.
In step 610, it is determined whether the mobile terminal is in the first idle state of light idle or not, if yes, step 614 is executed, otherwise, step 612 is executed.
Step 612, when the duration of the mobile terminal in the first idle state is equal to the preset duration, controlling the mobile terminal to enter a second idle state of deep idle.
Step 614, obtaining the screen-on duration of the mobile terminal in the first idle state.
In step 616, it is determined whether the screen-on duration is greater than the preset duration, if yes, step 618 is executed, otherwise, step 606 is executed.
In step 618, the mobile terminal is controlled to re-enter the first idle state of light idle.
In the low-power control optimization step, the preset screen-on duration for the mobile terminal to enter a low-power mode is determined according to the current electric quantity by acquiring the current electric quantity of a battery of the mobile terminal; when the mobile terminal is monitored to be awakened to be on screen in a low power consumption mode, acquiring the awakening time of the mobile terminal in the on screen state when the mobile terminal is switched from the on screen state to the off screen state; the low power consumption mode comprises a first idle state of light idle and a second idle state of deep idle, and when the awakening duration is less than or equal to the preset bright screen duration, the mobile terminal system is controlled to enter the second idle state of deep idle of the low power consumption mode; when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle; and when the time length of the mobile terminal in the first idle state is equal to the preset time length, controlling the mobile terminal to enter a second idle state of deep idle. When the mobile terminal enters a first idle state, acquiring the screen-on duration of the mobile terminal in the first idle state; when the screen-on duration is less than or equal to the preset duration, controlling an operating system of the mobile terminal to enter a second idle state; and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state. The time period of the mobile terminal entering the low power consumption mode is shortened, the mobile terminal is enabled to rapidly enter the low power consumption mode, the current is reduced, the power consumption loss of the mobile terminal is reduced, and the awakening life of a battery of the mobile terminal is prolonged.
In an embodiment, as shown in fig. 7, an architecture diagram of a low power consumption control optimization method is provided, which is exemplified by applying the method to a mobile terminal, where the architecture diagram of the low power consumption control optimization method includes a low power consumption control function, a device idle state monitoring function, a power management service function, and a network policy management function; for example, the low power consumption control function is smartdoze.java, the device idle state monitoring function is devicedycontroller.java, the power management service function is powermanagerservice.java, and the network policy management function is networkpolicymanagervice.java.
The method comprises the steps that a mobile terminal is awakened to be in a bright screen state by monitoring that the mobile terminal is awakened to be in a low power consumption mode, when the mobile terminal is switched from the bright screen state to a screen-off state, the awakening time of the mobile terminal in the bright screen state is obtained, whether the awakening time is greater than preset bright screen time is judged through a low power consumption control function SmartDoze. When the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle; when the duration of the mobile terminal in the first idle state is equal to the preset duration, controlling the mobile terminal to enter a second deep idle state; when the mobile terminal enters a low power consumption mode, the equipment idle state monitoring function obtains an application awakened by the mobile terminal in a bright screen state for the device IdleController. The method comprises the steps that PowerManagerService java mainly controls whether Wake Lock needs to be limited, after a white list transmitted by SmartDoze. The method comprises the steps that the network policy manager service.java is used for controlling a network policy, after a white list transmitted by SmartDoze.java is received, the network policy of an operating system in the mobile terminal is updated, the network access duration of each application in the updated white list is prolonged, for example, 5min is prolonged, the alarm is set, the application awakened in a bright screen state is deleted from the white list after 5min, and the network policy is updated. The mobile terminal is operated in a short time, so that the time period of the mobile terminal entering a low power consumption mode is shortened, and the energy consumption of the mobile terminal is further reduced; and ensuring normal awakening of the application within a certain time after the application enters the low power consumption mode.
In one embodiment, the preset screen-on duration for the mobile terminal to enter the low-power-consumption mode is determined according to the current electric quantity by acquiring the current electric quantity of a battery of the mobile terminal; when the mobile terminal is monitored to be awakened to be on screen in a low power consumption mode, acquiring the awakening time of the mobile terminal in the on screen state when the mobile terminal is switched from the on screen state to the off screen state; the low power consumption mode comprises a first idle state of light idle and a second idle state of deep idle, and when the awakening duration is less than or equal to the preset bright screen duration, the mobile terminal system is controlled to enter the second idle state of deep idle of the low power consumption mode; when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle; and when the time length of the mobile terminal in the first idle state is equal to the preset time length, controlling the mobile terminal to enter a second idle state of deep idle. When the mobile terminal enters a first idle state, acquiring the screen-on duration of the mobile terminal in the first idle state; when the screen-on duration is less than or equal to the preset duration, controlling an operating system of the mobile terminal to enter a second idle state; and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state.
When the mobile terminal enters a low power consumption mode, acquiring an application awakened by the mobile terminal in a bright screen state; updating a white list corresponding to the low power consumption mode according to the awakened application, wherein the white list is a set of applications which are set to run in a background under the low power consumption mode; and managing each application in the updated white list according to the updated white list. Wherein, according to the updated white list, managing each application in the updated white list comprises: the application authority of the wake-up lock is distributed to each application in the updated white list, and when the time length of the wake-up lock held by each application is equal to a first preset time length, each application releases the wake-up lock and deletes each application from the white list; prolonging the network access time of each application in the updated white list; and when the network access duration is equal to a second preset duration, interrupting the network access of each application and deleting each application from the white list. The mobile terminal is operated in a short time, and can enter the low power consumption mode without waiting for a set time length, so that the time period for the mobile terminal to enter the low power consumption mode is shortened, and the energy consumption of the mobile terminal is further reduced; and adding the application awakened in the bright screen state into the white list, and giving a delay limit authority to the application awakened in the bright screen state, so that data delay and data loss caused by the fact that the mobile terminal rapidly enters a low power consumption mode are avoided, and normal awakening of the application is ensured.
It should be understood that, although the steps in the flowcharts of fig. 1-2, 5-7 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 and 5-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, there is provided a low power consumption control optimization apparatus, including: a monitoring module 802, an acquisition module 804, and a control module 806, wherein:
the monitoring module 802 is configured to monitor that the mobile terminal is awakened to be on screen in the low power consumption mode;
an obtaining module 804, configured to obtain a wake-up duration of the mobile terminal in a screen-on state when the mobile terminal is switched from the screen-on state to a screen-off state;
a control module 806, configured to control the mobile terminal to enter the low power consumption mode when the wake-up duration is less than or equal to the preset bright screen duration.
In the low-power-consumption control optimization device, when the mobile terminal is monitored to be awakened to be on screen in the low-power-consumption mode and the mobile terminal is switched from the on-screen state to the off-screen state, the awakening time of the mobile terminal in the on-screen state is obtained; comparing the awakening time of the mobile terminal awakened to be bright in the low power consumption mode with the preset bright screen time, and controlling the mobile terminal to enter the low power consumption mode when the awakening time is less than or equal to the preset bright screen time; the mobile terminal is operated in a short time, and can enter the low power consumption mode without waiting for a set time length, so that the time period for the mobile terminal to enter the low power consumption mode is shortened, and the energy consumption of the mobile terminal is further reduced.
In another embodiment, as shown in fig. 9, a low power consumption control optimization apparatus is provided, which includes, in addition to a monitoring module 802, an obtaining module 804 and a control module 806: a determination module 808, an update module 810, a management module 812, an assignment module 814, and a delay module 816, wherein:
the determining module 808 is configured to obtain a current electric quantity of a battery of the mobile terminal, and determine a preset screen-on duration for the mobile terminal to enter the low power consumption mode according to the current electric quantity.
In one embodiment, the control module 806 is further configured to control the mobile terminal system to enter a second deep idle state of the low power consumption mode when the wake-up duration is less than or equal to the preset bright screen duration;
when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle;
and when the time length of the mobile terminal in the first idle state is equal to the preset time length, controlling the mobile terminal to enter a second idle state of deep idle.
In one embodiment, the control module 806 is further configured to obtain a screen-on duration of the mobile terminal in the first idle state when the mobile terminal enters the first idle state; when the screen-on duration is less than or equal to the preset duration, controlling an operating system of the mobile terminal to enter a second idle state; and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state.
In one embodiment, the obtaining module 804 is further configured to obtain an application that the mobile terminal is awakened in a bright screen state when the mobile terminal enters the low power consumption mode.
An updating module 810, configured to update a white list corresponding to the low power consumption mode according to the awakened application; the white list is a set of applications that are set to run in the background in the low power mode.
In one embodiment, the updating module 810 is further configured to cause the applications to release the wake lock and delete the applications from the white list when the duration that the applications hold the wake lock is equal to the first preset duration.
In one embodiment, the updating module 810 is further configured to interrupt the access of each application to the network and delete each application from the white list when the network access duration is equal to the second preset duration.
And a management module 812, configured to manage each application in the updated white list according to the updated white list.
An allocating module 814, configured to allocate the application authority of the wake lock to each application in the updated white list.
A delay module 816, configured to prolong the network access duration of each application in the updated white list.
In one embodiment, the current electric quantity of the battery of the mobile terminal is obtained through the determining module 808, and the preset screen-on duration for the mobile terminal to enter the low-power-consumption mode is determined according to the current electric quantity; the monitoring module 802 monitors that the mobile terminal is awakened to be on screen in a low power consumption mode, and when the mobile terminal is switched from a screen-on state to a screen-off state, the obtaining module 804 obtains the awakening time of the mobile terminal in the screen-on state; the low power consumption mode includes a first idle state of light idle and a second idle state of deep idle, and when the wake-up duration is less than or equal to the preset bright screen duration, the control module 806 controls the mobile terminal system to enter the second idle state of deep idle of the low power consumption mode; when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle; when the duration of the mobile terminal in the first idle state is equal to the preset duration, the control module 806 controls the mobile terminal to enter the second idle state of deep idle. When the mobile terminal enters a first idle state, acquiring the screen-on duration of the mobile terminal in the first idle state; when the screen-on duration is less than or equal to the preset duration, the control module 806 controls the operating system of the mobile terminal to enter a second idle state; when the screen-on duration is longer than the preset duration, the control module 806 controls the mobile terminal to re-enter the first idle state.
When the mobile terminal enters a low power consumption mode, the obtaining module 804 obtains an application that the mobile terminal is awakened in a bright screen state; the updating module 810 updates a white list corresponding to the low power consumption mode according to the awakened application, wherein the white list is a set of applications which are set to run in the background in the low power consumption mode; the management module 812 manages each application in the updated white list according to the updated white list. Wherein, according to the updated white list, managing each application in the updated white list comprises: the allocating module 814 allocates the application authority of the wake-up lock to each application in the updated white list, and when the duration of the wake-up lock held by each application is equal to a first preset duration, the updating module 810 enables each application to release the wake-up lock and delete each application from the white list; the delay module 816 prolongs the network access time of each application in the updated white list; when the network access duration is equal to a second preset duration, the update module 810 interrupts each application from accessing the network and deletes each application from the white list. The mobile terminal is operated in a short time, and can enter a low power consumption mode without waiting for a set time, so that the energy consumption of the mobile terminal is reduced; the application awakened in the bright screen state is added into the white list, and the delay limit authority of the application awakened in the bright screen state is given, so that data delay and data loss caused by the fact that the mobile terminal rapidly enters the low power consumption mode are avoided, and normal awakening of the application is guaranteed.
For specific limitations of the low power consumption control optimization device, reference may be made to the above limitations of the low power consumption control optimization method, which are not described herein again. The modules in the low power consumption control optimization device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the mobile terminal, and can also be stored in a memory in the mobile terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a mobile terminal is provided, the internal structure of which may be as shown in fig. 10. The mobile terminal comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the mobile terminal is configured to provide computing and control capabilities. The memory of the mobile terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the mobile terminal is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a low power consumption control optimization method. The display screen of the mobile terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the mobile terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the mobile terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the mobile terminal to which the disclosed aspects apply, as a particular mobile terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a mobile terminal is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
monitoring that the mobile terminal is awakened to be bright in a low power consumption mode;
when the mobile terminal is switched from a screen-on state to a screen-off state, acquiring the awakening duration of the mobile terminal in the screen-on state;
and when the awakening time is less than or equal to the preset bright screen time, controlling the mobile terminal to enter a low power consumption mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the method comprises the steps of obtaining the current electric quantity of a battery of the mobile terminal, and determining the preset screen-on duration of the mobile terminal entering a low-power-consumption mode according to the current electric quantity.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the low power consumption mode comprises a first idle state of light idle and a second idle state of deep idle;
and when the awakening duration is less than or equal to the preset bright screen duration, controlling the mobile terminal system to enter a second deep idle state of the low power consumption mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle;
and when the time length of the mobile terminal in the first idle state is equal to the preset time length, controlling the mobile terminal to enter a second idle state of deep idle.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the mobile terminal enters a first idle state, acquiring the screen-on duration of the mobile terminal in the first idle state;
when the screen-on duration is less than or equal to the preset duration, controlling the mobile terminal to enter a second idle state;
and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the mobile terminal enters a low power consumption mode, acquiring an application awakened by the mobile terminal in a bright screen state;
updating a white list corresponding to the low power consumption mode according to the awakened application; the white list is a set of applications that are set to run in the background in the low power mode;
and managing each application in the updated white list according to the updated white list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
distributing the application authority of the wake-up lock to each application in the updated white list;
and when the time length of the awakening lock held by each application is equal to a first preset time length, releasing the awakening lock by each application and deleting each application from the white list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
prolonging the network access time of each application in the updated white list;
and when the network access duration is equal to a second preset duration, interrupting the network access of each application and deleting each application from the white list.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
monitoring that the mobile terminal is awakened to be bright in a low power consumption mode;
when the mobile terminal is switched from a screen-on state to a screen-off state, acquiring the awakening duration of the mobile terminal in the screen-on state;
and when the awakening time is less than or equal to the preset bright screen time, controlling the mobile terminal to enter a low power consumption mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the method comprises the steps of obtaining the current electric quantity of a battery of the mobile terminal, and determining the preset screen-on duration of the mobile terminal entering a low-power-consumption mode according to the current electric quantity.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the low power consumption mode comprises a first idle state of light idle and a second idle state of deep idle;
and when the awakening duration is less than or equal to the preset bright screen duration, controlling the mobile terminal system to enter a second deep idle state of the low power consumption mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the awakening time length is longer than the preset bright screen time length, controlling the mobile terminal to enter a first idle state of slight idle;
and when the time length of the mobile terminal in the first idle state is equal to the preset time length, controlling the mobile terminal to enter a second idle state of deep idle.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the mobile terminal enters a first idle state, acquiring the screen-on duration of the mobile terminal in the first idle state;
when the screen-on duration is less than or equal to the preset duration, controlling the mobile terminal to enter a second idle state;
and when the screen-on duration is longer than the preset duration, controlling the mobile terminal to re-enter the first idle state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the mobile terminal enters a low power consumption mode, acquiring an application awakened by the mobile terminal in a bright screen state;
updating a white list corresponding to the low power consumption mode according to the awakened application; the white list is a set of applications that are set to run in the background in the low power mode;
and managing each application in the updated white list according to the updated white list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
distributing the application authority of the wake-up lock to each application in the updated white list;
and when the time length of the awakening lock held by each application is equal to a first preset time length, releasing the awakening lock by each application and deleting each application from the white list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
prolonging the network access time of each application in the updated white list;
and when the network access duration is equal to a second preset duration, interrupting the network access of each application and deleting each application from the white list.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium that may be awakened in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.