Brightness adjusting method and device, electronic equipment and medium
By establishing brightness adjustment models and parameters based on application scenarios and flexibly adjusting the brightness of the display screen, the user experience problem caused by consistent brightness reduction in energy saving mode is solved, and the balance between energy saving and user experience is achieved.
Patent Information
- Application Number
- CN202410064795.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2025-07-18
AI Technical Summary
When the prior art reduces the brightness of the display screen in the energy-saving mode, it fails to distinguish based on the currently displayed application scenario, resulting in poor user experience.
By determining the brightness adjustment scene associated with the application currently displayed on the display, a brightness adjustment model is established, and the brightness adjustment parameters are determined based on the model, and the display brightness is flexibly adjusted to meet the needs of different applications.
In the energy-saving mode, the flexibility of display brightness adjustment is improved, power consumption is reduced, and user experience is guaranteed.
Smart Images

Figure CN120340435A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and particularly to a brightness adjustment method, device, electronic device and medium. Background Art
[0002] An electronic device can start an energy-saving mode, in which the brightness of the display screen is reduced to save power consumption. However, in the related art, the method of reducing the brightness of the display screen is simple and crude, directly reducing the display brightness of the display screen to a fixed value, which greatly affects the user experience. Summary of the Invention
[0003] To overcome the problems in the related art, the present disclosure provides a brightness adjustment method, device, electronic device and mechanism.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a brightness adjustment method, including:
[0005] In the energy-saving mode, based on the brightness adjustment scenario associated with the application currently being displayed on the display screen, determine a brightness adjustment model;
[0006] Based on the brightness adjustment model, determine brightness adjustment parameters;
[0007] Based on the brightness adjustment parameters, reduce the brightness of the display screen.
[0008] In some embodiments, the determining a brightness adjustment model based on the brightness adjustment scenario associated with the application currently being displayed on the display screen includes:
[0009] Based on pre-stored first configuration information and the identifier of the application, determine the brightness adjustment scenario associated with the application, where the first configuration information is used to represent the association relationship between the identifier of the application and the brightness adjustment scenario;
[0010] Based on the brightness adjustment scenario, determine the brightness adjustment model.
[0011] In some embodiments, the determining brightness adjustment parameters based on the brightness adjustment model includes:
[0012] Obtain the ambient light information of the environment where the display screen is currently located;
[0013] Based on the brightness adjustment model and the ambient light information, determine the brightness adjustment parameters;
[0014] Wherein, the brightness adjustment model is set as a function with the ambient light information as the independent variable and the brightness adjustment parameters as the dependent variable.
[0015] In some embodiments, reducing the brightness of the display screen based on the brightness adjustment parameter includes:
[0016] Determining a target brightness value of the display screen based on the brightness adjustment parameter and the current brightness value of the display screen;
[0017] Reducing the brightness of the display screen based on the target brightness value.
[0018] In some embodiments, determining the target brightness value of the display screen based on the brightness adjustment parameter and the current brightness value of the display screen includes:
[0019] Taking the product of the current brightness value and the brightness adjustment parameter as the target brightness value.
[0020] In some embodiments, the brightness adjustment method further includes:
[0021] Detecting the battery power;
[0022] When the battery power is less than a preset threshold, obtaining a brightness adjustment scenario associated with the application currently being displayed on the display screen.
[0023] In some embodiments, the brightness adjustment method further includes:
[0024] Obtaining a brightness adjustment scenario associated with the application currently being displayed on the display screen based on a first instruction;
[0025] Wherein, the first instruction is used to indicate starting an energy-saving mode.
[0026] According to a second aspect of the embodiments of the present disclosure, there is provided a brightness adjustment device, including:
[0027] A first determination module, configured to determine a brightness adjustment model based on a brightness adjustment scenario associated with an application currently being displayed on a display screen in an energy-saving mode;
[0028] A second determination module, configured to determine a brightness adjustment parameter based on the brightness adjustment model;
[0029] An adjustment module, configured to reduce the brightness of the display screen based on the brightness adjustment parameter.
[0030] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0031] A processor;
[0032] A memory for storing processor-executable instructions;
[0033] Among them, the processor is configured to execute the brightness adjustment method as described in the first aspect of the present disclosure.
[0034] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the brightness adjustment method as described in the first aspect of the present disclosure.
[0035] Adopting the above method of the present disclosure has the following beneficial effects: The present disclosure determines a brightness adjustment model through the brightness adjustment scenario associated with the application currently being displayed on the display screen, and then determines the brightness adjustment parameters. Based on the brightness adjustment parameters, the brightness of the display screen is reduced to more flexibly adjust the display brightness of the display screen according to the different needs of the user for the currently used application in the energy-saving mode. This can not only reduce the power consumption of the display screen and save power, but also ensure the display effect of the display screen during the user's use process, and optimize the user experience.
[0036] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0038] Figure 1 is a flowchart of a brightness adjustment method shown according to an exemplary embodiment.
[0039] Figure 2 is a flowchart of a brightness adjustment method shown according to an exemplary embodiment.
[0040] Figure 3 is a curve graph of a brightness adjustment model shown according to an exemplary embodiment.
[0041] Figure 4 is a flowchart of a brightness adjustment method shown according to an exemplary embodiment.
[0042] Figure 5 is a flowchart of a brightness adjustment method shown according to an exemplary embodiment.
[0043] Figure 6 is a flowchart of a brightness adjustment method shown according to an exemplary embodiment.
[0044] Figure 7 is a block diagram of a brightness adjustment device shown according to an exemplary embodiment.
[0045] Figure 8 It is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation
[0046] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0047] After the electronic device starts the energy-saving mode, it will reduce the brightness of the display screen based on the current brightness of the display screen to reduce power consumption. In the related art, when adjusting the brightness of the display screen in the energy-saving mode, the brightness of the display screen will be directly reduced to a fixed brightness value, and the scenes corresponding to the currently displayed application programs will not be distinguished. Regardless of which application program is currently running in the foreground, the electronic device will reduce the brightness of the display screen to a unified brightness to achieve the energy-saving effect. For example, when the application program running in the foreground is Application A, the electronic device reduces the brightness of the display screen to brightness value Q. When the application program running in the foreground is Application B, the electronic device will also reduce the brightness of the display screen to brightness value Q.
[0048] However, if the brightness of the display screen is reduced to a unified brightness value in all scenarios, if the user is playing a game, it may seriously affect the user experience.
[0049] To solve the above problems, the present disclosure provides a brightness adjustment method. The brightness adjustment method in the present disclosure determines a brightness adjustment model through the brightness adjustment scene associated with the currently displayed application program, then determines the brightness adjustment parameter based on the brightness adjustment model, and finally reduces the brightness of the display screen based on the brightness adjustment parameter. Since the method in the present disclosure can determine the corresponding brightness adjustment parameter based on different brightness adjustment scenes, in this way, not only can the problem that the brightness of the display screen is reduced to the same brightness in the energy-saving mode, resulting in a poor user experience, be solved, but also in the energy-saving mode, according to the different needs of the application program currently used by the user, the display brightness of the display screen can be adjusted more flexibly. Not only can the power consumption of the display screen be reduced and the power saved, but also the display effect of the display screen during the user's use process can be guaranteed, and the user experience can be optimized.
[0050] Exemplary embodiments of the present disclosure provide a brightness adjustment method, which can be applied to an electronic device with a display screen. The electronic device can specifically be an intelligent device such as a mobile phone, a tablet computer, a notebook, an intelligent robot, or an intelligent wearable device. In addition, various hardware resources are provided on the electronic device, as well as an energy storage device that provides electrical energy for the operation of various hardware resources.
[0051] As Figure 1 shown, the brightness adjustment method shown in this embodiment includes:
[0052] S101. In the energy-saving mode, based on the brightness adjustment scenario associated with the application currently being displayed on the display screen, determine a brightness adjustment model.
[0053] S102. Based on the brightness adjustment model, determine brightness adjustment parameters.
[0054] S103. Based on the brightness adjustment parameters, reduce the brightness of the display screen.
[0055] In step S101, in one example, the energy-saving mode can be automatically started when the battery power is lower than a preset value, so as to save the electrical energy of the battery and extend the battery life. For example, when the battery power is less than 20%, the energy-saving mode is automatically started. In another example, the energy-saving mode can also be started based on the user's independent setting. For example, the user turns on the switch of the energy-saving mode to start the energy-saving mode.
[0056] It is possible to monitor the application currently running in the foreground, that is, to monitor the application currently being displayed on the display screen. Among them, this embodiment does not limit the specific technical means for implementing the monitoring. For example, a foreground monitoring program can be set in the electronic device to implement the monitoring of the application.
[0057] In one example, there is an association relationship between the application and the brightness adjustment scenario. It should be noted that the association relationship between the application and the brightness adjustment scenario can be a many-to-one relationship, that is, multiple applications can correspond to the same brightness adjustment scenario. For example, application A and application B are both associated with the brightness adjustment scenario a.
[0058] In one example, the brightness adjustment scenario associated with the application can be determined according to the identifier of the application (which can be understood as the package name of the application) and the pre-stored first configuration information. Among them, the first configuration information can be used to represent the association relationship between the identifier of the application and the brightness adjustment scenario. That is, the first configuration information includes the correspondence between the identifier of the application and the brightness adjustment scenario.
[0059] During the implementation process, it is only necessary to query in the first configuration information according to the identifier of the application to obtain the brightness adjustment scene associated with the application. For example, the first configuration information includes application A (the corresponding identifier is A, the same applies below) and application B are associated with brightness adjustment scene a, application C is associated with brightness adjustment scene b, and application D is associated with brightness adjustment scene c. Monitor the application currently being displayed on the display screen. If the application is application A, it is determined that the brightness adjustment scene at this time is brightness adjustment scene a. Similarly, if the application is application C or application D, it is determined that the brightness adjustment scene at this time is brightness adjustment scene b or brightness adjustment scene c, respectively.
[0060] It should be noted that, for the applications written into the electronic device at the factory (i.e., the applications built into the electronic device, such as SMS, phone, browser, etc.), the first configuration information corresponding to these applications will be directly stored in the electronic device at the factory. Therefore, for these applications, when determining the corresponding brightness adjustment scene, the first configuration information can be directly called for query.
[0061] For applications downloaded by the electronic device through an application store or a web page during use, after the application is downloaded, the electronic device can obtain the association between the application identifier and the brightness adjustment scene from the cloud server, and write the association into the first configuration information.
[0062] Therefore, the first configuration information in this embodiment is not static, and it will be updated based on the application to ensure that the association relationship between each application and the brightness adjustment scene can be queried, thereby ensuring the smooth progress of the brightness adjustment process.
[0063] Specifically, the category of the associated application can be determined based on the identification of the application, and then the brightness adjustment scene associated with the identification of the application can be determined based on the category of the application. In other words, the category of the application can be used as an intermediate parameter to determine the association between the identification of the application and the brightness adjustment scene. Among them, the category of the application can be determined based on the services provided by the application. For example, if application A provides game services to users, application A can be determined to be a game application; for another example, if application B provides users with video playback, video upload, video download and other services, application B can be determined to be a video application; for another example, if application C provides users with text reading services, application C can be determined to be a reading application.
[0064] In the actual usage process, the power consumption of game applications and video applications is relatively fast, while the power consumption of reading applications is relatively slow. For the convenience of management, game applications and video applications can be classified into the same category, and this category is collectively referred to as dynamic display applications. Similarly, reading applications can be classified into the same category, and this category is collectively referred to as static reading applications.
[0065] In addition to the above two application categories, there may be other applications in the application programs of the electronic device that provide other services. For example, there may be applications that provide both video playback services and text reading services (during use, whether to provide video playback services or text reading services depends mainly on the user's choice. For example, if the user chooses to watch a video, then the provided service is video playback). Or, there may be applications that provide call and chat services (such as SMS, phone call applications, etc.). The power consumption speed of this type of application program is generally lower than that of the dynamic display application category, but higher than that of the static reading application category. If this part of the application program is simply classified into either the dynamic display application or the static reading application category, and the brightness adjustment methods corresponding to the dynamic display application and the static reading application are forcibly implemented on this type of application program, presumably a good brightness adjustment effect cannot be obtained. For example, if this type of application program is classified into the dynamic display application category, the brightness of the reduced display screen may be too dark, resulting in a poor user experience; or, if this type of application program is classified into the static reading application category, the adjusted brightness effect may be too bright to achieve the effect of power consumption savings.
[0066] Therefore, in order to better manage this type of application program, a default application can be set separately, and the application programs that meet the conditions (which can refer to the power consumption speed being lower than that of the dynamic display application category but higher than that of the static reading application category) can be classified into this category.
[0067] Therefore, the application program categories given in this embodiment specifically include dynamic display applications, static reading applications, and default applications. Among them, the power consumption and power consumption speed of the application programs in the dynamic display applications are the largest, the power consumption and power consumption speed of the application programs in the static reading applications are the smallest, and the power consumption and power consumption speed of the application programs in the default applications are between the power consumption and power consumption speed of the application programs in the above two categories.
[0068] Since the application itself in a dynamic display application consumes a relatively large amount of power, in the energy-saving mode, if the user is using a dynamic display application, the brightness of the display screen can be appropriately reduced. For example, in the energy-saving mode, if the user is using a game application, since the game application consumes a relatively large amount of power, the brightness of the display screen can be lowered to reserve sufficient power for the operation of the game application.
[0069] Correspondingly, the application itself in a static reading application consumes a relatively small amount of power. Therefore, in the energy-saving mode, if the user is using a static reading application, the brightness of the display screen can be only slightly reduced. It should be noted that in the energy-saving mode and under the same conditions, after the brightness reduction operation, the brightness of the display screen when using a dynamic display application is lower than that when using a static reading application.
[0070] Correspondingly, the power consumption of the application in the default application is in an intermediate state. Therefore, in the energy-saving mode and under the same conditions, after the brightness reduction operation, the brightness of the display screen when using the default application is lower than that when using a static reading application and higher than that when using a dynamic display application.
[0071] It should be noted that no matter by what means the brightness of the display screen is reduced, it is necessary to ensure that the brightness of the display screen is maintained above the basic brightness. The basic brightness here can refer to the brightness that does not affect the user's perception. The purpose of doing this is to prevent the brightness of the display screen from being very low, resulting in the user being unable to see the content on the display screen clearly, thereby affecting the user's experience.
[0072] Combined with the categories of applications given in the above text, correspondingly, the brightness adjustment scenarios can be divided into a dynamic display scenario, a static reading scenario, and a default scenario. It should be noted that the application categories and the corresponding brightness adjustment scenarios in the above text can be added, deleted, or modified according to actual needs to make this embodiment applicable to more brightness adjustment scenarios.
[0073] After determining the brightness adjustment scenario, a corresponding brightness adjustment model can be determined based on the brightness adjustment scenario. The brightness adjustment scenario and the brightness adjustment model can be in a one-to-one correspondence relationship, that is, one brightness adjustment scenario corresponds to one brightness adjustment model. Considering that there are three brightness adjustment scenarios in this embodiment, it can be determined that there are three brightness adjustment models in this embodiment. Therefore, in actual applications, subsequent steps need to be executed according to the brightness adjustment model corresponding to each scenario.
[0074] In step S102, in one example, the brightness adjustment model can be a certain calculation model. Both the independent variable and the dependent variable of this calculation model are parameters related to the brightness adjustment method shown in the present disclosure, and this calculation model can be used for brightness adjustment. For example, the brightness adjustment model can be a preset relationship between the target brightness value (referring to the expected brightness of the adjusted display screen) and the current brightness value (the brightness value of the display screen in the current state), and this preset relationship can be set according to different brightness adjustment scenarios. For example, this preset relationship can be shown as the following formula:
[0075] Target brightness value = Current brightness value - Z
[0076] Among them, Z represents any natural number. When the electronic device is in the dynamic display scenario, the power consumption is relatively large and fast. Then, the brightness of the electronic device can be adjusted to a relatively dark level. Therefore, a relatively large value can be subtracted from the current brightness value to obtain a smaller target brightness value. Correspondingly, Z can take a relatively large value (for example, it can take 500 nits, and the brightness adjustment model for the dynamic display scenario is Target brightness value = Current brightness value - 500). On the contrary, when the electronic device is in the static reading scenario, the power consumption is relatively small and slow, and if the brightness of the display screen is too low, the comfort level of the user during the reading process will be relatively poor. To ensure the comfort of the user's eyes, the brightness of the electronic device can be maintained at a relatively reasonable level to avoid discomfort caused by too low brightness. Therefore, a relatively small value can be subtracted from the current brightness value to obtain a relatively brighter target brightness value. Correspondingly, Z in the static reading scenario can take a value smaller than that in the dynamic display scenario (for example, it can take 100 nits, and the brightness adjustment model for the static reading scenario is Target brightness value = Current brightness value - 100). Therefore, the value of Z can be set specifically based on the brightness adjustment scenario.
[0077] In another example, the brightness adjustment model can also be a function with the brightness adjustment parameter as the dependent variable. By setting the functional relationship of the independent variable - the brightness adjustment parameter, the value of the brightness adjustment parameter can be determined through the independent variable, and then the brightness adjustment parameter can be applied to the subsequent steps. In this embodiment, the type and value of the independent variable are not limited. For example, the independent variable can be the battery power information, and a piecewise function can be set according to the power information, that is, different power stages correspond to different brightness adjustment models. Then, by substituting the battery power information into the brightness adjustment model, the brightness adjustment parameter can be determined.
[0078] In another example, the brightness adjustment model can be a specific adjustment rule. In the brightness adjustment method in the related art, the brightness value is sent frame by frame. Therefore, for example, the brightness adjustment model can reduce the brightness by a certain number of nits for each frame. For example, the brightness of the first frame is reduced by 5 nits, the brightness of the second frame is reduced by 10 nits, the brightness of the third frame is reduced by 15 nits, and so on. As the display frame is refreshed, the brightness value of the display screen is gradually reduced frame by frame.
[0079] In another example, the determined target brightness value itself can also be determined as the brightness adjustment parameter. At this time, the brightness adjustment parameter is a parameter used to directly reduce the brightness of the display screen. Through this brightness adjustment parameter, the target brightness value of the display screen can be directly obtained, and based on this target brightness value, the brightness of the display screen is reduced.
[0080] In another example, the brightness adjustment parameter can also be determined based on a brightness adjustment model with the brightness adjustment parameter as the dependent variable. For example, assume that the expression of the corresponding brightness adjustment model is Y = f(X), where Y represents the brightness adjustment parameter, X represents the independent variable (which can refer to the power information here), and f(X) represents the functional relationship between Y and X. Obtain the power information of the battery and substitute the power information into the functional relationship to determine the brightness adjustment parameter.
[0081] Regardless of the type of the brightness adjustment parameter, the most fundamental purpose of determining the brightness adjustment parameter is to perform brightness adjustment. Therefore, the brightness adjustment parameter in this embodiment is not limited to the two types mentioned above. That is, the brightness adjustment parameter can be any parameter involved in the brightness adjustment process.
[0082] In step S103, in one example, the target brightness value can be determined based on the brightness adjustment parameter and the current brightness value, and then based on the target brightness value and the current brightness value, the brightness of the display screen is reduced.
[0083] The brightness adjustment method in the present disclosure determines the brightness adjustment model through the brightness adjustment scenario associated with the currently displayed application program, then determines the brightness adjustment parameter based on the brightness adjustment model, and finally reduces the brightness of the display screen based on the brightness adjustment parameter. Since the method in the present disclosure can determine the corresponding brightness adjustment parameter based on different brightness adjustment scenarios, in this way, it can not only solve the problem that the brightness of the display screen is reduced to the same brightness in the energy-saving mode, resulting in a poor user experience, but also can more flexibly adjust the display brightness of the display screen according to the different needs of the application program currently used by the user in the energy-saving mode. It can not only reduce the power consumption of the display screen and save power, but also ensure the display effect of the display screen during the user's use process and optimize the user experience.
[0084] According to an exemplary embodiment, such as Figure 2As shown in the figure, the brightness adjustment method in this embodiment includes:
[0085] S201. In the energy-saving mode, based on the brightness adjustment scenario associated with the application currently being displayed on the display screen, determine the brightness adjustment model.
[0086] S202. Obtain the ambient light information of the environment where the display screen is currently located.
[0087] S203. Based on the brightness adjustment model and the ambient light information, determine the brightness adjustment parameter.
[0088] S204. Use the product of the current brightness value and the brightness adjustment parameter as the target brightness value.
[0089] S205. Based on the target brightness value, reduce the brightness of the display screen.
[0090] Among them, step S201 is the same as step S101 in the above embodiment and will not be elaborated here.
[0091] In step S202, in one example, the ambient light information of the environment where the display screen is currently located can be monitored and obtained through a light sensor. Among them, the light sensor is also called a photosensor, which is a device in an electronic device used to monitor the ambient light information outside. The light sensor is generally set above the display screen. For example, the light sensor of a mobile phone or a tablet is generally located near the front camera. In actual applications, when the automatic brightness adjustment function of the electronic device is turned on, the light sensor can automatically reduce the brightness of the display screen according to the ambient light information of the environment where the electronic device is currently located. For example, when the ambient light information is strong, the brightness of the display screen is increased, or when the ambient light information is weak, the brightness of the display screen is reduced. The existence of the light sensor can not only bring the best visual effect to the user, but also save the power consumption of the display screen to a certain extent.
[0092] For the convenience of calculation, the ambient light information in this embodiment can be defined as the illumination intensity of the environment, simply referred to as illuminance. Illuminance refers to the degree to which an object is illuminated, and is generally determined by obtaining the luminous flux per unit area of the object. Among them, the source of illuminance can be natural light or artificial light (i.e., lighting), and a reasonable illuminance value can improve the visual function of the user.
[0093] In step S203, in different ambient light scenarios, the sensitivity of the human eye is different. For example, when the ambient light is relatively bright, the human eye is not sensitive, while when the ambient light is relatively dark, the human eye is sensitive. Based on the existing brightness adjustment methods, reducing the brightness of the display screen with the same power-saving coefficient is too direct, which easily increases the sensitivity of the human eye and results in a poor subjective experience for the user.
[0094] In one example, the brightness adjustment model can be set as a function with ambient light information as the independent variable and the brightness adjustment parameter as the dependent variable. That is to say, the brightness adjustment model in this embodiment is a function regarding the brightness adjustment parameter and the ambient light information. Therefore, the brightness adjustment parameter is affected by the illuminance. For example, the brightness adjustment parameter is directly proportional to the illuminance. When the illuminance increases, the brightness adjustment parameter becomes larger. Or, for another example, the brightness adjustment parameter is inversely proportional to the illuminance. When the illuminance increases, the brightness adjustment parameter becomes smaller.
[0095] In one example, the expression of the brightness adjustment model can be as follows:
[0096] Y = a * exp(b * X)
[0097] Where Y represents the brightness adjustment parameter, X represents the ambient light information (i.e., illuminance), a represents the first parameter, and b represents the second parameter. It should be noted that the first parameter and the second parameter can be set according to empirical values. Before the electronic device leaves the factory, the first parameter and the second parameter have been pre-stored in the electronic device. For example, when the brightness adjustment scenario is a dynamic display scenario, set a = 0.2 and b = 0.5. Or, for another example, when the brightness adjustment scenario is a static reading scenario, set a = 0.5 and b = 0.2, and so on.
[0098] As Figure 3 shown in the curve graph of a brightness adjustment model, the abscissa of this curve graph is the illuminance value, the ordinate is the brightness adjustment parameter, and in this curve graph, from top to bottom, it represents the brightness adjustment models corresponding to the static reading scenario, the default scenario, and the dynamic display scenario in sequence. In addition, from the curve shown in the figure, it can also be obtained that under the same illuminance, the magnitude relationship of the brightness adjustment parameters can be expressed as: static reading scenario > default scenario > dynamic display scenario. This also fully reflects that the applications in the dynamic display scenario are more power-consuming. Compared with the brightness adjustment parameter in the static reading scenario, the brightness adjustment parameter in the dynamic display scenario is smaller. Thus, in the energy-saving mode, the power consumption of the display screen can be reduced to provide sufficient electric energy for the dynamic display applications in the dynamic display scenario.
[0099] And, from the curve graph in the figure, it can be obtained that the brightness adjustment parameter is inversely proportional to the illuminance. That is, when the illuminance is smaller, the brightness adjustment parameter is larger, and when the illuminance is larger, the brightness adjustment parameter is smaller. In this way, when the illuminance is smaller (the human eye is more sensitive), the brightness adjustment parameter is larger, and the corresponding brightness of the display screen is brighter. While when the illuminance is larger (the human eye is less sensitive), the brightness adjustment parameter is smaller, and the corresponding brightness of the display screen is darker. This can effectively improve the sensitivity problem of the human eye, thereby enhancing the user's visual and experience feelings and protecting the user's eyes.
[0100] From the above expression, the first parameter and the second parameter in the expression are in a known state, and in step S202, the ambient light information of the current environment of the display screen has been obtained. That is to say, X in the expression is also known. Therefore, after knowing the above three parameters, the value of Y (brightness adjustment parameter) can be determined according to this expression. It can also be understood that substituting the ambient light information, the first parameter and the second parameter into the brightness adjustment model to determine the brightness adjustment parameter corresponding to this ambient light information.
[0101] In step S204, after determining the brightness adjustment parameter, the brightness adjustment parameter can be multiplied by the current brightness value of the display screen to obtain the final brightness value of the display screen. Among them, the value of the brightness adjustment parameter can be directly determined from the curve shown in Figure 3 the brightness adjustment parameter corresponding to the ambient light information ( Figure 3 the abscissa in Figure 3 the ordinate in
[0102] In step S205, the specific means of brightness adjustment based on the target brightness value is not limited in this embodiment.
[0103] In one example, the brightness adjustment process of the display screen is generally completed jointly by the software layer and the hardware layer of the display screen. Among them, the software layer will send the brightness difference to be adjusted during the brightness adjustment process to the hardware layer. After receiving the brightness difference sent by the software layer, the hardware layer will divide the brightness difference according to the preset calibration parameters and write the divided multiple brightness change values into the corresponding brightness nodes for brightness adjustment. Therefore, the brightness difference between the target brightness value and the current brightness value can be calculated and sent to the hardware layer, and then the hardware layer divides the brightness difference and writes the divided brightness change values into the brightness nodes to realize adjusting the display screen from the current brightness value to the target brightness value.
[0104] In another example, the brightness value of each display frame can also be determined in the software layer, and then each brightness value is sent frame by frame, so as to realize adjusting the display screen from the current brightness value to the target brightness value. Among them, the display frame here can specifically refer to the display frame whose brightness value changes compared with the previous frame.
[0105] In this embodiment, when performing brightness adjustment, the ambient light information of the current environment of the display screen is referred to, and the brightness adjustment parameter is determined based on the ambient light information. In this way, it can be ensured that the brightness of the display screen after adjustment is more suitable for human eyes to view and meets the sensitivity requirements of human eyes. For example, the brightness of the adjusted display screen makes people's eyes feel more comfortable and suitable.
[0106] According to an exemplary embodiment, such as Figure 4As shown, the brightness adjustment method in this embodiment includes:
[0107] S401. Detect the battery power.
[0108] S402. When the battery power is less than a preset threshold, start the energy-saving mode and obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen.
[0109] S403. Based on the brightness adjustment scenario associated with the application currently being displayed on the display screen, determine the brightness adjustment model.
[0110] S404. Based on the brightness adjustment model, determine the brightness adjustment parameter.
[0111] S405. Based on the brightness adjustment parameter, reduce the brightness of the display screen.
[0112] Among them, steps S403 - S405 are the same as steps S101 - S103 in the above embodiment, and will not be elaborated here.
[0113] In step S401, in one example, the battery power can be detected through a power listener to obtain the battery power and the battery power change situation in real time. For example, the control device of the electronic device can be connected to the battery protection board of the battery. There is a detection device on the battery protection board. The detection device can detect the current and voltage of the battery. The battery protection board can directly calculate the remaining battery power based on the detected current and voltage, and then upload it to the control device; the battery protection board can also directly transmit the detected battery parameters to the control device, and the control device calculates the remaining battery power by itself.
[0114] In addition, the electronic device can also display the detected power on the display screen through the operating system or a third-party application for the user to view. It is worth mentioning that the unit of the battery power detected in the related art is generally milliamperes. When the power information expressed in milliamperes per hour is displayed to the user, the user may not be able to understand it or the user needs to estimate the power information based on this. Therefore, when displaying the power information to the user for viewing, the conversion of the power unit is also required. For example, converting the power from milliamperes per hour to a percentage of power, so that the power can be clearly and simply displayed to the user.
[0115] In addition, this embodiment can also determine a power change model according to the detected battery power. Among them, the power change model can be a line graph with time as the abscissa and power as the ordinate. Through the power change model, the battery usage situation and the power change situation can be known, so that the user can plan the power. Further, the power consumption situations of different applications can also be displayed to the user so that the user can check the applications with more power consumption and then manage them.
[0116] In step S402, the energy-saving mode is a common function in electronic devices. It aims to and saves power consumption through multiple aspects, extending the battery life.
[0117] Among them, the above-mentioned multiple aspects may include:
[0118] Restrict background-running application programs and system services. For example, close background-running application programs or some irrelevant system services to save the power consumption of the central processing unit.
[0119] Restrict communication functions. For example, temporarily disable or reduce certain communication functions, such as automatically downloading and updating applications, push notifications, and emails. In this way, when the electronic device is in the standby or inactive state, the communication requirements will be reduced, thereby reducing the energy consumption.
[0120] Reduce the screen brightness and the refresh frequency of background applications. The energy-saving mode can reduce the screen brightness, which not only saves energy but also reduces the power consumption of the display screen. In addition, this mode can also reduce the refresh frequency of background applications, making the electronic device more energy-efficient when in use. These adjustments help reduce the overall power consumption of the electronic device and optimize energy utilization.
[0121] Turn off specific functions. The energy-saving mode allows some power-consuming functions to be automatically turned off, such as dynamic wallpapers, animation effects, and application updates. By turning off these functions, the electronic device can make more efficient use of the limited power, thereby achieving the power-saving effect. In this way, users can still use the necessary functions in the energy-saving mode while reducing additional power consumption.
[0122] User-defined optimization. The energy-saving mode of some electronic devices allows users to make custom settings according to their personal needs and usage habits. Through user-defined optimization, users can more precisely control the energy consumption of the electronic device to achieve a better power-saving effect. For example, users can choose to close specific application programs, adjust the threshold of the power alert, or select a specific energy-saving mode to meet their personal needs.
[0123] In the settings of existing electronic devices, when the battery power is less than a certain threshold, the energy-saving mode will be automatically activated. That is to say, the energy-saving mode can be automatically triggered and activated by the electronic device. In one example, the preset threshold can be used to represent the power threshold for triggering the energy-saving mode, that is, when the battery power is less than the preset threshold, the electronic device automatically activates the energy-saving mode. Conversely, when the battery power is greater than or equal to the preset threshold, the electronic device does not automatically activate the energy-saving mode. Therefore, when the battery power is less than the preset threshold, it indicates that the electronic device has activated the energy-saving mode. At this time, the brightness adjustment scenario associated with the application currently being displayed can be obtained first, and the brightness of the display screen can be reduced according to steps S403 - S405. Among them, the technical means for obtaining the application currently being displayed can refer to the content discussed in step S101 above.
[0124] In this embodiment, a scenario for brightness adjustment is given, that is, when the battery power is less than the preset threshold, brightness adjustment is performed. In this way, when the battery power is relatively low, the brightness of the display screen can be automatically adjusted, thereby saving the power consumption of the display screen and extending the battery life of the electronic device.
[0125] According to an exemplary embodiment, as Figure 5 shown, the brightness adjustment method in this embodiment includes:
[0126] S501. Based on the first instruction, activate the energy-saving mode and obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen.
[0127] S502. Based on the brightness adjustment scenario associated with the application currently being displayed on the display screen, determine the brightness adjustment model.
[0128] S503. Based on the brightness adjustment model, determine the brightness adjustment parameter.
[0129] S504. Based on the brightness adjustment parameter, reduce the brightness of the display screen.
[0130] Among them, steps S502 - S504 are the same as steps S303 - S305 in the above embodiment and will not be elaborated here.
[0131] In step S501, the first instruction is used to indicate the activation of the energy-saving mode. In the above embodiment, it is illustrated that when the battery power is less than the preset threshold, the energy-saving mode will be automatically activated, and then the brightness adjustment scenario associated with the application currently being displayed on the display screen will be obtained.
[0132] In one example, the preset threshold can be understood as the minimum power threshold for starting the energy-saving mode. However, in actual use, users usually make personalized settings according to personal needs, so that the energy-saving mode can be automatically started when the battery power is less than the second preset threshold. Among them, the second preset threshold can be greater than the preset threshold or less than the preset threshold. In this way, it is equivalent to resetting the minimum threshold for starting the energy-saving mode according to the user's wishes. For example, the preset threshold is 20%, but the user also sets "automatically start the energy-saving mode when the battery power is less than 60%." After that, when the battery power is below 60%, the energy-saving mode will be automatically started.
[0133] In another example, an electronic device is usually provided with the function of energy-saving mode, that is, the electronic device is provided with a function key for starting and stopping the function of energy-saving mode. Therefore, when the user wants to start / stop the energy-saving mode, he can do it manually. For example, the energy-saving mode function is displayed in the status bar in the form of a control, and the energy-saving mode is started in response to the user's first operation on the control. Among them, the first operation can be an operation such as a click or double-click performed by the user. It should be noted that the start / stop of the energy-saving mode in this example has nothing to do with the battery power, but is only related to the user's subjective will, that is, the user can start the energy-saving mode independently according to his own preferences, even if the remaining battery power is large and sufficient to support any operation of the electronic device, the user can still start the energy-saving mode.
[0134] In this embodiment, as long as the energy saving mode is activated, the brightness adjustment scene associated with the application currently being displayed on the display screen will be obtained accordingly, and the brightness adjustment will be performed step by step according to the steps. In this way, the restrictions on the scenes for brightness adjustment can be reduced, so that the brightness adjustment method in this embodiment is applicable to more scenes, and the practicality of the brightness adjustment method is improved.
[0135] For ease of understanding, the following Figure 6 The present disclosure is explained with specific embodiments:
[0136] S601, determine whether the energy-saving mode is activated. If yes, execute step S603; if no, execute step S602.
[0137] S602: Adjust the brightness of the display screen based on the user's operation or ambient light information.
[0138] S603: Acquire the application currently being displayed on the display screen and the ambient light information of the environment in which the display screen is currently located.
[0139] S604: Acquire a brightness adjustment scene associated with an application currently being displayed on the display screen.
[0140] S605: Determine a brightness adjustment model based on a brightness adjustment scenario associated with an application currently being displayed on the display screen.
[0141] S606: Determine brightness adjustment parameters based on the brightness adjustment model and the ambient light information.
[0142] S607: Determine a target brightness value of the display screen based on the brightness adjustment parameter and the current brightness value of the display screen.
[0143] S608: Reduce the brightness of the display screen based on the target brightness value.
[0144] In step S602, when the energy-saving mode is not started, it means that there is no need to automatically reduce the brightness of the display screen. In the application, the user can adjust the brightness of the display screen according to subjective will, for example, the user manually slides the brightness bar to increase or decrease the brightness of the display screen. Alternatively, if the electronic device automatically adjusts the brightness of the display screen based on the ambient light information under the automatic brightness adjustment function, for example, when the ambient light is bright, the brightness of the display screen is increased. On the contrary, when the ambient light is dark, the brightness of the display screen is reduced.
[0145] In step S603, in one example, the currently displayed application can be obtained through the foreground listening program, and the ambient light information of the current environment can be obtained through the light sensor. It should be noted that the two processes of obtaining the currently displayed application and obtaining the ambient light information of the current environment can be performed simultaneously or successively. Preferably, in order to shorten the brightness adjustment time, the above two processes can be performed simultaneously.
[0146] In addition, the foreground listening program or light sensor used to obtain data in the above two processes may be in a normally open state all the time, or may be turned on only during the two processes.
[0147] In step S607, the current brightness value of the display screen may be multiplied by the brightness adjustment parameter to obtain a target brightness value of the display screen.
[0148] The exemplary embodiment of the present disclosure provides a brightness adjustment device, such as Figure 7 As shown, a block diagram of a brightness adjustment device shown in the present disclosure.
[0149] The block diagram includes a first determination module 71, a second determination module 72 and an adjustment module 73. The first determination module 71 is used to determine a brightness adjustment model based on a brightness adjustment scenario associated with an application currently being displayed on the display screen in the energy saving mode. The second determination module 72 is used to determine a brightness adjustment parameter based on the brightness adjustment model. The adjustment module 73 is used to reduce the brightness of the display screen based on the brightness adjustment parameter.
[0150] In some embodiments, the first determination module 71 is specifically configured to:
[0151] Based on the pre-stored first configuration information and the identifier of the application, determine the brightness adjustment scenario associated with the application, where the first configuration information is used to characterize the association relationship between the identifier of the application and the brightness adjustment scenario;
[0152] Based on the brightness adjustment scenario, determine the brightness adjustment model.
[0153] In some embodiments, the second determination module 72 is specifically configured to:
[0154] Obtain the ambient light information of the environment where the display screen is currently located;
[0155] Based on the brightness adjustment model and the ambient light information, determine the brightness adjustment parameter;
[0156] Wherein, the brightness adjustment model is set as a function with the ambient light information as the independent variable and the brightness adjustment parameter as the dependent variable.
[0157] In some embodiments, the adjustment module 73 is specifically configured to:
[0158] Based on the brightness adjustment parameter and the current brightness value of the display screen, determine the target brightness value of the display screen;
[0159] Based on the target brightness value, reduce the brightness of the display screen.
[0160] In some embodiments, the adjustment module 73 is specifically configured to:
[0161] Use the product of the current brightness value and the brightness adjustment parameter as the target brightness value.
[0162] In some embodiments, the brightness adjustment device further includes a first processing module, configured to:
[0163] Detect the battery power;
[0164] When the battery power is less than a preset threshold, obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen.
[0165] In some embodiments, the brightness adjustment device further includes a second processing module, configured to:
[0166] Based on the first instruction, obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen;
[0167] Wherein, the first instruction is used to indicate the activation of the energy-saving mode.
[0168] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0169] Figure 8 It is a block diagram of an electronic device 800 shown according to an exemplary embodiment.
[0170] Referring to Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0171] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0172] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0173] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0174] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0175] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0176] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0177] The sensor component 814 includes one or more sensors for providing an assessment of the various aspects of the status of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0178] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 may access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0179] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0180] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0181] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the brightness adjustment method provided by the exemplary embodiments of the present disclosure.
[0182] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0183] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A brightness adjustment method, characterized in that, Including: In the energy-saving mode, determine a brightness adjustment model based on the brightness adjustment scenario associated with the application currently being displayed on the display screen; Determine a brightness adjustment parameter based on the brightness adjustment model; Reduce the brightness of the display screen based on the brightness adjustment parameter.
2. The brightness adjustment method according to claim 1, wherein The determining the brightness adjustment model based on the brightness adjustment scenario associated with the application currently being displayed on the display screen includes: Determine the brightness adjustment scenario associated with the application based on pre-stored first configuration information and the identifier of the application, where the first configuration information is used to characterize the association relationship between the identifier of the application and the brightness adjustment scenario; Determine the brightness adjustment model based on the brightness adjustment scenario.
3. The brightness adjustment method according to claim 1, wherein The determining the brightness adjustment parameter based on the brightness adjustment model includes: Obtain the ambient light information of the environment where the display screen is currently located; Determine the brightness adjustment parameter based on the brightness adjustment model and the ambient light information; Wherein, the brightness adjustment model is set as a function with the ambient light information as the independent variable and the brightness adjustment parameter as the dependent variable.
4. The brightness adjustment method according to claim 3, wherein The reducing the brightness of the display screen based on the brightness adjustment parameter includes: Determine the target brightness value of the display screen based on the brightness adjustment parameter and the current brightness value of the display screen; Reduce the brightness of the display screen based on the target brightness value.
5. The brightness adjustment method according to claim 4, wherein The determining the target brightness value of the display screen based on the brightness adjustment parameter and the current brightness value of the display screen includes: Use the product of the current brightness value and the brightness adjustment parameter as the target brightness value.
6. The brightness adjustment method according to any one of claims 1 to 5, characterized in that The brightness adjustment method further includes: Detect the battery power; When the battery power is less than a preset threshold, obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen.
7. The brightness adjustment method according to claim 6, wherein The brightness adjustment method further includes: Obtain the brightness adjustment scenario associated with the application currently being displayed on the display screen based on a first instruction; Wherein, the first instruction is used to indicate the start of the energy-saving mode.
8. A brightness adjustment device, characterized in that, Including: A first determination module, configured to determine a brightness adjustment model based on the brightness adjustment scenario associated with the application currently being displayed on the display screen in the energy-saving mode; A second determination module, configured to determine a brightness adjustment parameter based on the brightness adjustment model; An adjustment module, configured to reduce the brightness of the display screen based on the brightness adjustment parameter.
9. An electronic device, characterized in that, Including: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the brightness adjustment method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the brightness adjustment method according to any one of claims 1-7.