Screen brightness adjustment method and electronic device
By using DC dimming at high brightness and combining fitted DC dimming and PWM dimming at low brightness, the problems of PWM flicker and DC color inhomogeneity are solved, achieving low-power screen brightness adjustment and improved display effect.
Patent Information
- Application Number
- PCT/CN2024/102742
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2026-01-02
AI Technical Summary
In existing technologies, PWM dimming for adjusting screen brightness suffers from high power consumption and flicker, while DC dimming suffers from uneven color distribution, resulting in poor display quality, especially at low brightness levels.
The system employs DC dimming at high brightness and combines fitted DC dimming and PWM dimming at low brightness. The screen brightness is adjusted by controlling the power or voltage/current of the control circuit, and grayscale processing is used at low brightness to avoid flicker and uneven color.
It achieves low-power screen brightness adjustment, avoids the color unevenness problems of PWM flicker and DC dimming, meets the display effect requirements under low brightness, and reduces the power consumption of electronic devices.
Smart Images

Figure CN2024102742_02012026_PF_FP_ABST
Abstract
Description
Method for adjusting screen brightness and electronic device TECHNICAL FIELD
[0001] The present application relates to the technical field of terminals, and in particular to a method for adjusting screen brightness and an electronic device. BACKGROUND
[0002] Many electronic devices have the function of automatically adjusting screen brightness. When the ambient light brightness is high, the screen brightness is automatically increased. When the ambient light brightness is low, the screen brightness is automatically decreased. In this way, the user's eye discomfort when using the electronic device can be reduced.
[0003] The electronic device can also adjust the screen brightness in response to the user's operation of adjusting the screen brightness.
[0004] Generally, when the screen brightness is low, the electronic device adjusts the screen brightness in a pulse width modulation (PWM) mode. However, the PWM mode has the problem of high power consumption.
[0005] SUMMARY
[0006] The embodiments of the present application provide a method for adjusting screen brightness and an electronic device, which can adjust the screen brightness in a low-power-consumption mode.
[0007] To achieve the above object, the embodiments of the present application adopt the following technical solutions:
[0008] In a first aspect, a method for adjusting screen brightness is provided. The method comprises: after entering a preset mode, displaying an interface corresponding to the preset mode; for example, the preset mode is a full-screen AOD mode, and full-screen AOD is displayed; for example, the preset mode is a super power saving mode, and a preset interface is displayed. In the preset mode, when the ambient light brightness is greater than a first value, the screen backlight brightness is greater than a first backlight brightness value; when the ambient light brightness is equal to the first value, the screen backlight brightness is equal to the first backlight brightness value; and when the ambient light brightness is less than the first value, the screen backlight brightness is equal to the first backlight brightness value.
[0009] In the method, when the ambient light brightness is greater than the first value, the screen brightness is adjusted in a DC dimming mode. In the DC dimming mode, the screen backlight brightness is directly adjusted by controlling the size of the circuit power (such as adjusting the voltage or current) input to the screen, so as to adjust the screen brightness. The greater the ambient light brightness, the greater the backlight brightness, and the brighter the corresponding screen brightness. The smaller the ambient light brightness, the smaller the backlight brightness, and the dimmer the corresponding screen brightness. When the ambient light brightness is equal to the first value, the backlight brightness is no longer adjusted. When the ambient light brightness is less than the first value, the backlight brightness is maintained at the value when the ambient light brightness is equal to the first value. Optionally, when the ambient light brightness is less than the first value, the screen brightness can be adjusted by other methods.
[0010] That is, when the ambient light brightness is less than or equal to the first value, neither DC dimming nor PWM dimming (when PWM dimming, the backlight brightness is the peak value of the backlight brightness) is used, avoiding the color non-uniformity problem of DC dimming at low brightness, and avoiding the high power consumption and flicker problem of PWM dimming.
[0011] In combination with the first aspect, in a possible implementation, when the ambient light brightness is less than or equal to a second value, the backlight of the screen is periodically turned on and off; when the backlight of the screen is turned on, the backlight brightness of the screen is the peak value of the backlight brightness; and the second value is less than the first value.
[0012] In this method, PWM dimming is used when the ambient light brightness is less than the second value (i.e., the screen brightness is less than the second threshold), avoiding the poor display effect problems such as color cast and residual image of the fitting DC dimming at low screen brightness.
[0013] In combination with the first aspect, in a possible implementation, when the ambient light brightness is greater than the first value, the gray scale of the first pixel point in the interface is the first gray scale; when the ambient light brightness is equal to the first value, the gray scale of the first pixel point in the interface is the first gray scale; and when the ambient light brightness is less than the first value, the gray scale of the first pixel point in the interface is less than the first gray scale.
[0014] In this method, when the ambient light brightness is greater than the first value, the screen brightness is adjusted by DC dimming, i.e., the backlight brightness of the screen is adjusted, and the gray scale of the pixel point in the interface does not change during the DC adjustment. When the ambient light brightness is less than the first value, the backlight brightness of the screen is unchanged, and the screen brightness is reduced by reducing the gray scale of the pixel point in the interface. In this implementation, when the ambient light brightness is less than the first value, the backlight brightness of the screen is a fixed value, the gray scale of the display image is processed by software, without the need to change the power, voltage, and current loaded on the hardware circuit, or to change the hardware, achieving convenience and low cost.
[0015] Moreover, in the scene of the preset modes such as the super power saving mode and the full screen AOD mode, the application interface is composed of relatively simple details, the picture tone is relatively uniform or dark, and the demand for display effect is relatively low. The screen brightness adjustment method provided in the embodiments of the present application can meet the display effect demand of the electronic device.
[0016] In a possible implementation, the ambient light brightness is a first ambient light value, the first ambient light value is less than the first value, and fitting DC dimming is used. Specifically, a gray scale compression ratio coefficient is determined according to the first ambient light value, and the gray scale of the first pixel point in the interface is set to a second gray scale, where the second gray scale is equal to the first gray scale multiplied by the gray scale compression ratio coefficient. The gray scale compression ratio coefficient = the first ambient light value / the first value.
[0017] In a possible implementation, the operating system of the electronic device includes a surface composition module and a hardware compositor. After the surface composition module obtains the interface layer data of the foreground running application, the surface composition module sends the interface layer data of the foreground running application and the grayscale compression proportionality coefficient to the hardware compositor. In this way, the hardware compositor can generate the interface image processed by grayscale compression according to the interface layer data.
[0018] The method uses the original grayscale compression processing of the HWC, and only needs to send the proportionality coefficient of the grayscale compression processing to the HWC, without changing the original processing mechanism of the HWC. That is, the software mode is used to adjust the screen brightness, without changing the processing logic of the hardware.
[0019] With reference to the first aspect, in a possible implementation, when the ambient light brightness is a second ambient light value, the backlight brightness of the screen is a first backlight value; when the ambient light brightness is a third ambient light value, the backlight brightness of the screen is a second backlight value; wherein the second ambient light value is greater than the third ambient light value, the third ambient light value is greater than the first value, the first backlight value is greater than the second backlight value, and the second backlight value is greater than the first backlight brightness value.
[0020] That is, when the ambient light brightness is greater than the first value, the DC dimming is used, and the greater the ambient light brightness, the greater the backlight brightness, that is, the higher the screen brightness.
[0021] The first backlight value and the second backlight value are less than or equal to the peak value of the backlight brightness.
[0022] With reference to the first aspect, in a possible implementation, when the ambient light brightness is the third ambient light value, the brightness of the screen is adjusted by the DC dimming.
[0023] With reference to the first aspect, in a possible implementation, adjusting the brightness of the screen by the DC dimming includes: setting the backlight brightness of the screen to the second backlight value; when the backlight brightness of the screen is the second backlight value, the brightness of the screen is a first screen brightness value, and the first screen brightness value is determined according to the third ambient light value.
[0024] With reference to the first aspect, in a possible implementation, when the ambient light brightness is less than or equal to the second value, the brightness of the screen is adjusted by the PWM dimming.
[0025] In the method, the PWM dimming is used when the ambient light brightness is less than the second value (that is, the screen brightness is less than the threshold two), avoiding the problem of poor display effect such as color deviation and residual image when the DC dimming is used at a low screen brightness.
[0026] In combination with the first aspect, in a possible implementation, after exiting the preset mode, a desktop is displayed; when the ambient light brightness is greater than a first value, the screen backlight brightness is greater than a first backlight brightness value; when the ambient light brightness is equal to the first value, the screen backlight brightness is equal to the first backlight brightness value; when the ambient light brightness is less than the first value, the screen backlight is periodically turned on and off; when the screen backlight is turned on, the screen backlight brightness is a backlight brightness peak value.
[0027] In the method, when the preset mode is exited, when the ambient light brightness is greater than a first value, DC dimming is used; when the ambient light brightness is less than the first value, PWM dimming is used.
[0028] In the preset mode, the application interface is relatively simple in composition, less in details, relatively unified in picture tone, or relatively dark in picture tone, and the demand for display effect is relatively low. When the ambient brightness is relatively low, the display effect deterioration problem caused by adjusting the screen brightness in the gray scale compression mode is acceptable. After the preset mode is exited, the picture of the application interface is relatively complex, and the screen brightness is no longer adjusted in the gray scale compression mode, thereby avoiding the problem of poor image display effect.
[0029] The preset mode is a full-screen off-screen display AOD mode or a super power saving mode.
[0030] The second aspect provides a screen brightness adjustment method, which comprises the following steps: an electronic device enters a preset mode. The electronic device acquires an ambient light brightness, and determines a screen brightness target value according to the ambient light brightness. If the screen brightness target value is greater than or equal to a threshold one, DC dimming is used to adjust the screen brightness; if the screen brightness target value is less than the threshold one, fitting DC dimming is used to adjust the screen brightness.
[0031] The DC dimming used to adjust the screen brightness comprises the following steps: the voltage value or the current value input to the screen is calculated according to the screen brightness target value, and the voltage value or the current value of the screen is set so that the screen backlight brightness is a backlight brightness target value.
[0032] The fitting DC dimming used to adjust the screen brightness comprises the following steps: when the screen backlight brightness is kept at the backlight brightness target value, the screen brightness target value and the threshold one are used to perform gray scale compression processing on each pixel point in the display image of the screen of the electronic device. The pixel value of the i-th pixel point in the display image after the gray scale compression processing is equal to the pixel value of the i-th pixel point in the display image*(screen brightness target value / threshold one) = (current ambient light brightness / ambient light brightness first threshold).
[0033] The third aspect provides an electronic device having a function of implementing the method of the first aspect. The function can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the above functions.
[0034] In a fourth aspect, an electronic device is provided, comprising a processor, a memory and a screen, the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions stored in the memory to cause the electronic device to perform the method according to any one of the possible implementation manners of the first aspect.
[0035] In a fifth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores instructions, which, when executed on a computer, cause the computer to perform the method according to any one of the possible implementation manners of the first aspect.
[0036] In a sixth aspect, a computer program product is provided, and the computer program product contains instructions, which, when executed on a computer, cause the computer to perform the method according to any one of the possible implementation manners of the first aspect.
[0037] The technical effects brought by the possible implementation manners of the third aspect to the sixth aspect can refer to the technical effects brought by the different implementation manners of the first aspect, and will not be described here. BRIEF DESCRIPTION OF DRAWINGS
[0038] FIG. 1 is a schematic diagram of a method for controlling the brightness of a screen of an electronic device;
[0039] FIG. 2 is a schematic diagram of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0040] FIG. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
[0041] FIG. 4 is a schematic diagram of a flow of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0042] FIG. 5A is a schematic diagram of a scenario example of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0043] FIG. 5B is a schematic diagram of a scenario example of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0044] FIG. 6 is a schematic diagram of a scenario example of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0045] FIG. 7 is a schematic diagram of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0046] FIG. 8 is a schematic diagram of a scenario example of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0047] FIG. 9 is a schematic diagram of a scenario example of a method for adjusting the brightness of a screen according to an embodiment of the present application;
[0048] FIG. 10 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
[0049] FIG. 11A is a flowchart of a method for adjusting screen brightness according to an embodiment of the present application;
[0050] FIG. 11B is a flowchart of a method for adjusting screen brightness according to an embodiment of the present application;
[0051] FIG. 12 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0052] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing the specific embodiments of the present application, and are not intended to be limiting to the present application. As used in the specification and the appended claims of the present application, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and / or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. The term “and / or” used in the context of the description of the embodiments of the present application refers to three relationships: for example, A and / or B means that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural.
[0053] In the present specification, the reference to “one embodiment” or “some embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. The appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in additional embodiments,” and so on, in various places in the specification are not necessarily all referring to the same embodiment, unless otherwise specifically stated. Rather, the term “in one embodiment” or “in some embodiments” means “in at least one embodiment” and the terms “in one embodiment” or “in some embodiments” or “in other embodiments” or “in additional embodiments” do not necessarily refer to the same embodiment, unless otherwise specifically stated. The terms “comprise,” “comprising,” “include,” “including,” “have,” “has,” and “contain,” “containing,” or variants thereof, mean “including but not limited to,” unless otherwise specifically indicated. The term “connected” includes both direct and indirect connections, unless otherwise specifically indicated. “First,” “second,” and the like do not necessarily mean “primary” or “secondary” unless otherwise specifically stated, and are used merely as a nomenclature to distinguish one technical feature from another.
[0054] In the embodiments of the present application, the word "exemplary" or "for example" is used to mean "an example of" or "an example, only. Any embodiment or design solution described in the embodiments of the present application as "exemplary" or "for example" should not be construed as being more preferred or advantageous than other embodiments or design solutions. In fact, the word "exemplary" or "for example" is used to present concepts in a concrete manner.
[0055] The electronic device can automatically adjust the screen brightness according to the ambient light brightness, or adjust the screen brightness in response to a user operation. Adjusting the screen brightness is actually controlling the display brightness of the screen, that is, controlling the screen light perceived by the user, which can also be referred to as dimming. At present, for an organic light-emitting diode (OLED) screen, the widely used dimming methods include PWM dimming, DC (direct current dimming) dimming, and the like.
[0056] In the PWM dimming dimming method, the brightness of the screen backlight is fixed, and the brightness of the screen is adjusted by controlling the proportion of the backlight on time and the backlight off time in each period by periodically turning on and off the backlight. For example, the screen displays a brightness of 75% of the highest brightness, which is achieved by turning on the backlight for 75% of the time and turning off the backlight for 25% of the time in each period. Due to the persistence of vision of the human eye, the screen presents to the human eye will be always displayed at a brightness of 75%. The circuit structure for implementing PWM dimming is simple, and there is no screen display color cast problem using PWM dimming. However, PWM dimming is achieved by alternating screen on and off, which can cause flicker. Generally, this flicker is not easy to be perceived by the user, but it can cause visual fatigue after the user looks at the screen for a long time.
[0057] DC dimming is to directly adjust the brightness of the screen backlight by controlling the size of the circuit power (such as adjusting the voltage or current) input to the screen, to achieve the control of the screen brightness. The OLED screen has independent pixels, and in an implementation, a uniform voltage or current is applied to each light-emitting point of the OLED, and adjusting the input voltage or current can achieve the adjustment of the brightness of each pixel of the OLED. The screen backlight brightness described in the embodiments of the present application refers to the brightness of each pixel of the OLED. In the DC dimming method, the response of each pixel of the OLED screen to the voltage or current is different after adjusting the voltage or current each time, which can cause the phenomenon of color unevenness. Especially, when the input voltage (or current) is less than a certain value, the phenomenon of color unevenness will be more obvious.
[0058] In actual implementation, there is also a kind of DC dimming. For example, the effect of DC dimming is simulated by very high frequency on-off power, which is a kind of improved PWM dimming. For example, a variable gray layer is used as a mask on the basis of full brightness display of the screen, and the screen brightness is reduced by controlling the change of the gray layer by software. The DC dimming described in the embodiments of the present application can include the DC dimming in the conventional technology.
[0059] In an implementation, with reference to FIG. 1, when the screen brightness is greater than or equal to a preset threshold one, DC dimming is used: the brightness of the screen backlight is adjusted by controlling the size of the circuit power input to the screen, and the screen brightness is proportional to the backlight brightness, thereby avoiding the problem of flicker when PWM dimming is used. When the screen brightness is less than the preset threshold one, PWM dimming is used: the brightness of the screen backlight is fixed (for example, the brightness of the screen backlight corresponding to the highest screen brightness), and the screen brightness is adjusted by controlling the on and off time of the backlight in each period, thereby avoiding the problem of poor display effect when DC dimming is used at low screen brightness. This implementation combines the advantages of DC dimming and PWM dimming. However, PWM dimming also has the defect of high power consumption, and this implementation has the problem of high power consumption when the screen brightness is less than the threshold one.
[0060] The embodiments of the present application provide a screen brightness adjustment method and an electronic device. With reference to FIG. 2, when the screen brightness is greater than or equal to a preset threshold one, DC dimming is used, that is, the brightness of the screen backlight is directly adjusted by controlling the size of the circuit power (for example, adjusting the voltage or current) input to the screen, thereby realizing control of the screen brightness. When the screen brightness is less than the preset threshold one and greater than a preset threshold two, a fixed input power (fixed voltage or current) is used, so that the brightness of the screen backlight is kept at a constant value (for example, the brightness of the screen backlight corresponding to the threshold one), and the gray scale of the pixel is lowered. The gray scale refers to the division of the brightness change between the brightest and darkest screens into different levels, and each level represents a brightness change. The lower the gray scale, the lower the brightness. In this way, the screen brightness is reduced without reducing the brightness of the screen backlight. In the embodiments of the present application, this dimming method is referred to as pseudo-DC dimming. The threshold one is greater than the threshold two, and the threshold two is greater than or equal to 0. The threshold one is a preset value, for example, the threshold one can be 55 nit, 60 nit, 65 nit, 70 nit, 75 nit, etc. The threshold two is a preset value, for example, the threshold two can be 3 nit, 5 nit, 7 nit, etc. In this way, in the case of low screen brightness (screen brightness less than the threshold one), the problem of high power consumption caused by PWM dimming can be avoided, and the power consumption of the electronic device is reduced. In addition, the fixed input power (fixed voltage or current) is used, thereby avoiding the problem of poor screen display effect when the voltage or current is low in DC dimming.
[0061] Optionally, in some embodiments, when the threshold two is greater than 0, in the case that the screen brightness is less than the threshold two, PWM dimming is adopted, that is, the screen backlight brightness is fixed (for example, the backlight brightness corresponding to the highest screen brightness), and the screen brightness is adjusted by controlling the on-time and off-time of the backlight in each period. For example, the threshold two is a small value, that is, PWM dimming is adopted when the screen brightness is very small. Since the case of very small screen brightness occurs less frequently, the power consumption caused by PWM dimming when the screen brightness is very small can be acceptable. Moreover, since the smaller the screen brightness, the worse the effect of controlling the screen brightness by voltage or current, PWM dimming can be adopted when the screen brightness is very small (less than the threshold two) to avoid the case that the screen display effect is too poor to affect the user experience.
[0062] The method for adjusting screen brightness provided by the embodiments of the present application can be applied to electronic devices with the function of controlling screen brightness. The electronic devices can include mobile phones, tablet computers, notebook computers, personal computers (PC), ultra-mobile personal computers (UMPC), handheld computers, netbooks, smart home devices (such as smart televisions, smart screens, large screens, smart speakers, smart air conditioners, etc.), personal digital assistants (PDA), wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices, virtual reality devices, etc., and the embodiments of the present application do not make any limitation in this regard.
[0063] For example, FIG. 3 shows a schematic diagram of a hardware structure of the electronic device. As shown in FIG. 3, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a camera 191, and a display screen 192, etc. The sensor module 180 can include a pressure sensor, a fingerprint sensor, a touch sensor, an ambient light sensor, etc.
[0064] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software or a combination of software and hardware.
[0065] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0066] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0067] The memory in the processor 110 can also be configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. Avoiding repeated access reduces the waiting time of the processor 110, thereby improving the efficiency of the system.
[0068] In some embodiments, the processor 110 can include one or more interfaces. The interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0069] The USB interface 130 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0070] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.
[0071] The charging management module 140 is used to receive charging input from a charger. The power management module 141 is used to connect the battery 142 and the charging management module 140. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display 192, the camera 191, and the wireless communication module 160, etc.
[0072] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0073] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.
[0074] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 performs various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program (e.g., a sound play function, an image play function, etc.) required for at least one function, etc. The data storage area can store data (e.g., audio data, a phone book, etc.) created during the use of the electronic device 100, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0075] The electronic device 100 can implement an audio function through the audio module 170 and an application processor, etc. For example, music play, recording, etc.
[0076] The electronic device 100 can implement a photographing function through an ISP, a camera 191, a video codec, a GPU, a display 192, and an application processor, etc.
[0077] The electronic device 100 implements a display function through a GPU, a display 192, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display 192 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0078] The display 192 is used to display images, videos, etc. The display 192 includes a display panel. The display panel can use an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 can include 1 or N displays 192, N being a positive integer greater than 1.
[0079] The pressure sensor is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be disposed on the display 192. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the force according to the change in the capacitance. When a touch operation is applied to the display 192, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions.
[0080] The fingerprint sensor is configured to acquire a fingerprint. The electronic device 100 can use the acquired fingerprint characteristics to implement fingerprint unlocking, access application locks, take photos with the fingerprint, answer incoming calls with the fingerprint, and the like.
[0081] The touch sensor, also referred to as a "touch panel", can be disposed on the display 192, and the touch sensor and the display 192 together form a touch screen, also referred to as a "touch screen". The touch sensor is configured to detect a touch operation applied to or near the touch sensor. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display 192. In other embodiments, the touch sensor can also be disposed on the surface of the electronic device 100, which is different from the position of the display 192.
[0082] The ambient light sensor is configured to sense the ambient light brightness. The electronic device 100 can adaptively adjust the screen brightness of the display 192 according to the sensed ambient light brightness.
[0083] The method for adjusting the screen brightness provided by the embodiments of the present application is described in detail below.
[0084] In some embodiments, after the electronic device enters the preset mode, the electronic device can automatically adjust the screen brightness according to the ambient light brightness, or adjust the screen brightness in response to a user operation. During the adjustment of the screen brightness, in a case where the screen brightness is greater than or equal to a preset threshold one, DC dimming is used; in a case where the screen brightness is less than the preset threshold one and greater than a preset threshold two, fitting DC dimming is used.
[0085] For example, as shown in FIG. 4, the method for adjusting the screen brightness provided by the embodiments of the present application can include:
[0086] S401, the electronic device enters a preset mode.
[0087] For example, the preset mode includes a super power saving mode. The super power saving mode is a power saving function of the electronic device, which reduces power consumption by limiting background application activities, reducing or turning off part of visual effects and system prompt sound, thereby prolonging standby time. In the super power saving mode, the electronic device adopts a more stringent background application control strategy, turns off all system switches except WLAN and data service, and enters a preset interface. In an example, the wallpaper of the preset interface is a preset picture, the background color of the preset picture is dark (for example, black), and the image of the preset picture is relatively simple. The preset interface does not include or includes a small number of application icons by default, and only allows to add part of the application icons for use.
[0088] In an example, the user can make the electronic device enter the super power saving mode through the system settings. For example, the electronic device is a mobile phone, as shown in FIG. 5A, the mobile phone displays a desktop interface 501, and the desktop interface 501 includes a plurality of application icons. In response to the user's click operation on the "Settings" icon 502, the mobile phone displays a "Settings" interface 503. The "Settings" interface 503 includes a plurality of setting options, for example, the "Settings" interface 503 includes a "Battery" option 504. In response to the user's click operation on the "Battery" option 504, the mobile phone displays a "Battery" interface 505. For example, the "Battery" interface 505 includes a "Performance Mode" option, a "Power Saving Mode" option, a "Super Power Saving Mode" option, and the like. The user can click the "Performance Mode" option to make the mobile phone enter the performance mode, the user can click the "Power Saving Mode" option to make the mobile phone enter the power saving mode, and the user can click the "Super Power Saving Mode" option to make the mobile phone enter the super power saving mode. For example, in response to the opening operation of the switch of the "Super Power Saving Mode" option 506, the mobile phone enters the super power saving mode, and the mobile phone displays a desktop interface 507 of the super power saving mode. For example, the wallpaper of the desktop interface 507 of the super power saving mode has a dark background, and the elements in the desktop interface are less. For example, the desktop interface 507 of the super power saving mode includes a "Contacts" icon, a "Phone" icon, an "Information" icon, and further includes an "Add" button 508. The user can add the application allowed to run in the super power saving mode of the mobile phone by clicking the "Add" button 508.
[0089] In another example, after the power of the electronic device is less than or equal to the preset power threshold, the electronic device sends a prompt information to prompt the user to set the electronic device to enter the super power saving mode. For example, as shown in FIG. 5B, after the power of the mobile phone is less than or equal to the preset power (for example, 10%), the mobile phone displays a prompt window 511, and the prompt window 511 includes the prompt information "the power of the mobile phone is extremely low, do you want to turn on the super power saving mode?". The prompt window 511 also includes a "confirm" button 512 and a "cancel" button 513. As shown in FIG. 5B, in response to the user's click operation on the "confirm" button 512, the mobile phone enters the super power saving mode, and the mobile phone displays the desktop interface 507 of the super power saving mode.
[0090] For example, the preset mode includes an always on display (AOD) mode. After entering the full-screen AOD mode, the electronic device displays a full-screen AOD interface. In the full-screen AOD interface, a wallpaper or a custom photo is continuously displayed, and the full-screen AOD interface can also include date, time, notification information, etc. The full-screen AOD mode can also provide magic lock screen, intelligent table setting function, etc.
[0091] In an example, the full-screen AOD interface is displayed when the mobile phone does not detect user operation on the mobile phone within a preset time period. In an example, when the mobile phone displays a user interface (for example, a desktop interface), in response to the user pressing the power key, the mobile phone displays the full-screen AOD interface. For example, as shown in FIG. 6, the mobile phone displays a full-screen AOD interface 601, and the full-screen AOD interface 601 includes a wallpaper, time, date, power information, etc.
[0092] S402, the electronic device determines a screen brightness target value according to the ambient light brightness, or determines the screen brightness target value in response to a user operation. If the screen brightness target value is greater than or equal to a threshold one, perform S403; if the screen brightness target value is less than the threshold one and greater than a threshold two, perform S404; if the screen brightness target value is less than or equal to the threshold two, perform S405.
[0093] After the electronic device enters the preset mode, for example, when the electronic device is in the super power saving mode or displays the full-screen AOD interface, the electronic device can automatically adjust the screen brightness according to the ambient light brightness, or adjust the screen brightness in response to a user operation.
[0094] In an example, the electronic device determines a screen brightness target value according to the ambient light brightness.
[0095] In an implementation, the electronic device can acquire the ambient light brightness via the ambient light sensor, and determine the screen brightness target value according to the ambient light brightness. For example, the screen brightness target value is determined to be equal to the value of the ambient light brightness; for example, the screen brightness target value is determined to be proportional to the value of the ambient light brightness; for example, the screen brightness target value is determined to be the value of the ambient light brightness plus a preset value, etc. For example, the electronic device acquires the ambient light brightness value 1, and determines to set the screen brightness to the screen brightness value 1. The electronic device acquires the ambient light brightness value 2, and determines to set the screen brightness to the screen brightness value 2. Wherein, the ambient light brightness value 1 is greater than the ambient light brightness value 2, and the screen brightness value 1 is greater than the screen brightness value 2. In an example, when the ambient light brightness is the ambient light brightness first threshold (first value), the corresponding screen brightness is the threshold one. When the ambient light brightness is the ambient light brightness second threshold (second value), the corresponding screen brightness is the threshold two.
[0096] In an example, the electronic device adjusts the screen brightness in response to the user operation. For example, the electronic device displays the brightness adjustment bar, and the user can drag the brightness adjustment bar to change the light-dark ratio. The electronic device determines the corresponding screen brightness target value according to the light-dark ratio corresponding to the brightness adjustment bar after the user drags the brightness adjustment bar. For example, in response to the operation of the user dragging the brightness adjustment bar, the electronic device determines that the light-dark ratio corresponding to the brightness adjustment bar is 40%, and then determines that the screen brightness target value is 40% of the highest screen brightness value.
[0097] In an implementation, after the electronic device determines the screen brightness, the electronic device determines the application program running in the foreground. If it is determined that the application program running in the foreground is the application program corresponding to the preset mode, the electronic device executes S403 when the screen brightness target value is greater than or equal to the threshold one, executes S404 when the screen brightness target value is less than the threshold one and greater than the threshold two, and executes S405 when the screen brightness target value is less than or equal to the threshold two.
[0098] Wherein, the application program running in the foreground includes: the window of the application program is displayed on the display screen of the electronic device, and the window of the application program is not blocked by the window of other application programs; or, the window of the application program is the window that acquires the focus.
[0099] For example, the preset mode is the super power saving mode, and the application program corresponding to the preset mode is the super power saving management application. For example, the preset mode is the full-screen AOD mode, and the application program corresponding to the preset mode is the full-screen AOD application.
[0100] S403, the electronic device adopts the DC dimming to make the screen brightness be the screen brightness target value.
[0101] For example, when the screen brightness target value determined in S402 is greater than or equal to the threshold one, the electronic device adopts the DC dimming to make the screen brightness be the screen brightness target value. In an example, when the ambient light brightness is greater than the ambient light brightness first threshold, the screen brightness target value is greater than the threshold one.
[0102] In an implementation, the electronic device calculates a corresponding circuit power value according to the screen brightness target value, sets the circuit power input to the screen to be the circuit power value, and controls the backlight brightness of the screen to be the backlight brightness target value, so that the screen brightness can be the screen brightness target value. The backlight brightness target value can be determined according to the screen brightness target value. In an example, the backlight brightness is proportional to the screen brightness. In an example, the backlight brightness is equal to the screen brightness. In an example, the backlight brightness is the screen brightness plus a preset value.
[0103] In an implementation, the electronic device calculates a corresponding voltage value according to the screen brightness target value, sets the voltage input to the screen to be the voltage value, and controls the backlight brightness of the screen to be the screen brightness target value, so that the screen brightness can be the screen brightness target value.
[0104] In an implementation, the electronic device calculates a corresponding current value according to the screen brightness target value, sets the current input to the screen to be the current value, and controls the backlight brightness of the screen to be the screen brightness target value, so that the screen brightness can be the screen brightness target value.
[0105] It can be understood that, in the DC dimming mode, the greater the circuit power (or voltage or current) value input to the screen, the greater the backlight brightness value of the screen, and the greater the screen brightness value, that is, the higher the screen brightness; the smaller the circuit power (or voltage or current) value input to the screen, the smaller the backlight brightness value of the screen, and the smaller the screen brightness value, that is, the lower the screen brightness. When the ambient light brightness is the ambient light brightness first threshold, the screen brightness is determined to be the threshold one, and the corresponding backlight brightness is the backlight brightness threshold.
[0106] The specific way of setting the circuit power (or voltage or current) input to the screen to control the backlight brightness of the screen can refer to the conventional technology, and the embodiments of the present application do not limit this.
[0107] S404, the electronic device adopts the fitting DC dimming to make the screen brightness be the screen brightness target value.
[0108] For example, when the screen brightness target value determined in S402 is less than the threshold one and greater than the threshold two, the electronic device adopts the fitting DC dimming to make the screen brightness be the screen brightness target value.
[0109] In one implementation, the value controlling the backlight brightness of the screen is a backlight brightness threshold (first backlight brightness value), which is the backlight brightness corresponding to the screen brightness being at threshold one.
[0110] With the screen backlight brightness value set at the backlight brightness threshold, grayscale processing is performed on each pixel in the display image of the electronic device screen based on the screen brightness target value and the threshold.
[0111] In one implementation, the pixel value of the i-th pixel in the displayed image after grayscale processing = the pixel value of the i-th pixel in the displayed image * (screen brightness target value / threshold one) = (current ambient light brightness / ambient light brightness first threshold);
[0112] In one example, each pixel in the displayed image can be processed separately in the three dimensions of RGB.
[0113] For example, after grayscale processing, the R channel pixel value of the i-th pixel in the displayed image = the R channel pixel value of the i-th pixel in the displayed image * (screen brightness target value / threshold).
[0114] After grayscale processing, the G channel pixel value of the i-th pixel in the displayed image is equal to the G channel pixel value of the i-th pixel in the displayed image multiplied by (target screen brightness value / threshold).
[0115] After grayscale processing, the B-channel pixel value of the i-th pixel in the displayed image is equal to the B-channel pixel value of the i-th pixel in the displayed image multiplied by (screen brightness target value / threshold).
[0116] For example, the target screen brightness is 40 nits, and the threshold is 70 nits. Taking the backlight brightness as an example where the screen brightness is equal to the backlight brightness, the backlight brightness threshold (the backlight brightness corresponding to the screen brightness being threshold one) is 70 nits. As shown in Figure 7, the backlight brightness of the screen is controlled to be 70 nits. Under the condition that the screen backlight brightness is 70 nits, the displayed image on the screen is subjected to grayscale compression processing. Wherein, after grayscale compression, R... i =R i *(40 / 70)=R i *57%; G after grayscale treatment i =G i *(40 / 70)=G i *57%; B after grayscale treatment i =B i *(40 / 70)=B i *57%; R i To display the R channel pixel value of the i-th pixel in the image, G i To display the G channel pixel value of the i-th pixel in the image, Bi B(i) is the B channel pixel value of the i th pixel point in the image. In this way, the screen brightness can be the screen brightness target value (40 nits).
[0117] S405, the electronic device adopts PWM dimming to make the screen brightness be the screen brightness target value.
[0118] For example, the screen brightness target value determined in S402 is less than or equal to the threshold value two, and the electronic device adopts PWM dimming to make the screen brightness be the screen brightness target value.
[0119] In an implementation, the backlight is periodically turned on and off; when the backlight is turned on, the backlight brightness is the backlight brightness corresponding to the screen brightness maximum value. In each period, the ratio of the backlight on duration to the period duration is the ratio of the screen brightness target value to the screen brightness maximum value, that is, backlight on duration / period duration = screen brightness target value / screen brightness maximum value. For example, the screen brightness maximum value is 200 nits, and the screen brightness target value is 2 nits, so in each period, the backlight on duration is 1% of the period duration.
[0120] The screen brightness adjustment method provided in the embodiments of the present application adopts DC dimming when the screen brightness is greater than or equal to the preset threshold value one, and adopts fitting DC dimming when the screen brightness is less than the preset threshold value one and greater than the preset threshold value two. The backlight brightness of the screen is a fixed value in the fitting DC dimming, for example, the backlight brightness corresponding to the threshold value one when the screen brightness is the threshold value one, which avoids the problem of poor display effect caused by the inability to accurately control the voltage or current when the DC dimming is adjusted to a low level. It also avoids the problem of high power consumption and easy to cause user visual fatigue caused by PWM dimming.
[0121] In the preset mode scenarios such as super power saving mode and full screen AOD mode, the screen brightness adjustment method provided in the embodiments of the present application can meet the higher demand of the electronic device for low power consumption. For example, compared with PWM dimming, fitting DC dimming can save more than 10 mA of power consumption in half an hour. Moreover, in the preset mode scenarios such as super power saving mode and full screen AOD mode, the application interface is relatively simple, the details are less, the picture tone is relatively uniform or the picture tone is relatively dark, and the demand for display effect is relatively low. The screen brightness adjustment method provided in the embodiments of the present application can meet the display effect demand of the electronic device.
[0122] In addition, in the screen brightness adjustment method provided in the embodiments of the present application, PWM dimming is adopted when the screen brightness is less than the threshold value two, which avoids the problem of poor display effect such as color deviation and residual image when the fitting DC dimming is used in a low screen brightness.
[0123] In some embodiments, when the electronic device is not in the preset mode or exits the preset mode, the electronic device determines the screen brightness target value according to the ambient light brightness, or after determining the screen brightness target value in response to a user operation, in the process of adjusting the screen brightness, in a case that the screen brightness target value is greater than or equal to a preset threshold, DC dimming is adopted; in a case that the screen brightness target value is less than the preset threshold, PWM dimming is adopted.
[0124] For example, as shown in FIG. 8, the desktop interface 507 in the super power saving mode includes an “exit” button 509. In response to a user’s click operation on the “exit” button 509, the phone exits the super power saving mode, and the phone displays the desktop in the normal mode, for example, the phone displays the desktop interface 501.
[0125] For example, as shown in FIG. 9, the phone displays the full-screen AOD interface 601, and in response to a user’s pressing operation on the power key, the phone no longer displays the full-screen AOD interface 601, and the phone displays the desktop in the normal mode, for example, the phone displays the lock screen interface 701.
[0126] The wallpaper of the desktop in the normal mode is optional, for example, the desktop wallpaper can be a preset picture or a picture set by a user, and optionally, the desktop wallpaper can also be dynamic. The desktop in the normal mode allows a larger number of application icons to be added.
[0127] For example, as shown in FIG. 1, after the phone exits the preset mode, in a case that the screen brightness is greater than or equal to a preset threshold, DC dimming is adopted; in a case that the screen brightness is less than the preset threshold, PWM dimming is adopted.
[0128] The following describes the method for adjusting the screen brightness provided by the embodiments of the present application, taking the preset mode as the super power saving mode and the electronic device automatically adjusting the screen brightness according to the ambient light brightness as an example.
[0129] The electronic device enters the super power saving mode and displays a preset interface. For example, the electronic device displays the desktop interface 507.
[0130] In the super power saving mode, the electronic device periodically detects the ambient light brightness, and after the electronic device detects that the ambient light brightness changes, adjusts the screen brightness according to the ambient light brightness.
[0131] When the ambient light brightness is greater than the ambient light brightness first threshold value, the screen brightness target value corresponding to the ambient light brightness is greater than the threshold value one, and the electronic device adjusts the screen brightness by using DC dimming. In an implementation manner, the screen brightness is proportional to the backlight brightness; the greater the ambient light brightness, the greater the backlight brightness, and the higher the screen brightness; the smaller the ambient light brightness, the smaller the backlight brightness, and the lower the screen brightness. When the ambient light brightness is the ambient light brightness first threshold value, the screen brightness target value is the threshold value one, and the corresponding backlight brightness is the backlight brightness threshold value; that is, when the ambient light brightness is greater than the ambient light brightness first threshold value, the backlight brightness of the screen is greater than the backlight brightness threshold value. Optionally, a preset backlight brightness peak value is provided, and in the DC dimming process, the backlight brightness is less than or equal to the backlight brightness peak value, and the backlight brightness peak value corresponds to a screen brightness maximum value, that is, the screen brightness is less than or equal to the screen brightness maximum value.
[0132] When the ambient light brightness is less than the ambient light brightness first threshold value, the screen brightness target value corresponding to the ambient light brightness is less than the threshold value one, and the electronic device adjusts the screen brightness by using fitting DC dimming. In an implementation manner, when the ambient light brightness is less than the ambient light brightness first threshold value, the backlight brightness is kept at the backlight brightness threshold value, and the screen brightness is adjusted by adjusting the gray scale of the pixel point.
[0133] Optionally, when the ambient light brightness is less than the ambient light brightness second threshold value, the screen brightness target value corresponding to the ambient light brightness is the threshold value two, and the electronic device adjusts the screen brightness by using PWM dimming. In an implementation manner, the backlight is periodically turned on and turned off; for example, when the backlight is turned on, the backlight brightness is the backlight brightness corresponding to the screen brightness maximum value (that is, the backlight brightness peak value). In each period, the ratio of the backlight-on duration to the period duration is the ratio of the screen brightness target value to the screen brightness maximum value, that is, backlight-on duration / period duration = screen brightness target value / screen brightness maximum value.
[0134] After the electronic device exits the super power saving mode, a desktop of a normal mode is displayed. For example, the electronic device displays a desktop interface 501.
[0135] After the electronic device exits the super power saving mode, the electronic device periodically detects the ambient light brightness, and adjusts the screen brightness according to the ambient light brightness after the electronic device detects that the ambient light brightness changes.
[0136] In an implementation manner, when the ambient light brightness is greater than the ambient light brightness first threshold value, the screen brightness target value corresponding to the ambient light brightness is greater than the threshold value one, and the electronic device adjusts the screen brightness by using DC dimming. When the ambient light brightness is the ambient light brightness first threshold value, the screen brightness target value is the threshold value one, and the corresponding backlight brightness is the backlight brightness threshold value; that is, when the ambient light brightness is greater than the ambient light brightness first threshold value, the backlight brightness of the screen is greater than the backlight brightness threshold value.
[0137] When the ambient light brightness is less than the first ambient light brightness threshold, the screen brightness target value corresponding to the ambient light brightness is less than the threshold one, and the electronic device adjusts the screen brightness by using the PWM dimming. The backlight brightness of the screen is a fixed value, for example, the fixed value is the backlight brightness corresponding to the highest screen brightness (i.e., the peak value of the backlight brightness), and the backlight is periodically turned on and turned off. In each period, the ratio of the on duration of the backlight to the period duration is the ratio of the screen brightness target value to the highest screen brightness.
[0138] In some embodiments, the method for adjusting the screen brightness provided in the embodiments of the present application is also applicable to the scenario after the electronic device exits the preset mode. In an example, after the electronic device exits the preset mode, when the ambient light brightness is greater than the first ambient light brightness threshold, the screen brightness target value corresponding to the ambient light brightness is greater than the threshold one, and the electronic device adjusts the screen brightness by using the DC dimming; when the ambient light brightness is less than the first ambient light brightness threshold, the screen brightness target value corresponding to the ambient light brightness is less than the threshold one, and the electronic device adjusts the screen brightness by using the fitted DC dimming. Optionally, when the ambient light brightness is less than the second ambient light brightness threshold, the screen brightness target value corresponding to the ambient light brightness is the threshold two, and the electronic device adjusts the screen brightness by using the PWM dimming.
[0139] In the embodiments of the present application, the electronic device described above is an electronic device that can run an operating system and install an application program. Optionally, the operating system running on the electronic device can be Android system, iOS system, Windows system, etc.
[0140] In some embodiments, the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, or a cloud architecture. The embodiments of the present application take the layered architecture system as an example to exemplarily describe the software structure of the electronic device 100.
[0141] FIG. 10 is a schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application.
[0142] It can be understood that the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, The system can include an application (application, App) layer, an application framework (framework, FWK) layer, a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer.
[0143] The application layer may include a series of application packages. Application packages may include desktop applications, video playback applications, game applications, always-on display (AOD) applications, ultra-power-saving management applications, display and brightness management applications, etc. In some embodiments, application packages may also include applications such as gallery, calendar, call, music, and text messaging.
[0144] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications within the application layer. The application framework layer includes predefined functions. Through the API, the application framework layer provides programming services to the application layer, enabling applications to interact with hardware and the operating system. For example, the application framework layer includes a view system, resource management services, a surface compositing module, and a rendering engine.
[0145] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a full-screen AOD application includes a full-screen AOD interface, which may include views for displaying text and views for displaying images, etc.
[0146] Resource management services provide applications with various resources, such as localized strings, icons, images, layout files, video files, and so on.
[0147] The SurfaceFlinger module is The system's graphics compositor is responsible for compositing multiple graphics layers and displaying them on the screen; SurfaceFlinger coordinates and manages the rendering and display process of the graphics.
[0148] Render Engine is The system's graphics rendering engine is responsible for displaying the graphics layers on the screen; it implements the drawing and compositing operations of graphics.
[0149] The Hardware Abstraction Layer (HAL) is used to abstract hardware, encapsulate kernel-level drivers, and provide interfaces to higher layers. For example, as shown in Figure 10, the HAL includes the Hardware Composer (HWC). HWC is the hardware compositor in the Android system used to combine graphics layers into a displayable frame. It works in conjunction with SurfaceFlinger to achieve hardware-accelerated rendering and compositing of graphics.
[0150] The kernel layer provides underlying drivers for various hardware of the electronic device. For example, the kernel layer can include a display driver, etc.
[0151] An implementation of the fitting DC dimming provided by the embodiments of the present application will be described in detail below in connection with the software architecture shown in FIG. 10.
[0152] After the ambient light brightness changes, the display and brightness management application determines a screen brightness target value according to the ambient light brightness value, and the display and brightness management application sends the screen brightness target value to the surface composition module. The surface composition module includes a backlight control unit, a layer composition unit, etc.
[0153] The backlight control unit determines the value of the backlight brightness of the screen according to the screen brightness target value. In an example, the screen brightness target value is less than a threshold one and greater than a threshold two, and the backlight control unit determines the value of the backlight brightness as a backlight brightness threshold value (the backlight brightness corresponding to the threshold one of the screen brightness). The backlight control unit sends the backlight brightness threshold value to the display driver.
[0154] For example, the application currently running in the foreground is the super power saving management application, the layer composition unit obtains the data of each layer of the application interface (for example, a preset interface), and the layer composition unit sends the data of each layer to the HWC and sends the proportion coefficient of the gray scale processing to the HWC. The proportion coefficient of the gray scale processing is (screen brightness target value / threshold one). The HWC generates a display image (the image of the preset interface) according to the data of each layer of the preset interface, and performs the gray scale processing on the display image according to the proportion coefficient, so that the pixel value of each pixel point in the display image after the gray scale processing = (pixel value of each pixel point in the display image * proportion coefficient). The HWC sends the display image after the gray scale processing to the display driver. This method uses the original gray scale processing of the HWC, and only needs to send the proportion coefficient of the gray scale processing to the HWC, without changing the original processing mechanism of the HWC. That is, the screen brightness is adjusted in a software manner, without changing the processing logic of the hardware.
[0155] In this way, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness threshold value (the backlight brightness corresponding to the threshold one of the screen brightness), and the display driver controls the display screen to display the display image after the gray scale processing according to the proportion coefficient (screen brightness target value / threshold one), so as to achieve the effect that the screen brightness of the display screen is the screen brightness target value.
[0156] In the implementation, the screen backlight brightness is controlled as a fixed value (the backlight brightness corresponding to the threshold value minus one when the screen brightness is the threshold value minus one), the software is used to compress the gray scale of the display image, and the power, voltage and current loaded on the hardware circuit do not need to be changed, and the hardware does not need to be changed, so that the implementation is convenient and low in cost. In addition, the screen backlight brightness is controlled as a fixed value (the backlight brightness corresponding to the threshold value minus one when the screen brightness is the threshold value minus one), so that the problem that the voltage or current cannot be accurately controlled when being reduced can be avoided. Moreover, the DC dimming is used under the condition that the screen brightness target value is less than the threshold value minus one, so that the power consumption of the electronic device is reduced compared with the PWM dimming.
[0157] With reference to FIG. 10, FIG. 11A shows a flow diagram of a method for adjusting the screen brightness provided by the embodiments of the present application. As shown in FIG. 11A, the method comprises the following steps.
[0158] In step S1101, the display and brightness management application determines that the current ambient light brightness is an ambient light brightness value one. The ambient light brightness value one is greater than the first threshold value of the ambient light brightness.
[0159] In an implementation, the ambient light sensor periodically detects the ambient light brightness, and sends the ambient light brightness value detected each time to the display and brightness management application. After receiving the ambient light brightness value one, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value one.
[0160] In step S1102, the display and brightness management application determines a screen brightness target value one according to the ambient light brightness value one, and sends the screen brightness target value one to the surface synthesis module. The screen brightness target value one is greater than the threshold value minus one.
[0161] In step S1103, the surface synthesis module determines that the backlight brightness of the screen is a backlight brightness value one according to the screen brightness target value one. The backlight control unit of the surface synthesis module sends the backlight brightness value one to the display driver. The layer synthesis unit of the surface synthesis module sends the data of each layer of the preset interface to the HWC. The HWC generates the image of the preset interface according to the data of each layer, and sends the image of the preset interface to the display driver.
[0162] For example, the current is the super power saving mode, the application running in the foreground is the super power saving management, the application interface of the super power saving management is the preset interface, the super power saving management generates the data of each layer of the preset interface, and stores the data of each layer of the preset interface in the system cache.
[0163] The surface synthesis module determines that the screen brightness target value one is greater than the threshold value minus one, and in this case, the hardware native DC dimming is used.
[0164] The layer synthesis unit obtains the data of each layer of the preset interface from the system cache, and sends the data of each layer of the preset interface to the HWC. The HWC generates an image of the preset interface according to the data of each layer, and sends the image of the preset interface to the display driver.
[0165] S1104, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness value one, and controls the display screen (screen) to display the preset interface.
[0166] In an implementation manner, the display driver controls the voltage value of the input screen to be the voltage value one, and correspondingly, the backlight brightness of the screen is the backlight brightness value one.
[0167] S1105, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value two. Wherein, the ambient light brightness value two is greater than the ambient light brightness first threshold, and the ambient light brightness value two is less than the ambient light brightness value one.
[0168] In an example, the ambient light sensor periodically detects and reports the ambient light brightness, and after the display and brightness management application receives the ambient light brightness value two, it is determined that the current ambient light brightness is the ambient light brightness value two.
[0169] S1106, the display and brightness management application determines the screen brightness target value two according to the ambient light brightness value two, and sends the screen brightness target value two to the surface synthesis module; wherein, the screen brightness target value two is greater than the threshold one.
[0170] S1107, the surface synthesis module determines that the backlight brightness of the screen is the backlight brightness value two according to the screen brightness target value two. The backlight control unit of the surface synthesis module sends the backlight brightness value two to the display driver. The layer synthesis unit of the surface synthesis module sends the data of each layer of the preset interface to the HWC; the HWC generates an image of the preset interface according to the data of each layer, and sends the image of the preset interface to the display driver.
[0171] For example, the current is the super power saving mode, the application running in the foreground is the super power saving management, the application interface of the super power saving management is the preset interface, the super power saving management generates the data of each layer of the preset interface, and stores the data of each layer of the preset interface into the system cache.
[0172] The surface synthesis module determines that the screen brightness target value two is greater than the threshold one, in this case, the hardware native DC dimming is used. The screen brightness target value two is less than the screen brightness target value one, and the backlight brightness value two is less than the backlight brightness value one.
[0173] The layer synthesis unit obtains the data of each layer of the preset interface from the system cache, and sends the data of each layer of the preset interface to the HWC. The HWC generates an image of the preset interface according to the data of each layer, and sends the image of the preset interface to the display driver.
[0174] S1108, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness value two, and controls the display screen (screen) to display the preset interface.
[0175] In an implementation manner, the display driver controls the voltage value of the input screen to be the voltage value two, and correspondingly, the backlight brightness of the screen is the backlight brightness value two; wherein the voltage value two is less than the voltage one, and the backlight brightness value two is less than the backlight brightness value one. That is, the screen backlight brightness is reduced by reducing the voltage value, so that the screen brightness is reduced.
[0176] S1109, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value three. Wherein, the ambient light brightness value three is less than the ambient light brightness first threshold.
[0177] In an example, the ambient light sensor periodically detects and reports the ambient light brightness, and after the display and brightness management application receives the ambient light brightness value three, it determines that the current ambient light brightness is the ambient light brightness value three.
[0178] S1110, the display and brightness management application determines the screen brightness target value three according to the ambient light brightness value three, and sends the screen brightness target value three to the surface synthesis module; wherein the screen brightness target value three is less than the threshold value one.
[0179] S1111, the surface synthesis module determines the backlight brightness of the screen to be the threshold value one according to the screen brightness target value three. The backlight control unit of the surface synthesis module sends the threshold value one to the display driver. The layer synthesis unit of the surface synthesis module sends the data of each layer of the preset interface and the compression gray scale processing proportion coefficient to the HWC; the HWC generates an image of the preset interface according to the data of each layer of the preset interface, and performs compression gray scale processing on the image of the preset interface according to the proportion coefficient, and sends the preset interface image after compression gray scale processing to the display driver.
[0180] For example, the current is the super power saving mode, the application running in the foreground is the super power saving management, the application interface of the super power saving management is the preset interface, the super power saving management generates the data of each layer of the preset interface, and stores the data of each layer of the preset interface into the system cache.
[0181] The surface synthesis module determines that the screen brightness target value three is less than the threshold value one, and in this case, the fitting DC dimming is adopted.
[0182] The layer synthesis unit calculates the compression gray scale processing proportion coefficient according to the screen brightness target value three and the threshold value one.
[0183] The layer synthesis unit obtains the data of each layer of the preset interface from the system cache, sends the data of each layer of the preset interface and the scale factor to the HWC. The HWC generates an image of the preset interface according to the data of each layer of the preset interface, performs the gray scale processing on the image of the preset interface according to the scale factor, and sends the preset interface image after the gray scale processing to the display driver.
[0184] S1112, the display driver controls the backlight brightness of the display screen (screen) to be threshold one, and controls the display screen (screen) to display the preset interface after the gray scale processing.
[0185] The backlight brightness of the display screen (screen) is threshold one, and the preset interface after the gray scale processing is displayed, so that the screen brightness is reduced.
[0186] The above S1101-S1112 is an example after the electronic device enters the preset mode.
[0187] In some examples, the electronic device exits the preset mode, as shown in FIG. 11B, and the screen brightness adjustment method provided by the embodiments of the application further includes:
[0188] S1120, the display and brightness management application determines that the current ambient light brightness is ambient light brightness value four. Wherein, the ambient light brightness value four is greater than the first threshold of ambient light brightness.
[0189] In an implementation manner, the ambient light sensor periodically detects the ambient light brightness, and sends the ambient light brightness value detected each time to the display and brightness management application. After receiving the ambient light brightness value four, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value four. In an example, the ambient light brightness value four is equal to the ambient light brightness value one.
[0190] S1121, the display and brightness management application determines the screen brightness target value four according to the ambient light brightness value four, and sends the screen brightness target value four to the surface synthesis module; wherein, the screen brightness target value four is greater than the threshold one.
[0191] S1122, the surface synthesis module determines that the backlight brightness of the screen is backlight brightness value four according to the screen brightness target value four. The backlight control unit of the surface synthesis module sends the backlight brightness value four to the display driver. The layer synthesis unit of the surface synthesis module sends the data of each layer of the desktop interface to the HWC; the HWC generates an image of the desktop interface according to the data of each layer, and sends the image of the desktop interface to the display driver.
[0192] Exemplarily, after the electronic device exits the super power saving mode, the electronic device is in the normal mode, the application running in the foreground is the desktop application, the desktop application generates the data of each layer of the desktop application, and the data of each layer of the desktop application is stored in the system cache.
[0193] The surface composition module determines that the screen brightness target value four is greater than the threshold value one, in this case, the hardware native DC dimming is adopted.
[0194] The layer composition unit obtains the data of each layer of the desktop interface in the normal mode from the system cache, and sends the data of each layer of the desktop interface to the HWC. The HWC generates the image of the desktop interface according to the data of each layer, and sends the image of the desktop interface to the display driver.
[0195] S1123, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness value four, and controls the display screen (screen) to display the desktop interface.
[0196] In an implementation manner, the display driver controls the voltage value of the input screen to be the voltage value four, and correspondingly, the backlight brightness of the screen is the backlight brightness value four.
[0197] S1124, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value five. The ambient light brightness value five is greater than the ambient light brightness first threshold value, and the ambient light brightness value five is less than the ambient light brightness value four.
[0198] In an example, the ambient light sensor periodically detects and reports the ambient light brightness, and after the display and brightness management application receives the ambient light brightness value five, it is determined that the current ambient light brightness is the ambient light brightness value five. Exemplarily, the ambient light brightness value five is equal to the ambient light brightness value two.
[0199] S1125, the display and brightness management application determines the screen brightness target value five according to the ambient light brightness value five, and sends the screen brightness target value five to the surface composition module; wherein the screen brightness target value five is greater than the threshold value one.
[0200] S1126, the surface composition module determines that the backlight brightness of the screen is the backlight brightness value five according to the screen brightness target value five. The backlight control unit of the surface composition module sends the backlight brightness value five to the display driver. The layer composition unit of the surface composition module sends the data of each layer of the desktop interface to the HWC; the HWC generates the image of the desktop interface according to the data of each layer, and sends the image of the desktop interface to the display driver.
[0201] Exemplarily, after the electronic device exits the super power saving mode, the electronic device is in the normal mode, the application running in the foreground is the desktop application, the desktop application generates the data of each layer of the desktop application, and the data of each layer of the desktop application is stored in the system cache.
[0202] The surface composition module determines that the screen brightness target value five is greater than the threshold value one, in which case, the hardware native DC dimming is adopted. The screen brightness target value five is less than the screen brightness target value four, and the backlight brightness value five is less than the backlight brightness value four.
[0203] The layer composition unit sends the data of each layer of the desktop interface to the HWC. The HWC generates an image of the desktop interface according to the data of each layer of the desktop interface, and sends the image of the desktop interface to the display driver.
[0204] S1127, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness value five, and controls the display screen (screen) to display the preset interface.
[0205] In an implementation manner, the display driver controls the voltage value of the input screen to be the voltage value five, and correspondingly, the backlight brightness of the screen is the backlight brightness value five; wherein the voltage value five is less than the voltage value four, and the backlight brightness value five is less than the backlight brightness value four. That is, the screen backlight brightness is reduced by reducing the voltage value, so that the screen brightness is reduced.
[0206] S1128, the display and brightness management application determines that the current ambient light brightness is the ambient light brightness value six. Wherein the ambient light brightness value six is less than the first threshold value of the ambient light brightness.
[0207] S1129, the display and brightness management application determines the screen brightness target value six according to the ambient light brightness value six, and sends the screen brightness target value six to the surface composition module; wherein the screen brightness target value six is less than the threshold value one.
[0208] S1130, the backlight control unit of the surface composition module determines that the backlight brightness of the screen is the backlight brightness peak value according to the screen brightness target value six, and determines the proportion of the backlight on duration and the backlight off duration according to the screen brightness target value six and the backlight brightness peak value; the backlight control unit sends the backlight brightness peak value and the proportion of the backlight on duration and the backlight off duration to the display driver. The layer composition unit of the surface composition module sends the data of each layer of the desktop interface to the HWC; the HWC generates an image of the desktop interface according to the data of each layer of the desktop interface, and sends the image of the desktop interface to the display driver.
[0209] For example, after the electronic device exits the super power saving mode, it is in the normal mode, and the application running in the foreground is the desktop application. The desktop application generates the data of each layer of the desktop application, and stores the data of each layer of the desktop application in the system cache.
[0210] The surface composition module determines that the screen brightness target value six is less than the threshold value one, in which case, the PWM dimming is adopted.
[0211] The surface synthesis module determines the ratio of the backlight on duration and the backlight off duration according to the screen brightness target value and the backlight brightness peak value. The backlight control unit of the surface synthesis module sends the backlight brightness peak value and the ratio of the backlight on duration and the backlight off duration to the display driver.
[0212] The layer synthesis unit of the surface synthesis module sends the data of each layer of the desktop interface to the HWC. The HWC generates an image of the desktop interface according to the data of each layer of the desktop interface, and sends the desktop interface image to the display driver.
[0213] S1131, the display driver controls the backlight brightness of the display screen (screen) to be the backlight brightness peak value, and periodically turns on and off the backlight; the display driver controls the display screen (screen) to display the desktop interface.
[0214] The display screen (screen) periodically turns on and off the backlight, thereby reducing the screen brightness.
[0215] It can be understood that, in order to implement the above functions, the electronic device provided by the embodiments of the present application contains the hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present text, the embodiments of the present application can be realized in the form of hardware or the combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of the present application.
[0216] The embodiments of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing module. The above-mentioned integrated module can be realized in the form of hardware or software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. When actually implemented, there can be another division method.
[0217] In one example, please refer to FIG. 12, which shows a possible structural schematic diagram of the electronic device involved in the above-mentioned embodiments. The electronic device 3000 includes a processing unit 3010, a storage unit 3020 and a display unit 3030.
[0218] The processing unit 3010 is configured to control and manage the actions of the electronic device 3000. The storage unit 3020 is configured to store program codes and data of the electronic device 3000. The processing unit 3010 invokes the program codes stored in the storage unit 3020 to perform the steps in the above method embodiments. The display unit 3030 is configured to display the user interface of the electronic device 3000, such as a full-screen AOD application interface, a desktop interface, a lock screen interface, and the like.
[0219] Of course, the unit modules in the electronic device 3000 described above include but are not limited to the processing unit 3010, the storage unit 3020, and the display unit 3030. For example, the electronic device 3000 can further include a communication unit, a power supply unit, and the like. The communication unit is configured to enable the electronic device 3000 to communicate with other electronic devices. The power supply unit is configured to supply power to the electronic device 3000.
[0220] The processing unit 3010 can be a processor or a controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The storage unit 3020 can be a memory. The display unit 3030 can be a display screen (screen) and the like.
[0221] For example, the processing unit 3010 is a processor (such as the processor 110 shown in FIG. 3), the storage unit 3020 can be a memory (such as the internal memory 121 shown in FIG. 3), and the display unit 3030 can be a display screen (such as the display screen 192 shown in FIG. 3). The electronic device 3000 provided by the embodiments of the present application can be the electronic device 100 shown in FIG. 3. The above processor, memory, display screen, and the like can be connected together, for example, through a bus. The processor invokes the program codes stored in the memory to perform the steps in the above method embodiments.
[0222] The embodiments of the present application also provide a chip system, which comprises at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. For example, the interface circuit can be used to receive signals from other devices (for example, a memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices (for example, a processor). Illustratively, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform various steps in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application do not make a specific limitation in this regard.
[0223] The embodiments of the present application also provide a computer readable storage medium, which comprises computer instructions. When the computer instructions are run on the above electronic device, the electronic device can perform various functions or steps performed by the mobile phone in the above method embodiments.
[0224] The embodiments of the present application also provide a computer program product, which can make a computer perform various functions or steps performed by the mobile phone in the above method embodiments when the computer program product is run on the computer.
[0225] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.
[0226] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, another division manner can be used, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0227] The units described as separate components can or can not be physically separate, and the components displayed as units can be one physical unit or multiple physical units, that is, can be located in one place or can be distributed to multiple different places. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiments.
[0228] In addition, each of the functional units in the embodiments of the present application can be integrated in one processing unit, or each unit can exist alone physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware, or in the form of a software functional unit.
[0229] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application essentially, or the part that contributes to the prior art, or all or a part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a number of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and various other media that can store program codes.
[0230] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for adjusting screen brightness, characterized in that, The method is applied to an electronic device, the electronic device including a screen, and the method includes: Upon entering the preset mode, the interface corresponding to the preset mode is displayed; When the ambient light brightness is greater than a first value, the backlight brightness of the screen is greater than the first backlight brightness value; When the ambient light brightness is equal to the first value, the backlight brightness of the screen is equal to the first backlight brightness value; When the ambient light brightness is less than the first value, the backlight brightness of the screen is equal to the first backlight brightness value.
2. The method according to claim 1, characterized in that, The method further includes: When the ambient light intensity is less than or equal to the second value, the backlight of the screen is periodically turned on and off; when the backlight of the screen is turned on, the backlight intensity of the screen is the peak backlight intensity. The second value is less than the first value.
3. The method according to claim 1, characterized in that, When the ambient light intensity is greater than the first value, the gray level of the first pixel in the interface is the first gray level; When the ambient light brightness is equal to the first value, the gray level of the first pixel in the interface is the first gray level; When the ambient light intensity is less than the first value, the gray level of the first pixel in the interface is less than the first gray level.
4. The method according to claim 3, characterized in that, The condition that when the ambient light intensity is less than the first value, the gray level of the first pixel in the interface is less than the first gray level includes: When the ambient light brightness is a first ambient light value, the gray level of the first pixel in the interface is a second gray level; the second gray level is equal to the first gray level multiplied by a gray level compression ratio coefficient, which is determined based on the first ambient light value, and the first ambient light value is less than the first value.
5. The method according to claim 4, characterized in that, The operating system of the electronic device includes a surface synthesis module and a hardware synthesizer, and the method further includes: The surface compositing module sends the interface layer data of the application running in the foreground and the grayscale ratio coefficient to the hardware compositor. The grayscale ratio coefficient is used by the hardware compositor to generate a grayscale-processed interface image based on the interface layer data.
6. The method according to claim 4 or 5, characterized in that, Gray scale ratio coefficient = first ambient light value / first value.
7. The method according to claim 1, characterized in that, When the ambient light brightness is the second ambient light value, the backlight brightness of the screen is the first backlight value; When the ambient light brightness is the third ambient light value, the backlight brightness of the screen is the second backlight value; Wherein, the second ambient light value is greater than the third ambient light value, the third ambient light value is greater than the first value, the first backlight value is greater than the second backlight value, and the second backlight value is greater than the first backlight brightness value.
8. The method according to claim 7, characterized in that, The first backlight value and the second backlight value are less than or equal to the peak backlight brightness.
9. The method according to claim 7 or 8, characterized in that, The method further includes: When the ambient light level is at the third ambient light value, the brightness of the screen is adjusted by DC dimming.
10. The method according to claim 9, characterized in that, The method of adjusting the screen brightness via DC dimming includes: The backlight brightness of the screen is set to a second backlight value; when the backlight brightness of the screen is the second backlight value, the brightness of the screen is a first screen brightness value, which is determined based on the third ambient light value.
11. The method according to claim 2, characterized in that, The method further includes: When the ambient light intensity is less than or equal to the second value, the brightness of the screen is adjusted by PWM dimming.
12. The method according to any one of claims 1-11, characterized in that, The method further includes: After exiting the default mode, the desktop is displayed; When the ambient light brightness is greater than a first value, the backlight brightness of the screen is greater than the first backlight brightness value; When the ambient light brightness is equal to the first value, the backlight brightness of the screen is equal to the first backlight brightness value; When the ambient light is less than a first value, the screen backlight is periodically turned on and off; when the screen backlight is on, the screen backlight brightness is the peak backlight brightness.
13. The method according to any one of claims 1-12, characterized in that, The preset modes are either full-screen always-on display (AOD) mode or super power-saving mode.
14. An electronic device, characterized in that, The device includes a memory, a processor, and a screen; the screen is used to display an interface; the memory is coupled to the processor and is used to store computer program code, the computer program code including computer instructions; the processor invokes the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-13.
15. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1-13.
16. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1-13.
Citation Information
Patent Citations
Method and device for adjusting screen brightness of mobile terminal
CN104902088A
Backlight brightness adjustment method, device and terminal
CN108346411A
Display brightness adjusting method, mobile terminal and storage medium
CN108494974A
Pixel driving circuit and display panel
CN114783357A
Display panel control method and device, electronic equipment and storage medium
CN115472133A