CN111381662A - Power saving control method, control device and storage medium - Google Patents

Power saving control method, control device and storage medium Download PDF

Info

Publication number
CN111381662A
CN111381662A CN202010195019.1A CN202010195019A CN111381662A CN 111381662 A CN111381662 A CN 111381662A CN 202010195019 A CN202010195019 A CN 202010195019A CN 111381662 A CN111381662 A CN 111381662A
Authority
CN
China
Prior art keywords
terminal
application
preset
power saving
working state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010195019.1A
Other languages
Chinese (zh)
Inventor
刘滢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010195019.1A priority Critical patent/CN111381662A/en
Publication of CN111381662A publication Critical patent/CN111381662A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

According to the power saving control method, the control device and the storage medium, the working state of the terminal is determined according to the current position and/or the current time of the terminal; according to the working state, the corresponding application processing strategy is executed to reduce the power consumption of the terminal, namely, the corresponding application processing strategy is executed according to the current position and/or the current time of the terminal, so that the power saving strategy can be automatically adjusted according to different application scenes by the terminal, the effect of saving the power of the terminal is achieved while different requirements of a user are met, the power saving of the terminal is more intelligent and personalized, and the user experience is improved.

Description

Power saving control method, control device and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a power saving control method, a control device, and a storage medium.
Background
With the development of terminals, terminals have become important tools in life and work of people.
At present, in order to meet diversified demands of users, a terminal is often loaded with a large number of application programs, which causes the power consumption of the terminal to be aggravated, even if the terminal enters a low power consumption state in an idle state, many application programs are still active in a background and are in long connection with a server through a network, the server can often send data packets to the terminal, and the terminal can wake up a system after receiving the data packets, so that the system is frequently woken up, the power consumption of the system is increased, the power consumption of the terminal is increased, and the standby time of the terminal is reduced.
In the prior art, a method of sequencing power consumption of each application program and closing an application program with higher power consumption is generally adopted to save power. However, the existing method does not consider that the applications required by the user in different scenes are different, that is, the existing power saving method is not intelligent and personalized enough, and thus the user experience is not high.
Disclosure of Invention
In view of the above problems, the present disclosure provides a power saving control method, a control apparatus, and a storage medium.
In a first aspect, the present disclosure provides a power saving control method, including: s1, determining the working state of the terminal according to the current position and/or current time of the terminal; and S2, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
In other optional embodiments, before the step of S1, the method further includes: acquiring the use records of the application of the terminal at different positions and/or different time periods; and determining the application processing strategy corresponding to the working state of the terminal according to the use record.
In other optional embodiments, the step of S2 includes: acquiring application information corresponding to the working state of the terminal; judging whether the use frequency of the application is greater than or equal to a preset frequency; and if so, performing first preset processing on the application.
In other optional embodiments, before the step of S2, the method further includes: detecting whether the running time of at least one foreground application is less than or equal to a preset time; if yes, outputting prompt information and/or quitting or closing the foreground application.
In other optional embodiments, the method further comprises: acquiring application information corresponding to the working state of the terminal; judging whether the application information comprises the foreground application or not; and if so, processing the foreground application according to an application processing strategy corresponding to the working state of the terminal.
In other optional embodiments, after the step of S2, the method further includes: detecting the running state of the terminal; and if the running state meets a first preset condition, performing second preset processing on the terminal.
In other alternative embodiments, the first preset condition includes at least one of: the screen-off duration of the terminal exceeds the preset screen-off duration; and the non-operation time length of the terminal exceeds the preset non-operation time length.
In other optional embodiments, the second preset process includes at least one of: controlling foreground application to switch to background; suspending the running of the application corresponding to the working state; cleaning related resources of the application corresponding to the working state; cleaning the related resources of the application which are not corresponding to the working state; exiting the application corresponding to the working state; quitting the application which is not corresponding to the working state; and the terminal enters a preset mode.
In other optional embodiments, after the step of S1, the method further includes: acquiring state parameters of the terminal; and if the state parameter meets a second preset condition, processing the application corresponding to the working state of the terminal according to a preset rule.
In other optional embodiments, the second preset condition comprises at least one of: the battery electric quantity of the terminal is less than or equal to a preset electric quantity threshold value; and the residual system resources of the terminal are less than or equal to the preset system resources.
In other optional embodiments, the processing the application corresponding to the working state according to the preset rule includes at least one of: only the preset application is reserved; switching the running states of the foreground and the background of the application; cleaning up related resources of the application; closing or exiting the application; and controlling the application to enter a preset application mode.
In a second aspect, the present disclosure provides a power saving control apparatus comprising: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executing the memory-stored computer-executable instructions causes the at least one processor to perform the power saving control method of any one of the preceding claims.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the power saving control method according to any one of the preceding claims.
According to the power saving control method, the control device and the storage medium, the working state of the terminal is determined according to the current position and/or the current time of the terminal; according to the working state, the corresponding application processing strategy is executed to reduce the power consumption of the terminal, namely, the corresponding application processing strategy is executed according to the current position and/or the current time of the terminal, so that the power saving strategy can be automatically adjusted according to different application scenes by the terminal, the effect of saving the power of the terminal is achieved while different requirements of a user are met, the power saving of the terminal is more intelligent and personalized, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of an application scenario on which the present disclosure is based;
fig. 2 is a schematic flow chart of a power saving control method according to the present disclosure;
fig. 3 is a schematic flowchart of another power saving control method provided in the present disclosure;
fig. 4 is a schematic flowchart of another power saving control method provided in the present disclosure;
fig. 5 is a schematic diagram illustrating a front-back comparison of application operation when a terminal is in a user working state according to the present disclosure;
fig. 6 is a schematic diagram illustrating a comparison between before and after the application runs when a terminal is in a user off duty state according to the present disclosure;
fig. 7 is a schematic diagram illustrating a front-back comparison of application operation when a terminal is in a user sleep state according to the present disclosure;
fig. 8 is a schematic flowchart of another power saving control method provided in the present disclosure;
fig. 9 is a schematic flowchart of another power saving control method provided by the present disclosure;
fig. 10 is a flowchart illustrating another power saving control method provided by the present disclosure;
fig. 11 is a schematic structural diagram of a power saving control apparatus according to the present disclosure;
fig. 12 is a schematic diagram of a hardware structure of a power saving control device provided in the present disclosure.
Detailed Description
To make the purpose, technical solutions and advantages of the disclosed examples clearer, the technical solutions in the disclosed examples will be clearly and completely described below with reference to the drawings in the disclosed examples.
With the development of terminals, terminals have become important tools in life and work of people.
Fig. 1 is a schematic view of an Application scenario based on the present disclosure, as shown in fig. 1, in order to meet diversified requirements of a user, a terminal often needs to load a large number of applications (App for short), such as a communication Application (e.g., a WeChat App), a weather Application, a news entertainment Application (e.g., a microblog App), a card-type Application on duty (e.g., a nailer App), a takeaway Application (e.g., a midwife App), and the like, which causes power consumption of the terminal to be intensified.
In the prior art, power saving of a terminal is generally realized by sequencing power consumption of apps and closing apps with higher power consumption. However, in the existing method, it is not considered that the applications required by the user are different in different scenes, for example, the user may use more communication apps during working hours, may use more news entertainment apps during working hours, and may not use apps at night when the user sleeps.
In order to solve the above problems, the present disclosure provides a power saving control method, a control device, and a storage medium, in which a power saving policy can be automatically adjusted according to different application scenarios by executing a corresponding application processing policy according to a current location and/or a current time of a terminal, so that an effect of saving electric quantity of the terminal is achieved while different requirements of a user are met, power saving of the terminal is more intelligent and personalized, and user experience is improved.
In a first aspect, an example of the present disclosure provides a power saving control method, and fig. 2 is a flowchart illustrating the power saving control method provided by the present disclosure.
As shown in fig. 2, the power saving control method includes:
and S1, determining the working state of the terminal according to the current position and/or current time of the terminal.
In this step, the working state of the terminal may be determined according to the current position and/or the current time of the terminal. For example, if the current location of the terminal is the location of the user on work, or the current time of the terminal is the time of the user on work (e.g., between 9:00 a and 18:00 a), it may be determined that the terminal is in the user on work state; if the current position of the terminal is home or the current time of the terminal is the time of leaving work (for example, 19: 00-22:00 night), it may be determined that the terminal is in the user state of leaving work; if the current time of the terminal is the sleep time of the user (for example, 22:00 evening-6: 00 morning next day), the terminal can be determined to be in the sleep state of the user; of course, the working state of the terminal may also be determined simultaneously according to the current position and the current time of the terminal, for example, if the current position of the terminal is in the user work place and the user work time, the terminal may be determined to be in the user work state, if the current position of the terminal is home and the current time is the user work time, the terminal may be determined to be in the user work state, if the current position of the terminal is home and the user sleep time, the terminal may be determined to be in the user sleep state, it should be noted that the working state of the terminal is determined according to the current position and the current time of the terminal, and the accuracy of the determination is improved.
And S2, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
In this step, when the terminal is in different working states, different application processing policies are invoked, that is, the present embodiment may execute corresponding power saving policies according to the requirements of the user in different scenarios. For example, when the terminal is in the user on duty, the user may want to reduce the number of times of being disturbed by the terminal as much as possible, but does not want to omit some message reminders of a common or important App during on duty, and the application processing policy may adopt a push message reminding function of only the common or important App (e.g., a communication App) during on duty, and filter out message reminders of unimportant or uncommon apps (e.g., a weather forecast App, a news entertainment App, etc.) to reduce the number of times that the terminal is awakened, thereby achieving the purpose of saving power of the terminal while meeting the user's on duty requirement. For another example, when the terminal is in the user off duty state, the user wants to obtain more information, including news entertainment, communication, and the like, and the application processing policy may be set to retain the push message reminding function of all apps. For another example, when the terminal is in the user sleep state, and the user wishes not to be disturbed, the application processing policy may be set to filter out the push message reminding function of all apps and stop the running of all apps. That is to say, the present disclosure example realizes the purpose of meeting the user requirement and achieving power saving by determining different operating states of the terminal and invoking corresponding application processing policies. The execution main body of the disclosed example is terminal equipment, and can be equipment such as a mobile phone, a tablet computer and an intelligent bracelet.
According to the power saving control method provided by the example of the disclosure, the working state of the terminal is determined according to the current position and/or the current time of the terminal; executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal; that is to say, the example of the present disclosure executes the corresponding application processing policy according to the current location and/or the current time of the terminal, that is, the terminal can automatically adjust the power saving policy according to different application scenarios, thereby achieving the effect of saving the power of the terminal while meeting different requirements of the user, enabling the power saving of the terminal to be more intelligent and personalized, and improving user experience.
With reference to the foregoing implementation manners, fig. 3 is a flowchart illustrating another power saving control method provided by the present disclosure, and as shown in fig. 3, the power saving control method includes:
and S11, acquiring the use records of the application of the terminal at different positions and/or different time periods.
And S12, determining the application processing strategy corresponding to the terminal working state according to the use record.
And S13, determining the working state of the terminal according to the current position and/or current time of the terminal.
And S14, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
Step S13 and step S14 in this embodiment are similar to the implementation of step S1 and step S2 in the foregoing embodiment, respectively, and are not described herein again.
Different from the foregoing embodiment, in order to enable the application processing policy executed by the terminal to better conform to the usage habit of the user, in the present embodiment, the usage records of the application at different positions and/or different time periods of the terminal are obtained; and determining the application processing strategy corresponding to the working state of the terminal according to the use record.
Specifically, the historical usage records of the applications when the terminal is in different positions may be obtained, for example, the usage records of the applications (for example, each App such as a communication App, a news entertainment App, and a weather forecast App) when the terminal is in an on-duty place are collected, then the application processing policy corresponding to the on-duty state of the user is determined according to the usage records, and for example, the usage records of the applications (for example, each App such as a communication App, a news entertainment App, and a weather forecast App) when the terminal is at home are collected, and then the application processing policy corresponding to the off-duty state of the user is determined according to the usage records. Or historical usage records of applications of the terminal in different time periods can be acquired, one way is that the time of day can be evenly divided into a plurality of time periods, and the usage records of the applications in each time period are acquired, the other way is that the time of day can be divided into different time periods such as the user working time (for example, 9: 00-18: 00 late), the user working time (for example, 18:00-22:00 late), the user sleeping time (for example, 22: 00-6: 00 early next day) and the like according to the life rules of the user, the usage records of the applications of the terminal in each time period are acquired, and then the corresponding application processing strategies are determined by the usage records. Or the historical usage records of the applications at different positions and different time periods of the terminal may be acquired at the same time, for example, the usage records of the applications at a place where the user is at work and during the time period at work are acquired, the usage records of the applications at home and during the time period when the user sleeps are acquired, and then the corresponding application processing policy is generated according to the historical usage records of the applications at different positions and different time periods of the terminal.
Preferably, step S12 includes: establishing a terminal working state table according to the use records of the terminal at different positions and/or different time periods; and generating an application processing strategy corresponding to the working state of each terminal according to the application use records of the terminal in different working states.
Specifically, the terminal can be determined to be in the user working state, the user off-duty state and the user sleeping state according to the records of the place and the time in the use record; the application processing strategy corresponding to the working state of each terminal is generated according to the historical usage record of the application of the terminal in different working states of the terminal, for example, the corresponding application processing strategy can be determined to be a message prompt for filtering out an uncommon App according to the historical usage record of the terminal in the working state of a user, the corresponding application processing strategy can be determined to be a message push for retaining all apps according to the historical usage record of the terminal in the working state of the user, and the corresponding application processing strategy can be determined to be a message prompt for filtering out all apps according to the historical usage record of the terminal in the sleeping state of the user.
The power saving control method provided by the example of the disclosure includes acquiring usage records of the application at different positions and/or different time periods of the terminal; determining the application processing strategy corresponding to the working state of the terminal according to the use record; determining the working state of the terminal according to the current position and/or the current time of the terminal; executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal; the terminal can automatically adjust the power saving strategy according to the use habit of the user, the purpose of saving the electric quantity of the terminal while meeting different requirements of the user is achieved, the terminal can save power more intelligently and personally by using the method, and user experience is improved.
With reference to the foregoing implementation manners, fig. 4 is a flowchart illustrating another power saving control method provided by the present disclosure, and as shown in fig. 4, the power saving control method includes:
and S21, determining the working state of the terminal according to the current position and/or current time of the terminal.
And S22, acquiring application information corresponding to the working state of the terminal.
And S23, judging whether the use frequency of the application is greater than or equal to a preset frequency.
If yes, go to step S24, and end; if not, the present embodiment is ended.
And step S24, performing first preset processing on the application.
Step S21 in this embodiment is similar to the implementation of step S1 in the previous embodiment, and is not described herein again.
Unlike the previous embodiments, this embodiment further defines a specific implementation of the application processing policy. In the embodiment, application information corresponding to the working state of the terminal is acquired; judging whether the use frequency of the application is greater than or equal to a preset frequency; and if so, performing first preset processing on the application.
Optionally, the first preset processing includes pushing and/or starting the application in the background. Specifically, application information corresponding to the terminal working state is obtained, namely the use frequency of each application in the current working state is obtained, whether the use frequency of the application is greater than or equal to a preset frequency is judged, if yes, the application is allowed to push message reminding to the terminal or the application is started in a background, and the user can use the application frequently in the current terminal working state.
Another implementation manner of step S2 is: and performing first preset processing on the applications stored in the first application filtering list, wherein the applications with the use frequency of the applications of the terminal in the first working state being greater than the preset frequency are stored in the application filtering list. Specifically, after the working state of the terminal is determined, pushing and/or background starting operations and the like can be directly started on the applications stored in the first application filtering list.
For example, when the terminal is in the user's on-duty status, the user may wish to minimize the number of interruptions by the terminal, but may not wish to miss some of the usual App message reminders when on-duty, the terminal can determine the use frequency of each App in the user working time period according to the historical use record of the terminal, when the use frequency of a certain App is more than the preset frequency, storing the App into a first application filtering list, the reminder push function is started for the applications in the first application filter list, that is, when the terminal is in the user working state, the application with higher frequency is allowed to be used for pushing the reminding service to the terminal in the time period, thereby effectively preventing the user from missing some important information, for the application with low use frequency, the application is forbidden to push the message to the terminal, so that the awakening of the system caused by the push message is effectively reduced, and the power consumption of the terminal is reduced; and when the applications in the first application filter list are not running in the terminal, the applications can be started in the background. It should be noted that the preset frequency can be set according to the experience of those skilled in the art, and the present disclosure does not limit this. Fig. 5 is a schematic diagram showing comparison between before and after application operation when a terminal is in a user on duty state according to the present disclosure, as shown in fig. 5, before application processing policy processing is not performed, the terminal operates a weather App, a microblog App, a WeChat App, a nailing App, and the like, but it can be known from a historical usage record of the terminal on duty state that the nailing App is used at a higher frequency in the user on duty state, power consumption of the terminal is accelerated if other apps are reserved, and after the application processing policy, the terminal may only keep the nailing App to operate, and the other apps with a lower frequency, the weather App, the microblog App, the WeChat App, and the like may exit or be closed.
When the terminal is determined to be in the off-duty state of the user, the user is in the leisure and entertainment time at the moment, the user may want to obtain information as much as possible, preferably, the preset frequency can be set to be relatively small or even zero, so that the reminding and pushing functions of more applications are reserved as much as possible, once an App receives message reminding, the system is awakened, and the user can conveniently check the message so as to remind the user whether to open the App in the foreground. Fig. 6 is a schematic diagram comparing before and after application operation when a terminal is in a user off duty state according to the present disclosure, and as shown in fig. 6, before application processing policy processing is not performed, the terminal operates a weather App, a microblog App, a WeChat App, a nailing App, and the like, but since the user is in the off duty state, the terminal that has passed the application processing policy can retain as many apps as possible.
When the terminal is determined to be in the user sleep state, the user is in the sleep time at the moment, the user may not need to use each application any more, preferably, the preset frequency can be set to be relatively large, most of application programs are prevented from pushing messages to the terminal as much as possible, and terminal electricity consumption caused by awakening of the system by the pushing messages is reduced. Fig. 7 is a schematic diagram comparing before and after application operation when a terminal is in a user sleep state according to the present disclosure, and as shown in fig. 7, before application processing policy processing is not performed, the terminal operates a weather App, a microblog App, a WeChat App, a nail App, and the like, but in the user sleep state, all apps may stop operating to reduce awakening of a terminal system.
In addition, in order to avoid that the user misses some important information when in the sleep state, the method further comprises the following steps: and starting a reminding pushing function of the applications stored in the second application filtering list. And the second application filtering list stores applications with application priorities greater than a preset priority threshold.
Specifically, the priority of each application program can be set, the application with the priority higher than the preset priority threshold value is stored in the second application filtering list, and the reminding pushing function of the application in the second application filtering list is started, so that the reminding pushing function is started by the application program with the high priority, the reminding service is forbidden to be pushed by the application program with the low priority, and the user is prevented from missing some important information; the preset priority threshold may be set according to experience of those skilled in the art, and the present disclosure is not limited thereto.
According to the power saving control method provided by the embodiment of the disclosure, application information corresponding to the working state of the terminal is acquired; judging whether the use frequency of the application is greater than or equal to a preset frequency; if so, the first preset processing is carried out on the application, so that the terminal only runs the application with higher use frequency, the purpose of saving the electric quantity of the terminal is achieved while different requirements of the user are met, the terminal is more intelligent and personalized in power saving, and the user experience is improved.
With reference to the foregoing implementation manners, fig. 8 is a flowchart illustrating another power saving control method provided by the present disclosure, and as shown in fig. 8, the power saving control method includes:
and S31, determining the working state of the terminal according to the current position and/or current time of the terminal.
And S32, detecting whether the running time of at least one foreground application is less than or equal to a preset time.
If yes, go to step S33, otherwise, keep the foreground application.
And S33, outputting a prompt message and/or exiting or closing the foreground application.
And S34, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
Steps S31 and S34 in this embodiment are similar to steps S1 and S2 in the previous embodiment, and are not repeated here.
Different from the foregoing embodiment, in order to prevent the terminal from closing the foreground application currently operated by the user by mistake when executing the corresponding application processing policy, in this embodiment, before executing the corresponding application processing policy according to the working state, it is detected whether the running duration of at least one foreground application is less than or equal to a preset duration; if yes, outputting prompt information and/or quitting or closing the foreground application.
Specifically, the running duration of the foreground application of the terminal may be detected according to a preset time interval, and when the running duration of the foreground application is short, it is indicated that the foreground application may be an application that the user mistakenly clicks or the like, but not an application that the user currently needs to operate, so that a prompt message may be output to prompt whether to exit or close the foreground application, or to directly exit or close the foreground application. If the running time of the foreground application is long, it indicates that the user may be operating the foreground application at this time, and at this time, the foreground application may continue to run, and meanwhile, the corresponding application processing policy is executed according to the working state, so as to reduce the power consumption of the terminal.
Furthermore, applications which are possibly needed in the next step can be predicted according to the use records of the terminal, if the running time of the foreground application is longer than the preset time, the state of the terminal is stable at the moment, the running of other unrelated application programs can be stopped, only the current foreground application and the application program to be used are reserved, and the terminal power consumption caused by the fact that too many unrelated applications are started in the background is avoided. The preset length of time may be set according to experience of those skilled in the art, and the present disclosure is not limited thereto.
Optionally, the method further includes: acquiring application information corresponding to the working state of the terminal; judging whether the application information comprises the foreground application or not; and if so, processing the foreground application according to an application processing strategy corresponding to the working state of the terminal.
For example, if the application information corresponding to the current working state of the terminal includes a foreground application, determining whether the frequency of use of the foreground application is greater than or equal to a preset frequency, if so, performing a first preset process on the foreground application, that is, allowing the foreground application to push a message to the terminal, and if the frequency of use of the foreground application is less than the preset frequency, exiting or closing the foreground application.
The power saving control method provided by the disclosed example comprises the steps of detecting whether the running time of at least one foreground application is less than or equal to a preset time; if so, outputting prompt information and/or quitting or closing the foreground application, so that the problem that the foreground application currently operated by the user is closed by mistake when the terminal executes a corresponding application processing strategy is avoided, and the user experience is improved.
With reference to the foregoing implementation manners, fig. 9 is a flowchart illustrating another power saving control method provided by the present disclosure, and as shown in fig. 9, the power saving control method includes:
and S41, determining the working state of the terminal according to the current position and/or current time of the terminal.
And S42, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
And S43, detecting the operation state of the terminal.
And S44, if the running state meets a first preset condition, performing second preset processing on the terminal.
Step S41 and step S42 in this embodiment are similar to the implementation of step S1 and step S2 in the foregoing embodiment, respectively, and are not described herein again.
Unlike the foregoing embodiment, in order to further reduce the power consumption of the terminal, in the present embodiment, after the corresponding application processing policy is executed according to the operating state, the operating state of the terminal is also detected; and if the running state meets a first preset condition, performing second preset processing on the terminal.
Optionally, the first preset condition includes at least one of the following: the screen-off duration of the terminal exceeds the preset screen-off duration; and the non-operation time length of the terminal exceeds the preset non-operation time length.
Optionally, the second preset processing includes at least one of the following: controlling foreground application to switch to background; suspending the running of the application corresponding to the working state; cleaning related resources of the application corresponding to the working state; cleaning the related resources of the application which are not corresponding to the working state; exiting the application corresponding to the working state; quitting the application which is not corresponding to the working state; and the terminal enters a preset mode.
Specifically, when it is detected that the terminal is always in the screen-off or screen-off state or the user does not operate the terminal for a long time, the following operations may be performed, for example, controlling a foreground application to switch to a background, suspending the running of an application corresponding to a working state of the terminal, cleaning related resources of related applications, and cleaning related resources of applications not corresponding to the working state; the relevant resources comprise an operation memory, a cache, an application priority, a CPU frequency, a GPU frequency and the like, and the application corresponding to the working state is quitted; quitting the application which is not corresponding to the working state; the terminal enters a preset mode comprising a power saving mode, a dark theme mode and the like, so that the problem of terminal power consumption caused by the fact that the screen is directly turned off after the terminal starts a lot of applications or the terminal is not operated for a long time is solved. The preset screen-off duration and the preset non-operation duration may be set according to experience of a person skilled in the art, and the disclosure does not limit the preset screen-off duration and the preset non-operation duration.
In addition, before step S44 is performed, a reminding service may be further set to remind the user whether to perform the second preset process, so that the user may select to execute immediately, or to reserve part of the application, or to reject the application, so that whether to stop running the application program may be determined according to the user' S needs, thereby improving the user experience. It should be noted that, the terminal in the user sleep state is not generally provided with the reminder service, and the second preset processing operation is directly performed, because the user is in the sleep state at this time, the disturbance to the user needs to be reduced.
The power saving control method provided by the disclosed example comprises the steps of detecting the running state of the terminal; and if the running state meets the first preset condition, performing second preset processing on the terminal, and further reducing the power consumption of the terminal.
With reference to the foregoing implementation manners, fig. 10 is a flowchart illustrating another power saving control method provided by the present disclosure, and as shown in fig. 10, the power saving control method includes:
and S51, determining the working state of the terminal according to the current position and/or current time of the terminal.
And S52, acquiring the state parameters of the terminal.
And S53, if the state parameter meets a second preset condition, processing the application corresponding to the terminal working state according to a preset rule.
Step S51 in this embodiment is similar to the implementation of step S1 in the previous embodiment, and is not described herein again.
Different from the foregoing embodiment, in order to ensure the most basic communication functions of the terminal as much as possible, such as making and receiving calls, in the present embodiment, the state parameters of the terminal are obtained; and if the state parameter meets a second preset condition, processing the application corresponding to the working state of the terminal according to a preset rule.
Optionally, the second preset condition includes at least one of: the battery electric quantity of the terminal is less than or equal to a preset electric quantity threshold value; and the residual system resources of the terminal are less than or equal to the preset system resources. The system resources include system memory, cache, executable application number, CPU, GPU, and the like.
Optionally, the processing the application corresponding to the working state according to the preset rule includes at least one of the following: only the preset application is reserved; switching the running states of the foreground and the background of the application; cleaning up related resources of the application; closing or proposing the application; and controlling the application to enter a preset application mode.
Specifically, when the battery power of the terminal is low, if more applications continue to be operated, the power consumption of the terminal is accelerated, the standby time of the terminal is greatly reduced, and the most basic communication function of the terminal cannot be guaranteed; or when the remaining system resources of the terminal are so small that the started application cannot normally operate, in order to ensure the most basic communication function of the terminal or the normal operation of the application, in this embodiment, when the power of the terminal is too low or the system resources are too small, only the preset application is reserved, preferably, the preset application includes an application with a higher priority or a preset application; switching the running state of the foreground and the background of the application, for example, switching foreground application to background; cleaning up related resources of the application; closing or exiting the application; and controlling the application to enter a preset application mode, such as a power saving mode, a black and white display mode, an eye protection mode and the like.
The power saving control method provided by the disclosed example comprises the steps of obtaining a state parameter of the terminal; and if the state parameter meets a second preset condition, processing the application corresponding to the working state of the terminal according to a preset rule, further reducing the power consumption of the terminal, and improving the normal use of the most basic communication function of the terminal and the normal operation of the application.
In a second aspect, an example of the present disclosure provides a power saving control device, and fig. 11 is a schematic structural diagram of the power saving control device provided in the present disclosure, as shown in fig. 11, the power saving control device includes:
a determining module 10, configured to execute a corresponding application processing policy according to the working state, so as to reduce power consumption of the terminal; and the processing module 20 is configured to execute a corresponding application processing policy according to the working state, so as to reduce power consumption of the terminal.
In another optional embodiment, the power saving control apparatus further includes: a generating module 30, configured to obtain usage records of the application at different locations and/or different time periods of the terminal; and determining the application processing strategy corresponding to the working state of the terminal according to the use record.
In other optional embodiments, the processing module 20 is specifically configured to: acquiring application information corresponding to the working state of the terminal; judging whether the use frequency of the application is greater than or equal to a preset frequency; and if so, performing first preset processing on the application.
In other optional embodiments, the system further includes a detection module 40, where the detection module 40 is configured to detect whether an operation duration of at least one foreground application is less than or equal to a preset duration; if yes, outputting prompt information and/or quitting or closing the foreground application.
In other optional embodiments, the processing module 20 is further specifically configured to: acquiring application information corresponding to the working state of the terminal; judging whether the application information comprises the foreground application or not; and if so, processing the foreground application according to an application processing strategy corresponding to the working state of the terminal.
In other optional embodiments, the processing module 20 is further specifically configured to: and detecting the running state of the terminal, and if the running state meets a first preset condition, performing second preset processing on the terminal.
In other alternative embodiments, the first preset condition includes at least one of: the screen-off duration of the terminal exceeds the preset screen-off duration; and the non-operation time length of the terminal exceeds the preset non-operation time length.
In other optional embodiments, the second preset process includes at least one of: controlling foreground application to switch to background; suspending the running of the application corresponding to the working state; cleaning related resources of the application corresponding to the working state; cleaning the related resources of the application which are not corresponding to the working state; exiting the application corresponding to the working state; quitting the application which is not corresponding to the working state; and the terminal enters a preset mode.
In other optional embodiments, the processing module 20 is further specifically configured to: acquiring state parameters of the terminal; and if the state parameter meets a second preset condition, processing the application corresponding to the working state of the terminal according to a preset rule.
In other optional embodiments, the second preset condition comprises at least one of: the battery electric quantity of the terminal is less than or equal to a preset electric quantity threshold value; and the residual system resources of the terminal are less than or equal to the preset system resources.
In other optional embodiments, the processing the application corresponding to the working state according to the preset rule includes at least one of: only the preset application is reserved; switching the running states of the foreground and the background of the application; cleaning up related resources of the application; closing or proposing the application; and controlling the application to enter a preset application mode.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the power saving control apparatus described above may refer to the corresponding process in the foregoing method example, and are not described herein again.
The power saving control device provided by the disclosure is used for executing a corresponding application processing strategy according to the working state through the determining module so as to reduce the power consumption of the terminal; the processing module is used for executing the corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal, namely, the corresponding application processing strategy is executed according to the current position and/or the current time of the terminal in the disclosed example, namely, the power saving strategy can be automatically adjusted by the terminal according to different application scenes, the effect of saving the power of the terminal is achieved while different requirements of a user are met, the power saving of the terminal is more intelligent and personalized, and the user experience is improved.
In a third aspect, an example of the present disclosure provides a power saving control device, and fig. 12 is a schematic diagram of a hardware structure of the power saving control device provided in the present disclosure, as shown in fig. 12, the power saving control device includes:
at least one processor 1201 and memory 1202.
In a specific implementation process, the at least one processor 1201 executes computer-executable instructions stored in the memory 1202, so that the at least one processor 1201 executes the power saving control method, where the processor 1201 and the memory 1202 are connected through the bus 1203.
For a specific implementation process of the processor 1201, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details are not described herein again.
In the embodiment shown in fig. 12, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
In a fourth aspect, the present disclosure also provides a readable storage medium, in which computer execution instructions are stored, and when a processor executes the computer execution instructions, the power saving control method as above is implemented.
The readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A power saving control method, comprising:
s1, determining the working state of the terminal according to the current position and/or current time of the terminal;
and S2, executing a corresponding application processing strategy according to the working state so as to reduce the power consumption of the terminal.
2. The power saving control method according to claim 1, wherein the step S1 is preceded by the steps of:
acquiring the use records of the application of the terminal at different positions and/or different time periods;
and determining the application processing strategy corresponding to the working state of the terminal according to the use record.
3. The power saving control method according to claim 1, wherein the step S2 includes:
acquiring application information corresponding to the working state of the terminal;
judging whether the use frequency of the application is greater than or equal to a preset frequency;
and if so, performing first preset processing on the application.
4. The power saving control method according to claim 1, wherein the step S2 is preceded by the steps of:
detecting whether the running time of at least one foreground application is less than or equal to a preset time;
if yes, outputting prompt information and/or quitting or closing the foreground application.
5. The power saving control method according to claim 4, further comprising:
acquiring application information corresponding to the working state of the terminal;
judging whether the application information comprises the foreground application or not;
and if so, processing the foreground application according to an application processing strategy corresponding to the working state of the terminal.
6. The power saving control method according to claim 1, further comprising, after the step of S2:
detecting the running state of the terminal;
and if the running state meets a first preset condition, performing second preset processing on the terminal.
7. The power saving control method according to claim 6, wherein the first preset condition comprises at least one of:
the screen-off duration of the terminal exceeds the preset screen-off duration;
and the non-operation time length of the terminal exceeds the preset non-operation time length.
8. The power saving control method according to claim 6, wherein the second preset process includes at least one of:
controlling foreground application to switch to background;
suspending the running of the application corresponding to the working state;
cleaning related resources of the application corresponding to the working state;
cleaning the related resources of the application which are not corresponding to the working state;
exiting the application corresponding to the working state;
quitting the application which is not corresponding to the working state;
and the terminal enters a preset mode.
9. The power saving control method according to any one of claims 1 to 8, further comprising, after the step S1:
acquiring state parameters of the terminal;
and if the state parameter meets a second preset condition, processing the application corresponding to the working state of the terminal according to a preset rule.
10. The power saving control method according to claim 9, wherein the second preset condition includes at least one of:
the battery electric quantity of the terminal is less than or equal to a preset electric quantity threshold value;
and the residual system resources of the terminal are less than or equal to the preset system resources.
11. The power saving control method according to claim 9, wherein the processing the application corresponding to the operating state according to a preset rule includes at least one of:
only the preset application is reserved;
switching the running states of the foreground and the background of the application;
cleaning up related resources of the application;
closing or exiting the application;
and controlling the application to enter a preset application mode.
12. A power saving control apparatus characterized in that: the method comprises the following steps: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions causes the at least one processor to perform the power saving control method of any one of claims 1 to 11.
13. A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the power saving control method according to any one of claims 1 to 11.
CN202010195019.1A 2020-03-19 2020-03-19 Power saving control method, control device and storage medium Pending CN111381662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010195019.1A CN111381662A (en) 2020-03-19 2020-03-19 Power saving control method, control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010195019.1A CN111381662A (en) 2020-03-19 2020-03-19 Power saving control method, control device and storage medium

Publications (1)

Publication Number Publication Date
CN111381662A true CN111381662A (en) 2020-07-07

Family

ID=71213759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010195019.1A Pending CN111381662A (en) 2020-03-19 2020-03-19 Power saving control method, control device and storage medium

Country Status (1)

Country Link
CN (1) CN111381662A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119154A (en) * 2021-03-17 2022-09-27 深圳市万普拉斯科技有限公司 Data connection management method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119154A (en) * 2021-03-17 2022-09-27 深圳市万普拉斯科技有限公司 Data connection management method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN104298336B (en) Mobile terminal and control method and device of application program of mobile terminal
CN104252389B (en) application program operation method, system
RU2584549C1 (en) Method and mobile terminal for implementation of alarm in off state
CN110198558B (en) Standby optimization method and device, computer equipment and storage medium
US8286013B2 (en) Portable communication device with multi-tiered power save operation
US8838188B1 (en) Method and apparatus for reducing power consumption in a portable electronic device
CN107748685A (en) Application program launching control method, device, terminal device and storage medium
CN110554762A (en) Method and terminal for controlling application program
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
JP2005292873A (en) Portable information terminal equipment
CN105554316A (en) Intelligent terminal battery capacity reserving realization method and system
CN112153216A (en) Electric quantity early warning method and device, terminal equipment and storage medium
CN106886456A (en) A kind of application program intelligent control method and device
CN107943269A (en) Schedule job control method, device, terminal device and storage medium
CN111163504A (en) Power-saving processing method, mobile terminal and computer storage medium
CN105611074B (en) A kind of method and system optimizing the pushed information time according to alarm time
CN107436672B (en) Application processing method and terminal
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
CN111381662A (en) Power saving control method, control device and storage medium
WO2016115762A1 (en) Power saving mode control method and device for multiple operating systems, and terminal
CN111290565A (en) Doze mode control method, device, terminal and storage medium
CN109933419B (en) Control method and device
CN112181232A (en) Icon processing method and device, electronic equipment and storage medium
CN113672071A (en) Operating system running method and device, storage medium and terminal
TWI407765B (en) Mobile device, power saving method and computer executable medium

Legal Events

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