Method and device for adjusting display brightness, electronic equipment and storage medium
阅读说明:本技术 调整显示亮度的方法及装置、电子设备及存储介质 (Method and device for adjusting display brightness, electronic equipment and storage medium ) 是由 刘立伟 于 2019-11-18 设计创作,主要内容包括:本公开是关于一种调整显示亮度的方法及装置、电子设备及存储介质。该方法包括:检测电子设备的供电状况信息;检测环境光亮度;结合所述环境光亮度及所述供电状况信息,调整所述电子设备的显示亮度。通过本公开的技术方案,能够同时参考环境光亮度和供电状况信息来调整显示亮度,从而平衡各种应用场景下的显示效果与电子设备耗电程度的需求,减少由于显示亮度的变化而造成的功耗过高或待机时长变短的问题。(The disclosure relates to a method and a device for adjusting display brightness, an electronic device and a storage medium. The method comprises the following steps: detecting power supply condition information of the electronic equipment; detecting the brightness of the environment light; and adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information. Through the technical scheme, the display brightness can be adjusted by simultaneously referring to the ambient light brightness and the power supply condition information, so that the display effects under various application scenes and the power consumption degree of electronic equipment are balanced, and the problem that the power consumption is too high or the standby time is shortened due to the change of the display brightness is solved.)
1. A method for adjusting display brightness, comprising:
detecting power supply condition information of the electronic equipment;
detecting the brightness of the environment light;
and adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information.
2. The method of claim 1, wherein the power supply condition information comprises: the remaining capacity of the battery; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the residual battery capacity is smaller than a preset threshold value, adjusting the display brightness of the electronic equipment based on the first corresponding relation between the display brightness and the ambient light brightness.
3. The method of claim 2, wherein the adjusting the display brightness of the electronic device in combination with the ambient light brightness and the power supply status information further comprises:
if the residual battery capacity is greater than or equal to the preset threshold, adjusting the display brightness of the electronic equipment based on a second corresponding relation between the display brightness and the ambient light brightness; and under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
4. The method of claim 1, wherein the power supply condition information comprises: a power supply connection state; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
5. The method of claim 1, wherein the power supply condition information comprises: a battery state of health; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on a fourth corresponding relation between the display brightness and the ambient light brightness.
6. The method of any of claims 1 to 5, wherein adjusting the display brightness of the electronic device comprises:
and adjusting the driving power of the backlight of the display screen of the electronic equipment.
7. An apparatus for adjusting display brightness, comprising:
the first detection module is used for detecting power supply condition information of the electronic equipment;
the second detection module is used for detecting the brightness of the environment light;
and the adjusting module is used for adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information.
8. The apparatus of claim 7, wherein the power supply condition information comprises: the remaining capacity of the battery; the adjusting module is specifically configured to:
and if the residual battery capacity is smaller than a preset threshold value, adjusting the display brightness of the electronic equipment based on the first corresponding relation between the display brightness and the ambient light brightness.
9. The apparatus of claim 8, wherein the adjustment module is further configured to:
if the residual battery capacity is greater than or equal to the preset threshold, adjusting the display brightness of the electronic equipment based on a second corresponding relation between the display brightness and the ambient light brightness; and under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
10. The apparatus of claim 7, wherein the power supply condition information comprises: a power supply connection state; the adjusting module is specifically configured to:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
11. The apparatus of claim 7, wherein the power supply condition information comprises: a battery state of health; the adjusting module is specifically configured to:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on a fourth corresponding relation between the display brightness and the ambient light brightness.
12. The apparatus of any one of claims 7 to 11, wherein the adjustment module comprises:
and the power adjusting module is used for adjusting the driving power of the backlight of the display screen of the electronic equipment.
13. An electronic device, comprising: a display screen; adjusting means for adjusting the display brightness of the display screen according to the method for adjusting the display brightness provided by any one of the preceding claims 1 to 12.
14. An apparatus for adjusting display brightness, the apparatus comprising at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of the method for adjusting display brightness as provided in any one of the preceding claims 1 to 12.
15. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the steps of the method for adjusting display brightness as provided in any one of claims 1 to 12.
Technical Field
The present disclosure relates to electronic technologies, and in particular, to a method and an apparatus for adjusting display brightness, an electronic device, and a storage medium.
Background
With the gradual optimization of the display function of electronic devices, methods of dynamically adjusting the display brightness according to the ambient light brightness have been widely used. However, although the adjustment of the display luminance of the electronic device can be realized by the ambient luminance, such adjustment causes other problems, for example, the power consumption of the electronic device is too high or the standby time period becomes short.
Disclosure of Invention
The disclosure provides a method and a device for adjusting display brightness and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for adjusting display brightness, the method including:
detecting power supply condition information of the electronic equipment;
detecting the brightness of the environment light;
and adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information.
In some embodiments, the power supply condition information includes: the remaining capacity of the battery; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the residual battery capacity is smaller than a preset threshold value, adjusting the display brightness of the electronic equipment based on the first corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjusting the display brightness of the electronic device in combination with the ambient light brightness and the power supply condition information further includes:
if the residual battery capacity is greater than or equal to the preset threshold, adjusting the display brightness of the electronic equipment based on a second corresponding relation between the display brightness and the ambient light brightness; and under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
In some embodiments, the power supply condition information includes: a power supply connection state; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the power supply condition information includes: a battery state of health; the adjusting the display brightness of the electronic device by combining the ambient light brightness and the power supply condition information includes:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on a fourth corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjusting the display brightness of the electronic device comprises:
and adjusting the driving power of the backlight of the display screen of the electronic equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting display brightness, including:
the first detection module is used for detecting power supply condition information of the electronic equipment;
the second detection module is used for detecting the brightness of the environment light;
and the adjusting module is used for adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information.
In some embodiments, the power supply condition information includes: the remaining capacity of the battery; the adjusting module is specifically configured to:
and if the residual battery capacity is smaller than a preset threshold value, adjusting the display brightness of the electronic equipment based on the first corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjustment module is further configured to:
if the residual battery capacity is greater than or equal to the preset threshold, adjusting the display brightness of the electronic equipment based on a second corresponding relation between the display brightness and the ambient light brightness; and under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
In some embodiments, the power supply condition information includes: a power supply connection state; the adjusting module is specifically configured to:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the power supply condition information includes: a battery state of health; the adjusting module is specifically configured to:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on a fourth corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjustment module comprises:
and the power adjusting module is used for adjusting the driving power of the backlight of the display screen of the electronic equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a display screen; and the adjusting device is used for adjusting the display brightness of the display screen according to any one of the methods for adjusting the display brightness.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting display brightness, the apparatus at least comprising: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is used for executing the executable instructions, and the executable instructions execute the steps of any one of the methods for adjusting the display brightness.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, implement the steps in any one of the above methods for adjusting display brightness.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through the technical scheme, the display brightness can be adjusted by simultaneously referring to the ambient light brightness and the power supply condition information, and the situation that the power consumption of the electronic equipment is too high or the standby time is too short due to the adjustment of the display brightness is reduced.
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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of adjusting display brightness in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method of adjusting display brightness in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating yet another method of adjusting display brightness in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus for adjusting display brightness according to an exemplary embodiment;
fig. 5 is a block diagram illustrating an example of a physical structure of an apparatus for adjusting display brightness according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of adjusting display brightness according to an exemplary embodiment, which is used in an electronic device, as shown in fig. 1, and includes the following steps:
in step S101, power supply condition information of the electronic device is detected;
in step S102, detecting an ambient light level;
in step S103, the display brightness of the electronic device is adjusted according to the ambient light brightness and the power supply status information.
The electronic apparatus herein is an electronic apparatus having a Display function, and includes, for example, various types of displays such as an electronic apparatus having an LCD (Liquid Crystal Display), an LED (Light Emitting Diode) Display, and the like. The power supply condition information is used to indicate the power condition of the electronic device, including the use state or remaining power of the battery, whether to connect a power supply, power consumption state, and the like. Since the display components of the electronic devices, such as the display, are generally high energy consumption components, and the high and low display brightness directly affects the energy consumption of the display components. Therefore, in the case where the display effect is required to be low but the power consumption is required to be high, it is necessary to reduce the power consumption of the display function as much as possible. In addition, the ambient light brightness has a large influence on the display effect, for example, if the ambient light brightness is high, a high display brightness is required, otherwise, under the condition of high ambient light brightness, the display image cannot be clearly viewed by the user due to the dark display brightness, and the display effect is reduced; and under the condition of low ambient light brightness, the lower display brightness can clearly display the picture, and the overhigh display brightness can achieve the dazzling negative effect.
Therefore, the display brightness is adjusted by combining the ambient light brightness to meet the requirement of the display effect as much as possible, and meanwhile, considering that the power consumption is large when the display brightness is high, the display brightness can be properly reduced when the requirement of low power consumption is high.
By the method, the requirements for display effect and power consumption are comprehensively considered by combining the ambient light brightness and the power supply condition information, the display brightness of the electronic equipment is adjusted, and the display requirements of the electronic equipment are met on the premise of reducing the power consumption as much as possible.
In some embodiments, the power supply condition information includes: the remaining capacity of the battery;
as shown in fig. 2, in the step S103, adjusting the display brightness of the electronic device according to the ambient light brightness and the power supply status information includes:
step S11, if the remaining battery power is less than the predetermined threshold, adjusting the display brightness of the electronic device based on the first corresponding relationship between the display brightness and the ambient light brightness.
In consideration of the remaining battery capacity, when the remaining battery capacity is lower than the preset threshold, the usage duration of the electronic device is often more concerned, and since the power consumption of the display function is higher, the display is performed when the remaining battery capacity is low, and the electronic device may be powered off and powered off in a short time. Therefore, here, when the remaining battery power is less than the preset threshold, for example, the remaining battery power is less than 20% of the total power, or the remaining battery power is less than 200mAh (milliampere), the display brightness of the electronic device is adjusted according to the set first corresponding relationship, so that the display effect can be ensured by ensuring the dynamic adjustment of the display brightness while the electronic device has a long standby time. The first correspondence relationship may be a correspondence relationship with a slightly lower display luminance under the usage effect with respect to the ambient light luminance.
The corresponding relationship here may be a luminance value curve between the ambient light brightness and the display brightness, that is, a variation relationship of the display brightness with the ambient light brightness. Based on the corresponding relation, the corresponding display brightness can be confirmed for the current ambient light brightness, so that the adjustment is performed according to the display brightness, and the electronic equipment displays the picture with the display brightness.
In some embodiments, in the step S103, adjusting the display brightness of the electronic device according to the ambient light brightness and the power supply condition information, further includes:
step S12, if the battery residual capacity is larger than or equal to the preset threshold value, adjusting the display brightness of the electronic equipment based on the second corresponding relation between the display brightness and the ambient light brightness; under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
Here, when the remaining battery capacity is greater than or equal to the preset threshold, the electric capacity of the electronic device may be considered sufficient, and power consumption may not be saved by the low display luminance. Therefore, the display brightness is adjusted by using the second corresponding relationship between the display brightness and the ambient light brightness. The second corresponding relationship may be a corresponding relationship between the display brightness and the ambient light brightness under the condition of ensuring the display effect requirement.
In the case of the first correspondence relationship, the requirement for low power consumption of the electronic device is higher, and thus the display luminance is appropriately reduced. Therefore, under the same ambient light brightness, the display brightness obtained based on the first corresponding relationship is lower than the display brightness obtained based on the second corresponding relationship.
By the method, different conditions of the residual electric quantity of the battery are considered, different corresponding relations between the ambient light brightness and the display brightness are adopted, the display brightness is adjusted, and different requirements under different scenes are met.
In some embodiments, the power supply condition information includes: a power supply connection state;
in step S103, adjusting the display brightness of the electronic device according to the ambient light brightness and the power supply status information includes:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
When the electronic device is connected to an external power source, for example, when the external power source is connected to charge a battery, or when the electronic device is directly powered by the external power source, the electronic device has low power consumption requirement. Therefore, it is possible to adjust the display brightness using the corresponding standard. The third correspondence represents correspondence between display brightness and ambient light brightness on the premise of ensuring a display effect. The third corresponding relationship may be the same as or different from the second corresponding relationship, and in practical application, the third corresponding relationship may be set according to practical requirements.
The connection to the external power source may be through a power line, or may be through a wireless connection, such as wireless charging, and is not limited herein.
By the method, even if the battery power is low, the use of power consumption is not required to be reduced, the display brightness is adjusted based on the third corresponding relation, and a better display effect is ensured.
In some embodiments, the power supply condition information includes: a battery state of health;
in step S103, adjusting the display brightness of the electronic device according to the ambient light brightness and the power supply status information includes:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on the fourth corresponding relation between the display brightness and the ambient light brightness.
For an electronic device using a battery, the health state of the battery may affect the duration of use, and when the health state of the battery is a battery maintenance state, that is, the health state of the battery is poor, if the power consumption of the electronic device is high, even if the remaining capacity of the battery is high, the electronic device may be powered off and shut down in a short time. Therefore, it is necessary to reduce power consumption of the electronic device as much as possible at this time.
When the battery health state indicates that the current battery is to be maintained, the display brightness of the electronic equipment is adjusted by adopting the fourth corresponding relation, the power consumption generated by the display function is reduced as much as possible, and the basic display requirement is met.
In some embodiments, the adjusting the display brightness of the electronic device includes:
and adjusting the driving power of the backlight of the display screen of the electronic equipment.
In the above embodiment, the adjustment of the display brightness of the electronic device may be implemented by adjusting the brightness of a backlight of a display screen of the electronic device, where the backlight is used to provide a light source for emitting light from the display screen, and belongs to a component with higher power consumption in the display screen.
Here, the adjustment of the brightness of the display screen backlight may be achieved by adjusting the driving power of the display screen backlight.
To facilitate understanding of the above-described embodiments of the present disclosure, the present disclosure also provides the following examples:
the automatic backlight brightness adjusting method of the mobile phone adjusts the screen brightness based on the intensity of the ambient light, and realizes the dynamic adjustment of the display brightness based on the ambient light by setting a group of ambient light brightness and parameters corresponding to the backlight brightness, namely an automatic backlight adjusting curve.
If the automatic backlight adjustment curve cannot be changed after being generated, the display brightness can be adjusted only based on the fixed parameters corresponding to the ambient light brightness. In some use scenes in practical application, the requirement for low power consumption of the mobile phone is more important, and at the moment, the low power consumption of the mobile phone can be accepted even if the screen brightness is low. However, this requirement cannot be achieved based on a fixed automatic backlight adjustment curve.
Thus, two sets of adjustment parameters are specified here for the display brightness of the handset. The first group of adjusting parameters does not consider the requirement of low power consumption, and provides corresponding screen brightness parameters for different ambient light brightness so as to ensure the display effect under different ambient light brightness. The other group of adjusting parameters considers the requirement of power consumption, provides corresponding lower screen brightness parameters for different environmental light brightness, and reduces the power consumption as much as possible on the premise of ensuring basic picture display.
Meanwhile, the use scenes of the two groups of adjusting parameters are set, when the mobile phone enters a low-power mode, for example, the battery power is less than 20% of the total amount, the second group of adjusting parameters are adopted, and relatively low screen brightness parameters are used, so that the effects of saving the power consumption of the mobile phone screen and prolonging the service life of the mobile phone are achieved.
When the electric quantity of the mobile phone is sufficient, for example, the electric quantity of the battery is more than 20% of the total quantity, the first group of adjusting parameters is adopted, and the relatively high screen brightness parameter is used, so that the display effect under different ambient light brightness is ensured.
In use, the steps shown in fig. 3 can be adopted to implement:
step S31, monitoring the battery power change event;
step S32, determining whether the current battery power is less than a preset threshold value according to the battery power change event;
step S33, when the battery power is less than the preset threshold, adjusting the display brightness by adopting a low brightness adjustment parameter;
and step S34, when the battery power is larger than the preset threshold value, adjusting the display brightness by adopting the high-brightness adjusting parameter.
Through the steps, the corresponding relation between the display brightness and the ambient light brightness is considered, and the low power consumption requirement of the mobile phone is also considered, so that the effect of saving the power consumption of the screen is achieved under the condition of low electric quantity.
Fig. 4 is a block diagram illustrating a structure of an apparatus 400 for adjusting display brightness according to an exemplary embodiment. Referring to fig. 4, the apparatus 400 includes: a first detection module 401, a second detection module 402, and an adjustment module 403, wherein:
a first detection module 401, configured to detect power supply status information of an electronic device;
a second detecting module 402 for detecting the ambient light brightness;
the adjusting module 403 is configured to adjust the display brightness of the electronic device according to the ambient light brightness and the power supply status information.
In some embodiments, the power supply condition information includes: the remaining capacity of the battery; the adjusting module is specifically configured to:
and if the residual battery capacity is smaller than a preset threshold value, adjusting the display brightness of the electronic equipment based on the first corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjustment module is further configured to:
if the residual battery capacity is greater than or equal to the preset threshold, adjusting the display brightness of the electronic equipment based on a second corresponding relation between the display brightness and the ambient light brightness; and under the same ambient light brightness, the display brightness obtained based on the first corresponding relation is lower than the display brightness obtained based on the second corresponding relation.
In some embodiments, the power supply condition information includes: a power supply connection state; the adjusting module is specifically configured to:
and if the power supply connection state indicates that the current electronic equipment is connected with an external power supply, adjusting the display brightness of the electronic equipment based on a third corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the power supply condition information includes: a battery state of health; the adjusting module is specifically configured to:
and if the battery health state indicates that the current battery is to be maintained, adjusting the display brightness of the electronic equipment based on a fourth corresponding relation between the display brightness and the ambient light brightness.
In some embodiments, the adjustment module comprises:
and the power adjusting module is used for adjusting the driving power of the backlight of the display screen of the electronic equipment.
Fig. 5 is a block diagram illustrating a physical structure of an
Referring to fig. 5, the
The
The
The
The
The
The I/
The
The
In an exemplary embodiment, the
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of adjusting display brightness, the method comprising:
detecting power supply condition information of the electronic equipment;
detecting the brightness of the environment light;
and adjusting the display brightness of the electronic equipment by combining the ambient light brightness and the power supply condition information.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.