Power consumption control method and device, terminal, chip and storage medium
By adjusting the target parameters of the front desk application according to the terminal's usage scenario, the problem of difficulty in taking into account image quality and power consumption under limited battery capacity is solved, and a longer battery life and a better user experience is achieved.
Patent Information
- Application Number
- CN202510370289.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-06-13
AI Technical Summary
The prior art is difficult to effectively control the power consumption of the terminal under limited battery capacity, taking into account the image quality and battery life of the front desk application.
By determining the usage scenario of the terminal, adjust the target parameters of the application in the foreground running state, such as rendering parameters and display parameters, to control the power consumption of the terminal.
It achieves the improvement of the terminal's battery life and improves the user experience while ensuring the display of picture quality of the front desk application.
Smart Images

Figure CN120151996A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and in particular, to a power consumption control method, apparatus, terminal, chip, and storage medium. Background Art
[0002] The design of terminals not only needs to pursue high performance and versatility, but also needs to achieve efficient power consumption control under limited battery capacity and heat dissipation conditions. That is, there are cost and benefit issues in the battery system throughout the device life cycle - a larger battery capacity means higher manufacturing costs and device prices. Therefore, under limited battery capacity, how to effectively control power consumption has become a core consideration in terminal design to provide longer battery life and better user experience. Summary of the Invention
[0003] This application aims to solve at least one of the technical problems in the related art to some extent.
[0004] To this end, this application proposes a power consumption control method, apparatus, terminal, chip, and storage medium to adjust the target parameters (such as rendering parameters (such as rendering resolution and frame rate) and display parameters (such as brightness, etc.)) of the first application running in the foreground in the terminal according to the actual usage scenario of the terminal, which can balance the image quality effect of the display screen of the first application and the power consumption of the terminal, and improve the user experience.
[0005] An embodiment of one aspect of this application proposes a power consumption control method, including:
[0006] Determine the actual usage scenario where the user of the terminal is located;
[0007] According to the actual usage scenario, adjust the target parameters of the first application in the terminal to control the power consumption of the terminal; wherein, the first application is an application running in the foreground; the target parameters are used for the first application to render and / or display the screen.
[0008] An embodiment of another aspect of this application proposes a power consumption control apparatus, including:
[0009] A determination module, configured to determine the actual usage scenario where the user of the terminal is located;
[0010] An adjustment module, configured to adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; wherein, the first application is an application running in the foreground; the target parameters are used for the first application to render and / or display the screen.
[0011] In another embodiment of the present application, a terminal is proposed, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the power consumption control method described in the aforementioned one aspect is implemented.
[0012] In another embodiment of the present application, a chip is proposed. The chip includes an interface circuit and a processing circuit coupled to each other. The interface circuit is used to input or output signals, and the processing circuit is configured to execute the power consumption control method described in the aforementioned one aspect.
[0013] In another embodiment of the present application, a non-transitory computer-readable storage medium is proposed, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the power consumption control method described in the aforementioned one aspect is implemented.
[0014] In another embodiment of the present application, a computer program product is proposed, on which a computer program is stored. When the program is executed by a processor, the power consumption control method described in the aforementioned one aspect is implemented.
[0015] The power consumption control method, device, terminal, chip, and storage medium proposed in the present application can adjust the target parameters (such as rendering parameters (such as rendering resolution and frame rate) and display parameters (such as brightness, etc.)) of the first application running in the foreground in the terminal according to the actual usage scenario of the terminal, taking into account both the picture quality effect of the display screen of the first application and the power consumption of the terminal, and improving the user experience.
[0016] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings
[0017] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the drawings, where:
[0018] Figure 1 is a schematic flowchart of the first power consumption control method provided by the embodiment of the present application;
[0019] Figure 2 is a schematic flowchart of the second power consumption control method provided by the embodiment of the present application;
[0020] Figure 3 is a schematic flowchart of the third power consumption control method provided by the embodiment of the present application;
[0021] Figure 4 is a schematic flowchart of the fourth power consumption control method provided by the embodiment of the present application;
[0022] Figure 5 Schematic flowchart of the fifth power consumption control method provided by an embodiment of the present application;
[0023] Figure 6 Schematic flowchart of the sixth power consumption control method provided by an embodiment of the present application;
[0024] Figure 7 Schematic diagram of the implementation principle of any embodiment of the present application;
[0025] Figure 8 Schematic diagram of the structure of a power consumption control device provided by an embodiment of the present application;
[0026] Figure 9 Schematic diagram of the structure of another terminal provided by an embodiment of the present application;
[0027] Figure 10 Schematic diagram of the structure of a chip proposed by an embodiment of the present application. Detailed implementation manners
[0028] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, and should not be construed as a limitation to the present application.
[0029] The design of the terminal needs to face the increasing "rigid" demands of users: wearable interfaces, wireless connections, all-weather computing, high performance, etc., and at the same time, it needs to have a smaller form factor, size, lighter weight, and smaller charging devices. Such seemingly contradictory demands pose unprecedented challenges: 1. Increasing application power consumption demands and longer battery life: As users' dependence on the terminal continues to increase, the power demands of various applications (such as video streaming, games, augmented reality, etc.) are also constantly rising. However, consumers expect the terminal to be able to continue to be used for a longer time after a single charge, which requires the terminal to have excellent energy efficiency management capabilities while providing high performance. 2. The unsustainable heat dissipation problem caused by bulky fans: Due to volume limitations, the terminal cannot be equipped with a large and efficient cooling system like a desktop computer. Small fans or passive cooling methods often have difficulty coping with the heat generated by high-performance processors and high-load applications, which not only affects the terminal performance but may also cause the overheat protection mechanism to start, thereby reducing the user experience.
[0030] Therefore, video applications and other high-performance applications need to operate within a limited power range. From the perspective of consumers, what they care about is whether the terminal has a longer battery life. However, there are cost and benefit issues with the battery system throughout the device's life cycle - a larger battery capacity means higher manufacturing costs and device prices. Therefore, how to effectively control power consumption under a limited battery capacity has become a core consideration in terminal design.
[0031] Among them, in terminal design, the power limit is usually expressed as the Thermal Design Power (TDP for short). TDP takes into account the maximum heat generation of the terminal under cooling conditions during design. Therefore, it can be considered that TDP is the maximum power consumption allowed for the terminal. TDP is usually divided into the power consumption of individual components, such as the Central Processing Unit (CPU for short), Graphics Processing Unit (GPU for short), etc.
[0032] Among them, for terminals such as tablets, phablets, and smartphones, their main drawback is fast power consumption. For example, the battery of a tablet usually runs out a few hours before the end of a transatlantic flight, and a smartphone needs to be charged every day. Therefore, the current market requirement is that a tablet should have a battery life of more than 10 hours so that users can enjoy long-haul flights, and the battery life of a smartphone should be more than 24 hours. In addition, there are some high-power-consuming applications on both tablets and smartphones, so it is necessary to understand the energy usage of these applications.
[0033] In the related art, power consumption of the terminal is mainly controlled based on the characteristics of the foreground application currently running on the terminal. This power consumption control method cannot take into account both the image quality of the display page of the foreground application and the terminal power consumption.
[0034] Therefore, in view of at least one of the problems existing in the above-mentioned related art, the present application proposes a power consumption control method, device, terminal, chip, and storage medium.
[0035] The following describes the power consumption control method, device, terminal, chip, and storage medium of the embodiments of the present application with reference to the accompanying drawings.
[0036] Figure 1 It is a schematic flowchart of the first power consumption control method provided by the embodiments of the present application.
[0037] It should be noted that the power consumption control method of the embodiments of the present application can be applied to a power consumption control device. In some possible embodiments, the power consumption control device can be configured in a terminal or a chip so that the terminal or the chip can perform the power consumption control function. Additionally, in some possible embodiments, the power consumption control device can also be software in the terminal, etc.
[0038] In any one of the embodiments of the present application, the chip can be integrated into the terminal. Among them, the chip includes a Central Processing Unit (CPU), an Image Signal Processing (ISP), an Application-Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), a System On A Chip (SOC), a Reduced Instruction Set Computer (RISC), etc., which will not be listed one by one here.
[0039] Among them, the terminal is an entity on the user side for receiving or transmitting signals, such as a mobile phone. The terminal can also be referred to as a terminal device, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The terminal can be an automobile with communication functions, a smart car, a mobile phone, a wearable device, a tablet (Pad), a computer with wireless transceiver functions, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, and so on. The embodiments of the present application do not limit the specific technologies and specific device forms adopted by the terminal.
[0040] As Figure 1 shown, the power consumption control method may include the following steps S101 to S102:
[0041] Step S101, determining the actual usage scenario of the user of the terminal.
[0042] Among them, the actual usage scenario includes but is not limited to: game scenario, sleep scenario, video viewing scenario, etc.
[0043] Exemplarily, based on various external condition parameters and / or internal condition parameters associated with the terminal usage scenario, the actual usage scenario of the user of the terminal can be predicted.
[0044] Among them, the external condition parameters include information from the external environment of the terminal and can be obtained through sensors or networks. Exemplarily, the external condition parameters include but are not limited to: ambient brightness (or ambient light intensity), weather conditions, sound environment (e.g., a quiet environment may indicate that the user of the terminal is in a working state or a sleep state, while a noisy environment may indicate that the user is in a gaming state, etc.), time, etc.
[0045] Among them, the internal condition parameters include information from the terminal itself, such as data provided by the operating system or applications. Exemplarily, the internal condition parameters include but are not limited to: device posture (e.g., horizontally placing the terminal may indicate that the user of the terminal is watching a video, while vertically holding the terminal may indicate that the user is playing a game or chatting), system load, application usage history (e.g., frequently opening game applications may indicate that the user of the terminal is in an entertainment state, while frequently accessing office software may indicate that the user of the terminal is in a working state), etc.
[0046] Step S102, adjusting the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; where the first application is an application in the foreground running state; the target parameters are used for the first application to render and / or display the screen.
[0047] Among them, the target parameters include but are not limited to: rendering parameters and / or display parameters, where the rendering parameters include but are not limited to: rendering resolution and frame rate, and the display parameters include but are not limited to: brightness, etc.
[0048] In the embodiments of the present application, the corresponding relationships between different usage scenarios and rendering parameters and display parameters can be preset in advance. Therefore, in the present application, according to the actual usage scenario, the above corresponding relationships can be queried to determine the rendering parameters and display parameters corresponding to the actual usage scenario. Thus, the target parameters of the first application in the terminal can be adjusted according to the rendering parameters and display parameters corresponding to the actual usage scenario to control the power consumption of the terminal.
[0049] As an example, taking the target parameters including rendering parameters such as rendering rate for exemplary illustration, a rendering rate comparison table can be preconfigured, where the rendering rate comparison table is used to indicate the rendering rates corresponding to different usage scenarios (such as full rendering, downsampling at double resolution, downsampling at double frame rate, etc.). Therefore, in the present application, according to the actual usage scenario, the above rendering rate comparison table can be queried to determine the rendering rate corresponding to the actual usage scenario, and based on this rendering rate, the rendering rate of the first application can be adjusted.
[0050] The power consumption control method of the embodiments of the present application adjusts the target parameters (such as rendering parameters (such as the resolution and frame rate of rendering) and display parameters (such as brightness, etc.)) of the first application running in the foreground in the terminal according to the actual usage scenario of the terminal, which can balance the image quality effect of the display screen of the first application and the power consumption of the terminal, and improve the user experience.
[0051] It should be noted that in the technical solution of the present application, the acquisition, storage, use, processing, etc. of data all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0052] It should also be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present disclosure are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data all comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0053] The embodiments of the present application provide another power consumption control method. Figure 2 It is a schematic flowchart of the second power consumption control method provided by the embodiments of the present application.
[0054] It should be noted that this power consumption control method can be executed alone, or can be executed together with any one of the embodiments or possible implementation manners in the present application, or can also be executed together with any one of the technical solutions in the related art. The embodiments of the present application do not limit this.
[0055] As Figure 2 shown, this power consumption control method may include the following steps S201 to S203:
[0056] Step S201: Obtain usage context parameters associated with the terminal.
[0057] Among them, the usage context parameters cover various external condition parameters and / or internal condition parameters associated with the terminal usage scenario, including but not limited to at least one of the following: the ambient brightness of the environment where the terminal is located (i.e., the current ambient brightness or the actual ambient brightness), the emotion vector of the user of the terminal, the distance between the user and the terminal, etc.
[0058] Among them, the ambient brightness can be detected by the ambient light sensor of the terminal.
[0059] Among them, the emotion vector can be obtained by performing emotion classification on the face image of the user of the terminal. This emotion vector is used to indicate the classification probability of the face of the user of the terminal belonging to each emotion type at the current moment. Among them, the emotion types include but not limited to: anger, happiness, sadness, etc.
[0060] Among them, the distance between the user and the terminal can be measured by various ranging technologies. For example, it can be measured by a depth camera (such as structured light, Time of Flight (ToF) or stereo vision camera) to measure the distance between the user and the terminal, or it can be measured by a binocular camera, an ultrasonic sensor, an infrared sensor, etc. to measure the distance between the user and the terminal. Or, it can also calculate the distance between the user and the terminal according to other algorithms or mathematical models. The embodiments of the present application do not limit this.
[0061] Step S202: Determine the actual usage scenario of the user of the terminal according to the usage context parameters.
[0062] Among them, the actual usage scenario includes but not limited to: game scenario, sleep scenario, video viewing scenario, etc.
[0063] As an example, machine learning technology can be used to predict the actual usage scenario of the user of the terminal according to the usage context parameters.
[0064] Exemplarily, a Support Vector Machine (SVM) can be used to predict the actual usage scenario of the user of the terminal according to the usage context parameters. Among them, the output value of the SVM is used to indicate the actual usage scenario.
[0065] As another example, deep learning technology can be used to predict the actual usage scenario of the user of the terminal according to the usage context parameters.
[0066] Exemplarily, the usage scenario can be predicted based on usage context parameters, obtaining the prediction probabilities of the terminal belonging to multiple usage scenarios, and determining the actual usage scenario in which the user of the terminal is located from the multiple usage scenarios according to the prediction probabilities of the multiple usage scenarios. For example, the usage scenario with the highest prediction probability can be used as the actual usage scenario in which the user of the terminal is located.
[0067] Step S203: Adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; wherein, the first application is an application running in the foreground; the target parameters are used for the first application to render and / or display the screen.
[0068] It should be noted that the explanation of step S203 can be referred to the relevant description in any embodiment of the present application, and will not be elaborated here.
[0069] The power consumption control method of the embodiment of the present application can predict the actual usage scenario of the user of the terminal according to the usage context parameters associated with the terminal, which can improve the effectiveness and rationality of the actual usage scenario prediction.
[0070] The embodiment of the present application provides another power consumption control method. Figure 3 It is a schematic flowchart of the third power consumption control method provided by the embodiment of the present application.
[0071] It should be noted that this power consumption control method can be executed alone, or can be executed together with any one embodiment or possible implementation manner in the embodiments of the present application, or can also be executed together with any one technical solution in the related art. The embodiments of the present application do not limit this.
[0072] As Figure 3 shown, this power consumption control method can include the following steps S301 to S304:
[0073] Step S301: Obtain the usage context parameters associated with the terminal; wherein, the usage context parameters include at least one of the ambient brightness of the environment where the terminal is located, the emotion vector of the user of the terminal, and the distance between the user and the terminal.
[0074] Wherein, the emotion vector is used to indicate the classification probability of the face of the user belonging to each emotion type.
[0075] It should be noted that the explanation of step S301 can be referred to the relevant description in any embodiment of the present application, and will not be elaborated here.
[0076] In any one embodiment of the present application, the emotion vector of the user of the terminal can be obtained by the following steps A to C:
[0077] Step A: Obtain a target image captured of the user of the terminal. The target image shows the face of the user.
[0078] Exemplarily, the front camera of the terminal can be used to capture the user, obtaining a target image that shows the face of the user.
[0079] Step B: Perform face recognition on the target image to obtain a detection frame containing the face of the user and / or the classification probabilities of the face within the detection frame belonging to each emotion type.
[0080] In this application, a target detection algorithm (including but not limited to YOLO (You Only Look Once, an efficient and accurate target detection model), etc.) or a face detection algorithm can be used to perform face recognition on the target image to obtain a detection frame containing the face of the user and the classification result of the face within the detection frame; where the classification result is used to indicate the classification probabilities of the face of the user belonging to multiple emotion types.
[0081] Exemplarily, regression prediction of the face in the target image can be performed to obtain the position of the detection frame containing the face of the user, and emotion category prediction of the face in the target image can be performed to obtain the classification result of the face within the detection frame.
[0082] Step C: Determine the emotion vector of the user according to the classification probabilities of the face belonging to each emotion type. That is, the classification result can be used as the emotion vector of the user.
[0083] In any embodiment of this application, the way to obtain the distance between the user and the terminal is, for example: determine the distance between the user and the terminal according to the area ratio of the detection frame to the target image.
[0084] Where the distance is negatively correlated with the above area ratio, that is, the larger the area ratio, the closer or smaller the distance between the user and the terminal, and vice versa, the smaller the area ratio, the farther or larger the distance between the user and the terminal.
[0085] Step S302, determine the input vector according to the environmental brightness, emotion vector, and distance.
[0086] As an example, the environmental brightness, emotion vector, and distance can be concatenated to obtain the input vector.
[0087] Exemplarily, the environmental brightness, emotion vector, and distance can be concatenated in sequence to obtain the input vector. For example, mark the environmental brightness as L env , the emotion vector as E face, the distance between the user of the device and the terminal is S, and the input vector is Vec, then: Vec = [L env , E face , S].
[0088] Step S303: Predict the usage scenario of the input vector to obtain the actual usage scenario where the user of the terminal is located.
[0089] As an example, machine learning techniques can be used to predict the usage scenario of the input vector to obtain the actual usage scenario where the user of the terminal is located.
[0090] Exemplarily, the input vector can be input into an SVM for predicting the usage scenario to obtain the actual usage scenario of the terminal. Among them, the output value of the SVM is used to indicate the actual usage scenario.
[0091] As another example, deep learning techniques can be used to predict the usage scenario of the input vector to obtain the actual usage scenario where the user of the terminal is located.
[0092] Exemplarily, the usage scenario of the input vector can be predicted to obtain the prediction probabilities of the terminal belonging to multiple usage scenarios, and according to the prediction probabilities of the multiple usage scenarios, the actual usage scenario where the user of the terminal is located can be determined from the multiple usage scenarios. For example, the usage scenario with the highest prediction probability can be used as the actual usage scenario where the user of the terminal is located.
[0093] Step S304: Adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; wherein, the first application is an application running in the foreground; the target parameters are used for the first application to render and / or display the screen.
[0094] It should be noted that the explanation of step S304 can refer to the relevant description in any embodiment of this application, and will not be elaborated here.
[0095] The power consumption control method of the embodiment of this application comprehensively considers the ambient brightness of the environment where the terminal is located, the emotion vector of the user of the terminal, and the distance between the user and the terminal, and predicts the actual usage scenario where the user of the terminal is located, which can improve the accuracy and reliability of the prediction results.
[0096] The embodiment of this application provides another power consumption control method. Figure 4 It is a schematic flowchart of the fourth power consumption control method provided by the embodiment of this application.
[0097] It should be noted that the power consumption control method can be executed alone, or can be executed in combination with any one of the embodiments in this application or possible implementation manners in the embodiments, or can also be executed in combination with any one of the technical solutions in the related art. The embodiments of this application do not limit this.
[0098] As Figure 4 shown, the power consumption control method may include the following steps S401 to S406:
[0099] Step S401, determine the actual usage scenario where the user of the terminal is located.
[0100] Step S402, adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal.
[0101] Among them, the first application is an application running in the foreground; the target parameters are used for the first application to render and / or display the screen.
[0102] It should be noted that the explanations of steps S401 to S402 can refer to the relevant descriptions in any embodiment of this application, and will not be elaborated here.
[0103] Step S403, query the power consumption benefit of the terminal; among them, the power consumption benefit is determined according to the first power consumption and the second power consumption; the first power consumption is the power consumption of the terminal when the target parameters of the first application are not adjusted; the second power consumption is the power consumption of the terminal after the target parameters of the first application are adjusted and the terminal performs image processing.
[0104] Exemplarily, the power consumption benefit can be determined according to the difference between the first power consumption and the second power consumption. For example, the power consumption benefit of the terminal in any usage scenario (such as usage scenario A) and any application (such as application B) = (the power consumption of the terminal when the target parameters of application B are not adjusted, that is, the normal power consumption of application B) - (the power consumption of the terminal after adjusting the target parameters of application B according to usage scenario A and the terminal performs image processing on the display page of application B).
[0105] Exemplarily, the second power consumption can be the power consumption of the terminal after the target parameters of the first application are adjusted and the terminal uses an image processing model to perform image processing. Among them, the image processing model is used to perform super-resolution (spatial domain magnification) and / or frame interpolation (temporal domain magnification) processing on the display screens of different applications.
[0106] At this time, the power consumption benefit of the terminal (or the image processing model) in any usage scenario (such as usage scenario A) and any application (such as application B) = (the power consumption consumed by the terminal when the target parameters of application B are not adjusted, that is, the normal power consumption of application B) - (the power consumption consumed by the terminal after adjusting the target parameters of application B according to usage scenario A and the terminal using the image processing model to perform image processing on the display page of application B).
[0107] In the embodiments of the present application, the power consumption benefits of each application of the terminal (or the image processing model) in different usage scenarios can be pre-statistically recorded. Therefore, in the present application, according to the actual usage scenario where the user of the terminal is located, the recorded data can be queried to determine the power consumption benefit of the terminal in this actual usage scenario and the first application.
[0108] Step S404, determine whether the power consumption benefit meets the set power consumption condition. If so, execute step S405; if not, execute step S406.
[0109] Among them, the set power consumption condition is a pre-set power consumption condition. Exemplarily, the set power consumption condition includes: the power consumption benefit is greater than 0.
[0110] It should be noted that step S405 and step S406 are two parallel implementation methods and can be executed alternatively.
[0111] Step S405, perform super-resolution and / or frame interpolation processing on the display screen of the first application.
[0112] In the embodiments of the present application, image processing technology can be used to perform super-resolution and / or frame interpolation processing on the display screen of the first application.
[0113] Exemplarily, when the power consumption benefit of the image processing model in the actual usage scenario and the first application meets the set power consumption condition, the image processing model can be activated to perform super-resolution (spatial domain magnification) and / or frame interpolation processing (temporal domain magnification) on the display screen of the first application through the image processing model, so as to improve the image quality of the display screen of the first application, thereby improving the user experience.
[0114] Step S406, do not perform any processing.
[0115] In the embodiments of the present application, in order to reduce the power consumption of the terminal, when the power consumption benefit of the terminal in the actual usage scenario and the first application does not meet the set power consumption condition, super-resolution and / or frame interpolation processing may not be performed on the display screen of the first application.
[0116] In the power consumption control method of the embodiment of the present application, when the power consumption benefit of the terminal in the actual usage scenario and the first application meets the set power consumption condition, super-resolution and / or frame interpolation processing is performed on the display screen of the first application, which can improve the image quality of the display screen of the first application on the basis of reducing the power consumption of the terminal, thereby improving the user experience.
[0117] The embodiment of the present application provides another power consumption control method. Figure 5 It is a schematic flowchart of the fifth power consumption control method provided by the embodiment of the present application.
[0118] It should be noted that this power consumption control method can be executed alone, or it can be executed in combination with any one of the embodiments in the present application or possible implementation manners in the embodiments, or it can also be executed in combination with any one of the technical solutions in the related art. The embodiments of the present application do not limit this.
[0119] As Figure 5 shown, this power consumption control method may include the following steps S501 to S503:
[0120] Step S501, obtain at least one of the application type and historical call information of the first application in the terminal; wherein, the first application is an application in the foreground running state.
[0121] Among them, the application type includes but is not limited to: social media, instant messaging, video and audio streaming media, games, news and information, etc.
[0122] Among them, the historical call information includes but is not limited to: the number of visits, the stay duration, the access time, etc.
[0123] In the embodiment of the present application, the application type of the first application in the foreground running state in the terminal can be queried, and the historical call information of the first application can be queried.
[0124] Step S502, determine the actual behavior scenario of the user of the terminal according to at least one of the application type and historical call information.
[0125] Among them, the actual behavior scenario includes but is not limited to: office scenario, game scenario, video scenario or other scenarios.
[0126] As an example, the corresponding relationship between different application types, historical call information and behavior scenarios can be statistically analyzed in advance, so in the present application, according to at least one of the application type and historical call information of the first application, the above corresponding relationship can be queried to determine the actual behavior scenario of the user of the terminal.
[0127] As another example, the application types and historical call information corresponding to multiple behavior scenarios can be pre-labeled. Thus, in the present application, based on the application type and historical call information of the first application, and the distances between the application types and historical call information corresponding to multiple behavior scenarios, the actual behavior scenario in which the user of the terminal is located can be determined from multiple behavior scenarios.
[0128] Among them, the distances between the application type and historical call information of the first application and the application type and historical call information corresponding to the actual behavior scenario are the smallest.
[0129] Step S503, clean up the second application in the terminal according to the actual behavior scenario; wherein, the second application is an application running in the background state.
[0130] Among them, the clean-up includes releasing at least part of the occupied computing resources. Exemplarily, the clean-up includes, but is not limited to: retaining the basic functions in the second application and closing other functions in the second application except for the basic functions; closing or exiting the second application, etc.
[0131] Among them, the basic functions include, but are not limited to: networking functions, etc., and other functions include, but are not limited to: push notification, background data synchronization and other functions.
[0132] In the embodiments of the present application, the second application in the terminal can be cleaned up according to the actual behavior scenario. Exemplarily, the second application that does not belong to the actual behavior scenario can be cleaned up.
[0133] The power consumption control method of the embodiments of the present application cleans up the applications running in the background state in the terminal according to the actual behavior scenario to which the user of the terminal belongs, which can not only meet the actual usage requirements of the user, but also further reduce the power consumption of the terminal and improve the user experience.
[0134] The embodiments of the present application provide another power consumption control method, Figure 6 which is a schematic flowchart of the sixth power consumption control method provided by the embodiments of the present application.
[0135] It should be noted that this power consumption control method can be executed alone, or can be executed together with any one of the embodiments in the present application or possible implementation manners in the embodiments, or can also be executed together with any one of the technical solutions in the related art. The embodiments of the present application do not limit this.
[0136] As Figure 6 shown, this power consumption control method may include the following steps S601 to S604:
[0137] Step S601: Obtain at least one of the application type and historical call information of the first application in the terminal; where the first application is an application running in the foreground.
[0138] Step S602: Determine the actual behavior scenario where the user is located according to at least one of the application type and historical call information.
[0139] It should be noted that the explanations of steps S601 to S602 can be referred to the relevant descriptions in any embodiment of this application, and will not be elaborated here.
[0140] Step S603: Query the target cleaning policy adapted to the actual behavior scenario from multiple application cleaning policies.
[0141] Among them, the application cleaning policies include but are not limited to: application closing policy, application function closing policy. Among them, the application closing policy means closing the applications running in the background, and the application function closing policy means closing other functions except the basic functions of the applications running in the background.
[0142] In the embodiments of this application, the corresponding relationship between different behavior scenarios and application cleaning policies can be pre-configured. Therefore, in this application, the above corresponding relationship can be queried according to the actual behavior scenario where the user of the terminal is located, so as to determine the target cleaning policy adapted to the actual behavior scenario from multiple application cleaning policies.
[0143] Step S604: Clean at least one third application in the second application by using the target cleaning policy.
[0144] Among them, cleaning includes releasing at least part of the occupied computing resources.
[0145] Among them, the number of third applications can be one, or can also be multiple, and the embodiments of this application do not limit this.
[0146] In the embodiments of this application, first, the third application to be cleaned can be determined from the second application, and then the third application can be cleaned by using the target cleaning policy.
[0147] As an example, the second application that does not belong to the actual behavior scenario can be used as the third application to be cleaned.
[0148] As another example, the third application to be cleaned can be determined by the following steps D to F:
[0149] Step D: Determine the fourth application that matches the application type to which the first application belongs from the second application.
[0150] That is, the application type to which the fourth application belongs is the same as the application type to which the first application belongs.
[0151] Step E: Sort the fourth applications according to the weights of the respective fourth applications to obtain a sorted sequence. That is, each fourth application can be sorted in descending order according to the corresponding weight to obtain a sorted sequence.
[0152] Among them, the weight is determined according to the historical call information of the fourth application. Exemplarily, taking the historical call information including: access duration and access frequency (or called usage frequency) as an example, the weight of any fourth application = the access duration of the fourth application * the access frequency of the fourth application.
[0153] Step F: Use the fourth applications sorted after the set position in the sorted sequence, and the remaining applications in the second application except the fourth applications, as the third applications to be cleared.
[0154] Among them, the set position can be a preset threshold. Exemplarily, mark the set position as K.
[0155] Exemplarily, it is possible to count the top K fourth applications that are of the same application type as the currently used first application and are the most frequently used or have the longest usage duration by the user, and use the remaining applications in the second application except the top K fourth applications as the third applications to be cleared.
[0156] As an example, when the target cleaning policy includes an application closing policy, the third application can be directly closed.
[0157] As another example, when the target cleaning policy includes an application function closing policy, the basic functions in the third application can be retained, and other functions in the third application except the basic functions can be closed.
[0158] In any embodiment of the present application, when the target cleaning policy includes an application function closing policy, if the third application switches from the background running state to the foreground running state, other functions in the third application except the basic functions can be restored so that the user of the terminal can normally use the third application.
[0159] The power consumption control method of the embodiments of the present application can clean the applications that are not frequently used by the user of the terminal in the second application in the background running state, taking into account both the power consumption of the terminal and the usage requirements of the user.
[0160] In any embodiment of the present application, when the user watches videos, works, plays games, etc. through the terminal, the terminal can comprehensively judge the user's picture quality requirements for the viewing content of the foreground application according to the user's mood (usage status), viewing distance, current ambient brightness, actual usage scenario or actual behavior scenario, and the foreground application currently running, and then dynamically control the rendering state (such as the rendering resolution and frame rate) of the foreground application, as well as display parameters such as brightness, and control the retention rate of background applications, so as to reduce the power consumption of the terminal while ensuring the user experience.
[0161] As an example, the power consumption control method provided by the present application mainly includes Figure 7 the following two parts: the background application cleaning part and the rendering power consumption control part.
[0162] As Figure 7 shown, the first part: the background application cleaning part mainly includes the following steps:
[0163] 1. Obtain the application type and historical call information (including but not limited to the number of accesses and the stay duration (or usage duration)) of the foreground application used by the current user.
[0164] 2. According to the application type and historical call information (including the number of accesses and the stay duration) of the foreground application, judge the actual behavior scenario where the user is located, such as the office, game, video or other behavior scenarios, and analyze the background applications that may be used in this actual behavior scenario.
[0165] 3. Determine the background applications that the user may use. Exemplarily, count the TopK background applications of the same application type as the first application currently used by the user, with the most frequent usage times or the longest usage duration, where K is a preset threshold. The weight of each background application is calculated according to the historical call information (such as usage duration * usage frequency), and the Top K list is updated in real time according to the foreground application currently used by the user.
[0166] 4. Use an application cleaning strategy adapted to the actual behavior scenario to clean the remaining background applications outside the Top K list. Exemplarily, only basic functions such as networking can be retained to minimize the power consumption of the terminal. Optionally, when the user activates these background applications, restore all their functions, update the Top K list again, and judge the actual behavior scenario.
[0167] As Figure 7 shown, the second part: the rendering power consumption control part mainly includes the following steps:
[0168] 1'. Call the ambient light sensor of the terminal to collect the current ambient brightness and obtain the brightness L env .
[0169] 2'. Periodically (e.g., every 10 seconds) capture the user's emotion (usage status): Call the front camera of the terminal to take a picture of the user's face, and use a face detection algorithm to detect the position P of the user's face face and the emotion vector E face . Exemplarily, the YOLO object detection model can be used to process the target image showing the user's face, and perform positioning and classification at the same time. Among them, the positioning result is P face , which is represented as a square detection frame, and the four corners of the detection frame represent the area where the user's face is located. The classification result is E face , which is represented as an emotion vector. Among them, each dimension of the emotion vector represents a different emotion type, and the value represents the proportion of that emotion type (i.e., the classification probability).
[0170] 3'. Calculate the total area of the user's face in the whole picture to evaluate the distance between the user's face and the terminal. Among them, the area ratio is S = P face / S Phone , where S Phone is the total pixel area of the front camera.
[0171] 4'. According to the parameters of the above three steps, judge the actual usage scenario of the terminal (such as games, sleep, watching videos, etc.). Exemplarily, according to the ambient brightness, emotion vector and distance, an input vector Vec = [L env , E face , S] can be formed, and the input vector is input into the SVM. The output value of this SVM represents the actual usage scenario.
[0172] 5'. According to the actual usage scenario, change the target parameters of the foreground application (including rendering parameters and display parameters). Taking the rendering rate in the rendering parameters as an example of the target parameters, a rendering rate comparison table can be preset in advance, and according to different usage scenarios, the corresponding rendering rate can be selected (such as full rendering, downsampling at twice the resolution, downsampling at twice the frame rate, etc.).
[0173] 6'. Optionally, pre-record the power consumption benefits of the terminal (or image processing model) in different usage scenarios and applications. If the actual usage scenario is a non-sleep scenario (i.e., the user is in a non-sleep state), and the image processing model has power consumption benefits (i.e., the power consumption benefit of the image processing model in the actual usage scenario and the foreground application is positive), then turn on this module. For the usage scenarios with reduced rendering rate, use the image processing model to perform super-resolution (spatial domain magnification) and / or frame interpolation (temporal domain magnification) processing on the display screen of the foreground application to improve the display image quality, thereby enhancing the user's usage experience.
[0174] To implement the above embodiments, an embodiment of the present application also proposes a power consumption control device.
[0175] Figure 8 This is a schematic structural diagram of a power consumption control device provided by an embodiment of the present application.
[0176] As Figure 8 shown, the power consumption control device 800 may include: a determination module 810 and an adjustment module 820.
[0177] Among them, the determination module 810 is used to determine the actual usage scenario where the user of the terminal is located;
[0178] The adjustment module 820 is used to adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; among them, the first application is an application in the foreground running state; the target parameters are used for the first application to render and / or display the screen.
[0179] Further, in an implementation manner of the embodiment of the present application, the determination module 810 is used to: obtain usage context parameters associated with the terminal; among them, the usage context parameters include at least one of the ambient brightness of the environment where the terminal is located, the emotion vector of the user, and the distance between the user and the terminal; among them, the emotion vector is used to indicate the classification probability of the user's face belonging to each emotion type; determine the actual usage scenario where the user of the terminal is located according to the usage context parameters.
[0180] In an implementation manner of the embodiment of the present application, the determination module 810 is used to: determine an input vector according to the ambient brightness, the emotion vector, and the distance; perform prediction of the usage scenario on the input vector to obtain the actual usage scenario where the user of the terminal is located.
[0181] In an implementation manner of the embodiment of the present application, the determination module 810 is used to: obtain a target image obtained by photographing the user; perform face recognition on the target image to obtain a detection frame including the user's face and / or the classification probability of the face in the detection frame belonging to each emotion type; determine the emotion vector of the user according to the classification probability of the face belonging to each emotion type; and / or determine the distance between the user and the terminal according to the area ratio of the detection frame to the target image.
[0182] In an implementation manner of the embodiment of the present application, the power consumption control device 800 may further include:
[0183] A query module, used to query the power consumption benefit of the terminal; among them, the power consumption benefit is determined according to the first power consumption and the second power consumption; the first power consumption is the power consumption of the terminal when the target parameters of the first application are not adjusted; the second power consumption is the power consumption of the terminal after the target parameters of the first application are adjusted and the terminal performs image processing.
[0184] A processing module, configured to perform super-resolution and / or frame interpolation processing on the display screen of the first application if the power consumption benefit meets the set power consumption condition.
[0185] In an implementation manner of the embodiment of the present application, the power consumption control device 800 may further include:
[0186] A cleaning module, configured to obtain the application type and historical call information of the first application; determine the current behavior scenario of the user of the terminal according to the application type and historical call information; clean the second application in the terminal according to the current behavior scenario; where the second application is an application in the background running state; the cleaning includes releasing at least part of the occupied computing resources.
[0187] In an implementation manner of the embodiment of the present application, the cleaning module is configured to: query a target cleaning policy adapted to the current behavior scenario from multiple application cleaning policies; determine a third application to be cleaned from the second applications; and clean the third application using the target cleaning policy.
[0188] In an implementation manner of the embodiment of the present application, the cleaning module is configured to: determine a fourth application matching the application type from the second applications; sort the fourth applications according to their weights to obtain a sorting sequence; where the weights are determined according to the historical call information of the fourth applications; and use the fourth applications sorted after the set position in the sorting sequence and the remaining applications in the second applications except the fourth applications as the third application.
[0189] In an implementation manner of the embodiment of the present application, the cleaning module is configured to: retain the basic functions in the third application and turn off other functions in the third application except the basic functions.
[0190] In an implementation manner of the embodiment of the present application, the power consumption control device 800 may further include:
[0191] A restoration module, configured to restore other functions in the third application in response to the third application switching from the background running state to the foreground running state.
[0192] It should be noted that the foregoing explanation of the embodiment of the power consumption control method also applies to the power consumption control device of this embodiment, and will not be repeated here.
[0193] In the power consumption control device of the embodiment of the present application, by adjusting the target parameters (such as rendering parameters (such as rendering resolution and frame rate) and display parameters (such as brightness, etc.)) of the first application in the foreground running state of the terminal according to the actual usage scenario of the terminal, the image quality effect of the display screen of the first application and the power consumption of the terminal can be taken into account, and the user experience can be improved.
[0194] To implement the above embodiments, the present application further provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the power consumption control method described in any of the foregoing embodiments is implemented.
[0195] Figure 9 FIG. 4 is a schematic structural diagram of another terminal provided by an embodiment of the present application. For example, the terminal 900 may be a vehicle, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0196] Referring to Figure 9 , the terminal 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0197] The processing component 902 generally controls the overall operation of the terminal 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0198] The memory 904 is configured to store various types of data to support the operation of the terminal 900. Examples of such data include instructions for any application or method operating on the terminal 900, contact data, phone book data, messages, pictures, videos, and the like. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a 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, a magnetic disk, or an optical disk.
[0199] The power component 906 provides power for the various components of the terminal 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 900.
[0200] The multimedia component 908 includes a screen that provides an output interface between the terminal 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the terminal 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0201] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive external audio signals when the terminal 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0202] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0203] The sensor component 914 includes one or more sensors for providing an assessment of the status of various aspects of the terminal 900. For example, the sensor component 914 can detect the open / closed state of the terminal 900, the relative positioning of components, such as the display and keypad of the terminal 900. The sensor component 914 can also detect a change in the position of the terminal 900 or a component of the terminal 900, the presence or absence of user contact with the terminal 900, the orientation or acceleration / deceleration of the terminal 900, and the temperature change of the terminal 900. The sensor component 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a Complementary Metal-Oxide-Semiconductor (CMOS) or a Charge-Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0204] The communication component 916 is configured to facilitate communication between the terminal 900 and other devices in a wired or wireless manner. The terminal 900 can access a communication standard-based wireless network, such as WiFi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra-Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0205] In an exemplary embodiment, the terminal 900 can be implemented by one or more Application-Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field-Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0206] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by a processor 920 of the terminal 900 to complete the above method. For example, the non-transitory computer-readable storage medium can be a Read-Only Memory (ROM), Random Access Memory (RAM), Compact Disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0207] To implement the above embodiments, the present application also provides a chip. The chip includes an interface circuit and a processing circuit that are coupled to each other. The interface circuit is used to input or output signals, and the processing circuit is configured to execute the power consumption control method provided in any of the foregoing embodiments.
[0208] Figure 10 It is a schematic structural diagram of a chip proposed in an embodiment of the present application. Reference may be made to Figure 10 the schematic structural diagram of the chip 1000 shown, but not limited thereto.
[0209] The chip 1000 includes a processing circuit 1001, and the processing circuit 1001 is configured to execute any of the above power consumption control methods.
[0210] In some embodiments, the chip 1000 further includes one or more interface circuits 1002. Optionally, the interface circuit 1002 is connected to the memory 1003. The interface circuit 1002 can be used to receive signals from the memory 1003 or other devices, and the interface circuit 1002 can be used to send signals to the memory 1003 or other devices. For example, the interface circuit 1002 can read the instructions stored in the memory 1003 and send the instructions to the processing circuit 1001.
[0211] In some embodiments, the interface circuit 1002 executes at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 1001 executes other steps.
[0212] In some embodiments, terms such as interface circuit, interface, transceiver pin, transceiver, etc. can be replaced with each other.
[0213] In some embodiments, the chip 1000 further includes one or more memories 1003 for storing instructions. Optionally, all or part of the memories 1003 can be outside the chip 1000.
[0214] To implement the above embodiments, the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the power consumption control method described in any of the foregoing method embodiments is implemented.
[0215] To implement the above embodiments, the present application also provides a computer program product, on which a computer program is stored. When the computer program is executed by a processor, the power consumption control method described in any of the foregoing method embodiments is implemented.
[0216] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0217] In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of this application, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0218] Any process or method description shown in the flowchart or described in other ways herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logic function or process, and the scope of the preferred embodiments of this application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the functions involved, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of this application pertain.
[0219] The logic and / or steps represented in the flowchart or otherwise described herein can, for example, be considered as a definable sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or used in conjunction with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection parts with one or more wirings (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing when necessary, and then storing it in a computer memory.
[0220] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or combinations thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0221] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0222] In addition, each functional unit in various embodiments of the present application may be integrated into a processing module, may exist physically separately for each unit, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0223] The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disc, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present application.
Claims
1. A power consumption control method, characterized in that: include: Determine the actual usage scenario of the terminal user; According to the actual usage scenario, the target parameters of the first application in the terminal are adjusted to control the power consumption of the terminal; wherein the first application is an application in the foreground running state; and the target parameters are used by the first application to render and / or display the screen.
2. The method according to claim 1, characterized in that The method further comprises: querying the power consumption benefit of the terminal; wherein the power consumption benefit is determined according to a first power consumption and a second power consumption; the first power consumption is the power consumption consumed by the terminal when the target parameters of the first application are not adjusted; the second power consumption is the power consumption consumed by the terminal after the target parameters of the first application are adjusted and the terminal performs image processing; If the power consumption benefit meets the set power consumption condition, super-resolution and / or frame insertion processing is performed on the display screen of the first application.
3. The method according to claim 1, characterized in that The determining of the actual usage scenario of the user of the terminal includes: Acquire a usage context parameter associated with the terminal; wherein the usage context parameter includes: at least one of the ambient brightness of the environment in which the terminal is located, the emotion vector of the user, and the distance between the user and the terminal; wherein the emotion vector is used to indicate the classification probability of the user's face belonging to each emotion type; An actual usage scenario of an object using the terminal is determined according to the usage scenario parameters.
4. The method according to claim 3, characterized in that The determining, according to the usage scenario parameter, an actual usage scenario of a user of the terminal includes: Determine an input vector according to the ambient brightness, the emotion vector and the distance; A usage scenario is predicted for the input vector to obtain an actual usage scenario of an object using the terminal.
5. The method according to claim 3, characterized in that: The emotion vector and / or the distance are obtained by using the following steps: Acquiring a target image obtained by photographing the object; Performing face recognition on the target image to obtain a detection frame containing the face of the user and / or a classification probability that the face in the detection frame belongs to each emotion type; Determining the emotion vector of the user according to the classification probability of the face belonging to each emotion type; and / or, The distance between the object and the terminal is determined according to the area ratio of the detection frame and the target image.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Obtain at least one of an application type and historical call information of the first application; Determine an actual behavior scenario of a user of the terminal according to at least one of the application type and the historical call information; According to the actual behavior scenario, the second application in the terminal is cleaned up; wherein the second application is an application in a background running state; the cleaning up includes releasing at least part of the occupied computing resources.
7. The method according to claim 6, characterized in that The clearing the second application in the terminal according to the actual behavior scenario includes: From a plurality of application cleaning strategies, query a target cleaning strategy adapted to the actual behavior scenario; The target cleaning strategy is adopted to clean up at least one third application in the second application.
8. The method according to claim 7, characterized in that The third application is determined by the following steps: Determine, from the second application, a fourth application matching the application type; Sorting the fourth applications according to their weights to obtain a sorting sequence; wherein the weights are determined according to historical call information of the fourth applications; Each fourth application ranked after the set number of bits in the sorting sequence, and the remaining applications in the second application except the fourth application, are used as the third application.
9. The method according to claim 7, characterized in that: The adopting the target cleaning strategy to clean up the third application includes: The basic functions in the third application are retained, and other functions in the third application except the basic functions are disabled.
10. The method according to claim 9, characterized in that The method further comprises: In response to the third application being switched from a background running state to a foreground running state, the other functions in the third application are restored.
11. A power consumption control device, characterized in that: include: A determination module, used to determine the actual usage scenario of the user of the terminal; An adjustment module is used to adjust the target parameters of the first application in the terminal according to the actual usage scenario to control the power consumption of the terminal; wherein the first application is an application in the foreground running state; the target parameters are used for the first application to render and / or display the picture.
12. A terminal, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A chip, characterized in that: The chip comprises an interface circuit and a processing circuit coupled to each other, the interface circuit is used to input or output a signal, and the processing circuit is used to implement the method according to any one of claims 1 to 10.
14. A non-transitory computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
15. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Screen display method and device, storage medium and terminal
CN110737323A
Electronic whiteboard energy saving method and device and electronic whiteboard
CN110928393A
Equipment management method and device, electronic equipment and storage medium
CN113985999A
Management method for peripheral device in terminal and terminal
WO2019183783A1