CN116634532A - Terminal power consumption control method, device and storage medium - Google Patents

Terminal power consumption control method, device and storage medium Download PDF

Info

Publication number
CN116634532A
CN116634532A CN202210126414.3A CN202210126414A CN116634532A CN 116634532 A CN116634532 A CN 116634532A CN 202210126414 A CN202210126414 A CN 202210126414A CN 116634532 A CN116634532 A CN 116634532A
Authority
CN
China
Prior art keywords
processing unit
target
graphics processing
real
coloring
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
CN202210126414.3A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210126414.3A priority Critical patent/CN116634532A/en
Publication of CN116634532A publication Critical patent/CN116634532A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The disclosure relates to a terminal power consumption control method, a device and a storage medium, wherein the method comprises the following steps: acquiring target data representing the pressure of a graphic processing unit of the terminal; determining a graphics processing parameter corresponding to the current pressure of the graphics processing unit according to the target data; and controlling the graphic processing unit to render a picture based on the graphic processing parameters. According to the method and the device, the pressure of the graphic processing unit is monitored in real time by acquiring the target data, and the graphic processing unit is controlled to render the picture according to the graphic processing parameters corresponding to the pressure, so that the power consumption can be intelligently reduced from the angle of the graphic processing unit in the process of using the terminal with high intensity by a user.

Description

Terminal power consumption control method, device and storage medium
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to a terminal power consumption control method, a device and a storage medium.
Background
Power consumption is a key factor affecting the experience of a user using a terminal (e.g., a mobile phone, a car-mounted device, a tablet computer, etc.), and a good power consumption design means longer use time and better user experience. In order to save power consumption, current terminal manufacturers use various technical means, such as: a periodic dormancy mechanism in a standby process is adopted, or a screen is adopted to be closed at fixed time; or, the terminal is set to a power saving mode, in which parameter settings such as screen brightness and sleep time are changed, for example, the screen is adaptively darkened, and rapid sleep is performed, so as to achieve the aim of saving power as much as possible. However, in order to solve the power consumption problem generated during the process of using the terminal with high intensity by the user, measures such as dormancy and closing the screen cannot be taken.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a terminal power consumption control method, apparatus, and storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a terminal power consumption control method, including:
acquiring target data representing the pressure of a graphic processing unit of the terminal;
determining a graphics processing parameter corresponding to the current pressure of the graphics processing unit according to the target data;
and controlling the graphic processing unit to render a picture based on the graphic processing parameters.
Optionally, the target data includes a real-time bandwidth of a memory device of the terminal; the determining graphics processing parameters corresponding to the current pressure of the graphics processing unit according to the target data comprises:
determining a target bandwidth range in which the real-time bandwidth of the memory device is located from a plurality of bandwidth ranges representing different pressures, and determining a target scaling corresponding to the target bandwidth range;
the controlling the graphics processing unit to render a picture based on the graphics processing parameters includes:
and controlling the graphic processing unit to render the picture based on the target scaling so that the resolution of the rendered picture is scaled according to the target scaling.
Optionally, the controlling the graphics processing unit to render a picture based on the target scaling includes: performing Hook for calling the graphic API; and when the Hook calls the graphic API, generating a picture scaling command according to the target scaling ratio, and sending the picture scaling command to the graphic processing unit, so that the graphic processing unit determines a target frame buffer corresponding to the target scaling ratio according to a plurality of frame buffers respectively corresponding to different scaling ratios applied in the memory device, and renders a picture in the target frame buffer.
Optionally, the acquiring the target data representing the pressure of the graphic processing unit of the terminal includes: and monitoring the bandwidth data in the first equipment node corresponding to the memory equipment through the created monitoring service, and acquiring the real-time bandwidth read from the first equipment node by the monitoring service when the change of the bandwidth data is monitored.
Optionally, the target data includes a real-time load and a real-time frequency of the graphics processing unit; the determining graphics processing parameters corresponding to the current pressure of the graphics processing unit according to the target data comprises:
determining a corresponding target coloring rate according to the real-time load and the real-time frequency of the graphic processing unit;
the controlling the graphics processing unit to render a picture based on the graphics processing parameters includes:
controlling the graphics processing unit to render a picture based on the target shading rate.
Optionally, the determining the corresponding target coloring rate according to the real-time load and the real-time frequency of the graphics processing unit includes:
when the real-time frequency is in a first frequency range, determining that the first coloring rate is a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a first load range, determining a second coloring rate as a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a second load range, determining a third coloring rate as a target coloring rate;
the minimum frequency value of the first frequency range is larger than the maximum frequency value of the second frequency range, the minimum load value of the first load range is larger than the maximum load value of the second load range, and the sizes of pixel blocks to which the single coloring operation is applied, corresponding to the first coloring rate, the second coloring rate and the third coloring rate, are sequentially reduced.
Optionally, the controlling the graphics processing unit to render a picture based on the target shading rate includes: performing Hook for calling the graphic API; and when the Hook calls the graphics API, generating a coloring adjustment command according to the target coloring rate, and sending the coloring adjustment command to the graphics processing unit, so that the graphics processing unit executes coloring operation on each pixel block with corresponding size based on the size of the pixel block to which the single coloring operation is applied, corresponding to the target coloring rate, in a target frame buffer applied by the memory device, so as to render the picture.
Optionally, the acquiring the target data representing the pressure of the graphic processing unit of the terminal includes: and monitoring load data and frequency data in a second equipment node corresponding to the graphic processing unit through the created monitoring service, and acquiring real-time load and real-time frequency read by the monitoring service from the second equipment node when the change of the load data and/or the frequency data is monitored.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal power consumption control apparatus, including:
the data acquisition module is used for acquiring target data representing the pressure of the graphic processing unit of the terminal;
a parameter determining module, configured to determine a graphics processing parameter corresponding to a current pressure of the graphics processing unit according to the target data;
and the rendering control module is used for controlling the graphic processing unit to render a picture based on the graphic processing parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal power consumption control apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions in the memory to implement the steps of the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of the first aspect.
According to the technical scheme, the pressure of the graphic processing unit is monitored in real time by acquiring the target data, then the graphic processing parameter corresponding to the current pressure of the graphic processing unit is determined according to the target data, the graphic processing unit is controlled to render a picture according to the graphic processing parameter, and different graphic processing parameter values are adopted when the graphic processing unit is at different pressures, so that the power consumption can be intelligently reduced from the angle of the graphic processing unit in the process of using the terminal with high intensity by a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of controlling power consumption of a terminal according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of controlling power consumption of a terminal according to an exemplary embodiment;
FIG. 3 is a diagram illustrating the correspondence of bandwidth ranges, graphics processing unit pressure, and scaling, according to an example embodiment;
FIG. 4 is a flowchart illustrating a method of controlling power consumption of a terminal according to an exemplary embodiment;
FIG. 5 is a diagram illustrating the real-time load and real-time frequency of a graphics processing unit, the graphics processing unit pressure, and the shading rate, according to an example embodiment;
fig. 6 is a block diagram of a terminal power consumption control apparatus according to an exemplary embodiment;
fig. 7 is a block diagram illustrating a terminal power consumption control apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The related art provides power consumption control methods in which power consumption is controlled by controlling screen brightness, power consumption is controlled by killing processes, and power consumption is controlled by controlling memory frequency, but these control methods do not control power consumption from the viewpoint of graphics processing units (Graphics Processing Unit, GPUs) professionally. Therefore, the embodiment of the disclosure provides a method for controlling power consumption by adjusting graphics processing parameters of a graphics processing unit, and by applying the technical scheme, power consumption can be intelligently reduced, thereby improving application (such as games or video software) experience and endurance time.
Fig. 1 is a flowchart illustrating a terminal power consumption control method for use in a terminal to improve power consumption problems generated during use of the terminal, to intelligently control power consumption of the terminal, for example, to automatically reduce power consumption of the terminal when high intensity combat is performed in a game, according to an exemplary embodiment. As shown in fig. 1, the method includes:
s110, acquiring target data representing the pressure of a graphic processing unit of the terminal.
S120, determining a graphic processing parameter corresponding to the current pressure of the graphic processing unit according to the target data.
S130, controlling the graphic processing unit to render the picture based on the graphic processing parameters.
The target data includes a real-time bandwidth of a memory device of the terminal, and/or a real-time load and a real-time frequency of a graphics processing unit of the terminal, and accordingly, the graphics processing parameters include a scaling of a resolution of a picture, and/or a rendering rate adopted during picture rendering. The coloring rate sequentially increases from fast to slow by 1×1,1×2 (or 2×1), 2×2,2×4 (or 4×2), 4×4, etc., and the corresponding pixel block to which the single coloring operation is applied sequentially increases in size, e.g., the 4×4 coloring rate indicates that the pixel block to which the single coloring operation is applied is 4×4 in size, i.e., a pixel of 4×4 size is regarded as one pixel block, and the single coloring operation is performed on each pixel block. The larger the size of the corresponding pixel block, the faster the coloring rate.
It will be appreciated that the pressure of the graphics processing unit is positively correlated with the real-time bandwidth of the memory device, the lower the real-time traffic between the graphics processing unit and the memory device, the lower the current pressure of the graphics processing unit, and conversely, the higher the real-time bandwidth of the memory device, the more the real-time traffic between the graphics processing unit and the memory device, indicating that the graphics processing unit may be rendering a large number of pictures in the Frame Buffer (FB) of the memory device, and the higher the current pressure of the graphics processing unit.
In addition, the pressure of the graphic processing unit is positively correlated with the real-time load and the real-time frequency of the graphic processing unit, and the higher the real-time load and the real-time frequency of the graphic processing unit, the higher the current pressure of the graphic processing unit is represented by the graphic processing unit currently rendering pictures in a large quantity at a higher working frequency, and the lower the real-time load and the real-time frequency of the graphic processing unit is represented by the graphic processing unit, the lower the current pressure of the graphic processing unit is represented by the graphic processing unit.
In the above process, target data (such as a real-time bandwidth of a memory device and/or a real-time load and a real-time frequency of the graphics processing unit) representing the pressure of the graphics processing unit is first obtained, then graphics processing parameters (such as a scaling of a picture resolution and/or a coloring rate adopted in picture rendering) corresponding to the current pressure of the graphics processing unit are determined according to the target data, and the graphics processing unit is controlled to render a picture with the graphics processing parameters, and different graphics processing parameter values are adopted when the graphics processing unit is at different pressures. For example, when the current pressure of the graphics processing unit is "extremely high", a scaling of 0.7 times may be selected so that the resolution of the rendered picture may scale to 0.7 times that of the original picture, and/or a 4×4 shading rate may be selected so that the shading accuracy of the picture is reduced; when the current pressure of the graphics processing unit is "slightly higher", a scaling factor of 0.8 may be selected, and/or a 4 x 2 shading rate may be selected; when the current pressure of the graphics processing unit is "medium", a scaling factor of 0.9 may be selected, and/or a 2 x 1 shading rate may be selected. Therefore, the rendering pressure of the graphic processing unit is relieved by sacrificing the picture precision, and the purpose of reducing the power consumption is achieved.
According to the technical scheme, the pressure of the graphic processing unit is monitored in real time by acquiring the target data, and the graphic processing unit is controlled to render the picture according to the graphic processing parameters corresponding to the pressure, so that the power consumption can be intelligently reduced from the angle of the graphic processing unit in the process of using the terminal with high intensity by a user.
An exemplary embodiment is provided next taking as an example the real-time bandwidth of the memory device of the terminal including the target data. Fig. 2 shows a flowchart of a terminal power consumption control method provided in this exemplary embodiment, and as shown in fig. 2, the method includes:
s210, acquiring the real-time bandwidth of the memory device of the terminal.
The monitoring service is created, bandwidth data in the first device node corresponding to the memory device is monitored through the monitoring service, and when the change of the bandwidth data is monitored, real-time bandwidth read from the first device node and reported by the monitoring service is obtained.
S220, determining a target bandwidth range in which the real-time bandwidth of the memory device is located from a plurality of bandwidth ranges representing different pressures, and determining a target scaling corresponding to the target bandwidth range.
Wherein, a plurality of bandwidth ranges are provided and each bandwidth range characterizes different pressures, the plurality of bandwidth ranges comprise a first bandwidth range, a second bandwidth range and a third bandwidth range, the bandwidth values in the first bandwidth range, the second bandwidth range and the third bandwidth range are decreased from high to low, the lowest bandwidth value in the first bandwidth range is higher than the highest bandwidth value in the second bandwidth range, and the lowest bandwidth value in the second bandwidth range is higher than the highest bandwidth value in the third bandwidth range. The pressure of the graphics processing unit characterized by the first bandwidth range, the pressure of the graphics processing unit characterized by the second bandwidth range, and the pressure of the graphics processing unit characterized by the third bandwidth range are decremented from high to low.
When the real-time bandwidth of the memory device is in the first bandwidth range, determining the first scaling ratio as a target scaling ratio, when the real-time bandwidth of the memory device is in the second bandwidth range, determining the second scaling ratio as a target scaling ratio, and when the real-time bandwidth of the memory device is in the third bandwidth range, determining the third scaling ratio as a target scaling ratio, wherein the scaling degrees corresponding to the first scaling ratio, the second scaling ratio and the third scaling ratio are gradually reduced from high to low, such as the first scaling ratio, the second scaling ratio and the third scaling ratio are sequentially 0.7, 0.8 and 0.9. FIG. 3 shows a schematic diagram of the correspondence of bandwidth range, graphics processing unit pressure, and scaling.
In the step, a target bandwidth range of the real-time bandwidth in the set multiple bandwidth ranges is determined according to the real-time bandwidth of the memory device, and a corresponding target scaling ratio is determined according to the target bandwidth range.
S230, controlling the graphic processing unit to render the picture based on the target scaling so that the resolution of the rendered picture is at the target scaling.
After determining the target scaling, a corresponding command is sent to the graphics processing unit to instruct the graphics processing unit to render the picture based on the target scaling such that the resolution of the rendered picture is at the target scaling compared to the resolution of the original picture, e.g. the resolution of the rendered picture is 0.9 times the resolution of the original picture.
In particular embodiments, an application within the terminal (e.g., game or video software, etc.) sends a command stream to the graphics processing unit by calling a graphics API (e.g., openGL, vulkan, etc.) to instruct the graphics processing unit how to render the current frame picture. Thus, when the call to the graphics API is made, a screen zoom command is generated according to the target zoom scale, and the screen zoom command is transmitted to the graphics processing unit, the screen zoom command being inserted in the command stream and transmitted to the graphics processing unit together with the command stream. The graphics processing unit receives the command stream and a frame scaling command inserted in the command stream, and then renders the frame based on a target scaling indicated in the frame scaling command in response to the command stream.
For example, the gpu applies for multiple frame buffers of different sizes in the memory device in advance, each frame buffer corresponds to a scaling factor, and assuming that the resolution of the original picture is 800×800, then applies for a frame buffer of 800×800, a frame buffer of 720×720, a frame buffer of 640×640, and a frame buffer of 560×560 in the memory device, which correspond to scaling factors of 1, 0.9, 0.8, and 0.7 in sequence. Based on the target scaling in the frame scaling command, a frame buffer corresponding to the target scaling is determined as a target frame buffer, and the frame is rendered in response to the command stream in the target frame buffer.
Then, in the event that a new screen zoom command is not received, the graphics processing unit will continue rendering subsequent frames in response to the command stream for the subsequent frames based on the current target zoom scale.
Optionally, in the plurality of bandwidth ranges, a fourth bandwidth range is further included, the fourth bandwidth range characterizing a lower pressure of the graphics processing unit than the third bandwidth range. When the real-time bandwidth of the memory device is within the fourth bandwidth range, the target scaling ratio is determined to be 1, and then the graphic processing unit adjusts the rendered picture from the original lower resolution to the original resolution. Therefore, when the pressure of the graphic processing unit is reduced, the resolution of the picture can be automatically restored to the original level, and the picture accuracy is prevented from being sacrificed for a long time, so that the influence on the user experience is avoided.
An exemplary embodiment is provided next taking as an example that the target data includes a real-time load and a real-time frequency of the graphics processing unit. Fig. 4 shows a flowchart of a terminal power consumption control method provided in this exemplary embodiment, and as shown in fig. 4, the method includes:
s310, acquiring the real-time load and the real-time frequency of the graphic processing unit.
The monitoring service is created, the load data and the frequency data in the second equipment node corresponding to the graphic processing unit are monitored through the monitoring service, and when the change of the load data and/or the frequency data is monitored, the real-time load and the real-time frequency which are reported by the monitoring service and read from the second equipment node are obtained.
S320, determining a corresponding target coloring rate according to the real-time load and the real-time frequency of the graphic processing unit.
The method comprises the steps that a plurality of frequency ranges are arranged, wherein the frequency ranges comprise a first frequency range and a second frequency range, the lowest frequency value in the first frequency range is higher than the highest frequency value in the second frequency range, and the current pressure of the graphic processing unit represented by the first frequency range is higher than the current pressure of the graphic processing unit represented by the second frequency range. In addition, a plurality of load ranges are further arranged, wherein the load ranges comprise a first load range and a second load range, the lowest load value in the first load range is higher than the highest load value in the second load range, and the current pressure of the graphic processing unit represented by the first load range is higher than the current pressure of the graphic processing unit represented by the second load range.
When the real-time frequency of the graphic processing unit is in a first frequency range, determining that the first coloring rate is a target coloring rate; when the real-time frequency of the graphic processing unit is in the second frequency range and the real-time load of the graphic processing unit is in the first load range, determining the second coloring rate as the target coloring rate; and when the real-time frequency of the graphic processing unit is in the second frequency range and the real-time load of the graphic processing unit is in the second load range, determining the third coloring rate as the target coloring rate.
Wherein the sizes of the pixel blocks to which the single coloring operation is applied, corresponding to the first coloring rate, the second coloring rate, and the third coloring rate, are sequentially reduced. Illustratively, the first, second, and third coloring rates are 4×4, 4×2, and 2×2 in that order. FIG. 5 shows a graphical representation of the real-time load and real-time frequency of a graphics processing unit, graphics processing unit pressure and shading rate.
S330, controlling the graphic processing unit to render the picture based on the target coloring rate.
After determining the target shading rate, a corresponding command is sent to the graphics processing unit to instruct the graphics processing unit to render a picture based on the target shading rate.
In a particular embodiment, an application within the terminal sends a command stream to the graphics processing unit by calling a graphics API (e.g., openGL, vulkan, etc.) to instruct the graphics processing unit how to render the current frame picture. Thus, when the call to the graphics API is made, a coloring adjustment command is generated according to the target coloring rate, and the coloring adjustment command is transmitted to the graphics processing unit, and the coloring adjustment command is interspersed in the command stream and transmitted to the graphics processing unit together with the command stream. After receiving the command stream and the coloring adjustment command inserted in the command stream, the graphic processing unit renders a picture in a target frame buffer applied in the memory device based on the command stream and the target coloring rate. When a frame is rendered, a shading operation is respectively performed on each pixel block of a corresponding size based on the size of the pixel block to which the single shading operation is applied corresponding to the target shading rate, thereby rendering the frame.
Wherein the target frame buffer may be determined by the exemplary embodiment of fig. 2.
As one example, the first frequency range represents a high frequency range, and when the real-time frequency of the graphics processing unit is within the high frequency range, the graphics processing unit is controlled to render the screen at a 4×4 rendering rate; the second frequency range represents an intermediate frequency range, when the real-time frequency of the graphics processing unit is within the intermediate frequency range, the real-time load of the graphics processing unit is further determined, the first load range represents a high load range, and the second load range represents a low load range, so that when the real-time frequency of the graphics processing unit is within the intermediate frequency range and the real-time load is within the high load range, the graphics processing unit is controlled to render the picture at a 4 x 2 rendering rate, and when the real-time frequency of the graphics processing unit is within the intermediate frequency range and the real-time load is within the low load range, the graphics processing unit is controlled to render the picture at a 2 x 2 rendering rate.
Optionally, the plurality of frequency ranges further includes a third frequency range, a highest frequency value in the third frequency range being lower than a lowest frequency value in the second frequency range. The third frequency range represents a low frequency range, when the real-time frequency of the graphic processing unit is in the low frequency range, the target coloring rate is determined to be 1×1, and the graphic processing unit is controlled to render the picture at the 1×1 coloring rate, namely, coloring operation is respectively applied to each pixel, so that when the pressure of the graphic processing unit is reduced, the coloring precision of the picture can be automatically restored to the original level, the picture precision is prevented from being sacrificed for a long time, and the influence on the user experience is avoided.
Then, in the event that a new shading adjustment command is not received, the graphics processing unit will continue rendering the subsequent frame in response to the command stream for the subsequent frame based on the current target shading rate.
It will be appreciated that the exemplary embodiments of fig. 2 and 3 described above may also be implemented in combination.
In summary, the embodiment of the disclosure achieves intelligent control of terminal power consumption through bandwidth optimization and/or coloring optimization. In bandwidth optimization, the image processing unit is controlled to adjust the resolution of the image according to the real-time bandwidth of the memory device by monitoring the bandwidth data of the memory device, so that the purpose of reducing the power consumption is achieved by sacrificing a certain image quality at the cost of reducing the resolution of the image; in the coloring optimization, the coloring rate is dynamically adjusted by monitoring the real-time working frequency and the load of the graphic processing unit, and the load of the graphic processing unit is reduced by reducing the coloring precision of a picture, so that the purpose of reducing the power consumption is achieved.
Fig. 6 is a block diagram of a terminal power consumption control apparatus according to an exemplary embodiment, and referring to fig. 6, a terminal power consumption control apparatus 400 includes:
a data acquisition module 410, configured to acquire target data representing a graphics processing unit pressure of the terminal;
a parameter determining module 420, configured to determine a graphics processing parameter corresponding to a current pressure of the graphics processing unit according to the target data;
and a rendering control module 430, configured to control the graphics processing unit to render a frame based on the graphics processing parameters.
Optionally, the target data includes a real-time bandwidth of a memory device of the terminal; the parameter determination module 420 is configured to: determining a target bandwidth range in which the real-time bandwidth of the memory device is located from a plurality of bandwidth ranges representing different pressures, and determining a target scaling corresponding to the target bandwidth range; the rendering control module 430 is configured to: and controlling the graphic processing unit to render the picture based on the target scaling so that the resolution of the rendered picture is scaled according to the target scaling.
Optionally, the rendering control module 430 is configured to:
performing Hook for calling the graphic API;
and when the Hook calls the graphic API, generating a picture scaling command according to the target scaling ratio, and sending the picture scaling command to the graphic processing unit, so that the graphic processing unit determines a target frame buffer corresponding to the target scaling ratio according to a plurality of frame buffers respectively corresponding to different scaling ratios applied in the memory device, and renders a picture in the target frame buffer.
Optionally, the data acquisition module 410 is configured to: and monitoring the bandwidth data in the first equipment node corresponding to the memory equipment through the created monitoring service, and acquiring the real-time bandwidth read from the first equipment node by the monitoring service when the change of the bandwidth data is monitored.
Optionally, the target data includes a real-time load and a real-time frequency of the graphics processing unit; the parameter determination module 420 is configured to: determining a corresponding target coloring rate according to the real-time load and the real-time frequency of the graphic processing unit; the rendering control module 430 is configured to: controlling the graphics processing unit to render a picture based on the target shading rate.
Optionally, the parameter determining module 420 is configured to:
when the real-time frequency is in a first frequency range, determining that the first coloring rate is a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a first load range, determining a second coloring rate as a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a second load range, determining a third coloring rate as a target coloring rate;
the minimum frequency value of the first frequency range is larger than the maximum frequency value of the second frequency range, the minimum load value of the first load range is larger than the maximum load value of the second load range, and the sizes of pixel blocks to which the single coloring operation is applied, corresponding to the first coloring rate, the second coloring rate and the third coloring rate, are sequentially reduced.
Optionally, the rendering control module 430 is configured to:
performing Hook for calling the graphic API;
and when the Hook calls the graphics API, generating a coloring adjustment command according to the target coloring rate, and sending the coloring adjustment command to the graphics processing unit, so that the graphics processing unit executes coloring operation on each pixel block with corresponding size based on the size of the pixel block to which the single coloring operation is applied, corresponding to the target coloring rate, in a target frame buffer applied by the memory device, so as to render the picture.
Optionally, the data acquisition module 410 is configured to: and monitoring load data and frequency data in a second equipment node corresponding to the graphic processing unit through the created monitoring service, and acquiring real-time load and real-time frequency read by the monitoring service from the second equipment node when the change of the load data and/or the frequency data is monitored.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the terminal power consumption control method provided by the present disclosure.
The disclosure also provides a terminal power consumption control device, including: a processor; a memory for storing processor-executable instructions; the processor is configured to execute the instructions in the memory, so as to implement the steps of the terminal power consumption control method provided by the disclosure.
Fig. 7 is a block diagram illustrating a terminal power consumption control apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 7, apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the apparatus 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the terminal power consumption control method described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on the apparatus 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices 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.
The power component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. 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 may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 500 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the apparatus 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 may also detect a change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in temperature of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may 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 elements for performing the above-described terminal power consumption control method.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of apparatus 500 to perform the terminal power consumption control method described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described terminal power consumption control method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A terminal power consumption control method, comprising:
acquiring target data representing the pressure of a graphic processing unit of the terminal;
determining a graphics processing parameter corresponding to the current pressure of the graphics processing unit according to the target data;
and controlling the graphic processing unit to render a picture based on the graphic processing parameters.
2. The method of claim 1, wherein the target data comprises a real-time bandwidth of a memory device of the terminal; the determining graphics processing parameters corresponding to the current pressure of the graphics processing unit according to the target data comprises:
determining a target bandwidth range in which the real-time bandwidth of the memory device is located from a plurality of bandwidth ranges representing different pressures, and determining a target scaling corresponding to the target bandwidth range;
the controlling the graphics processing unit to render a picture based on the graphics processing parameters includes:
and controlling the graphic processing unit to render the picture based on the target scaling so that the resolution of the rendered picture is scaled according to the target scaling.
3. The method of claim 2, wherein the controlling the graphics processing unit to render a picture based on the target scale comprises:
performing Hook for calling the graphic API;
and when the Hook calls the graphic API, generating a picture scaling command according to the target scaling ratio, and sending the picture scaling command to the graphic processing unit, so that the graphic processing unit determines a target frame buffer corresponding to the target scaling ratio according to a plurality of frame buffers respectively corresponding to different scaling ratios applied in the memory device, and renders a picture in the target frame buffer.
4. A method according to claim 2 or 3, wherein said obtaining target data representative of the graphics processing unit pressure of the terminal comprises:
and monitoring the bandwidth data in the first equipment node corresponding to the memory equipment through the created monitoring service, and acquiring the real-time bandwidth read from the first equipment node by the monitoring service when the change of the bandwidth data is monitored.
5. The method of claim 1, wherein the target data comprises a real-time load and a real-time frequency of the graphics processing unit; the determining graphics processing parameters corresponding to the current pressure of the graphics processing unit according to the target data comprises:
determining a corresponding target coloring rate according to the real-time load and the real-time frequency of the graphic processing unit;
the controlling the graphics processing unit to render a picture based on the graphics processing parameters includes:
controlling the graphics processing unit to render a picture based on the target shading rate.
6. The method of claim 5, wherein determining the corresponding target shading rate based on the real-time load and the real-time frequency of the graphics processing unit comprises:
when the real-time frequency is in a first frequency range, determining that the first coloring rate is a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a first load range, determining a second coloring rate as a target coloring rate;
when the real-time frequency is in a second frequency range and the real-time load is in a second load range, determining a third coloring rate as a target coloring rate;
the minimum frequency value of the first frequency range is larger than the maximum frequency value of the second frequency range, the minimum load value of the first load range is larger than the maximum load value of the second load range, and the sizes of pixel blocks to which the single coloring operation is applied, corresponding to the first coloring rate, the second coloring rate and the third coloring rate, are sequentially reduced.
7. The method of claim 5, wherein the controlling the graphics processing unit to render a picture based on the target shading rate comprises:
performing Hook for calling the graphic API;
and when the Hook calls the graphics API, generating a coloring adjustment command according to the target coloring rate, and sending the coloring adjustment command to the graphics processing unit, so that the graphics processing unit executes coloring operation on each pixel block with corresponding size based on the size of the pixel block to which the single coloring operation is applied, corresponding to the target coloring rate, in a target frame buffer applied by the memory device, so as to render the picture.
8. The method according to any one of claims 5-7, wherein said obtaining target data characterizing a graphics processing unit pressure of the terminal comprises:
and monitoring load data and frequency data in a second equipment node corresponding to the graphic processing unit through the created monitoring service, and acquiring real-time load and real-time frequency read by the monitoring service from the second equipment node when the change of the load data and/or the frequency data is monitored.
9. A terminal power consumption control apparatus, characterized by comprising:
the data acquisition module is used for acquiring target data representing the pressure of the graphic processing unit of the terminal;
a parameter determining module, configured to determine a graphics processing parameter corresponding to a current pressure of the graphics processing unit according to the target data;
and the rendering control module is used for controlling the graphic processing unit to render a picture based on the graphic processing parameters.
10. A terminal power consumption control apparatus, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions in the memory to implement the steps of the method of any one of claims 1-8.
11. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1-8.
CN202210126414.3A 2022-02-10 2022-02-10 Terminal power consumption control method, device and storage medium Pending CN116634532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210126414.3A CN116634532A (en) 2022-02-10 2022-02-10 Terminal power consumption control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210126414.3A CN116634532A (en) 2022-02-10 2022-02-10 Terminal power consumption control method, device and storage medium

Publications (1)

Publication Number Publication Date
CN116634532A true CN116634532A (en) 2023-08-22

Family

ID=87619949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210126414.3A Pending CN116634532A (en) 2022-02-10 2022-02-10 Terminal power consumption control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116634532A (en)

Similar Documents

Publication Publication Date Title
US9928811B2 (en) Methods, devices, and computer-readable storage medium for image display
EP3866149A1 (en) Screen brightness adjustment method and apparatus, and storage medium
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN111610899A (en) Interface display method, interface display device and storage medium
CN106775541B (en) Electronic device and screen display method
CN111835941A (en) Image generation method and device, electronic equipment and computer readable storage medium
CN114442792A (en) Method and device for adjusting operating frequency of processor and storage medium
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN116634532A (en) Terminal power consumption control method, device and storage medium
CN113946398A (en) Display control method and device of terminal and storage medium
CN108874482B (en) Image processing method and device
CN108986753B (en) Interface display method and device
CN114968143A (en) Display processing method and device, electronic equipment and storage medium
CN111538447A (en) Information display method, device, equipment and storage medium
CN112019680A (en) Screen brightness adjusting method and device
CN111124099A (en) State control method, device and storage medium
CN113470583B (en) Display screen adjusting method and device and storage medium
US20220291890A1 (en) Method for interaction between devices and medium
CN113672312A (en) Special effect display method and device and computer storage medium
CN111261035B (en) Screen display method and device
CN116954773A (en) State switching method, device, terminal equipment and storage medium
CN114266690A (en) Image rendering method, device and equipment
CN112799772A (en) Method, device and medium for controlling interface display
CN118093069A (en) View drawing method, view drawing device and storage medium
CN113706410A (en) Image processing method, image processing device, electronic equipment and storage 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