CN106851017B - Method and device for adjusting energy-saving level of terminal and mobile terminal - Google Patents

Method and device for adjusting energy-saving level of terminal and mobile terminal Download PDF

Info

Publication number
CN106851017B
CN106851017B CN201710141753.8A CN201710141753A CN106851017B CN 106851017 B CN106851017 B CN 106851017B CN 201710141753 A CN201710141753 A CN 201710141753A CN 106851017 B CN106851017 B CN 106851017B
Authority
CN
China
Prior art keywords
energy
saving
grade
level
transition
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.)
Active
Application number
CN201710141753.8A
Other languages
Chinese (zh)
Other versions
CN106851017A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710141753.8A priority Critical patent/CN106851017B/en
Publication of CN106851017A publication Critical patent/CN106851017A/en
Application granted granted Critical
Publication of CN106851017B publication Critical patent/CN106851017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a method and a device for adjusting the energy-saving level of a terminal and a mobile terminal. The method comprises the steps of obtaining a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, and determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade; obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively; and after the energy saving grade of the terminal is sequentially adjusted to the at least one transition energy saving grade, adjusting the terminal from the last transition energy saving grade to the target energy saving grade, and displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment. The technical scheme of the embodiment of the invention can avoid the problem of flicker of image switching caused by adjusting the energy-saving grade, and can reduce the power consumption of the terminal and simultaneously give consideration to the display effect, so that the terminal can smoothly display the image.

Description

Method and device for adjusting energy-saving level of terminal and mobile terminal
Technical Field
The embodiment of the invention relates to a mobile terminal technology, in particular to a method and a device for adjusting the energy saving level of a terminal and the mobile terminal.
Background
With the development of mobile terminal technology, the processing capability and function of the mobile terminal are greatly improved, and the mobile terminal becomes a necessity for life, work and entertainment of people.
Taking a smart phone as an example, a touch display screen is usually adopted in a smart phone in the prior art, which can provide a larger area of display and operation space for a user. For example, after the smart phone adopts the touch display screen, the user can more conveniently play games, watch videos, read news and the like on the smart phone. However, as the screen of the smart phone is larger and larger, the influence of the power consumption of the display screen on the cruising ability is larger and larger, so that the deficiency of the smart phone in the cruising ability is more and more prominent.
In order to solve the above problems, many mobile phone manufacturers configure the power consumption reduction function on their own products, but the configured power consumption reduction function has defects and needs to be improved.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting an energy-saving level of a terminal and a mobile terminal, which can avoid the phenomenon of flicker caused by image switching due to adjustment of the energy-saving level.
In a first aspect, an embodiment of the present invention provides a method for adjusting an energy saving level of a terminal, including:
acquiring a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, and determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade;
obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively;
and after the energy saving grade of the terminal is sequentially adjusted to the at least one transition energy saving grade, adjusting the terminal from the last transition energy saving grade to the target energy saving grade, and displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting an energy saving level of a terminal, where the apparatus includes:
the terminal comprises a grade determining module, a grade determining module and a grade adjusting module, wherein the grade determining module is used for acquiring a current energy-saving grade of the terminal and a target energy-saving grade required to be adjusted, and determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade;
the parameter acquisition module is used for acquiring display effect parameters corresponding to the at least one transition energy-saving grade;
and the grade adjusting module is used for adjusting the energy saving grade of the terminal to the at least one transition energy saving grade in sequence, adjusting the energy saving grade from the last transition energy saving grade to the target energy saving grade, and displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
acquiring a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, and determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade;
obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively;
and after the energy saving grade of the terminal is sequentially adjusted to the at least one transition energy saving grade, adjusting the terminal from the last transition energy saving grade to the target energy saving grade, and displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment.
The method comprises the steps of determining at least one transition energy-saving grade between a current energy-saving grade and a target energy-saving grade by acquiring the current energy-saving grade of a terminal and the target energy-saving grade to be adjusted; obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively; after the energy-saving level of the terminal is adjusted to the at least one transition energy-saving level in sequence, the last transition energy-saving level is adjusted to the target energy-saving level, and the image to be displayed is displayed according to the display effect parameter corresponding to the adjusted transition energy-saving level after each adjustment, so that the problem of flicker in image switching caused by adjusting the energy-saving level can be avoided, the power consumption of the terminal is reduced, the display effect is considered, and the image can be displayed smoothly by the terminal.
Drawings
Fig. 1 is a method for adjusting an energy saving level of a terminal according to an embodiment of the present invention;
fig. 2 is a method for adjusting an energy saving level of a terminal according to an embodiment of the present invention;
fig. 3 is a method for adjusting another energy saving level of a terminal according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a display process provided by an embodiment of the invention;
fig. 5 is a schematic diagram of a Vsync display refresh mechanism according to an embodiment of the present invention;
FIG. 6a is a schematic diagram of a FOSS-based display screen power saving mechanism according to an embodiment of the present invention;
fig. 6b is a schematic diagram of a cab c-based display screen energy saving mechanism according to an embodiment of the present invention;
fig. 7 is an apparatus for adjusting an energy saving level of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a method for adjusting an energy saving level of a terminal according to an embodiment of the present invention, where the method may be performed by an apparatus for adjusting an energy saving level of a mobile terminal, where the apparatus may be implemented by software and/or hardware, the apparatus may be integrated in the mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, or the like, and the method includes:
step 110, obtaining a current energy saving grade of the terminal and a target energy saving grade required to be adjusted, and determining at least one transition energy saving grade between the current energy saving grade and the target energy saving grade.
The power saving level is a Fidelity Optimized Signal Scaling (FOSS) level, or a Content adaptive backlight Control (cabac) level.
Among them, the FOSS is to reduce power consumption of the OLED screen by optimizing an image display effect based on an HVS (Human Visual System) domain. Optionally, a new histogram is obtained by recalculating histograms of different display contents, and the display content corresponding to the new histogram is displayed on the screen, so that the purpose of reducing power consumption by reducing a certain color level value on the premise of ensuring the display effect is achieved.
The CABC performs statistical analysis on an image of a picture (input image) to be displayed, processes the picture to be displayed by adopting a set optimization curve, adjusts the brightness of the picture to be displayed, and reduces the backlight brightness at the same time, so that the display screen displays the adjusted picture to be displayed by adopting the reduced backlight brightness. Thus, power consumption is reduced on the basis of ensuring the display effect. The CABC technology is a backlight driving power saving technology provided in an LCD (Liquid Crystal Display) driving IC. It can be used in conjunction with SRE (sun Readable Enhancement, technology for enhancing the viewing angle in Sunlight, for enhancing the display contrast and visibility in strong light).
And subdividing the energy-saving function of the terminal into a plurality of energy-saving levels according to the application scene. The application scenes can include preset pure white scenes, pure black scenes, scenes with frequent picture gray scale transition, dynamic scenes, static scenes, transparent scenes, semitransparent scenes and the like. The application scenario may also be a different application program that is preset. Different energy saving levels have different effect parameters and power saving degrees.
For example, six FOSS levels (i.e., level 0 to level 5) may be set, and display effect parameters corresponding to the respective FOSS levels having different effect parameters and power saving degrees are configured in advance according to application scenes. Wherein, level 0 indicates that the FOSS function is off and not saving power, and the power saving degree from level 1 to level 5 is gradually increased, and the display effect is gradually deteriorated.
It is to be understood that the number of energy saving levels is not limited to the number listed in the present example, and the number of energy saving levels may also be set according to actual needs. For example, 3,4 or 5 FOSS levels or CABC levels may be set.
Wherein, the target energy saving level is the energy saving level which needs to be reached after the energy saving level is switched. For example, when a user switches a first application program currently displayed on a screen to a second application program, a corresponding power saving level may be changed. And determining the energy-saving level corresponding to the first application program as the current energy-saving level, and setting the energy-saving level corresponding to the second application program as the target energy-saving level. If the first application program corresponds to the energy-saving level 5 and the second application program corresponds to the energy-saving level 1, the current energy-saving level is 5, and the target energy-saving level is 1.
Optionally, after determining the current energy saving level of the terminal and the target energy saving level to be adjusted, obtaining each energy saving level preset for the terminal, and sorting the energy saving levels; and determining at least one energy saving grade between the current energy saving grade and the target energy saving grade after sequencing, and taking the at least one energy saving grade as a transition energy saving grade.
Alternatively, after the current energy-saving grade of the terminal and the target energy-saving grade required to be adjusted are determined, at least one transition energy-saving grade matched with an energy-saving grade pair consisting of the current energy-saving grade and the target energy-saving grade is determined according to a preset transition energy-saving grade matched with different energy-saving grade pairs; in the preset transition energy-saving grades matched with different energy-saving grade pairs, the number of the transition energy-saving grades matched with the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the transition energy-saving grades matched with the energy-saving grade pairs in the high energy-saving grade interval.
And 120, acquiring display effect parameters corresponding to the at least one transition energy saving grade.
The display effect parameters are configuration parameters corresponding to different energy saving levels, and include parameters influencing the display effect of the picture to be displayed. For example, a FOSS configuration parameter or a CABC configuration parameter.
For fidelity optimization signal scaling FOSS levels, the display effect parameters may be contrast, picture update delay counts, power saving step size, power saving input parameters, power saving output parameters, and the like. The contrast ratio represents the contrast ratio enhancement degree provided by the FOSS grade, and the value range is 0 to 255, wherein 0 represents that the contrast ratio enhancement processing is not performed, and 255 represents that the contrast ratio enhancement processing is performed by adopting a set maximum value. The frame update delay count represents a time interval of the algorithm adjusting the frame, for example, if the value of the frame update delay count is 3, the algorithm is considered to adjust one frame of frame every 3 milliseconds. The power saving step represents the boundary of the set color level interval, and the value is 0 to 255. The larger the step size, the more the tone scale interval representing the picture. The power-saving input parameter represents the color level value of a pixel point included in the display picture, and the value range is 0 to 1023, wherein 0 represents black, and 1023 represents white. The power saving rate output parameter represents that the color gradation value of the pixel point contained in the power saving input parameter is mapped to a set gray scale brightness interval according to a set algorithm rule, the value range is 1 to 255, and the power saving degree is gradually reduced from 1 to 255, wherein 1 represents that the power saving degree is the highest, and 255 represents that the power is not saved.
In the content adaptive backlight control CABC level, the display effect parameter may be a preset CABC parameter corresponding to an Off Mode (Off Mode), a CABC parameter corresponding to a user interface picture Mode (UI Image Mode), a CABC parameter corresponding to a Still picture Mode (Still Image Mode), or a CABC parameter corresponding to a Moving picture Mode (Moving Image Mode). In the Off Mode, the CABC function is completely Off. And in a user interface picture mode (UI ImageMode), the power consumption of the UI picture is optimized, and the power consumption can be saved by 10% while the picture display effect is not influenced. And a Still picture Mode (Still Image Mode) for optimizing power consumption when displaying a Still picture, wherein the picture quality loss is within an acceptable range, and 30% of power consumption can be saved. In the Moving Image Mode (Moving Image Mode), power consumption when a Moving Image is displayed is optimized, and in this Mode, power consumption is reduced to the maximum extent, but loss of Image quality is caused, and power consumption can be saved by more than 30%.
When the energy saving level is the fidelity optimization signal scaling FOSS level, the display effect parameters respectively corresponding to the at least one transition energy saving level acquired in this step may preferably be: and calling the set FOSS configuration file access interface to read the FOSS configuration file and acquiring the display effect parameters corresponding to the transition FOSS grade. The communication between different functional layers can be realized through the optimal selection mode, so that the display effect parameters corresponding to the transition FOSS grades can be quickly acquired, various FOSS configuration file access interfaces can be provided, and the applicability of the FOSS function is improved.
When the energy saving level is a content adaptive backlight control CABC level, the obtaining of the display effect parameter corresponding to each of the at least one transition energy saving level in this step may further include: and calling a set CABC configuration file access interface to read the CABC configuration file, and acquiring display effect parameters corresponding to the transition CABC level. Through the optimal mode, communication among different functional layers can be realized, and therefore the display effect parameters corresponding to the transition CABC grade can be acquired quickly.
And step 130, after the energy saving level of the terminal is sequentially adjusted to the at least one transition energy saving level, adjusting the last transition energy saving level to the target energy saving level, and displaying the to-be-displayed picture according to the display effect parameter corresponding to the adjusted transition energy saving level after each adjustment.
The priority order of at least one transition energy-saving level can be predetermined, and the energy-saving level of the terminal is sequentially adjusted to the at least one transition energy-saving level according to the priority order until the last transition energy-saving level is reached, and the last transition energy-saving level is adjusted to the target energy-saving level.
Illustratively, when the current energy saving level is level 5, the target energy saving level is level 1, and the transitional energy saving levels are level 4, level 3 and level 2, the priority of level 4 is the highest, so the energy saving level of the terminal is adjusted from level 5 to level 4. And displaying the picture to be displayed by adopting the display effect parameter corresponding to the energy-saving grade 4. And by analogy, adjusting the energy saving grade of the terminal at set time intervals until the energy saving grade of the terminal is adjusted by adopting the last transition energy saving grade (energy saving grade 2), namely adjusting the energy saving grade of the terminal from the energy saving grade 2 to the target energy saving grade 1, and displaying the picture to be displayed by adopting the display effect parameter corresponding to the energy saving grade 1.
Optionally, when the energy saving level is the fidelity optimization signal scaling FOSS level, in this step, after each adjustment, the to-be-displayed picture is displayed according to the display effect parameter corresponding to the adjusted transition energy saving level, and the preferable selection may be: and transmitting the adjusted display effect parameters corresponding to the transition energy-saving level to a first algorithm setting module after each adjustment, so that the FOSS module adjusts the color level of the picture to be displayed according to the display effect parameters in the first algorithm setting module, and displays the adjusted picture to be displayed.
Alternatively, when the energy saving level is a content adaptive backlight control CABC level, in this step, after each adjustment, the to-be-displayed picture is displayed according to the display effect parameter corresponding to the adjusted transition energy saving level, preferably, the method may further include: and transmitting the adjusted display effect parameter corresponding to the transition energy-saving level to a second algorithm setting module after each adjustment, so that the CABC module adjusts the brightness of the picture to be displayed according to the display effect parameter in the second algorithm setting module, outputs a pulse signal to a backlight driving module to adjust the backlight brightness, and displays the adjusted picture to be displayed.
The method comprises the steps of determining at least one transition energy-saving grade between a current energy-saving grade and a target energy-saving grade by acquiring the current energy-saving grade of a terminal and the target energy-saving grade to be adjusted; obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively; after the energy-saving level of the terminal is adjusted to the at least one transition energy-saving level in sequence, the last transition energy-saving level is adjusted to the target energy-saving level, and the image to be displayed is displayed according to the display effect parameter corresponding to the adjusted transition energy-saving level after each adjustment, so that the problem of flicker in image switching caused by adjusting the energy-saving level can be avoided, the power consumption of the terminal is reduced, the display effect is considered, and the image can be displayed smoothly by the terminal.
Fig. 2 is a method for adjusting another power saving level of a terminal according to an embodiment of the present invention. As shown in fig. 2, the method includes:
and step 210, acquiring the current energy-saving level of the terminal and the target energy-saving level required to be adjusted.
Step 220, determining at least one energy saving grade between the current energy saving grade and the target energy saving grade, and taking the at least one energy saving grade as a transition energy saving grade.
Acquiring various energy-saving grades preset for a terminal, and sequencing the various energy-saving grades; and determining at least one energy saving grade between the current energy saving grade and the target energy saving grade after sequencing, and taking the at least one energy saving grade as a transition energy saving grade.
For example, if 6 energy saving levels (i.e., level 0 to level 5 are preset, where level 0 indicates that the FOSS function is off and not saving power, the power saving degrees of level 1 to level 5 gradually increase, and the display effect gradually deteriorates.) and the current energy saving level is level 5 and the target energy saving level is level 1, it may be determined that energy saving level 4, energy saving level 3, and energy saving level 2, which are continuously distributed between level 5 and level 1, are transition energy saving levels.
And step 230, determining the priority of the transition energy-saving level according to the current energy-saving level and the target energy-saving level.
The priority of the transition energy saving level can be determined according to a preset priority rule. The priority rule may be that the priority of the transition energy saving level is gradually decreased in the process of adjusting from the current energy saving level to the target energy saving level. For example, when the current energy saving class is class 5 and the target energy saving class is class 1, the priority of energy saving class 4 is higher than that of energy saving class 3, and meanwhile, the priority of energy saving class 3 is higher than that of energy saving class 2.
And 240, executing the operation of adjusting the energy saving level of the terminal according to the transition energy saving level every set time length according to the sequence of the priority, and displaying the to-be-displayed picture according to the display effect parameter corresponding to the adjusted transition energy saving level after each adjustment.
Illustratively, when the current energy saving level is level 5 and the target energy saving level is level 1, the energy saving level of the terminal is adjusted from the current energy saving level 5 to the energy saving level 4. And then, sending the display effect parameter corresponding to the energy saving level 4 to an algorithm setting module, and replacing the display effect parameter corresponding to the current energy saving level 5 with the display effect parameter corresponding to the energy saving level 4. The FOSS module (or CABC module) processes the picture to be displayed by adopting the set algorithm and the display effect parameter in the algorithm setting module. And after a set time interval, adjusting the energy-saving level of the terminal from the energy-saving level 4 to the energy-saving level 3. And sending the display effect parameter corresponding to the energy-saving grade 3 to an algorithm setting module, and replacing the display effect parameter corresponding to the current energy-saving grade 4 with the display effect parameter corresponding to the energy-saving grade 3. The FOSS module (or CABC module) processes the picture to be displayed by adopting the set algorithm and the display effect parameter in the algorithm setting module. And by analogy, adjusting the energy-saving level of the terminal once every set time interval.
And 250, judging whether the energy-saving grade of the terminal is the target energy-saving grade, if so, executing step 280, and otherwise, executing step 260.
And step 260, when the target energy saving level is detected to be changed, acquiring the current energy saving level.
In the process of adjusting the energy-saving level of the terminal from the current energy-saving level to the target energy-saving level, if it is detected that the user opens the second application program and the second application program replaces the first application program to be displayed on the display screen, whether the energy-saving level corresponding to the second application program is the same as the energy-saving level corresponding to the first application program is judged. And when the target energy-saving level is different from the energy-saving level corresponding to the second application program, determining that the target energy-saving level is changed or the current energy-saving level of the terminal is not switched to the energy-saving level corresponding to the second application program.
And 270, re-determining the transition energy-saving level according to the current energy-saving level and the changed target energy-saving level. After the transition power saving level is re-determined, the process returns to step 230.
And determining the energy-saving grade between the new current energy-saving grade and the changed target energy-saving grade, and determining the energy-saving grade as a transition energy-saving grade. For example, if the new current energy saving level is level 2 and the changed target level is level 4, the energy saving level 3 is set as the newly determined transitional energy saving level. After the transition power saving level is re-determined, the process returns to step 230.
And step 280, stopping adjusting the energy-saving level of the terminal.
And when the energy-saving level of the terminal is detected to be the target energy-saving level, stopping executing the operation of adjusting the energy-saving level of the terminal according to the transition energy-saving level.
The technical scheme of the embodiment of the invention provides a processing mode when the target energy-saving grade is changed in the process of adjusting the energy-saving grade of the terminal from the current energy-saving grade to the target energy-saving grade, so that the transition energy-saving grade is re-determined according to the current energy-saving grade of the terminal and the target energy-saving grade after the change, the situation that the energy-saving grade of the terminal is adjusted to the target energy-saving grade before the change by adopting the original transition energy-saving grade and then is adjusted to the target energy-saving grade after the change is avoided, and the execution efficiency of the terminal is improved.
Fig. 3 is a method for adjusting another energy saving level of a terminal according to an embodiment of the present invention. As shown in fig. 3, the method includes:
and 310, acquiring the current energy-saving level of the terminal and the target energy-saving level required to be adjusted.
And 320, determining at least one transition energy-saving grade matched with the energy-saving grade pair consisting of the current energy-saving grade and the target energy-saving grade according to the preset transition energy-saving grade matched with the different energy-saving grade pairs.
And determining at least one transitional energy-saving grade matched with the energy-saving grade pair consisting of the current energy-saving grade and the target energy-saving grade according to the preset transitional energy-saving grade matched with different energy-saving grade pairs.
And the transition energy-saving grade matched with the grade pair formed by different energy-saving grades is preset before the mobile terminal leaves a factory. Because the sensitivity of the user to the low-light switching is higher than that of the user to the high-light switching, transition energy-saving grades matched with different grade pairs can be created in advance (wherein the grade pairs consist of the current energy-saving grade and the target energy-saving grade), and in the preset transition energy-saving grades matched with the different energy-saving grade pairs, the number of the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the energy-saving grade pairs in the high energy-saving grade interval. The transitional saving level matching the pair of saving levels may be set as follows. When the current energy-saving level is 5 levels and the target energy-saving level is 1 level, the energy-saving level 4 is not sensitive to highlight switching, but the energy-saving level of the terminal is directly adjusted from the current energy-saving level 5 to the energy-saving level 3. Since the energy-saving level 3 is a low energy-saving level, the energy-saving level 2 is taken as a transition energy-saving level in the process of adjusting the energy-saving level of the terminal from the level 3 to the target energy-saving level 1. Therefore, the energy saving class pair composed of the current energy saving class 5 and the target energy saving class 1 matches the transition energy saving class of the energy saving class 3 and the energy saving class 2. For another example, the transition energy saving level of level 4 and level 1 is set to level 2 in the same manner. And storing the matching relation between the energy-saving grade pair and the transition energy-saving grade in the set storage address.
Illustratively, when the current energy saving level is level 1 and the target energy saving level is level 5, the energy saving level formed by the energy saving level 1 and the energy saving level 5 is adopted to query the set storage address, and the matched transition energy saving level is determined to be the energy saving level 2 and the energy saving level 3. Therefore, the energy-saving level 4 is not required to be used as a transition energy-saving level, and the number of transition energy-saving levels is reduced.
And step 330, determining the priority of the transition energy-saving level according to the current energy-saving level and the target energy-saving level.
In the process of adjusting from the current energy-saving level to the target energy-saving level, the priority of the transition energy-saving level is gradually reduced. It can be seen that the closer to the current power saving class, the higher the priority. Therefore, when the current energy saving class is class 1 and the target energy saving class is class 5, the priority of the energy saving class 3 is higher than that of the energy saving class 2.
And 340, executing the operation of adjusting the energy saving level of the terminal according to the transition energy saving level every set time length according to the sequence of the priority, and displaying the to-be-displayed picture according to the display effect parameter corresponding to the adjusted transition energy saving level after each adjustment.
Illustratively, when the current energy saving level is level 5 and the target energy saving level is level 1, the energy saving level of the terminal is adjusted from the current energy saving level 5 to the energy saving level 3. And then, sending the display effect parameter corresponding to the energy saving grade 3 to an algorithm setting module, and replacing the display effect parameter corresponding to the current energy saving grade 5 with the display effect parameter corresponding to the energy saving grade 3. The FOSS module (or CABC module) processes the picture to be displayed by adopting the set algorithm and the display effect parameter in the algorithm setting module. And adjusting the energy-saving grade of the terminal from the energy-saving grade 3 to the energy-saving grade 2 at a set time interval. And sending the display effect parameter corresponding to the energy-saving grade 2 to an algorithm setting module, and replacing the display effect parameter corresponding to the current energy-saving grade 3 with the display effect parameter corresponding to the energy-saving grade 2. The FOSS module (or CABC module) processes the picture to be displayed by adopting the set algorithm and the display effect parameter in the algorithm setting module. And after a set time interval, adjusting the energy-saving level of the terminal from the energy-saving level 2 to the target energy-saving level 1. And sending the display effect parameter corresponding to the target energy-saving level 1 to an algorithm setting module, and replacing the display effect parameter corresponding to the current energy-saving level 2 with the display effect parameter corresponding to the energy-saving level 1. The FOSS module (or CABC module) processes the picture to be displayed by adopting the set algorithm and the display effect parameter in the algorithm setting module. Therefore, the energy-saving level 5 is smoothly switched to the energy-saving level 1, and the phenomenon of screen flicker during switching is avoided.
And 350, judging whether the energy-saving grade of the terminal is the target energy-saving grade, if so, executing the step 380, otherwise, executing the step 360.
And step 360, when the target energy saving grade is detected to be changed, acquiring the current energy saving grade.
Step 370, re-determining the transition level according to the energy saving level pair formed by the current energy saving level and the changed target energy saving level.
And inquiring the set storage address by adopting the grade pair consisting of the new current energy-saving grade and the changed target energy-saving grade, and determining a new transition energy-saving grade. For example, if the new current energy saving level is level 2 and the changed target level is level 5, the storage address set for the query is determined by using the level pair composed of the energy saving level 2 and the energy saving level 5, and it is determined that the transition energy saving level is newly determined to be the energy saving level 3. After the transition power saving level is re-determined, the process returns to step 330.
And 380, stopping adjusting the energy-saving level of the terminal.
And when the energy-saving level of the terminal is detected to be the target energy-saving level, stopping executing the operation of adjusting the energy-saving level of the terminal according to the transition energy-saving level.
The technical scheme of the embodiment provides a scheme for determining a transition energy-saving level by an energy-saving level pair composed of a current energy-saving level and a target energy-saving level, and a part of energy-saving levels between the current energy-saving level and the target energy-saving level are selected as the transition energy-saving level through a sensitive program for switching the energy-saving levels by a user, so that an adjustment process is simplified, and the execution efficiency of a terminal is improved.
For convenience of understanding, the following description will briefly describe a process from generation to display of a display screen in the Android system, taking the Android system as an example. Fig. 4 is a schematic diagram of a display process according to an embodiment of the present invention.
First, in an Application (Application) layer, each Application program (hereinafter, referred to as Application or APP) includes 1 or more layers, each Application APP1, APP2 … APPN individually executes a layer drawing (Render) operation (i.e., drawing an image on a layer) according to its Application design condition (generally determined by a corresponding installation package APK), and after the drawing operation is completed, each Application sends all the drawn layers to a layer composition module (surfaceflecger) that executes the layer composition operation.
Then, at an application Framework (Framework) layer, all layers (including visible layers and invisible layers) form a layer list, which is defined as ListAll. And the layer synthesis module selects the visible layers from the ListAll to form a visible layer list, which is defined as a DisplayList. Then, the layer composition module finds out a free FB from three frame buffers (BF or buffer for short) that can be recycled in the system, and superimposes layers included in the DisplayList together through composition (composite) operation on the free FB according to application configuration information, such as which layer should be set at the bottom, which layer should be set at the top, which area is a visible area, and which area is a transparent area, to obtain a final picture to be displayed.
The Display screen is not limited in type, and may be, for example, a Liquid Crystal Display (LCD) or an Organic Light Emitting Display (OLED).
In addition, the Android system introduces a synchronization (Vsync) refresh mechanism during the display refresh. Fig. 5 is a schematic diagram of a Vsync display refresh mechanism according to an embodiment of the present invention. Specifically, the Vsync refresh mechanism is a unified management mechanism that inserts a "heartbeat", i.e., a system synchronization (Vsync) signal, in the whole display process, and sends the signal to the CPU to generate a Vsync interrupt, so as to control each layer drawing operation and layer composition operation to be completed according to the heartbeat, thereby incorporating key steps in the whole display process into the Vsync. The frequency of the Vsync signal is currently typically 60 Hz. As shown in fig. 5, assuming that the period of the Vsync signal is T, regardless of the transmission delay of the signal, after the first Vsync signal Vsync1 reaches the CPU, the CPU forwards the first Vsync signal Vsync1 to each application, which starts to perform a drawing operation in response to a user's touch slide or the like on the display screen; and obtaining a plurality of layers drawn by each application after each application finishes the drawing operation. After the second Vsync signal Vsync2 reaches the CPU, the CPU forwards the second Vsync signal Vsync2 to the layer composition module, and the layer composition module starts to perform layer composition operation to combine a plurality of layers drawn by each application, thereby generating a picture to be displayed. After the third Vsync signal Vsync3 reaches the CPU, the system starts to perform a display refresh and finally displays the picture to be displayed on the display screen. As can be seen from the above description, the frequencies of the Vsync signals received by the application program, the layer composition module, and the display screen are consistent and are fixed values set in advance.
In the process of drawing, synthesizing and refreshing display of a layer of a mobile terminal, 3 frame rates exist: rendering frame rate, composition frame rate, and refresh rate.
The drawing frame rate is a frame rate for triggering the layer synthesis module to perform layer synthesis after the layer is drawn, and may be understood as a frame number of layers drawn in unit time (e.g., 1 second). The drawing frame rate comprises the drawing frame rate of an application program and the drawing frame rate of a layer. There may be multiple applications running in the system, and each application may include multiple layers, for example, a video player application typically includes three layers: a layer for displaying video content, which may be defined as U1; two SurfaceView type layers, one for displaying the barrage content, may be defined as U2, and the other for displaying User Interface (UI) controls (e.g., a Play progress bar, a volume control bar, and various control buttons, etc.) and advertisements, may be defined as U3. The drawing frame rate of the application program is the number of times of drawing operations executed in unit time of the application program, wherein one drawing operation may be executed while one or more image layers are drawn. The drawing frame rate of the layer is the number of times of drawing triggered in unit time of the layer with the same number or name (such as the previous U1, U2 or U3).
The synthesis frame rate is a frame rate at which layers drawn by each application are synthesized into a picture to be displayed, and can be understood as a number of picture frames synthesized in unit time.
The refresh rate is the frame rate of refreshing the display screen of the mobile terminal. Typically, the display screen will be refreshed at a refresh rate of 60 Hz.
In addition, the Android system introduces a display screen energy-saving mechanism in the process of transmitting the picture to be displayed to the display hardware. Fig. 6a is a schematic diagram of a power saving mechanism of a FOSS-based display screen according to an embodiment of the present invention. As shown in fig. 6a, the processor 610 may also input the display effect parameter corresponding to the current FOSS level of the terminal to the first algorithm setting module 622 for storage, in addition to sending the data of the picture to be displayed to the image analyzer 621 of the driving chip 620 of the display screen 630. The data of the picture to be displayed is image data that needs to be displayed in the display screen 630, and the image analyzer 621 may analyze the data of the picture to be displayed sent by the processor 610, so as to obtain information such as color, contrast, gray level value, and the like of the image for subsequent processing. After the image analyzer 621 completes the analysis of the data of the image to be displayed, the analyzed data is sent to the FOSS module 623, and the FOSS module 623 processes the analyzed data by using the set algorithm and the display effect parameter stored in the first algorithm setting module 622. For example, the pixel points whose color gradation values meet the adjustment requirement of the display effect parameters are adjusted, and the remaining pixel points may not be adjusted in the gray scale brightness.
Illustratively, if the power saving step size is 4, the power saving input parameters are 32,48,700, and 788, and the power saving output parameters are 255,204,204 and 192, an image to be displayed having a color gradation range of 0 to 1023 is divided into a plurality of sections with the boundaries of 32,48,700, and 788. The gradation value in the first interval [0,32] is mapped to 255 (i.e., the power saving degree corresponding to the gradation value 0 in the image to be displayed is 255, … …, the power saving degree corresponding to the gradation value 10 is 255, and the power saving degree corresponding to the gradation value 32 … … is 255), the gradation value in the second interval [33,48] is mapped to 204, the gradation value in the third interval [48,700] is mapped to 204, and the gradation value in the fourth interval [701,788] is mapped to 204. Alternatively, the contrast and the gray scale brightness of the picture to be displayed are adjusted.
Alternatively, the contrast and the gray scale brightness of the picture to be displayed are adjusted. The FOSS module 623 may send the processed data of the to-be-displayed picture to the display screen 630. The Display screen 630 is an Organic Light Emitting Display (OLED) or an AMOLED (Active Matrix/Organic Light Emitting Diode) screen.
Fig. 6b is a schematic diagram of a display screen energy saving mechanism based on CABC according to an embodiment of the present invention. As shown in fig. 6b, in addition to sending the data of the picture to be displayed to the image analyzer 641 of the driving chip 640 of the display screen 630, the processor 610 may also input the cabac parameter corresponding to the current cabac level of the terminal to the second algorithm setting module 642 for storage. The data of the picture to be displayed is image data that needs to be displayed in the display screen 630, and the image analyzer 641 may analyze the data of the picture to be displayed sent by the processor 610, so as to obtain information such as color, contrast, gray level value, and the like of the image for subsequent processing. After the image analyzer 641 completes analysis of the data of the image to be displayed, the analyzed data is sent to the CABC module 643, and the CABC module 643 processes the analyzed data by using the set algorithm and the CABC parameter stored in the second algorithm setting module 642. For example, the gray scale brightness of the picture to be displayed may be adjusted. Meanwhile, the CABC module 643 outputs a pulse signal to the power management chip 650, and the power management chip 650 controls the output waveform of the backlight driving module 651 through a preset driving algorithm; the output waveform controls the brightness of the leds 660 that are the backlight of the display 630. For example, when the processor 610 of the mobile terminal transmits data of a picture to the driving chip 640, the content analyzer 641 automatically increases the grayscale brightness of the picture by 30% (when the picture becomes bright) through the CABC module 643 according to a setting algorithm after calculating and analyzing the data of the picture, and decreases the backlight brightness by 30% (when the picture becomes dark) through the power management chip 650. For the user, the display effect of the picture is comparable to that of the picture without being adjusted by the CABC module 643, but the backlight power consumption is reduced by 30%.
Fig. 7 is a device for adjusting an energy saving level of a terminal according to an embodiment of the present invention. The device can be realized by software and/or hardware, can be generally integrated in the mobile terminal, and can control the mobile terminal by executing the adjusting method of the energy-saving level of the terminal. As shown in fig. 7, the apparatus includes a rank determination module 710, a parameter acquisition module 720, and a rank adjustment module 730.
A level determining module 710, configured to obtain a current energy saving level of a terminal and a target energy saving level that needs to be adjusted, and determine at least one transition energy saving level between the current energy saving level and the target energy saving level;
a parameter obtaining module 720, configured to obtain display effect parameters corresponding to the at least one transition energy saving level respectively;
the level adjusting module 730 is configured to adjust the energy saving level of the terminal to the at least one transition energy saving level in sequence, adjust the energy saving level from the last transition energy saving level to the target energy saving level, and display the to-be-displayed picture according to the display effect parameter corresponding to the adjusted transition energy saving level after each adjustment.
The device for adjusting the energy-saving level of the terminal provided by the embodiment can smoothly adjust the energy-saving level of the terminal, can avoid the problem of flicker caused by image switching due to adjustment of the energy-saving level, and can reduce the power consumption of the terminal while giving consideration to the display effect, so that the terminal can smoothly display images.
On the basis of the above technical solution, the level determining module 710 is specifically configured to:
acquiring various energy-saving grades preset for a terminal, and sequencing the various energy-saving grades;
determining at least one energy-saving grade between the current energy-saving grade and a target energy-saving grade after sequencing, and taking the at least one energy-saving grade as a transition energy-saving grade;
alternatively, the first and second electrodes may be,
determining at least one transition energy-saving grade matched with an energy-saving grade pair consisting of the current energy-saving grade and a target energy-saving grade according to a preset transition energy-saving grade matched with different energy-saving grade pairs; in the preset transition energy-saving grades matched with different energy-saving grade pairs, the number of the transition energy-saving grades matched with the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the transition energy-saving grades matched with the energy-saving grade pairs in the high energy-saving grade interval.
On the basis of the foregoing technical solution, the parameter obtaining module 720 is specifically configured to:
when the energy-saving grade is the fidelity optimization signal zooming FOSS grade, calling a set FOSS configuration file access interface to read a FOSS configuration file, and acquiring a display effect parameter corresponding to the transition FOSS grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameters corresponding to the transition energy-saving level to a first algorithm setting module after each adjustment, so that the FOSS module adjusts the color level of the picture to be displayed according to the display effect parameters in the first algorithm setting module, and displays the adjusted picture to be displayed.
On the basis of the foregoing technical solution, the parameter obtaining module 720 is further specifically configured to:
when the energy-saving grade is a content adaptive backlight control CABC grade, calling a set CABC configuration file access interface to read a CABC configuration file, and acquiring a display effect parameter corresponding to a transition CABC grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameter corresponding to the transition energy-saving level to a second algorithm setting module after each adjustment, so that the CABC module adjusts the brightness of the picture to be displayed according to the display effect parameter in the second algorithm setting module, outputs a pulse signal to a backlight driving module to adjust the backlight brightness, and displays the adjusted picture to be displayed.
On the basis of the above technical solution, the level adjusting module 730 is further configured to:
when at least two transition energy-saving levels are included, determining the priority of the at least two transition energy-saving levels according to a preset priority rule;
and according to the sequence of the priority, executing the operation of adjusting the energy saving level of the terminal according to the transition energy saving level every set time length.
On the basis of the above technical solution, the apparatus further includes:
and the grade updating module is used for re-determining the transition energy-saving grade according to the current energy-saving grade and the changed target energy-saving grade if the target energy-saving grade is detected to be changed before the energy-saving grade of the terminal reaches the target energy-saving grade.
The embodiment of the invention also provides a mobile terminal, which can comprise the device for adjusting the energy-saving level of the terminal provided by the embodiment of the invention. Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 8, the mobile terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 801 is used for storing computer programs which can run on the processor; the CPU802 reads and executes the computer program stored in the memory 801. The CPU802, when executing the computer program, implements the steps of: acquiring a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, and determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade; obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively; and after the energy saving grade of the terminal is sequentially adjusted to the at least one transition energy saving grade, adjusting the terminal from the last transition energy saving grade to the target energy saving grade, and displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment.
The terminal further includes: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal 800 is merely one example of a terminal and that the terminal 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for smoothly adjusting the power saving level provided in this embodiment, which takes a mobile phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input output peripherals on the device, such as touch screen 802 (equivalent to the screen in the above-described embodiment) and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the mobile phone and the wireless network (i.e., the network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 805 receives and transmits RF signals, also referred to as electromagnetic signals, which the RF circuitry 805 converts to or from electrical signals, and communicates with communication networks and other devices over. RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
The speaker 811 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 805 into sound and play the sound to the user.
And a power management chip 808 for supplying power and managing power to the hardware connected to the CPU802, the I/O subsystem 809 and the peripheral interface 803.
The device for adjusting the energy-saving level of the terminal and the mobile terminal provided in the above embodiments can execute the method for adjusting the energy-saving level of the terminal provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a method for adjusting an energy saving level of a terminal according to any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A method for adjusting the energy-saving level of a terminal is characterized by comprising the following steps:
the method comprises the steps of obtaining a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade, and dividing an energy-saving function of the terminal into a plurality of energy-saving grades according to an application scene;
the application scenario comprises different preset application programs, and the acquiring of the current energy-saving level of the terminal and the target energy-saving level required to be adjusted comprises the following steps:
when a user switches a first application program currently displayed on a screen to a second application program, determining an energy-saving level corresponding to the first application program as a current energy-saving level, and setting the energy-saving level corresponding to the second application program as a target energy-saving level;
obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively;
after the energy-saving level of the terminal is sequentially adjusted to the at least one transition energy-saving level, adjusting the terminal from the last transition energy-saving level to the target energy-saving level, and displaying a to-be-displayed picture according to a display effect parameter corresponding to the adjusted transition energy-saving level after each adjustment; adjusting the image to be displayed by combining the gray scale brightness and the backlight brightness in each energy-saving grade adjustment;
the determining at least one transition energy saving level between the current energy saving level and the target energy saving level comprises:
determining at least one transition energy-saving grade matched with an energy-saving grade pair consisting of the current energy-saving grade and a target energy-saving grade according to a preset transition energy-saving grade matched with different energy-saving grade pairs; in the preset transition energy-saving grades matched with different energy-saving grade pairs, the number of the transition energy-saving grades matched with the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the transition energy-saving grades matched with the energy-saving grade pairs in the high energy-saving grade interval.
2. The method according to claim 1, wherein the obtaining of the display effect parameters corresponding to the at least one transition energy saving level respectively comprises:
when the energy-saving grade is the fidelity optimization signal zooming FOSS grade, calling a set FOSS configuration file access interface to read a FOSS configuration file, and acquiring a display effect parameter corresponding to the transition FOSS grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameters corresponding to the transition energy-saving level to a first algorithm setting module after each adjustment, so that the FOSS module adjusts the color level of the picture to be displayed according to the display effect parameters in the first algorithm setting module, and displays the adjusted picture to be displayed.
3. The method according to claim 1, wherein the obtaining of the display effect parameters corresponding to the at least one transition energy saving level respectively comprises:
when the energy-saving grade is a content adaptive backlight control CABC grade, calling a set CABC configuration file access interface to read a CABC configuration file, and acquiring a display effect parameter corresponding to a transition CABC grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameter corresponding to the transition energy-saving level to a second algorithm setting module after each adjustment, so that the CABC module adjusts the brightness of the picture to be displayed according to the display effect parameter in the second algorithm setting module, outputs a pulse signal to a backlight driving module to adjust the backlight brightness, and displays the adjusted picture to be displayed.
4. The method of claim 1, wherein the sequentially adjusting the power saving levels of the terminals to the at least one transitional power saving level comprises:
when at least two transition energy-saving levels are included, determining the priority of the at least two transition energy-saving levels according to a preset priority rule;
and according to the sequence of the priority, executing the operation of adjusting the energy saving level of the terminal according to the transition energy saving level every set time length.
5. The method according to any one of claims 1-4, further comprising:
and before the energy-saving grade of the terminal reaches the target energy-saving grade, if the target energy-saving grade is detected to be changed, re-determining the transition energy-saving grade according to the current energy-saving grade and the changed target energy-saving grade.
6. An apparatus for adjusting an energy saving level of a terminal, comprising:
the terminal comprises a grade determining module, a grade determining module and a grade determining module, wherein the grade determining module is used for acquiring a current energy-saving grade of the terminal and a target energy-saving grade required to be adjusted, determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade, and dividing the energy-saving function of the terminal into a plurality of energy-saving grades according to an application scene;
the application scenario comprises different preset application programs, and the acquiring of the current energy-saving level of the terminal and the target energy-saving level required to be adjusted comprises the following steps:
when a user switches a first application program currently displayed on a screen to a second application program, determining an energy-saving level corresponding to the first application program as a current energy-saving level, and setting the energy-saving level corresponding to the second application program as a target energy-saving level;
the parameter acquisition module is used for acquiring display effect parameters corresponding to the at least one transition energy-saving grade;
the grade adjusting module is used for adjusting the energy saving grade of the terminal to the at least one transition energy saving grade in sequence, adjusting the energy saving grade from the last transition energy saving grade to the target energy saving grade, and displaying a to-be-displayed picture according to the display effect parameter corresponding to the adjusted transition energy saving grade after each adjustment; adjusting the image to be displayed by combining the gray scale brightness and the backlight brightness in each energy-saving grade adjustment;
the grade determination module is specifically configured to: determining at least one transition energy-saving grade matched with an energy-saving grade pair consisting of the current energy-saving grade and a target energy-saving grade according to a preset transition energy-saving grade matched with different energy-saving grade pairs; in the preset transition energy-saving grades matched with different energy-saving grade pairs, the number of the transition energy-saving grades matched with the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the transition energy-saving grades matched with the energy-saving grade pairs in the high energy-saving grade interval.
7. The apparatus of claim 6, wherein the parameter obtaining module is specifically configured to: when the energy-saving grade is the fidelity optimization signal zooming FOSS grade, calling a set FOSS configuration file access interface to read a FOSS configuration file, and acquiring a display effect parameter corresponding to the transition FOSS grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameters corresponding to the transition energy-saving level to a first algorithm setting module after each adjustment, so that the FOSS module adjusts the color level of the picture to be displayed according to the display effect parameters in the first algorithm setting module, and displays the adjusted picture to be displayed.
8. The apparatus of claim 6, wherein the parameter obtaining module is specifically configured to: when the energy-saving grade is a content adaptive backlight control CABC grade, calling a set CABC configuration file access interface to read a CABC configuration file, and acquiring a display effect parameter corresponding to a transition CABC grade;
the displaying the picture to be displayed according to the display effect parameter corresponding to the adjusted transition energy-saving grade after each adjustment comprises the following steps:
and transmitting the adjusted display effect parameter corresponding to the transition energy-saving level to a second algorithm setting module after each adjustment, so that the CABC module adjusts the brightness of the picture to be displayed according to the display effect parameter in the second algorithm setting module, outputs a pulse signal to a backlight driving module to adjust the backlight brightness, and displays the adjusted picture to be displayed.
9. The apparatus of claim 6, wherein the rank adjustment module is further configured to: when at least two transition energy-saving levels are included, determining the priority of the at least two transition energy-saving levels according to a preset priority rule;
and according to the sequence of the priority, executing the operation of adjusting the energy saving level of the terminal according to the transition energy saving level every set time length.
10. The apparatus of any one of claims 6-9, further comprising:
and the grade updating module is used for re-determining the transition energy-saving grade according to the current energy-saving grade and the changed target energy-saving grade if the target energy-saving grade is detected to be changed before the energy-saving grade of the terminal reaches the target energy-saving grade.
11. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
the method comprises the steps of obtaining a current energy-saving grade of a terminal and a target energy-saving grade required to be adjusted, determining at least one transition energy-saving grade between the current energy-saving grade and the target energy-saving grade, dividing an energy-saving function of the terminal into a plurality of energy-saving grades according to an application scene, wherein the application scene comprises a preset pure white scene, a pure black scene, a scene with frequent transition of picture gray scales, a dynamic scene, a static scene, a transparent scene or a semitransparent scene, and further comprises preset different application programs;
obtaining display effect parameters corresponding to the at least one transition energy-saving grade respectively;
after the energy-saving level of the terminal is sequentially adjusted to the at least one transition energy-saving level, adjusting the terminal from the last transition energy-saving level to the target energy-saving level, and displaying a to-be-displayed picture according to a display effect parameter corresponding to the adjusted transition energy-saving level after each adjustment;
the determining at least one transition energy saving level between the current energy saving level and the target energy saving level comprises:
determining at least one transition energy-saving grade matched with an energy-saving grade pair consisting of the current energy-saving grade and a target energy-saving grade according to a preset transition energy-saving grade matched with different energy-saving grade pairs; in the preset transition energy-saving grades matched with different energy-saving grade pairs, the number of the transition energy-saving grades matched with the energy-saving grade pairs in the low energy-saving grade interval is higher than that of the transition energy-saving grades matched with the energy-saving grade pairs in the high energy-saving grade interval.
CN201710141753.8A 2017-03-10 2017-03-10 Method and device for adjusting energy-saving level of terminal and mobile terminal Active CN106851017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710141753.8A CN106851017B (en) 2017-03-10 2017-03-10 Method and device for adjusting energy-saving level of terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710141753.8A CN106851017B (en) 2017-03-10 2017-03-10 Method and device for adjusting energy-saving level of terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN106851017A CN106851017A (en) 2017-06-13
CN106851017B true CN106851017B (en) 2020-10-02

Family

ID=59143859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710141753.8A Active CN106851017B (en) 2017-03-10 2017-03-10 Method and device for adjusting energy-saving level of terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN106851017B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247281A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Method and electronic equipment for adjusting display brightness
CN104168371A (en) * 2014-08-08 2014-11-26 Tcl通讯(宁波)有限公司 Method for adjusting backlight brightness of mobile terminal and mobile terminal
CN106303063A (en) * 2016-08-29 2017-01-04 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal display lightness regulating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247281A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Method and electronic equipment for adjusting display brightness
CN104168371A (en) * 2014-08-08 2014-11-26 Tcl通讯(宁波)有限公司 Method for adjusting backlight brightness of mobile terminal and mobile terminal
CN106303063A (en) * 2016-08-29 2017-01-04 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal display lightness regulating method and system

Also Published As

Publication number Publication date
CN106851017A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106919401B (en) Method and device for dynamically adjusting resolution and mobile terminal
CN106658691B (en) Display control method and device and mobile terminal
US10952146B2 (en) Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal
CN106941563B (en) control method and device for refresh rate of mobile terminal and mobile terminal
CN106919358B (en) Display control method and device of mobile terminal and mobile terminal
US10475413B2 (en) Method and apparatus for adjusting backlight brightness of screen, and mobile terminal
CN106933328B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
US20200008142A1 (en) Method for Controlling Terminal, and Terminal
CN106933327B (en) Method and device for controlling frame rate of mobile terminal and mobile terminal
CN106951054B (en) Application control method and device and mobile terminal
TW201506893A (en) Content adaptive LCD backlight control
WO2018161957A1 (en) Method and device for layer drawing control, and mobile terminal
WO2018161582A1 (en) Method, device and non-transitory computer-readable medium for control of refresh frequency of display unit
CN106937371B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN106933329B (en) A kind of method, device and mobile terminal of mobile terminal adaptive energy-saving grade
US10863213B2 (en) Method and device for controlling frame rate of electronic device, storage medium, and electronic device
CN106896899B (en) Control method and device for drawing image of mobile terminal and mobile terminal
CN108762652B (en) Display control method and device of intelligent terminal, storage medium and intelligent terminal
CN106851017B (en) Method and device for adjusting energy-saving level of terminal and mobile terminal
CN108710478B (en) Display screen control method and device, storage medium and intelligent terminal
CN106941621B (en) Mobile terminal control method and device and mobile terminal
CN113163141A (en) Display control method, display control device, television and computer-readable storage medium
CN113179451A (en) Television control method and device, television and computer readable storage medium
CN111367604A (en) Processing method and device for file display, storage medium and terminal

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant