WO2021244566A1 - 低功耗控制优化方法、装置、移动终端和存储介质 - Google Patents

低功耗控制优化方法、装置、移动终端和存储介质 Download PDF

Info

Publication number
WO2021244566A1
WO2021244566A1 PCT/CN2021/097887 CN2021097887W WO2021244566A1 WO 2021244566 A1 WO2021244566 A1 WO 2021244566A1 CN 2021097887 W CN2021097887 W CN 2021097887W WO 2021244566 A1 WO2021244566 A1 WO 2021244566A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
duration
screen
idle state
power consumption
Prior art date
Application number
PCT/CN2021/097887
Other languages
English (en)
French (fr)
Inventor
陈旭明
Original Assignee
深圳市万普拉斯科技有限公司
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 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2021244566A1 publication Critical patent/WO2021244566A1/zh

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
    • 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
    • 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
    • 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/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • 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

Definitions

  • This application relates to the technical field of mobile terminals, and in particular to a low-power consumption control optimization method, device, mobile terminal, and storage medium.
  • the mobile terminal introduces the power consumption optimization mode of the Doze mechanism.
  • the device When the device is not connected to the power source and is idle for a long time, the system will enter the Doze state to delay the mobile terminal app background.
  • the purpose of CPU wake-up and network activity is to save system power consumption, protect battery, and extend battery wake-up time.
  • the current Doze mechanism exits the Doze mode after a short period of time after the mobile terminal enters the Doze mode to turn on the screen, and the mobile terminal needs to wait a fixed period of time before re-entering the Doze mode, resulting in a long time for the mobile terminal to enter the low-power mode.
  • a low power consumption control optimization method includes:
  • the mobile terminal is woken up and the screen is turned on in the low power consumption mode
  • a low power consumption control optimization device includes:
  • the monitoring module is used to monitor that the mobile terminal is woken up and the screen is turned on in the low power consumption mode
  • the acquiring module is configured to acquire the wake-up duration of the mobile terminal in the on-screen state when the mobile terminal switches from the on-screen state to the off-screen state;
  • the control module is 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 screen-on duration.
  • a mobile terminal includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when the processor executes the computer program:
  • the mobile terminal is woken up and the screen is turned on in the low power consumption mode
  • the mobile terminal is woken up and the screen is turned on in the low power consumption mode
  • the aforementioned low-power control optimization method, device, mobile terminal, and storage medium detect that when the mobile terminal is awakened in the low-power consumption mode and the screen is turned on, when the mobile terminal switches from the on-screen state to the off-screen state, the mobile terminal is acquired Wake-up time in the bright screen state; compare the wake-up time when the mobile terminal is woken up in low power consumption mode with the preset screen-on time. When the wake-up time is less than or equal to the preset screen-on time, control the movement The terminal enters the low power consumption mode; the mobile terminal is operated in a short period of time and does not need to wait for a set time before entering the low power consumption mode. This shortens the time period for the mobile terminal to enter the low power consumption mode, thereby reducing the energy consumption of the mobile terminal.
  • FIG. 1 is a schematic flowchart of a low-power control optimization method in an embodiment
  • FIG. 2 is a schematic flowchart of a low-power control optimization method in another embodiment
  • FIG. 3 is a schematic diagram of the effect of a low-power control optimization method in an embodiment
  • FIG. 4 is a schematic diagram of the effect of a low-power control optimization method in another embodiment
  • FIG. 5 is a schematic flowchart of a low-power control optimization method in another embodiment
  • FIG. 6 is a schematic flowchart of a low power consumption control optimization step in an embodiment
  • FIG. 7 is a structural diagram of a low-power control optimization method in an embodiment
  • FIG. 8 is a structural block diagram of a low power consumption control optimization device in an embodiment
  • FIG. 9 is a structural block diagram of a low power consumption control optimization device in another embodiment.
  • Fig. 10 is an internal structure diagram of a mobile terminal in an embodiment.
  • a low-power control optimization method is provided.
  • This embodiment uses the method applied to a mobile terminal for illustration. It is understood that the method can also be applied to a server. It can also be applied to a system including a mobile terminal and a server, and is implemented through the interaction between the mobile terminal and the server. In this embodiment, the method includes the following steps.
  • Step 102 It is monitored that the mobile terminal is awakened and the screen is turned on in the low power consumption mode.
  • the low-power mode refers to when the mobile terminal is not connected to a power source and has not been woken up for a long time or the screen is not moving, restricting the non-whitelisted applications in the mobile terminal from occupying the central processing unit (CPU) and accessing Network, to achieve the purpose of reducing power consumption.
  • the whitelist refers to the collection of applications that are set to run in the background in low-power mode; the non-whitelist refers to the collection of applications that are prohibited from running in the background in Doze mode.
  • Low power consumption mode Doze Mode
  • Light Ilde can include light idle (Light Ilde) and deep idle (Deep Idle).
  • Light Ilde refers to lightweight restrictions. When mobile terminals enter Light Ilde, NetworkPolicy (network policy) will be restricted.
  • NetworkPolicy is a strategy that controls the networking of third-party applications.
  • Second-party applications cannot access the network if the priority of non-foreground processes or process states is low or is not whitelisted; WakeLock is in low power mode, non-foreground processes and process states are prioritized Applications with lower levels or non-whitelisting conditions cannot apply; JobSchedule means to delay execution after leaving the low-power mode, and the whitelist will execute normally in low-power mode; Alarm means delayed response alarm, for accurate wake-up The alarm does not affect; Wifi scan means to stop wifi scan.
  • the mobile terminal when the sensor of the mobile terminal detects that the mobile terminal is awakened from the Doze mode and the screen is turned on, the mobile terminal exits the Doze mode. For example, by clicking the bright screen button of the mobile terminal, the mobile terminal receives a screen bright instruction, and controls the mobile terminal to exit the Doze mode and brighten the screen.
  • Step 104 When the mobile terminal switches from the on-screen state to the off-screen state, acquire the wake-up time length of the mobile terminal in the on-screen state.
  • the mobile terminal exits the low power consumption mode, the mobile terminal is turned off after being awakened for a period of time in the on-screen state, is switched to the off-screen state, and the wake-up duration of the mobile terminal in the on-screen state is obtained.
  • the mobile terminal entering the screen-off state may be the user triggering the screen-off button on the mobile terminal.
  • Step 106 When the wake-up duration is less than or equal to the preset screen-on duration, control the mobile terminal to enter a low power consumption mode.
  • the preset screen-on time period is to control the mobile terminal to enter the low power consumption mode when the screen-on time of the mobile terminal reaches a preset time period.
  • the preset screen-on duration may also be determined according to the battery power of the mobile terminal, and the preset screen-on duration is extended as the battery power of the mobile terminal decreases.
  • the mobile terminal when the wake-up duration of the mobile terminal in the on-screen state is less than the preset on-screen duration, the mobile terminal is controlled to enter a low power consumption mode, and the NetworkPolicy and delayed JobSchedule applied in the mobile terminal are restricted.
  • the mobile terminal when the wake-up duration is less than or equal to the preset screen-on duration, the mobile terminal is controlled to enter the low-power mode deep idle second idle state. In the second idle state, the terminal's non-whitelisted applications are restricted by NetworkPolicy, and JobScheduleWakeLock is delayed. , JobSchedule, standard Alarm and stop wifi scan.
  • the wake-up of the mobile terminal in the on-screen state is obtained Duration: by judging the wake-up duration of the mobile terminal being awakened in the low-power mode with the preset screen-on duration, when the wake-up duration is less than or equal to the preset screen-on duration, the mobile terminal is controlled to enter the low-power consumption mode; The mobile terminal is operated in a short period of time, and there is no need to wait for a set time to enter the low power consumption mode, which shortens the time period for the mobile terminal to enter the low power consumption mode, thereby reducing the energy consumption of the mobile terminal.
  • a low power consumption control optimization method is provided.
  • the method is applied to a mobile terminal for illustration.
  • the method includes the following steps.
  • Step 202 Obtain the current power level of the mobile terminal battery, and determine the preset screen-on duration for the mobile terminal to enter the low power consumption mode according to the current power level.
  • the preset screen-on duration may also be determined according to the battery power of the mobile terminal, and the preset screen-on duration is extended as the battery power of the mobile terminal decreases.
  • the preset screen-on time T is 5min; when the battery power is greater than or equal to 10 banks and less than 20 banks, the preset screen-on time T is 4min; when the battery power is greater than or equal to 20 banks and less than 40 banks, the preset Set the screen-on time T to 3min; when the battery power is greater than or equal to 40 banks and less than 60 banks, the preset screen-on time T is 2min; when the battery power is greater than or equal to 60 banks, the preset screen-on time T is 1min.
  • Step 204 It is monitored that the mobile terminal is awakened and the screen is turned on in the low power consumption mode.
  • Step 206 When the mobile terminal switches from the screen-on state to the screen-off state, acquire the wake-up time length of the mobile terminal in the screen-on state.
  • the mobile terminal exits the low power consumption mode, the mobile terminal is turned off after being awakened for a period of time in the on-screen state, and then switched to the off-screen state to obtain the wake-up duration of the mobile terminal in the on-screen state.
  • the mobile terminal is a mobile phone
  • the mobile phone is unlocked and exits from the low power consumption mode. After clicking to view the information in the mobile phone, the screen turns off.
  • the duration of viewing the mobile phone information is the wake-up time of the mobile phone in the on-screen state.
  • Step 208 When the wake-up duration is greater than the preset screen-on duration, control the mobile terminal to enter a first idle state where it is lightly idle.
  • the first idle state means that when the mobile terminal enters a light idle state, non-whitelisted applications are restricted from waking up NetworkPolicy, JobSchedule, and Synchronize tasks.
  • Step 210 When the time period during which the mobile terminal is in the first idle state is equal to the preset time period, control the mobile terminal to enter the second idle state of deep idle state.
  • the preset duration refers to the duration from the first idle state of lightly idle to the second idle state of deep idle, and the preset duration is longer than that in the native Doze mode from the first idle state of lightly idle to the second idle state of deep idle.
  • the duration of the idle state For example, in the native Doze mode, the duration from the lightly idle first idle state to the deep idle second idle state is 2 min, and the preset duration is 1 min.
  • the mobile terminal when the mobile terminal is in the first idle state for a period of time equal to the preset period of time, the mobile terminal is controlled to enter the second idle state of deep idle from the lightly idle first idle state of the low power consumption mode, and the non-white list is restricted Applied JobSchedule, delay standard Alarm, synchronization task and stop wifiscan.
  • the mobile terminal when the mobile terminal is woken up in the low-power mode and the screen is turned on, when the wake-up duration is less than or equal to the preset screen-on duration, the mobile terminal is controlled to enter the low-power mode, which is a deep idle second idle state, In the original low-power mode, the mobile terminal needs to enter the lightly idle second idle state of the low-power mode and then enter the deep idle second idle state; when the wake-up time is longer than the preset screen-on time, the mobile terminal is controlled Enter the lightly idle first idle state. When the mobile terminal is in the first idle state for a period of time equal to the preset period of time, the mobile terminal is controlled to enter the deep idle second idle state. The preset period of time is lighter than that in the original low power consumption mode. The length of time for the first idle state with a degree of idleness to enter the second idle state with a deep 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, the mobile terminal is controlled to enter the second idle state ; When the screen-on duration is greater than the preset duration, the mobile terminal is controlled to re-enter the first idle state.
  • the mobile terminal in the original low-power mode, the mobile terminal wakes up and lights up in the first idle state, and needs to re-enter the lightly idle second idle state in the low-power mode before entering the deep idle second idle state. state. The mobile terminal is awakened in the current low power consumption mode.
  • the mobile terminal When the mobile terminal enters the first idle state, when the screen-on duration of the mobile terminal in the first idle state is less than the preset duration, the mobile terminal enters the second idle state from the first idle state.
  • the idle state shortens the time period for the mobile terminal to enter the second idle state, enables the mobile terminal to quickly enter the second idle state, reduces current and reduces power consumption of the mobile terminal, and prolongs the wake-up life of the mobile terminal's battery.
  • a low power consumption control optimization method is provided.
  • the method is applied to a mobile terminal for illustration.
  • the method includes the following steps.
  • Step 502 When the mobile terminal enters the low power consumption mode, obtain the application that the mobile terminal is awakened in the on-screen state.
  • the application that the mobile terminal is woken up in the bright screen state can be an application (APP) and a light application (Light App), etc.
  • the light application is an application that does not need to be downloaded and is search-and-use, such as Small program; the application can be a communication application, an office application, or a reading application, etc.
  • Step 504 Update the white list corresponding to the low power consumption mode according to the applications that are awakened; the white list is a collection of applications that are set to run in the background in the low power consumption mode.
  • Step 506 Manage each application in the updated whitelist according to the updated whitelist.
  • the applications that are awakened in the bright screen state are added to the white list of the mobile terminal, the applications in the white list that are awakened in the bright screen state are delayed, and the network access and application for each application in the updated white list are delayed.
  • WakeLock authority, timing wakeup and other actions are delayed management.
  • the management of each application in the updated white list includes: assigning the application permission of the wake lock to each application in the updated white list; when each application holds the wake lock When it is equal to the first preset duration, each application is caused to release the wake-up lock and each application is deleted from the whitelist.
  • the applications that are awakened in the bright screen state include the A application and the B application.
  • the A application and the B application are added to the whitelist, and the action permissions of the A application and the B application are delayed.
  • a delay of 30 minutes (minutes) limits the permission of application A to apply for Wake Lock, that is, application A can continue to apply for Wake Lock within 30 minutes; set the alarm again, and remove it from the white list after 30 minutes Delete the A application and update the restriction rules of Wake Lock.
  • the delayed restriction authority is given to the applications that are awakened in the bright screen state, so as to avoid data delay and data loss caused by the mobile terminal quickly entering the low-power mode, and Ensure the normal wake-up of the application.
  • managing each application in the updated whitelist according to the updated whitelist includes: extending the network access duration of each application in the updated whitelist; when the network access duration is equal to the second preset duration , Interrupt each application's access to the network and delete each application from the whitelist. For example, the application that wakes up in the bright screen state of the mobile terminal is added to the whitelist. When the application that wakes up in the bright screen state is in low power consumption mode, update the network policy of the operating system in the mobile terminal to extend the updated whitelist The network access duration of each application, such as extending 5 minutes, set the alarm, after 5 minutes, the application that wakes up under the bright screen state will be deleted from the whitelist, and the network policy will be updated.
  • the delayed restriction authority is given to the applications that are awakened in the bright screen state, so as to avoid data delay and data loss caused by the mobile terminal quickly entering the low-power mode, and Ensure the normal wake-up of the application.
  • the application that the mobile terminal is awakened in the on-screen state is obtained; the white list corresponding to the low-power mode is updated according to the awakened application; the white list is A collection of applications that are set to run in the background in the low power consumption mode; each application in the updated whitelist is managed according to the updated whitelist. That is, after the mobile terminal enters the low-power mode, the application that is awakened in the bright screen state is added to the whitelist, and the application that is awakened in the bright screen state is given the delay limit permission, so as to prevent the mobile terminal from quickly entering low power consumption.
  • the data delay and data loss caused by the mode ensure the timeliness and integrity of the data and ensure the normal wake-up of the application.
  • a low power consumption control optimization step is provided.
  • this step is applied to a mobile terminal as an example.
  • this step includes the following steps.
  • Step 602 When the mobile terminal switches from the screen-on state to the screen-off state, acquire the wake-up time length of the mobile terminal in the screen-on state.
  • step 604 it is determined whether the wake-up duration is greater than the preset screen-on duration, if not, step 606 is executed, otherwise, step 608 is executed.
  • the preset screen-on duration is determined based on the current power of the mobile terminal battery.
  • Step 606 Control the mobile terminal to enter the second idle state of deep idle.
  • Step 608 Control the mobile terminal to enter a first idle state where it is lightly idle.
  • step 610 it is determined whether the screen of the mobile terminal is turned on in the first idle state when it is lightly idle, if yes, execute step 614; otherwise, execute step 612.
  • Step 612 When the time period during which the mobile terminal is in the first idle state is equal to the preset time period, control the mobile terminal to enter the second idle state of deep idle state.
  • Step 614 Obtain the screen-on duration of the mobile terminal in the first idle state.
  • step 616 it is determined whether the screen-on duration is greater than the preset duration, if it is, step 618 is executed; otherwise, step 606 is executed.
  • Step 618 Control the mobile terminal to re-enter the lightly idle first idle state.
  • the low-power control optimization step by obtaining the current power of the mobile terminal battery, according to the current power, the preset screen-on time for the mobile terminal to enter the low-power mode is determined; it is monitored that the mobile terminal is woken up and the screen is turned on in the low-power mode , When the mobile terminal switches from the on-screen state to the off-screen state, obtain the wake-up duration of the mobile terminal in the on-screen state; the low-power consumption mode includes the first idle state with light idle and the second idle state with deep idle.
  • the mobile terminal When the wake-up time is less than or equal to the preset screen-on time, the mobile terminal is controlled to enter the second idle state of deep idle in low-power mode; when the wake-up time is longer than the preset screen-on time, the mobile terminal is controlled to enter the lightly idle second idle state.
  • An idle state when the mobile terminal is in the first idle state for a period of time equal to the preset period of time, the mobile terminal is controlled to enter the deep idle second idle state.
  • the mobile terminal When the mobile terminal enters the first idle state, obtain 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, control the operating system of the mobile terminal to enter the second idle state; When the screen duration is greater than the preset duration, the mobile terminal is controlled to re-enter the first idle state. Shorten the time period for the mobile terminal to enter the low power consumption mode, enable the mobile terminal to quickly enter the low power consumption mode, reduce current and reduce the power loss of the mobile terminal, and extend the wake-up life of the mobile terminal battery.
  • an architecture diagram of a low-power control optimization method is provided.
  • the method is applied to a mobile terminal as an example.
  • the architecture diagram of the low-power control optimization method includes Low power consumption control function, device idle state monitoring function, power management service function, and network policy management function; for example, the low power control function is SmartDoze.java, the device idle state monitoring function is DeviceIdleController.java, and the power management service function is PowerManagerService .java, the network policy management function is NetworkPolicyManagerService.java.
  • the wake-up time of the mobile terminal in the on-screen state is obtained through the low-power control function SmartDoze.
  • Java determines whether the wake-up duration is greater than the preset screen-on duration, and when the wake-up duration is less than or equal to the preset screen-on duration, controls the mobile terminal to enter the low-power mode and deep idle second idle state.
  • the mobile terminal When the wake-up time is longer than the preset screen-on time, the mobile terminal is controlled to enter the first idle state of lightly idle; when the time of the mobile terminal in the first idle state is equal to the preset time, the mobile terminal is controlled to enter the second idle state of deep idle State; when the mobile terminal enters the low-power mode, the device idle state monitoring function is DeviceIdleController.java to obtain the application that the mobile terminal is awakened in the bright screen state, and update the whitelist corresponding to the low-power mode according to the awakened application. The updated whitelist is sent to the low-power control function SmartDoze.java.
  • the low-power control function SmartDoze.java sends the updated whitelist to DeviceIdleController.java and the power management service function to PowerManagerService.java. , And call DeviceIdleController.java and PowerManagerService.java through the interface; PowerManagerService java mainly controls whether Wake Lock needs to be restricted.
  • the mobile terminal is operated in a short time, shortening the time period for the mobile terminal to enter the low power consumption mode, thereby reducing the energy consumption of the mobile terminal; and ensuring that the application wakes up normally within a certain period of time after entering the low power consumption mode.
  • the preset screen-on duration for the mobile terminal to enter the low-power mode is determined according to the current power; it is monitored that the mobile terminal is woken up in the low-power mode and the screen is turned on when moving When the terminal switches from the on-screen state to the off-screen state, the wake-up duration of the mobile terminal in the on-screen state is obtained; the low-power consumption mode includes the first idle state with light idle and the second idle state with deep idle.
  • the mobile terminal When the mobile terminal enters the first idle state, obtain 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, control the operating system of the mobile terminal to enter the second idle state; When the screen duration is greater than the preset duration, the mobile terminal is controlled to re-enter the first idle state.
  • the mobile terminal When the mobile terminal enters the low-power mode, obtain the application that the mobile terminal is awakened in the bright-screen state; update the whitelist corresponding to the low-power mode according to the awakened application, and the whitelist is set to be in the low-power mode A collection of applications running in the background; according to the updated whitelist, each application in the updated whitelist is managed.
  • the management of each application in the updated white list includes: assigning the application permission of the wake lock to each application in the updated white list, when each application holds the wake lock for a period of time equal to the first For a preset duration, make each application release the wake lock and delete each application from the whitelist; extend the network access duration of each application in the updated whitelist; when the network access duration is equal to the second preset duration, interrupt Each application accesses the network and removes each application from the whitelist.
  • the mobile terminal is operated in a short period of time, and there is no need to wait for a set time to enter the low-power mode, shorten the time period for the mobile terminal to enter the low-power mode, thereby reducing the energy consumption of the mobile terminal;
  • the awakened application is added to the whitelist, and the delayed limit permission is given to the application awakened in the bright screen state, so as to avoid the data delay and data loss caused by the mobile terminal quickly entering the low-power mode, and to ensure the normal wake-up of the application.
  • a low power consumption control optimization device which includes: a monitoring module 802, an acquisition module 804, and a control module 806.
  • the monitoring module 802 is used to monitor that the mobile terminal is awakened and the screen is turned on in the low power consumption mode
  • the acquiring module 804 is configured to acquire the wake-up duration of the mobile terminal in the on-screen state when the mobile terminal switches from the on-screen state to the off-screen state;
  • the control module 806 is 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 screen-on duration.
  • the wake-up of the mobile terminal in the on-screen state is obtained Duration: by judging the wake-up duration of the mobile terminal being awakened in the low-power mode with the preset screen-on duration, when the wake-up duration is less than or equal to the preset screen-on duration, the mobile terminal is controlled to enter the low-power consumption mode; The mobile terminal is operated in a short period of time, and there is no need to wait for a set time to enter the low power consumption mode, which shortens the time period for the mobile terminal to enter the low power consumption mode, thereby reducing the energy consumption of the mobile terminal.
  • a low power consumption control optimization device which, in addition to a monitoring module 802, an acquisition module 804, and a control module 806, also includes: a determination module 808, an update module 810, The management module 812, the distribution module 814, and the delay module 816 are among them.
  • the determining module 808 is configured to obtain the current power of the mobile terminal battery, and determine the preset screen-on duration for the mobile terminal to enter the low power consumption mode according to the current power.
  • control module 806 is further configured to control the mobile terminals to enter the deep idle second idle state in the low power consumption mode when the wake-up duration is less than or equal to the preset screen-on duration;
  • the mobile terminal When the time period during which the mobile terminal is in the first idle state is equal to the preset time period, the mobile terminal is controlled to enter the second idle state that is deeply idle.
  • control module 806 is further configured to obtain the 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, control the movement The operating system of the terminal enters the second idle state; when the screen-on time period is greater than the preset time period, the mobile terminal is controlled to enter the first idle state again.
  • the acquiring module 804 is also used to acquire the application that the mobile terminal is awakened in the on-screen state when the mobile terminal enters the low power consumption mode.
  • the update module 810 is configured to update the white list corresponding to the low power consumption mode according to the awakened application; the white list is a collection of applications set to run in the background in the low power consumption mode.
  • the update module 810 is further configured to enable each application to release the wake lock and delete each application from the white list when the duration of each application holding the wake lock is equal to the first preset duration.
  • the update module 810 is further configured to interrupt each application's access to the network and delete each application from the whitelist when the network access duration is equal to the second preset duration.
  • the management module 812 is configured to manage each application in the updated white list according to the updated white list.
  • the allocation module 814 is configured to allocate the application permission of the wake lock to each application in the updated white list.
  • the delay module 816 is used to extend the network access duration of each application in the updated whitelist.
  • the determination module 808 obtains the current power of the mobile terminal battery, and determines the preset screen-on duration for the mobile terminal to enter the low-power consumption mode according to the current power; the monitoring module 802 detects that the mobile terminal is in the low-power mode Wake up the screen, when the mobile terminal switches from the screen on state to the off state, the acquisition module 804 obtains the wake-up duration of the mobile terminal in the on-screen state; the low-power consumption mode includes the lightly idle first idle state and the deep idle state In the second idle state, when the wake-up duration is less than or equal to the preset screen-on duration, the control module 806 controls the mobile terminal to enter the low-power mode deep idle second idle state; when the wake-up duration is greater than the preset screen-on duration, Control the mobile terminal to enter the first idle state of lightly idle; when the time period of the mobile terminal in the first idle state is equal to the preset period of time, the control module 806 controls the mobile terminal to enter the second idle state of deep idle.
  • the control module 806 controls the operating system of the mobile terminal to enter the second idle state ;
  • the control module 806 controls the mobile terminal to re-enter the first idle state.
  • the acquiring module 804 acquires the application that is awakened in the on-screen state of the mobile terminal; the updating module 810 updates the white list corresponding to the low-power mode according to the awakened application.
  • the consumption mode it is set as a collection of applications running in the background; the management module 812 manages each application in the updated white list according to the updated white list.
  • the management of each application in the updated white list includes: the allocation module 814 allocates the application permission of the wake lock to each application in the updated white list, and when each application holds the wake lock When the duration is equal to the first preset duration, the update module 810 causes each application to release the wake-up lock and delete each application from the whitelist; the delay module 816 extends the network access duration of each application in the updated whitelist; when the network access duration is When it is equal to the second preset duration, the update module 810 interrupts each application to access the network and deletes each application from the whitelist.
  • the mobile terminal is operated in a short period of time, and there is no need to wait for the set time to enter the low-power mode, reducing the energy consumption of the mobile terminal; by adding the application that is awakened in the bright screen state to the whitelist, the bright screen state is given
  • the delay restriction authority of the application that is awakened can be avoided to avoid data delay and data loss caused by the mobile terminal quickly entering the low-power mode, and to ensure the normal wake-up of the application.
  • each module in the above-mentioned low power consumption control optimization device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the mobile terminal, or may be stored in the memory of the mobile terminal in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a mobile terminal is provided, and its internal structure diagram may be as shown in FIG. 10.
  • the mobile terminal includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus.
  • the processor of the mobile terminal is used to provide calculation and control capabilities.
  • the memory of the mobile terminal includes a non-volatile 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 the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the mobile terminal is used to communicate with an external terminal in a wired or wireless manner.
  • the wireless manner can be implemented through WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the computer program is executed by the processor to realize a low power consumption control optimization method.
  • the display screen of the mobile terminal may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the mobile terminal may be a touch layer covered on the display screen, or a button, trackball or touch pad set on the shell of the mobile terminal , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the mobile terminal to which the solution of the present application is applied.
  • the specific mobile terminal may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a mobile terminal including a memory and a processor, and a computer program is stored in the memory, and the processor implements the following steps when the processor executes the computer program.
  • the mobile terminal It is monitored that the mobile terminal is woken up and the screen is turned on in low power consumption mode; when the mobile terminal is switched from the on-screen state to the off-screen state, the wake-up duration of the mobile terminal in the on-screen state is obtained; when the wake-up duration is less than or equal to the preset brightness When the screen time is long, control the mobile terminal to enter a low power consumption mode.
  • the processor further implements the following steps when executing the computer program.
  • the processor further implements the following steps when executing the computer program.
  • the low-power mode includes a first idle state that is lightly idle and a second idle state that is deeply idle; when the wake-up duration is less than or equal to the preset screen-on duration, the mobile terminal is controlled to enter the low-power mode and the second deeply idle state Idle state.
  • the processor further implements the following steps when executing the computer program.
  • the mobile terminal When the wake-up time is longer than the preset screen-on time, the mobile terminal is controlled to enter the first idle state of lightly idle; when the time of the mobile terminal in the first idle state is equal to the preset time, the mobile terminal is controlled to enter the second idle state of deep idle state.
  • the processor further implements the following steps when executing the computer program.
  • the mobile terminal When the mobile terminal enters the first idle state, obtain 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, control the mobile terminal to enter the second idle state; when the screen-on duration is greater than When the preset duration is set, the mobile terminal is controlled to re-enter the first idle state.
  • the processor further implements the following steps when executing the computer program.
  • the mobile terminal When the mobile terminal enters the low power mode, obtain the application that the mobile terminal is awakened in the bright screen state; update the white list corresponding to the low power mode according to the awakened application; the white list is set to be in the low power mode A collection of applications running in the background; according to the updated whitelist, each application in the updated whitelist is managed.
  • the processor further implements the following steps when executing the computer program.
  • the processor further implements the following steps when executing the computer program.
  • a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the following steps.
  • the mobile terminal It is monitored that the mobile terminal is woken up and the screen is turned on in low power consumption mode; when the mobile terminal is switched from the on-screen state to the off-screen state, the wake-up duration of the mobile terminal in the on-screen state is obtained; when the wake-up duration is less than or equal to the preset brightness When the screen time is long, control the mobile terminal to enter a low power consumption mode.
  • the low power consumption mode includes the first idle state of lightly idle and the second idle state of deep idle; when the wake-up time is less than or equal to the preset screen-on time, the mobile terminal is controlled to enter the low power mode of the deep idle second Idle state.
  • control the mobile terminal When the wake-up time is greater than the preset screen-on time, control the mobile terminal to enter the first idle state of lightly idle; when the mobile terminal is in the first idle state for the preset time, control the mobile terminal to enter the second idle state of deep idle state.
  • the mobile terminal When the mobile terminal enters the first idle state, obtain 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, control the mobile terminal to enter the second idle state; when the screen-on duration is greater than When the preset duration is set, the mobile terminal is controlled to re-enter the first idle state.
  • the mobile terminal When the mobile terminal enters the low power mode, obtain the application that the mobile terminal is awakened in the bright screen state; update the white list corresponding to the low power mode according to the awakened application; the white list is set to be in the low power mode A collection of applications running in the background; according to the updated whitelist, each application in the updated whitelist is managed.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical storage.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及一种低功耗控制优化方法、装置、移动终端和存储介质。所述方法包括:监测到移动终端在低功耗模式下被唤醒亮屏;当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式。

Description

低功耗控制优化方法、装置、移动终端和存储介质
交叉引用
本发明要求在2020年06月02日提交中国专利局、申请号为202010489658.9、发明名称为“低功耗控制优化方法、装置、移动终端和存储介质”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本申请涉及移动终端技术领域,特别是涉及一种低功耗控制优化方法、装置、移动终端和存储介质。
背景技术
随着移动终端的发展,人们对移动终端的电池寿命的唤醒要去越来越高。为了延长电池的唤醒时间,移动终端引入的打盹(Doze)机制的功耗优化模式,当设备未连接至电源且长时间处于闲置状态时,系统会将应用进入Doze状态,延缓移动终端app后台的CPU唤醒和网络活动,其目的在于节省系统耗电量,保护电池,延长电池的唤醒时间。
目前的Doze机制在移动终端进入Doze模式后短时间操作亮屏后,退出Doze模式,移动终端需要等待固定时长后重新进入Doze模式,导致移动终端进入低功耗模式的时间长。
发明内容
基于此,有必要针对上述技术问题,提供一种能够减少移动终端进入低功耗模式时间的低功耗控制优化方法、装置、移动终端和存储介质。
一种低功耗控制优化方法,所述方法包括:
监测到移动终端在低功耗模式下被唤醒亮屏;
当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
一种低功耗控制优化装置,所述装置包括:
监测模块,用于监测到移动终端在低功耗模式下被唤醒亮屏;
获取模块,用于当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
控制模块,用于当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
一种移动终端,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
监测到移动终端在低功耗模式下被唤醒亮屏;
当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
监测到移动终端在低功耗模式下被唤醒亮屏;
当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
上述低功耗控制优化方法、装置、移动终端和存储介质,通过监测到移动终端在低功耗模式下被唤醒亮屏时,当移动终端从亮屏状态切换到灭屏状 态时,获取移动终端在亮屏状态下的唤醒时长;通过判断移动终端在低功耗模式下被唤醒亮屏的唤醒时长与预设亮屏时长进行比较,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式;移动终端在短时间内被操作,不需要等待设定时长后才能进入低功耗模式,缩短移动终端进入低功耗模式的时间周期,进而减少移动终端能耗。
附图说明
图1为一个实施例中低功耗控制优化方法的流程示意图;
图2为另一个实施例中低功耗控制优化方法的流程示意图;
图3为一个实施例中低功耗控制优化方法效果示意图;
图4为另一个实施例中低功耗控制优化方法效果示意图;
图5为另一个实施例中低功耗控制优化方法的流程示意图;
图6为一个实施例中低功耗控制优化步骤的流程示意图;
图7为一个实施例中低功耗控制优化方法的架构图;
图8为一个实施例中低功耗控制优化装置的结构框图;
图9为另一个实施例中低功耗控制优化装置的结构框图;
图10为一个实施例中移动终端的内部结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
在一个实施例中,如图1所示,提供了一种低功耗控制优化方法,本实施例以该方法应用于移动终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括移动终端和服务器的系统,并通过移动终端和服务器的交互实现。本实施例中,该方法包括以下步骤。
步骤102,监测到移动终端在低功耗模式下被唤醒亮屏。
其中,低功耗模式指移动终端未连接至电源且长时间没有被唤醒或灭屏不动的情况下,限制移动终端中非白名单中应用占用中央处理器(Central Processing Unit,CPU)和访问网络的,来达到减少电量消耗的目的。白名单是指在低功耗模式下被设置为在后台运行的应用的集合;非白名单是指在Doze模式禁止在后台运行的应用的集合。低功耗模式(Doze Mode)可以包括轻度闲置(Light Ilde)和深度闲置(Deep Idle)其中,Light Ilde是指轻量级的限制,移动终端在进入Light Ilde下会限制NetworkPolicy(网络策略)、延迟JobSchedule和同步任务;移动终端在Deep Idle比Light Ild限制范围大,进入Deep Idle会限制NetworkPolicy、WakeLock(唤醒锁)、延迟JobSchedule、同步任务、标准Alarm(定时器)和停止wifi scan(WiFi扫描)。其中,NetworkPolicy是控制三方应用联网的策略,非前台进程或者进程状态优先级较低或者非白名单的情况下三方应用无法访问网络;WakeLock是在低功耗模式下,非前台进程、进程状态优先级较低或非白名单的情况下的应用无法申请;JobSchedule是指延迟到离开低功耗模式后执行,白名单下在低功耗模式会正常执行;Alarm是指延迟响应alarm,对于精确唤醒的alarm不影响;Wifi scan是指停止wifi扫描。
具体地,通过移动终端的感应器监测到移动终端从Doze模式中被唤醒亮屏时,移动终端退出Doze模式。例如,用户通过点击移动终端的亮屏按钮,移动终端接收到亮屏指令,控制移动终端退出Doze模式并亮屏。
步骤104,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长。
具体地,移动终端退出低功耗模式,移动终端在亮屏状态下被唤醒一段时长后被灭屏,切换到灭屏状态,获取移动终端在亮屏状态下的唤醒时长。移动终端进入灭屏状态可以是用户触发移动终端上的灭屏按钮。
步骤106,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入 低功耗模式。
其中,预设亮屏时长是当移动终端亮屏达到预先设置的时长时,控制移动终端进入低功耗模式。预设亮屏时长也可以是根据移动终端电池的电量确定的,预设亮屏时长随移动终端电池电量的减少而延长。
具体地,当移动终端在亮屏状态下的唤醒时长小于预设亮屏时长时,控制移动终端进入低功耗模式,限制移动终端中应用的NetworkPolicy和延迟JobSchedule等。可选地,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式的深度闲置的第二闲置状态,第二闲置状态下终端非白名单应用被限制NetworkPolicy、延迟JobScheduleWakeLock、JobSchedule、标准Alarm和停止wifi scan。
上述低功耗控制优化方法中,通过监测到移动终端在低功耗模式下被唤醒亮屏时,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;通过判断移动终端在低功耗模式下被唤醒亮屏的唤醒时长与预设亮屏时长进行比较,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式;移动终端在短时间内被操作,不需要等待设定时长后才能进入低功耗模式,缩短移动终端进入低功耗模式的时间周期,进而减少移动终端能耗。
在另一个实施例中,如图2所示,提供了一种低功耗控制优化方法,本实施例以该方法应用于移动终端进行举例说明,本实施例中,该方法包括以下步骤。
步骤202,获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长。
可选地,预设亮屏时长也可以是根据移动终端电池的电量确定的,预设亮屏时长随移动终端电池电量的减少而延长。例如,当电量小于10库时,预设亮屏时长T为5min;电量大于等于10库且小于20库时,预设亮屏时长T为4min;电量大于等于20库且小于40库时,预设亮屏时长T为3min;电 量大于等于40库且小于60库时,预设亮屏时长T为2min;电量大于等于60库时,预设亮屏时长T为1min。
步骤204,监测到移动终端在低功耗模式下被唤醒亮屏。
步骤206,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长。
其中,移动终端退出低功耗模式,移动终端在亮屏状态下被唤醒一段时长后被灭屏,切换到灭屏状态,获取移动终端在亮屏状态下的唤醒时长。例如,移动终端为手机,手机被解锁从低功耗模式退出,点击查看手机中的信息后灭屏,查看手机信息的时长为手机在亮屏状态下的唤醒时长。
步骤208,当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态。
具体地,当移动终端退出低功耗模式被亮屏唤醒时,唤醒时长大于预设亮屏时长时第一闲置状态指移动终端进入轻度闲置时,非白名单应用被限制唤醒NetworkPolicy、JobSchedule和同步任务。
步骤210,当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。
其中,预设时长是指从轻度闲置的第一闲置状态进入深度闲置的第二闲置状态的时长,预设时长比原生Doze模式中从轻度闲置的第一闲置状态进入深度闲置的第二闲置状态的时长短。例如,原生Doze模式中从轻度闲置的第一闲置状态进入深度闲置的第二闲置状态的时长为2min,预设时长为1min。
具体地,当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端从低功耗模式的轻度闲置的第一闲置状态进入深度闲置的第二闲置状态,限制非白名单中应用的JobSchedule、延迟标准Alarm、同步任务和停止wifiscan。如图3所示,移动终端在低功耗模式下被唤醒亮屏时,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式的深度闲置的第 二闲置状态,原低功耗模式下,移动终端需先进入低功耗模式的轻度闲置的第二闲置状态后再进入深度闲置的第二闲置状态;当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态,当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态,预设时长比原低功耗模式中从轻度闲置的第一闲置状态进入深度闲置的第二闲置状态的时长短。
在一个实施例中,当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。如图4所示,原低功耗模式中,移动终端在第一闲置状态被唤醒亮屏,需重新进入低功耗模式的轻度闲置的第二闲置状态后再进入深度闲置的第二闲置状态。移动终端在现低功耗模式下被唤醒,当移动终端进入第一闲置状态时,移动终端在第一闲置状态中的亮屏时长小于预设时长时,移动终端从第一闲置状态进入第二闲置状态,缩短移动终端进入第二闲置状态的时间周期,使移动终端快速进入第二闲置状态,降低电流以及减少移动终端功耗损失,延长移动终端电池的唤醒寿命。
在另一个实施例中,如图5所示,提供了一种低功耗控制优化方法,例以该方法应用于移动终端进行举例说明,本实施例中,该方法包括以下步骤。
步骤502,当移动终端进入低功耗模式时,获取移动终端在亮屏状态下被唤醒的应用。
可选地,移动终端在亮屏状态下被唤醒的应用可以是应用程序(Application,APP)和轻应用(Light App)等,轻应用是一种无需下载、即搜即用的应用程序,如小程序;应用程序可以是通讯应用程序、办公应用程序或阅读应用程序等。
步骤504,根据被唤醒的应用更新低功耗模式对应的白名单;白名单为在低功耗模式下被设置为在后台运行的应用的集合。
步骤506,根据更新后的白名单,对更新后的白名单中各应用进行管理。
具体地,将在亮屏状态下被唤醒的应用添加到移动终端的白名单中,延迟白名单中亮屏状态下被唤醒的应用,对更新后的白名单中的各应用的访问网络、申请WakeLock的权限、定时唤醒等动作进行延迟管理。
可选地,根据更新后的白名单,对更新后的白名单中各应用进行管理包括:将唤醒锁的申请权限分配给更新后的白名单中各个应用;当各应用持有唤醒锁的时长等于第一预设时长时,使各应用释放唤醒锁并将各应用从白名单中删除。例如,在亮屏状态下被唤醒的应用包括A应用和B应用,将A应用和B应用添加到白名单中,延迟限制A应用和B应用的动作权限。例如,在低功耗模式下,延迟30min(分钟)限制A应用申请Wake Lock的权限,即在30min内A应用可继续申请获取Wake Lock;再设定alarm,在30min后移除从白名单中删除A应用,并更新Wake Lock的限制规则。通过把在亮屏状态下被唤醒的应用添加到白名单中,给予亮屏状态下被唤醒的应用的延迟限制权限,避免移动终端快速进入低功耗模式导致的数据延时以及数据丢失,以及确保了应用的正常唤醒。
可选地,根据更新后的白名单,对更新后的白名单中各应用进行管理包括:延长更新后的白名单中各个应用的网络访问时长;当网络访问时长等于到第二预设时长时,中断各应用访问网络并将各应用从白名单中删除。例如,移动终端在亮屏状态下唤醒的应用添加到白名单中,当亮屏状态下唤醒的应用在低功耗模式时,更新移动终端中操作系统的网络策略,延长更新后的白名单中各个应用的网络访问时长,如延长5min,设定alarm,在5min后将亮屏状态下唤醒的应用从白名单中删除,并更新网络策略。通过把在亮屏状态下被唤醒的应用添加到白名单中,给予亮屏状态下被唤醒的应用的延迟限制权限,避免移动终端快速进入低功耗模式导致的数据延时以及数据丢失,以及确保了应用的正常唤醒。
上述低功耗控制优化方法中,当移动终端进入低功耗模式时,获取移动 终端在亮屏状态下被唤醒的应用;根据被唤醒的应用更新低功耗模式对应的白名单;白名单为在低功耗模式下被设置为在后台运行的应用的集合;根据更新后的白名单,对更新后的白名单中各应用进行管理。即移动终端在进入低功耗模式后,通过把在亮屏状态下被唤醒的应用添加到白名单中,给予亮屏状态下被唤醒的应用的延迟限制权限,避免移动终端快速进入低功耗模式导致的数据延时以及数据丢失,保证的数据及时性和完整性,以及确保了应用的正常唤醒。
在一个实施例中,如图6所示,提供了一种低功耗控制优化步骤,本实施例以该步骤应用于移动终端进行举例说明,本实施例中,该步骤包括以下步骤。
步骤602,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长。
步骤604,判断唤醒时长是否大于预设亮屏时长,若否,执行步骤606,否则,执行步骤608。
其中,预设亮屏时长是根据取移动终端电池的当前电量确定。
步骤606,控制移动终端进入深度闲置的第二闲置状态。
步骤608,控制移动终端进入轻度闲置的第一闲置状态。
步骤610,判断移动终端在轻度闲置的第一闲置状态是否被亮屏,若是,执行步骤614,否则执行步骤612。
步骤612,当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。
步骤614,获取移动终端在第一闲置状态中的亮屏时长。
步骤616,判断亮屏时长是否大于预设时长,若是执行步骤618,否则,执行步骤606。
步骤618,控制移动终端重新进入轻度闲置的第一闲置状态。
上述低功耗控制优化步骤中,通过获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长;监测到移动终端在低功耗模式下被唤醒亮屏,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态,当唤醒时长小于或等于预设亮屏时长时,控制移动终端统进入低功耗模式的深度闲置的第二闲置状态;当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端的操作系统进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。缩短移动终端进入低功耗模式的时间周期,使移动终端快速进入低功耗模式,降低电流以及减少移动终端功耗损失,延长移动终端电池的唤醒寿命。
在一个实施例中,如图7所示,提供了一种低功耗控制优化方法的架构图,本实施例以该方法应用于移动终端进行举例说明,低功耗控制优化方法的架构图包括低功耗控制函数、设备闲置状态监控函数、电源管理服务函数和网络策略管理函数;例如,低功耗控制函数为SmartDoze.java,设备闲置状态监控函数为DeviceIdleController.java,电源管理服务函数为PowerManagerService.java,网络策略管理函数为NetworkPolicyManagerService.java。
通过监测到移动终端在低功耗模式下被唤醒亮屏,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长,通过低功耗控制函数SmartDoze.java判断唤醒时长是否大于预设亮屏时长,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式的深度闲置的第二闲置状态。
当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态;当移动终端进入低功耗模式时,设备闲置状态监控函数为DeviceIdleController.java获取移动终端在亮屏状态下被唤醒的应用,根据被唤醒的应用更新低功耗模式对应的白名单,将更新后的白名单发送至低功耗控制函数SmartDoze.java中,低功耗控制函数SmartDoze.java将更新后的白名单发送设备闲置状态监控函数为DeviceIdleController.java和电源管理服务函数为PowerManagerService.java,并通过接口调用DeviceIdleController.java和PowerManagerService.java;其中PowerManagerService java主要是控制Wake Lock是否需要限制,接收到SmartDoze.java传来的白名单后,进入低功耗模式后不限制白名单中个应用申请WakeLock的权限,再设定alarm,在30min后移除白名单中亮屏状态下唤醒的应用,并更新Wake Lock的限制规则;NetworkPolicyManagerService.java用于控制网络策略,接收到SmartDoze.java传来的白名单后,更新移动终端中操作系统的网络策略,延长更新后的白名单中各个应用的网络访问时长,如延长5min,设定alarm,在5min后将亮屏状态下唤醒的应用从白名单中删除,并更新网络策略。移动终端在短时间内被操作,缩短移动终端进入低功耗模式的时间周期,进而减少移动终端能耗;以及确保了应用在进入低功耗模式后一定时长内的正常唤醒。
在一个实施例中,通过获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长;监测到移动终端在低功耗模式下被唤醒亮屏,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态,当唤醒时长小于或等于预设亮屏时长时,控制移动终端统进入低功耗模式的深度闲置的第二闲置状态;当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲 置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端的操作系统进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。
当移动终端进入低功耗模式时,获取移动终端在亮屏状态下被唤醒的应用;根据被唤醒的应用更新低功耗模式对应的白名单,白名单为在低功耗模式下被设置为在后台运行的应用的集合;根据更新后的白名单,对更新后的白名单中各应用进行管理。其中,根据更新后的白名单,对更新后的白名单中各应用进行管理包括:将唤醒锁的申请权限分配给更新后的白名单中各个应用,当各应用持有唤醒锁的时长等于第一预设时长时,使各应用释放唤醒锁并将各应用从白名单中删除;延长更新后的白名单中各个应用的网络访问时长;当网络访问时长等于到第二预设时长时,中断各应用访问网络并将各应用从白名单中删除。移动终端在短时间内被操作,不需要等待设定时长后才能进入低功耗模式,缩短移动终端进入低功耗模式的时间周期,进而减少移动终端能耗;以及通过把在亮屏状态下被唤醒的应用添加到白名单中,给予亮屏状态下被唤醒的应用的延迟限制权限,避免移动终端快速进入低功耗模式导致的数据延时以及数据丢失,以及确保了应用的正常唤醒。
应该理解的是,虽然图1-图2、图5-图7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1-图2、图5-图7中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至 少一部分轮流或者交替地执行。
在一个实施例中,如图8所示,提供了一种低功耗控制优化装置,包括:监测模块802、获取模块804和控制模块806,其中。
监测模块802,用于监测到移动终端在低功耗模式下被唤醒亮屏;
获取模块804,用于当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
控制模块806,用于当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
上述低功耗控制优化装置中,通过监测到移动终端在低功耗模式下被唤醒亮屏时,当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;通过判断移动终端在低功耗模式下被唤醒亮屏的唤醒时长与预设亮屏时长进行比较,当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式;移动终端在短时间内被操作,不需要等待设定时长后才能进入低功耗模式,缩短移动终端进入低功耗模式的时间周期,进而减少移动终端能耗。
在另一个实施例中,如图9所示,提供了一种低功耗控制优化装置,除包括监测模块802、获取模块804和控制模块806外,还包括:确定模块808、更新模块810、管理模块812、分配模块814和延时模块816,其中。
确定模块808,用于获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长。
在一个实施例中,控制模块806还用于当唤醒时长小于或等于预设亮屏时长时,控制移动终端统进入低功耗模式的深度闲置的第二闲置状态;
当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;
当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进 入深度闲置的第二闲置状态。
在一个实施例中,控制模块806还用于当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端的操作系统进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。
在一个实施例中,获取模块804还用于当移动终端进入低功耗模式时,获取移动终端在亮屏状态下被唤醒的应用。
更新模块810,用于根据被唤醒的应用更新低功耗模式对应的白名单;白名单为在低功耗模式下被设置为在后台运行的应用的集合。
在一个实施例中,更新模块810还用于当各应用持有唤醒锁的时长等于第一预设时长时,使各应用释放唤醒锁并将各应用从白名单中删除。
在一个实施例中,更新模块810还用于当网络访问时长等于到第二预设时长时,中断各应用访问网络并将各应用从白名单中删除。
管理模块812,用于根据更新后的白名单,对更新后的白名单中各应用进行管理。
分配模块814,用于将唤醒锁的申请权限分配给更新后的白名单中各个应用。
延时模块816,用于延长更新后的白名单中各个应用的网络访问时长。
在一个实施例中,通过确定模块808获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长;监测模块802监测到移动终端在低功耗模式下被唤醒亮屏,当移动终端从亮屏状态切换到灭屏状态时,获取模块804获取移动终端在亮屏状态下的唤醒时长;低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态,当唤醒时长小于或等于预设亮屏时长时,控制模块806控制移动终端统进入低功耗模式的深度闲置的第二闲置状态;当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲置状态的时长等于预 设时长时,控制模块806控制移动终端进入深度闲置的第二闲置状态。当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制模块806控制移动终端的操作系统进入第二闲置状态;当亮屏时长大于预设时长时,控制模块806控制移动终端重新进入第一闲置状态。
当移动终端进入低功耗模式时,获取模块804获取移动终端在亮屏状态下被唤醒的应用;更新模块810根据被唤醒的应用更新低功耗模式对应的白名单,白名单为在低功耗模式下被设置为在后台运行的应用的集合;管理模块812根据更新后的白名单,对更新后的白名单中各应用进行管理。其中,根据更新后的白名单,对更新后的白名单中各应用进行管理包括:分配模块814将唤醒锁的申请权限分配给更新后的白名单中各个应用,当各应用持有唤醒锁的时长等于第一预设时长时,更新模块810使各应用释放唤醒锁并将各应用从白名单中删除;延时模块816延长更新后的白名单中各个应用的网络访问时长;当网络访问时长等于到第二预设时长时,更新模块810中断各应用访问网络并将各应用从白名单中删除。移动终端在短时间内被操作,不需要等待设定时长后才能进入低功耗模式,减少移动终端能耗;通过把在亮屏状态下被唤醒的应用添加到白名单中,给予亮屏状态下被唤醒的应用的延迟限制权限,避免移动终端快速进入低功耗模式导致的数据延时以及数据丢失,以及确保了应用的正常唤醒。
关于低功耗控制优化装置的具体限定可以参见上文中对于低功耗控制优化方法的限定,在此不再赘述。上述低功耗控制优化装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于移动终端中的处理器中,也可以以软件形式存储于移动终端中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种移动终端,其内部结构图可以如图10所示。该移动终端包括通过系统总线连接的处理器、存储器、通信接口、显示屏和 输入装置。其中,该移动终端的处理器用于提供计算和控制能力。该移动终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该移动终端的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种低功耗控制优化方法。该移动终端的显示屏可以是液晶显示屏或者电子墨水显示屏,该移动终端的输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端的限定,具体的移动终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种移动终端,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤。
监测到移动终端在低功耗模式下被唤醒亮屏;当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态;当唤醒时长小于或等于预设亮屏时长时,控制移动终端统进入低功耗模式的深度闲置的第二闲置状态。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
当移动终端进入低功耗模式时,获取移动终端在亮屏状态下被唤醒的应用;根据被唤醒的应用更新低功耗模式对应的白名单;白名单为在低功耗模式下被设置为在后台运行的应用的集合;根据更新后的白名单,对更新后的白名单中各应用进行管理。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
将唤醒锁的申请权限分配给更新后的白名单中各个应用;当各应用持有唤醒锁的时长等于第一预设时长时,使各应用释放唤醒锁并将各应用从白名单中删除。
在一个实施例中,处理器执行计算机程序时还实现以下步骤。
延长更新后的白名单中各个应用的网络访问时长;当网络访问时长等于到第二预设时长时,中断各应用访问网络并将各应用从白名单中删除。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤。
监测到移动终端在低功耗模式下被唤醒亮屏;当移动终端从亮屏状态切换到灭屏状态时,获取移动终端在亮屏状态下的唤醒时长;当唤醒时长小于或等于预设亮屏时长时,控制移动终端进入低功耗模式。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
获取移动终端电池的当前电量,根据当前电量确定移动终端进入低功耗模式的预设亮屏时长。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态;当唤醒时长小于或等于预设亮屏时长时,控制移动终端统进入低功耗模式的深度闲置的第二闲置状态。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
当唤醒时长大于预设亮屏时长时,控制移动终端进入轻度闲置的第一闲置状态;当移动终端处于第一闲置状态的时长等于预设时长时,控制移动终端进入深度闲置的第二闲置状态。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
当移动终端进入第一闲置状态时,获取移动终端在第一闲置状态中的亮屏时长;当亮屏时长小于或等于预设时长时,控制移动终端进入第二闲置状态;当亮屏时长大于预设时长时,控制移动终端重新进入第一闲置状态。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
当移动终端进入低功耗模式时,获取移动终端在亮屏状态下被唤醒的应用;根据被唤醒的应用更新低功耗模式对应的白名单;白名单为在低功耗模式下被设置为在后台运行的应用的集合;根据更新后的白名单,对更新后的白名单中各应用进行管理。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
将唤醒锁的申请权限分配给更新后的白名单中各个应用;当各应用持有唤醒锁的时长等于第一预设时长时,使各应用释放唤醒锁并将各应用从白名单中删除。
在一个实施例中,计算机程序被处理器执行时还实现以下步骤。
延长更新后的白名单中各个应用的网络访问时长;当网络访问时长等于 到第二预设时长时,中断各应用访问网络并将各应用从白名单中删除。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所唤醒的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种低功耗控制优化方法,其中,所述方法包括:
    监测到移动终端在低功耗模式下被唤醒亮屏;
    当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
    当所述唤醒时长小于或等于预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    获取移动终端电池的当前电量,根据所述当前电量确定所述移动终端进入低功耗模式的预设亮屏时长。
  3. 根据权利要求1所述的方法,其中,所述低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态,所述当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端进入所述低功耗模式包括:
    当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端统进入所述低功耗模式的深度闲置的第二闲置状态。
  4. 根据权利要求1所述的方法,其中,所述低功耗模式包括轻度闲置的第一闲置状态和深度闲置的第二闲置状态,所述方法还包括:
    当所述唤醒时长大于所述预设亮屏时长时,控制所述移动终端进入所述轻度闲置的第一闲置状态;
    当所述移动终端处于所述第一闲置状态的时长等于预设时长时,控制所述移动终端进入所述深度闲置的第二闲置状态。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    当所述移动终端进入所述第一闲置状态时,获取所述移动终端在所述第一闲置状态中的亮屏时长;
    当所述亮屏时长小于或等于所述预设时长时,控制所述移动终端进入所述第二闲置状态;
    当所述亮屏时长大于所述预设时长时,控制所述移动终端重新进入所述第一闲置状态。
  6. 根据权利要求1至5任意一项所述的方法,其中,所述方法还包括:
    当所述移动终端进入所述低功耗模式时,获取所述移动终端在所述亮屏状态下被唤醒的应用;
    根据所述被唤醒的应用更新所述低功耗模式对应的白名单;所述白名单为在所述低功耗模式下被设置为在后台运行的应用的集合;
    根据所述更新后的白名单,对所述更新后的白名单中各应用进行管理。
  7. 根据权利要求6所述的方法,其中,所述根据所述更新后的白名单,对所述更新后的白名单中各应用进行管理包括:
    将唤醒锁的申请权限分配给所述更新后的白名单中各个应用;
    当各所述应用持有所述唤醒锁的时长等于第一预设时长时,使各所述应用释放所述唤醒锁并将各所述应用从所述白名单中删除。
  8. 根据权利要求6所述的方法,其中,所述根据所述更新后的白名单,对所述更新后的白名单中各应用进行管理包括:
    延长所述更新后的白名单中各个应用的网络访问时长;
    当所述网络访问时长等于到第二预设时长时,中断各所述应用访问网络并将各所述应用从所述白名单中删除。
  9. 一种低功耗控制优化装置,其中,所述装置包括:
    监测模块,用于监测到移动终端在低功耗模式被唤醒亮屏;
    获取模块,用于当所述移动终端从亮屏状态切换到灭屏状态时,获取所述移动终端在所述亮屏状态下的唤醒时长;
    控制模块,用于当所述唤醒时长小于或等于预设亮屏时长时,控制所述移动终端进入所述低功耗模式。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    确定模块,用于获取移动终端电池的当前电量,根据所述当前电量确定 所述移动终端进入低功耗模式的预设亮屏时长。
  11. 根据权利要求9所述的装置,其中,所述控制模块被配置为:
    当所述唤醒时长小于或等于所述预设亮屏时长时,控制所述移动终端统进入所述低功耗模式的深度闲置的第二闲置状态;
    当所述唤醒时长大于所述预设亮屏时长时,控制所述移动终端进入所述轻度闲置的第一闲置状态;
    当所述移动终端处于所述第一闲置状态的时长等于预设时长时,控制所述移动终端进入所述深度闲置的第二闲置状态。
  12. 根据权利要求11所述的装置,其中,所述控制模块被配置为:
    当所述移动终端进入所述第一闲置状态时,获取所述移动终端在所述第一闲置状态中的亮屏时长;
    当所述亮屏时长小于或等于所述预设时长时,控制所述移动终端进入所述第二闲置状态;
    当所述亮屏时长大于所述预设时长时,控制所述移动终端重新进入所述第一闲置状态。
  13. 根据权利要求9所述的装置,其中,所述获取模块被配置为:当所述移动终端进入所述低功耗模式时,获取所述移动终端在所述亮屏状态下被唤醒的应用;
    所述装置还包括:
    更新模块,用于根据所述被唤醒的应用更新所述低功耗模式对应的白名单;所述白名单为在所述低功耗模式下被设置为在后台运行的应用的集合;
    管理模块,用于根据所述更新后的白名单,对所述更新后的白名单中各应用进行管理。
  14. 根据权利要求13所述的装置,其中,所述更新模块被配置为:
    当各所述应用持有所述唤醒锁的时长等于第一预设时长时,使各所述应用释放所述唤醒锁并将各所述应用从所述白名单中删除;
    当所述网络访问时长等于到第二预设时长时,中断各所述应用访问网络并将各所述应用从所述白名单中删除。
  15. 根据权利要求13所述的装置,其中,所述装置还包括:
    分配模块,用于将唤醒锁的申请权限分配给所述更新后的白名单中各个应用。
  16. 根据权利要求13所述的装置,其中,所述装置还包括:
    延时模块,用于延长所述更新后的白名单中各个应用的网络访问时长。
  17. 一种移动终端,包括存储器和处理器,所述存储器存储有计算机程序,其中,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。
PCT/CN2021/097887 2020-06-02 2021-06-02 低功耗控制优化方法、装置、移动终端和存储介质 WO2021244566A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010489658.9 2020-06-02
CN202010489658.9A CN113766611B (zh) 2020-06-02 2020-06-02 低功耗控制优化方法、装置、移动终端和存储介质

Publications (1)

Publication Number Publication Date
WO2021244566A1 true WO2021244566A1 (zh) 2021-12-09

Family

ID=78782860

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097887 WO2021244566A1 (zh) 2020-06-02 2021-06-02 低功耗控制优化方法、装置、移动终端和存储介质

Country Status (2)

Country Link
CN (1) CN113766611B (zh)
WO (1) WO2021244566A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720645A (zh) * 2022-10-21 2023-09-08 荣耀终端有限公司 一种任务分配方法、分配设备及任务分配系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118093321A (zh) * 2024-04-07 2024-05-28 无锡众星微系统技术有限公司 一种PCIe系统温度控制方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140177501A1 (en) * 2011-07-14 2014-06-26 Lg Electronics Inc. Method of communication based on power save mode in wireless local area network and apparatus for the same
CN106547335A (zh) * 2016-11-01 2017-03-29 上海传英信息技术有限公司 能耗降低方法和移动终端
CN109375954A (zh) * 2018-09-20 2019-02-22 上海移芯通信科技有限公司 基于蜂窝技术的物联网芯片的控制方法及物联网芯片
CN109388222A (zh) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 省电处理方法、装置及移动终端和计算机可读存储介质

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4644747B1 (ja) * 2009-11-02 2011-03-02 パナソニック株式会社 情報処理装置、制御方法および制御プログラム
CN102981766B (zh) * 2012-11-27 2017-12-05 中兴通讯股份有限公司 一种终端激活方法及终端
WO2015096124A1 (zh) * 2013-12-27 2015-07-02 华为终端有限公司 一种终端应用的判断方法及装置
CN105573460B (zh) * 2014-10-10 2020-01-10 中兴通讯股份有限公司 应用程序唤醒时间的调节方法及装置
CN106256116B (zh) * 2015-04-14 2019-08-13 华为技术有限公司 一种控制应用程序的方法及终端
CN104981005A (zh) * 2015-06-19 2015-10-14 深圳天珑无线科技有限公司 降低功耗的处理方法和装置
CN105188037A (zh) * 2015-10-16 2015-12-23 珠海格力电器股份有限公司 消息推送方法及移动终端和消息推送服务器
CN106055077A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法及装置
US10560443B2 (en) * 2017-03-16 2020-02-11 Amzetta Technologies, Llc Scheduled power mode switch for thin client devices
CN108052196A (zh) * 2017-12-29 2018-05-18 北京元心科技有限公司 功耗控制方法、装置及终端设备
CN110543333B (zh) * 2018-05-29 2024-05-17 视联动力信息技术股份有限公司 针对处理器的休眠处理方法、装置、移动终端和存储介质
CN109462699B (zh) * 2018-12-26 2020-10-23 惠州Tcl移动通信有限公司 移动终端的Doze模式的控制方法
CN109979438A (zh) * 2019-04-04 2019-07-05 Oppo广东移动通信有限公司 语音唤醒方法及电子设备
CN110071789B (zh) * 2019-04-30 2022-12-06 南方电网科学研究院有限责任公司 一种超低功耗被动唤醒方法及系统
CN111045507B (zh) * 2019-11-27 2022-04-19 RealMe重庆移动通信有限公司 名单管控方法、装置、移动终端及存储介质
CN111050388B (zh) * 2019-12-03 2023-01-06 Oppo广东移动通信有限公司 Doze模式控制方法、装置、移动终端及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140177501A1 (en) * 2011-07-14 2014-06-26 Lg Electronics Inc. Method of communication based on power save mode in wireless local area network and apparatus for the same
CN106547335A (zh) * 2016-11-01 2017-03-29 上海传英信息技术有限公司 能耗降低方法和移动终端
CN109388222A (zh) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 省电处理方法、装置及移动终端和计算机可读存储介质
CN109375954A (zh) * 2018-09-20 2019-02-22 上海移芯通信科技有限公司 基于蜂窝技术的物联网芯片的控制方法及物联网芯片

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720645A (zh) * 2022-10-21 2023-09-08 荣耀终端有限公司 一种任务分配方法、分配设备及任务分配系统

Also Published As

Publication number Publication date
CN113766611B (zh) 2023-08-11
CN113766611A (zh) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108509260B (zh) 线程识别处理方法、装置、计算机设备和存储介质
WO2021244566A1 (zh) 低功耗控制优化方法、装置、移动终端和存储介质
US9152199B2 (en) Power state dependent wake-up alarm
US20180348844A1 (en) Techniques for adjusting computing device sleep states
JP6423518B2 (ja) マルチプロセッサシステムのための指向性イベントシグナリング
TWI494857B (zh) 喚醒事件管理方法、喚醒事件管理裝置以及喚醒事件管理電腦程式產品
WO2020224658A1 (zh) 待机优化方法、装置、计算机设备和存储介质
KR102691293B1 (ko) 전자 장치의 전력 소모 감소를 위한 방법 및 장치
US9246989B1 (en) Scheduling data pushes to a mobile device based on usage and applications thereof
JP6491326B2 (ja) アプリケーションプログラムを実行するための方法および装置
US20130191541A1 (en) Background task resource control
EP2919115B1 (en) Task migration method and apparatus
TW201608371A (zh) 應用程式喚醒方法及裝置
CN110032266B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
CN105353864A (zh) 电子设备静态功耗管理方法和系统
WO2019128588A1 (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
EP3699760A1 (en) Information processing method and device, computer device and computer readable storage medium
WO2019128573A1 (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
CN107436672B (zh) 一种应用的处理方法及终端
US10275007B2 (en) Performance management for a multiple-CPU platform
WO2019128569A1 (zh) 应用程序冻结方法、装置、存储介质和终端
KR102619117B1 (ko) 전자 장치 및 전자 장치의 동작 방법
CN110008007B (zh) 应用程序冻结方法、装置、存储介质和终端
WO2019128562A1 (zh) 应用冻结方法、装置、终端及计算机可读存储介质
WO2015154562A1 (zh) 降低中央处理器能耗的方法、装置、终端及计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21818848

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/03/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21818848

Country of ref document: EP

Kind code of ref document: A1