Terminal power saving control method, terminal and computer readable storage medium

By matching terminal status information with historical data, the sleep time is predicted, and hierarchical power saving strategies are executed based on power consumption and scenarios. This solves the problems of sleep strategy accuracy and configuration in the existing technology, and improves the terminal's battery life and user experience.

CN118590966APending Publication Date: 2024-09-03WEILAI MOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310194083.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In terms of power saving, existing terminal devices have problems such as low accuracy in predicting sleep time and lack of policy configuration, which makes it difficult to implement different sleep policies for different usage environments or scenarios, affecting battery life and user experience.

Method used

By obtaining the current status information of the terminal and matching it with multiple historical status information, the sleep time period is predicted, and hierarchical power saving strategies are executed based on the power consumption and usage scenarios to ensure the accuracy and flexibility of the sleep strategy.

Benefits of technology

It improves the accuracy of sleep time and battery life, meets user needs, provides more user-friendly power saving management, and facilitates flexible updating of power saving strategies through cloud configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590966A
    Figure CN118590966A
Patent Text Reader

Abstract

The invention relates to the technical field of electronic control, particularly provides a terminal power-saving control method, a terminal and a computer readable storage medium, and aims to solve the problem of how to reduce power consumption of terminal equipment. In order to achieve the purpose, the terminal power saving control method comprises the steps that terminal state information in a first preset time period is acquired; matching the terminal state information with state information of a time period corresponding to the first preset time period in multiple pieces of terminal historical state information to obtain a predicted sleep time period after the first preset time period; and executing a terminal power saving strategy in the predicted sleep time period. According to the technical scheme, the state information of the current terminal in the set time period is matched with the historical state information of the terminal in the corresponding time period, the sleep time of the current terminal is predicted, and the corresponding power saving strategy is executed. The sleep time predicted by the historical data is more in line with the use habit of the user, is more in line with the actual situation, and has high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and specifically provides a terminal power saving control method, a terminal and a computer-readable storage medium. Background Art

[0002] Terminal devices, such as mobile phones and tablets, have become an indispensable part of people's lives and work. While smart terminal devices bring convenience to people's work and life, they also have the problem of frequent charging, that is, the problem of fast power consumption caused by the continuous use of terminal devices. Due to the limitation of battery power itself, how to reduce the power consumption of terminal devices has become a focus of attention. At present, most developers have proposed power-saving solutions for terminal devices to enter dormancy in order to reduce power consumption. However, most power-saving solutions only sleep according to a manually set time period or predict sleep according to a manually set time period. This method may result in the prediction of the sleep time being inaccurate.

[0003] Furthermore, after the predicted sleep time period is completed, most current terminal power saving sleep strategies adopt a one-size-fits-all approach, that is, directly disconnecting the network for power saving, lacking policy configuration. It is difficult to implement different sleep strategies for different usage environments or scenarios.

[0004] Accordingly, the art requires a new terminal power saving control solution to solve the above problems. Summary of the invention

[0005] In order to overcome the above-mentioned defects, the present invention is proposed to provide a terminal power saving control method that solves or at least partially solves the technical problem of how to reduce the power consumption of terminal equipment.

[0006] In a first aspect, the present invention provides a terminal power saving control method, comprising:

[0007] Acquire terminal status information within a first preset time period;

[0008] Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period;

[0009] A terminal power saving strategy is executed during the predicted sleep time period.

[0010] In one embodiment, matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period includes:

[0011] Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information;

[0012] Acquire a historical sleep time period after the corresponding time period from the matched terminal historical status information;

[0013] Determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period;

[0014] If the terminal meets a preset condition in the time period corresponding to the historical sleep time period, the time period corresponding to the historical sleep time period is used as the predicted sleep time period.

[0015] In one embodiment, matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information includes:

[0016] Filtering out the terminal historical status information having the highest matching degree with the terminal status information within the first preset time period from the plurality of terminal historical status information;

[0017] Determine whether the highest matching degree is not less than a preset matching value;

[0018] If the highest matching degree is not less than the preset matching value, the terminal historical state information with the highest matching degree is used as the matched terminal historical state information.

[0019] In one embodiment, determining whether the highest matching degree is not less than a preset matching value includes:

[0020] If the highest matching degree is less than the preset matching value, the first preset time period is extended by a preset duration, and the first preset time period is updated.

[0021] In one embodiment, the determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period includes:

[0022] Determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of a time period corresponding to the historical sleep time period after the first preset time period;

[0023] If the terminal is in a valid sleep scenario within the second preset time period, it is determined that the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period.

[0024] In one embodiment, before determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period, the method further includes:

[0025] Determine whether the time period corresponding to the historical sleep time period is greater than a preset sleep time period;

[0026] If it is greater, wait for the start time to arrive to perform effective sleep scene judgment; and / or

[0027] If not, obtain the terminal status information of the terminal in the current complete time period to establish new terminal historical status information.

[0028] In one embodiment, the determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of a time period corresponding to the historical sleep time period after the first preset time period includes:

[0029] Determine whether the terminal is stationary, the screen is off, and the ambient light intensity is lower than a threshold during the second preset time period.

[0030] If the terminal is stationary or the screen is off or the ambient light intensity is lower than a threshold, it is determined that the terminal is in a valid sleep scenario.

[0031] In one embodiment, executing the terminal power saving strategy within the predicted sleep time period includes:

[0032] Get the current power of the terminal;

[0033] A corresponding terminal power saving strategy is executed at least based on the current power level of the terminal.

[0034] In one embodiment, executing the terminal power saving strategy within the predicted sleep time period further includes:

[0035] Get the current mode of the terminal;

[0036] A corresponding terminal power saving strategy is executed based on the power level and mode.

[0037] In one embodiment, the method further comprises:

[0038] During the execution of the terminal power saving strategy, monitoring the power saving strategy exit instruction;

[0039] If the power saving policy exit instruction is detected, the execution of the terminal power saving policy is interrupted.

[0040] In one embodiment, the method further includes: restoring the terminal to a state before executing the terminal power saving strategy.

[0041] In one embodiment, the terminal status information includes terminal mode, ambient light intensity, screen status and / or unlock status.

[0042] In a third aspect, a terminal is provided, comprising a processor and a storage device, wherein the memory stores a program, and when the processor executes the program, the terminal power saving control method described in any one of the technical solutions of the above method is implemented.

[0043] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed, the terminal power saving control method described in any one of the technical solutions of the above method is implemented.

[0044] Solution 1. A terminal power saving control method, characterized by comprising:

[0045] Acquire terminal status information within a first preset time period;

[0046] Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period;

[0047] A terminal power saving strategy is executed during the predicted sleep time period.

[0048] Solution 2. The method according to Solution 1 is characterized in that the step of matching the terminal status information with status information of a time period corresponding to the first preset time period in multiple terminal historical status information to obtain a predicted sleep time period after the first preset time period includes:

[0049] Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information;

[0050] Acquire a historical sleep time period after the corresponding time period from the matched terminal historical status information;

[0051] Determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period;

[0052] If the terminal meets a preset condition in the time period corresponding to the historical sleep time period, the time period corresponding to the historical sleep time period is used as the predicted sleep time period.

[0053] Solution 3. The method according to Solution 2 is characterized in that the step of matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information comprises:

[0054] Filtering out the terminal historical status information having the highest matching degree with the terminal status information within the first preset time period from the plurality of terminal historical status information;

[0055] Determine whether the highest matching degree is not less than a preset matching value;

[0056] If the highest matching degree is not less than the preset matching value, the terminal historical state information with the highest matching degree is used as the matched terminal historical state information.

[0057] Solution 4. The method according to Solution 3 is characterized in that the step of determining whether the highest matching degree is not less than a preset matching value comprises:

[0058] If the highest matching degree is less than the preset matching value, the first preset time period is extended by a preset duration, and the first preset time period is updated.

[0059] Solution 5. The method according to any one of solutions 2 to 4, characterized in that the determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period comprises:

[0060] Determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of a time period corresponding to the historical sleep time period after the first preset time period;

[0061] If the terminal is in a valid sleep scenario within the second preset time period, it is determined that the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period.

[0062] Solution 6. The method according to Solution 5 is characterized in that, before determining whether the terminal is in a valid sleep scene within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period, the method further includes:

[0063] Determine whether the time period corresponding to the historical sleep time period is greater than a preset sleep time period;

[0064] If it is greater, wait for the start time to arrive to perform effective sleep scene judgment; and / or

[0065] If not, obtain the terminal status information of the terminal in the current complete time period to establish new terminal historical status information.

[0066] Solution 7. The method according to Solution 5 is characterized in that the determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period comprises:

[0067] Determine whether the terminal is stationary, the screen is off, and the ambient light intensity is lower than a threshold during the second preset time period.

[0068] If the terminal is stationary or the screen is off or the ambient light intensity is lower than a threshold, it is determined that the terminal is in a valid sleep scenario.

[0069] Solution 8. The method according to Solution 1 is characterized in that executing the terminal power saving strategy during the predicted sleep time period includes:

[0070] Get the current power of the terminal;

[0071] A corresponding terminal power saving strategy is executed at least based on the current power level of the terminal.

[0072] Solution 9. The method according to Solution 8 is characterized in that the executing the terminal power saving strategy during the predicted sleep time period further comprises:

[0073] Get the current mode of the terminal;

[0074] A corresponding terminal power saving strategy is executed based on the power level and mode.

[0075] Solution 10. The method according to Solution 1, characterized in that the method further comprises:

[0076] During the execution of the terminal power saving strategy, monitoring the power saving strategy exit instruction;

[0077] If the power saving policy exit instruction is detected, the execution of the terminal power saving policy is interrupted.

[0078] Solution 11. The method according to Solution 10 is characterized in that the method also includes: restoring the terminal to a state before executing the terminal power saving strategy.

[0079] Solution 12. The method according to Solution 1 is characterized in that the terminal status information includes terminal mode, ambient light intensity, screen status and / or unlock status.

[0080] Solution 13. A terminal comprises a processor and a storage device, wherein the memory stores a program, and is characterized in that when the processor executes the program, the method described in any one of Solutions 1 to 12 is implemented.

[0081] Scheme 14 A computer-readable storage medium storing a program, characterized in that when the program is executed, the method described in any one of Schemes 1 to 12 is implemented.

[0082] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:

[0083] In the technical solution of the present invention, the terminal status information of the current first preset time period is matched with the status information of the corresponding time period of the historical status information of multiple terminals, so as to predict the sleep time of the current terminal according to the historical status information, and execute the corresponding power saving strategy according to the state of the terminal. The sleep time predicted by the historical data is more in line with the user's usage habits, more in line with the actual situation and humanized, and has a higher accuracy.

[0084] Verify effective sleep scenarios before the predicted sleep time arrives, further improving the accuracy of the terminal entering sleep. Set different power-saving strategies according to power levels and usage scenarios, and perform hierarchical management to extend the terminal's battery life while more humanely meeting user needs and improving user comfort. Power-saving strategies are configured in the cloud for flexible updates. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:

[0086] Figure 1 is a schematic flow chart of main steps of a terminal power saving control method according to an embodiment of the present invention;

[0087] Figure 2 It is a flowchart diagram of main steps of a method for obtaining a predicted sleep time period after a first preset time period according to an embodiment of the present invention.

[0088] Figure 3 is a flowchart of main steps of a method for obtaining matched terminal historical status information according to an embodiment of the present invention;

[0089] Figure 4 is a flowchart of main steps of a method for determining whether a historical sleep time period can be used as a current predicted sleep time period of a terminal according to an embodiment of the present invention;

[0090] Figure 5 is a flowchart of main steps of a method for interrupting execution of the terminal power saving strategy according to an embodiment of the present invention;

[0091] Figure 6 It is a schematic diagram of a main structural block diagram of a terminal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0092] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0093] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.

[0094] Here we first explain some terms involved in the present invention.

[0095] Non-long link applications: applications without network heartbeat packets, such as non-instant messaging applications, non-QQ, WeChat, and email.

[0096] Idle applications: refers to applications that are used infrequently.

[0097] Application freezing: Different from background cleaning (killing), it mainly sets the App application process to a suspended state, that is, the App application process is equivalent to being frozen and not cleaned or killed, but it is difficult to be active in the background.

[0098] Sync: The application uses account synchronization to update data.

[0099] See attached Figure 1 , Figure 1 It is a schematic flow chart of main steps of a terminal power saving control method according to an embodiment of the present invention, which mainly includes the following steps S10 to S30.

[0100] S10: Acquire terminal status information within a first preset time period.

[0101] In this embodiment, the user can determine whether to turn on the power saving control function based on his or her own terminal usage requirements. If it is necessary to perform power saving control on the terminal, that is, turn on the power saving control, it is necessary to first obtain the current terminal status information. The duration for obtaining the terminal status information includes but is not limited to the first preset time period. The time period, that is, the first preset time period, is defined here in order to comprehensively consider the state of the terminal and make a more actual judgment on the terminal device state. For example, based on the terminal status information within a certain time period, it is found that the terminal is frequently opened and used multiple times. For this reason, it can be judged that the terminal is in a high-frequency use state during this time period. Using the time period as a reference standard for the terminal device status has a certain degree of fault tolerance and reduces the limitations of using a time point as a reference.

[0102] In one embodiment, the terminal status information includes but is not limited to terminal mode, ambient light intensity, screen status, and unlock status. The terminal status information is obtained in order to make a judgment on the use environment or use scenario of the terminal. Among them, the terminal mode refers to the system mode of the terminal, for example, low power mode, application standby mode, task reminder mode, 5G mode, etc. The user's selection of different usage modes for the terminal determines to a certain extent what kind of usage scenario the terminal is in. The terminal is provided with a sensor for sensing ambient light intensity to further help determine the user's usage scenario. The screen status includes the screen on and off status; the unlock status includes whether the unlock is triggered and whether the terminal is in an unlocked state.

[0103] S20: Match the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period.

[0104] In this embodiment, a plurality of terminal historical status information including complete time periods are stored in the database, wherein the complete time period is 24 hours. The terminal historical status information of a complete time period records the time periods when the terminal is in high-frequency use and the time periods when no one is using the terminal, i.e., the time periods when the terminal can enter sleep mode. The terminal status information is obtained in real time, and the terminal status information in the first preset time period is matched with the status information of the time period corresponding to the first preset time period in the terminal historical status information. For example, the first preset time period is 12 hours. According to the boot time and the time when the power saving control function is turned on, the time period for obtaining the terminal status information is from 9 am to 9 pm. After collecting and recording the terminal status information of this time period, it is matched with the status information of the time period from 9 am to 9 pm in the terminal historical status information in the database. The longer the first preset time period is, the more comprehensive the terminal status information obtained on that day is. When matching, the terminal historical status information that is more in line with the usage status of that day can be selected, i.e., the more reference value it has. Furthermore, the shorter the first preset time period is, the collected information may not be comprehensive enough. In this case, the accuracy of matching the predicted sleep time period is not high. For this reason, the first preset time period is at least 12 hours. That is, at least 12 hours of terminal status information is collected and matched with the terminal historical status information in the database.

[0105] In one embodiment, Figure 2 As shown, the matching of the terminal status information with the status information of the time period corresponding to the first preset time period in the multiple terminal historical status information to obtain the predicted sleep time period after the first preset time period includes steps S201-S204:

[0106] S201, matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information.

[0107] In this embodiment, the purpose of matching is to find the terminal historical status information similar to the current terminal status information, and use the sleep time in the terminal historical status information as the predicted sleep time of the current terminal. There are many ways to achieve similarity matching. Taking the weighted merging method as an example, here we only use the comparison of the three dimensions of screen status, ambient light intensity and unlocked status as an example to illustrate. The same method is also used to add comparisons in other dimensions. Specifically: the terminal status information from 9 am to 9 pm (12 hours) is compared with the status information from 9 am to 9 pm in the terminal historical status information I for similarity. Screen status (screen on / off status) comparison: the screen on / off information of the terminal in the current time period is compared with the screen on / off information in the historical status information, and the matching degree (similarity) is 90%; ambient light intensity comparison: the ambient light intensity of the terminal on the current day is compared with the screen on / off information in the historical status information for similarity, and the matching degree is 80%; unlocking status comparison: the trigger unlocking or unlocking status of the terminal on the current day is compared with the trigger unlocking or unlocking status in the historical status information for similarity, and the matching degree is 20%; the comparison of the three dimensions is weighted and merged, where the higher the weight, the more relevant and important the dimension is for sleep prediction. Specifically, the weight of the screen status is 50%, the weight of the ambient light intensity is 45%, and the weight of the unlocking status is 5%. That is: screen on / off similarity × 50% + ambient light intensity similarity × 45% + unlocking status similarity × 5% = 90% × 50% + 80% × 45% + 20% × 5% = 82%. From the above calculation, it can be obtained that the matching degree between the terminal status information and the terminal historical status information I is 82%.

[0108] In one embodiment, Figure 3 As shown, matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information includes steps S2011-S2013:

[0109] S2011, selecting the terminal historical status information having the highest matching degree with the terminal status information within the first preset time period from the plurality of terminal historical status information;

[0110] S2012, determining whether the highest matching degree is not less than a preset matching value;

[0111] S2013: If the highest matching degree is not less than a preset matching value, the terminal historical state information with the highest matching degree is used as the matched terminal historical state information.

[0112] In this embodiment, the terminal status information of the day is matched with the historical status information in the database in turn. The historical status information with the highest matching degree and a complete time period is screened out. In order to further determine whether the sleep time in the historical status information with the highest matching degree currently screened out can be used as the sleep time predicted this time, it is necessary to determine whether the highest matching degree is not less than a preset matching value, for example, the preset matching value is 75%. The preset matching value can be flexibly adjusted according to the specific situation. For users with higher requirements, a higher matching value can be set. If the highest matching degree is not less than the preset matching value, the terminal historical status information with the highest matching degree is screened out as the matching terminal historical status information.

[0113] Furthermore, if the highest matching degree is less than the preset matching value, the first preset time period is extended by a preset duration, and the first preset time period is updated. The data in the database is constantly accumulated, and there may be a situation where the status information data is not completely covered. For example, in an emergency situation in a certain time period, the user's use of the terminal is different from before, which makes the matching degree with the historical status information low. At this time, there is a situation where the highest matching degree is less than the preset matching value. It is only different in a certain time period, and the usage status of most other times may not change much. Under the premise of ensuring the accuracy of the prediction, the first preset time period is expanded to increase the data information that can be used for matching. Specifically, the extension time is 1 hour each time. As the first preset time period is extended, its corresponding matching degree will also change accordingly, so as to achieve flexible matching with high accuracy.

[0114] S202, acquiring a historical sleep time period after the corresponding time period from the matched terminal historical status information;

[0115] S203: Determine whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period.

[0116] In one embodiment, the determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period includes steps S2031-S2032:

[0117] S2031, determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period;

[0118] S2032: If the terminal is in a valid sleep scenario within the second preset time period, it is determined whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period.

[0119] In this embodiment, the time period in which the terminal is in sleep in the most matching terminal historical status information is used as the predicted sleep time period of the current terminal. When the predicted sleep time arrives, the user may still be using the terminal. If the terminal is directly switched to sleep mode at the predicted time, it is inconvenient for the user. Therefore, whether the terminal enters the sleep state needs to be determined whether the terminal meets the preset conditions in the second preset time period, that is, whether it is a valid sleep scene (whether the user no longer uses the terminal). The length of the second preset time period can be flexibly adjusted according to the user's own habits, for example, 30 minutes. That is, 30 minutes before the corresponding time of the historical sleep time, it is judged whether the terminal is in a valid sleep scene. Specifically, the time corresponding to the historical sleep time is from 10 pm to 7 am the next day, then it is judged whether the terminal is in a valid sleep scene in the 30 minutes from 10 pm to 10:30 pm.

[0120] In a specific embodiment, determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period includes steps S2033-S2034:

[0121] S2033, determining whether the terminal is stationary, the screen is off, and the ambient light intensity is lower than a threshold within the second preset time period.

[0122] S2033: If the terminal is stationary or the screen is off or the ambient light intensity is lower than a threshold, determine that the terminal is in a valid sleep scenario.

[0123] In this embodiment, a further judgment is made on whether the terminal enters sleep based on the actual environmental state of the terminal. A sensor is installed on the terminal device to determine whether the terminal is tilted or whether the terminal is stationary based on positioning. The purpose is that if the user is walking or moving, it means that the user is active. Although the user does not use the terminal at this time, he may use it soon. Therefore, it is necessary to judge whether the terminal is in a stationary state. Determine whether the screen off time is greater than the second preset time, that is, whether the user has not used the terminal for a long time. If the ambient light intensity is lower than the threshold, it is judged that the scene is dim at this time. The judgment of the ambient light intensity is based on whether the user will enter sleep. In the sleep state, the user no longer uses the terminal, so it can enter sleep. The judgment of the effective sleep scene includes but is not limited to whether the terminal is stationary within the second preset time period, whether the terminal is always in the screen off state, and whether the ambient light intensity is lower than the threshold. In order to further ensure the accuracy of the judgment, all three conditions are met as the judgment of the effective sleep scene.

[0124] S204: If the terminal meets a preset condition in the time period corresponding to the historical sleep time period, use the time period corresponding to the historical sleep time period as the predicted sleep time period.

[0125] In one embodiment, Figure 4 As shown, Figure 4 The present invention is a flowchart of the main steps of a method for determining whether a historical sleep time period can be used as a current predicted sleep time period of a terminal according to an embodiment of the present invention, that is, step S2031 determines whether the terminal is in a valid sleep scene within a second preset time period starting from the start time of the time period corresponding to the historical sleep time period after the first preset time period, and the method further includes steps S21-S23:

[0126] S21, determining whether the time period corresponding to the historical sleep time period is greater than a preset sleep time period;

[0127] S22, if it is greater than, waiting for the start time to arrive to perform effective sleep scene judgment;

[0128] S23: If not, obtain the terminal status information of the terminal in the current complete time period to establish new terminal historical status information.

[0129] In this embodiment, in order to make the terminal power saving control more humane and not affect the user's use, the time when the terminal enters sleep is generally combined with the user's sleep time. For this purpose, the predicted duration of the sleep time period is judged, for example, the preset sleep time period is 4 hours. The average person's sleep is greater than 4 hours, that is, it is judged whether the time period corresponding to the historical sleep time period is greater than the preset sleep time period (4 hours). If the historical sleep time period, that is, the time period predicted that the current terminal needs to enter sleep, is greater than the preset sleep time period, the judgment of the sleep scene can be performed; if it is not greater than, that is, the predicted sleep time period is not greater than 4 hours, then continue to obtain the terminal status information of the current complete time period. Among them, the complete time period refers to 24 hours. For example, the first preset time period is from 8 am to 12 pm. At this time, if the predicted terminal sleep time period is 3 hours, it is necessary to continue to obtain the terminal status information from 12 pm to 8 am the next day, that is, 8 am to 8 am the next day is a complete time period.

[0130] S30: Execute a terminal power saving strategy during the predicted sleep time period.

[0131] In this embodiment, the power saving strategy is stored in the cloud. When the terminal needs to enter the sleep period to save power, the terminal reads the power saving strategy from the cloud and performs corresponding operations on the terminal according to the power saving strategy. The power saving strategy is stored in the cloud for easy modification. According to the user's usage and user feedback, the power saving strategy can be flexibly adjusted to enhance the flexibility and scope of application of the power saving strategy. Further optimize the user's experience. Among them, in order to more comprehensively control the power saving of the terminal, the power saving strategy involves the management and control of terminal devices, applications and systems.

[0132] In one embodiment, the executing the terminal power saving strategy in the predicted sleep time period includes steps S301-S302:

[0133] S301, obtaining the current power of the terminal;

[0134] S302: Execute a corresponding terminal power saving strategy based at least on the current power level of the terminal.

[0135] In this embodiment, the current situation of one-size-fits-all sleep mode is changed, and different levels of power saving control are performed according to the amount of power in the terminal. That is, it is divided into normal sleep mode and low-power sleep mode. Normal sleep mode has different power saving schemes according to the environment or scenario of the terminal. Low-power sleep mode has stricter control over devices and applications. The main purpose is to save more power for users in low-power situations and extend the battery life of the terminal. The specific power saving strategies are shown in Table 1 below:

[0136] Table 1 Power saving strategies for devices and applications

[0137]

[0138] Furthermore, it is necessary to judge the current terminal power. If it is not less than the preset power (for example, 30%), ordinary sleep and power saving are performed. Specifically, the control of devices includes: when the screen is facing down and there is no uploading or downloading (no data is uploaded or downloaded), turn off Wifi and data traffic; when there is no hotspot connection, turn off Wifi Ap (terminal hotspot); when there is no Bluetooth connection, turn off Bluetooth; directly turn off GPS, NFC, and breathing lights. The control of applications includes: background cleaning, background freezing, or self-start restrictions for blacklisted applications or idle applications or third-party applications that are not long links; some applications have set screen-on notifications, and screen-on notifications are prohibited in power saving control; Sync synchronization of data (self-starting data synchronization in applications) is prohibited. If the power is lower than the preset power, low-power sleep and power saving are performed; specifically, the control of devices includes: directly turning off Wifi, data traffic, Wifi Ap, Bluetooth, GPS, NFC, and breathing lights; all control of third-party applications (background cleaning, background freezing, or self-start restrictions); prohibiting screen-on notifications; prohibiting Sync synchronization of data.

[0139] In one embodiment, the executing the terminal power saving strategy in the predicted sleep time period further includes steps S303-S304:

[0140] S303, obtaining the current mode of the terminal;

[0141] S304: Execute a corresponding terminal power saving strategy based on the power level and mode.

[0142] In this embodiment, in addition to the control of devices and applications, there is also a power saving strategy for the terminal system. The power saving strategy has a wider control surface and can minimize power consumption. The specific power saving strategy is shown in Table 2 below:

[0143] Table 2 System power saving strategy

[0144]

[0145] Specifically, the system has many operating modes, such as: Doze (low power mode), AppStandby (application standby mode), Alarm (task reminder mode), Smart 5G (5G mode). When performing normal sleep and power saving: when the system is set to Doze (low power mode), AppStandby (application standby mode), Alarm (task reminder mode), non-long-link third-party applications are not controlled; 5G is turned off; when performing low-power sleep and power saving: all third-party applications are controlled and 5G is turned off.

[0146] In one embodiment, Figure 5 As shown, the method further includes steps S401-S402:

[0147] S401, during the execution of the terminal power saving strategy, monitoring a power saving strategy exit instruction;

[0148] S402: If the power saving policy exit instruction is detected, the execution of the terminal power saving policy is interrupted.

[0149] In this embodiment, when the terminal enters sleep mode and executes the power saving policy, the device and application will be controlled. The user may suddenly need to use the terminal during sleep mode. In this case, a sleep interruption exit mechanism needs to be set to meet the user's needs for the terminal. Among them, the interruption exit mechanism means that the terminal no longer executes the power saving policy, and restores the device and application to the state before the power saving policy is executed. The restoration to the previous state here does not mean a complete restoration. Some applications are killed and cannot be restored, which is mainly for the closed device to reopen, freeze or hang up the application to lift the current restrictions. The scenarios of the sleep terminal mechanism, i.e., the exit of the power saving policy, include but are not limited to the user unlocking the terminal, the terminal receiving an incoming call and connecting it, and the ambient brightness suddenly exceeding the set brightness threshold.

[0150] Furthermore, after the sleep time ends, the terminal will stop executing the power saving strategy, and at this time, the terminal will be restored to the state before executing the terminal power saving strategy. Here, the state restored to the state before executing the terminal power saving strategy is the same as the state restored by the interrupt exit mechanism, that is, the state of the device that was previously shut down by the control is restored, and the restrictions on the corresponding application are lifted to restore it to the state of normal use.

[0151] In the technical solution of the present invention, the terminal status information of the current first preset time period is matched with the status information of the corresponding time period of the historical status information of multiple terminals, so as to predict the sleep time of the current terminal according to the historical status information, and execute the corresponding power saving strategy according to the state of the terminal. The sleep time predicted by the historical data is more in line with the user's usage habits, more in line with the actual situation and humanized, and has a higher accuracy.

[0152] Verify effective sleep scenarios before the predicted sleep time arrives, further improving the accuracy of the terminal entering sleep. Set different power-saving strategies according to power levels and usage scenarios, and perform hierarchical management to extend the terminal's battery life while more humanely meeting user needs and improving user comfort. Power-saving strategies are configured in the cloud for flexible updates.

[0153] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0154] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0155] Furthermore, the present invention also provides a terminal. In a terminal embodiment according to the present invention, the terminal includes a processor and a storage device, and the storage device can be configured to store a program for executing the terminal power saving control method of the above method embodiment, and the processor implements the method described in any one of the technical solutions of the above method when executing the program, and the program includes but is not limited to the program for executing the terminal power saving control method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.

[0156] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium may be configured to store a program for executing the terminal power saving control method of the above method embodiment, and the program may be loaded and run by the processor to implement the above terminal power saving control method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.

[0157] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0158] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

[0159] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A terminal power saving control method, characterized in that: include: Acquire terminal status information within a first preset time period; Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period; A terminal power saving strategy is executed during the predicted sleep time period.

2. The method according to claim 1, characterized in that The matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain a predicted sleep time period after the first preset time period includes: Matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information; Acquire a historical sleep time period after the corresponding time period from the matched terminal historical status information; Determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period; If the terminal meets a preset condition in the time period corresponding to the historical sleep time period, the time period corresponding to the historical sleep time period is used as the predicted sleep time period.

3. The method according to claim 2, characterized in that The step of matching the terminal status information with status information of a time period corresponding to the first preset time period in a plurality of terminal historical status information to obtain matched terminal historical status information includes: Filtering out the terminal historical status information having the highest matching degree with the terminal status information within the first preset time period from the plurality of terminal historical status information; Determine whether the highest matching degree is not less than a preset matching value; If the highest matching degree is not less than the preset matching value, the terminal historical state information with the highest matching degree is used as the matched terminal historical state information.

4. The method according to claim 3, characterized in that The determining whether the highest matching degree is not less than a preset matching value includes: If the highest matching degree is less than the preset matching value, the first preset time period is extended by a preset duration, and the first preset time period is updated.

5. The method according to any one of claims 2 to 4, characterized in that: The determining whether the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period includes: Determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of a time period corresponding to the historical sleep time period after the first preset time period; If the terminal is in a valid sleep scenario within the second preset time period, it is determined that the terminal meets a preset condition in a time period corresponding to the historical sleep time period after the first preset time period.

6. The method according to claim 5, characterized in that Before determining whether the terminal is in a valid sleep scenario within a second preset time period starting from a start time of a time period corresponding to the historical sleep time period after the first preset time period, the method further includes: Determine whether the time period corresponding to the historical sleep time period is greater than a preset sleep time period; If it is greater, wait for the start time to arrive to perform effective sleep scene judgment; and / or If not, obtain the terminal status information of the terminal in the current complete time period to establish new terminal historical status information.

7. The method according to claim 5, characterized in that The determining whether the terminal is in a valid sleep scenario within a second preset time period starting from the start time of a time period corresponding to the historical sleep time period after the first preset time period includes: Determine whether the terminal is stationary, the screen is off, and the ambient light intensity is lower than a threshold during the second preset time period. If the terminal is stationary or the screen is off or the ambient light intensity is lower than a threshold, it is determined that the terminal is in a valid sleep scenario.

8. The method according to claim 1, characterized in that The executing the terminal power saving strategy within the predicted sleep time period includes: Get the current power of the terminal; A corresponding terminal power saving strategy is executed at least based on the current power level of the terminal.

9. The method according to claim 8, characterized in that The executing of the terminal power saving strategy within the predicted sleep time period also includes: Get the current mode of the terminal; A corresponding terminal power saving strategy is executed based on the power level and mode.

10. The method according to claim 1, characterized in that The method further comprises: During the execution of the terminal power saving strategy, monitoring the power saving strategy exit instruction; If the power saving policy exit instruction is detected, the execution of the terminal power saving policy is interrupted.