Brightness control method and electronic equipment

By automatically adjusting the screen brightness during screen wake-up operations, the problem of brightness not adapting to the environment in manual adjustment mode is solved, achieving flexible adaptation of screen brightness in different lighting environments and improving the user experience.

CN121785508APending Publication Date: 2026-04-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In the manual adjustment mode of electronic devices, the brightness set by the user may not adapt to changes in the environment, resulting in insufficient screen brightness and making it difficult for users to clearly view the screen content in different lighting conditions.

Method used

When the screen is woken up, the electronic device automatically adjusts the screen brightness to a level higher than the user's manually set brightness based on the ambient light and the brightness setting. This ensures that the screen brightness is sufficiently bright in high-light environments and gradually adjusts back to the user's set brightness as the light environment changes, maintaining the user's preferred brightness.

Benefits of technology

The screen brightness flexibility has been improved, making it more adaptable to different usage scenarios and ensuring that users can clearly view the screen content in various lighting environments, while maintaining the user habit of manual adjustment mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121785508A_ABST
    Figure CN121785508A_ABST
Patent Text Reader

Abstract

The invention provides a brightness control method and electronic equipment, relates to the field of terminals, and is used for improving the flexibility of brightness control when a screen brightness adjustment mode of the electronic equipment is in a manual adjustment mode, so that the screen brightness of the electronic equipment can adapt to more use scenes. The method is applied to the electronic equipment, the electronic equipment is in a manual brightness adjusting mode, and the method comprises the following steps: displaying a first page; when the first page is displayed, the ambient light brightness is the first brightness, the brightness manually set by the user is the second brightness, and the screen brightness is the second brightness. Displaying a second page in response to the screen wake-up operation; when the second page is displayed, the ambient light brightness is third brightness, the brightness manually set by the user is second brightness, and the screen brightness is fourth brightness; the third brightness is greater than the first brightness and the fourth brightness is greater than the second brightness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminals, and more particularly to a brightness control method and an electronic device. Background Technology

[0002] Currently, electronic devices such as mobile phones, tablets, smartwatches, and smart bracelets are typically designed with both automatic and manual adjustment modes for screen brightness.

[0003] The automatic brightness adjustment mode adjusts the screen brightness based on ambient light levels, allowing it to adapt to varying lighting conditions and providing users with a comfortable viewing experience. In manual brightness adjustment mode, the screen brightness is set manually by the user.

[0004] Typically, electronic devices provide a switch that allows users to select between automatic and manual brightness adjustment modes. In manual mode, the device does not automatically adjust the screen brightness. However, in some usage scenarios, the manually selected brightness may not be suitable for the current environment, potentially leading to problems such as difficulty seeing the screen. Therefore, brightness control is not flexible enough. Summary of the Invention

[0005] This application provides a brightness control method and an electronic device, which improves the flexibility of brightness control when the screen brightness adjustment mode of the electronic device is in manual adjustment mode, so that the screen brightness of the electronic device can adapt to more usage scenarios.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0007] Firstly, a brightness control method is provided, applied to an electronic device in a manual brightness adjustment mode. The method includes:

[0008] The first page is displayed. When displaying this first page, the ambient light brightness is set to the first brightness level, the user-set brightness level is set to the second brightness level, and the screen brightness is also set to the second brightness level. That is, the electronic device displays the page according to the user-set brightness level. When the electronic device receives a screen wake-up operation, it displays the second page in response. When displaying the second page, the ambient light brightness is set to the third brightness level, the user-set brightness level is set to the second brightness level, and the screen brightness is set to the fourth brightness level; the third brightness level is greater than the first brightness level, and the fourth brightness level is greater than the second brightness level. That is, even if the user-set brightness remains unchanged while the ambient light brightness increases, the electronic device does not display the page according to the user-set brightness level, but instead increases the screen brightness accordingly. This improves the flexibility of brightness control when the electronic device's screen brightness adjustment mode is in manual adjustment mode, allowing the screen brightness of the electronic device to adapt to more usage scenarios.

[0009] In one possible implementation of the first aspect, the first brightness is less than or equal to the ambient light brightness threshold, the third brightness is greater than the ambient light brightness threshold, and the second brightness is less than the screen brightness threshold. That is, when the ambient light is low, the electronic device can set the screen brightness according to the brightness manually set by the user to better suit the user's usage habits. When the ambient light is high and the screen brightness is low, the page can be displayed at a fourth brightness level greater than the brightness manually set by the user, so that the user can see the content displayed on the screen as clearly as possible.

[0010] In one possible implementation of the first aspect, displaying the second page in response to a screen wake-up operation specifically includes: in response to the screen wake-up operation, obtaining the current ambient light brightness and the current screen brightness to be configured. The screen brightness to be configured is the brightness manually set by the current user. If the current ambient light brightness is greater than an ambient light brightness threshold and the current screen brightness to be configured is less than a screen brightness threshold, the second page is displayed at a fourth brightness level.

[0011] In this solution, when the electronic device wakes up the screen, if the ambient light is high and the user's manually set brightness is low, the electronic device can increase the screen brightness to ensure it is bright enough for the user to clearly see the displayed content in the current environment. Thus, the electronic device is in manual brightness adjustment mode, which improves the flexibility of brightness control, allowing the screen brightness to adapt to more usage scenarios. Furthermore, in this embodiment, the screen brightness is adjusted only when a screen wake-up operation is detected and certain conditions are met to improve the display effect, rather than changing the manual adjustment mode to an automatic adjustment mode. This allows for more flexible brightness control and adaptability to more usage scenarios while maintaining the user's habit of using manual adjustment mode.

[0012] In one possible implementation of the first aspect, before displaying the second page at a fourth brightness, the method further includes: when the current ambient light brightness is greater than an ambient light brightness threshold and the current screen brightness to be configured is less than a screen brightness threshold, adjusting the brightness mapped to the first value in the brightness setting option of the electronic device from a second brightness to a fourth brightness. The first value is the value corresponding to the current screen brightness to be configured in the brightness setting option. Displaying the second page at a fourth brightness includes: obtaining the first value of the brightness setting option and the fourth brightness mapped to the first value. The screen brightness is configured to the fourth brightness according to the first value, and the second page is displayed. In other words, in this solution, when the ambient light brightness and screen brightness meet the corresponding conditions, the electronic device keeps the value manually set by the user in the brightness setting option, i.e., the first value, unchanged, while adjusting the brightness mapped to the first value from a second brightness to a fourth brightness. This allows the screen brightness to be configured to a higher fourth brightness without being perceptible to the user.

[0013] In one possible implementation of the first aspect, before displaying the second page at the fourth brightness, the method further includes: when the current ambient light brightness is greater than an ambient light brightness threshold and the current screen brightness to be configured is less than a screen brightness threshold, adjusting all brightness values ​​mapped to the target values ​​in the brightness setting options of the electronic device to the fourth brightness. The target value is less than or equal to the second value; the second value is the value corresponding to the fourth brightness in the brightness setting options, and the target value includes the first value corresponding to the current screen brightness to be configured in the brightness setting options. In other words, when the ambient light brightness and screen brightness meet the corresponding conditions, the electronic device adjusts all brightness values ​​mapped to the fourth brightness value in the brightness setting options. Since the second brightness is less than the fourth brightness, the value corresponding to the second brightness in the brightness setting options is also less than the value of the fourth brightness in the brightness setting options. Therefore, after adjusting the brightness mapped to some values ​​in the brightness setting options, when the electronic device sets the screen brightness according to the brightness manually set by the user, i.e., the first value in the brightness setting options, it actually configures the screen brightness to the fourth brightness. That is, it displays the second page at the fourth brightness.

[0014] In one possible implementation of the first aspect, the fourth brightness is a screen brightness threshold. Specifically, the screen brightness threshold is the minimum screen brightness at which a user can clearly see the content displayed on the screen in a high-brightness environment. That is, when the ambient light is high but the screen brightness is below the screen brightness threshold, the screen brightness is set to the screen brightness threshold. This ensures that the screen brightness of the electronic device is sufficient for the user to clearly see the content displayed on the screen in the current environment.

[0015] In one possible implementation of the first aspect, the brightness setting option is kept at a first value. In this way, although the screen brightness changes, the set brightness seen by the user on the electronic device's interface remains unchanged.

[0016] In one possible implementation of the first aspect, after displaying the second page in response to a screen wake-up operation, the method further includes: adjusting the screen brightness to the second brightness when the user-manually set brightness remains at the second brightness level and the current ambient light brightness becomes the fifth brightness level; wherein the fifth brightness level is less than the third brightness level. That is, after the ambient light dims, the electronic device can adjust the screen brightness to the brightness manually set by the user to better suit the user's usage habits.

[0017] In one possible implementation of the first aspect, the fifth brightness level described above is less than or equal to the ambient light brightness threshold. That is, after configuring the screen brightness to the fourth brightness level, the electronic device can continuously detect the ambient light brightness. Once it detects that the ambient light brightness has dimmed and meets the condition of being less than or equal to the ambient light brightness threshold, the electronic device configures the screen brightness to the brightness manually set by the user, so that the screen brightness better matches the user's usage habits.

[0018] In one possible implementation of the first aspect, after the electronic device configures the screen brightness to the fourth brightness level, it can periodically detect the ambient light brightness and determine whether the ambient light brightness is greater than an ambient light brightness threshold. This allows the screen brightness to be adjusted to the brightness manually set by the user when the ambient light brightness drops below the threshold.

[0019] In one possible implementation of the first aspect, after the electronic device has configured the screen brightness to the fourth brightness level, if it detects that the ambient light is dimming, it can gradually adjust and lower the screen brightness until it is configured to the second brightness level. This gradual change in screen brightness improves the display effect and avoids abrupt changes in screen brightness that could lead to a poor viewing experience for the user.

[0020] In one possible implementation of the first aspect, after displaying the second page in response to a screen wake-up operation, the method further includes: if the ambient light brightness is still at the third brightness level, receiving an operation from the user to manually set the screen brightness to a sixth brightness level, and adjusting the screen brightness to the sixth brightness level. After the electronic device automatically adjusts the screen brightness according to the ambient light brightness and the screen brightness, the electronic device can respond to the user's manual screen brightness setting operation and display according to the brightness level manually set by the user. This makes the screen brightness more in line with the user's usage habits.

[0021] In one possible implementation of the first aspect, after receiving the user's manual setting of the screen brightness to the sixth brightness level, the method further includes: responding to the user's manual setting of the screen brightness, displaying the second page at the sixth brightness level if the sixth brightness level is greater than a screen brightness threshold. That is, if the user's manual setting of the screen brightness is detected, the brightness level manually set by the user is first compared with the screen brightness threshold. If the screen brightness level manually set by the user is greater than or equal to the screen brightness threshold, the electronic device adjusts the screen brightness to the brightness manually set by the user, i.e., the sixth brightness level. In this way, while ensuring that the user can clearly see the content displayed on the screen, the display is based on the brightness manually set by the user, making the screen brightness more in line with the user's usage habits.

[0022] Conversely, if the screen brightness manually set by the user is less than or equal to the screen brightness threshold, there is still a possibility that the user may not be able to see the displayed content. Therefore, the electronic device can maintain the screen brightness at the fourth level without changing it. This ensures that the user can clearly see the content displayed on the screen.

[0023] In one possible implementation of the first aspect, the electronic device stores multiple sets of candidate ambient light brightness thresholds and candidate screen brightness thresholds; each set of thresholds corresponds to an ambient light type. The candidate ambient light brightness thresholds for different ambient light types are different, and / or, the candidate screen brightness thresholds for different ambient light types are different. In the above implementation, the ambient light brightness threshold used to determine whether the current ambient light brightness meets the conditions is specifically a candidate ambient light brightness threshold matching the ambient light type to which the current ambient light belongs; correspondingly, the screen brightness threshold used to determine whether the current screen brightness meets the conditions in the above embodiment is specifically a candidate screen brightness threshold matching the ambient light type to which the current ambient light belongs. In this solution, setting corresponding candidate ambient light brightness thresholds and candidate screen brightness thresholds for different types of ambient light helps to better determine whether screen brightness needs to be adjusted in manual adjustment mode, and ensures that the adjusted screen brightness is more suitable for the current environment, providing a better user experience.

[0024] In one possible implementation of the first aspect, the method further includes: in response to a screen wake-up operation, obtaining the ambient light type to which the current ambient light belongs.

[0025] In one possible implementation of the first aspect, a set of thresholds corresponding to each ambient light type includes: multiple candidate ambient light brightness thresholds and multiple candidate screen brightness thresholds, with a one-to-one correspondence between the candidate ambient light brightness thresholds and the candidate screen brightness thresholds. That is, different thresholds are set for different ambient light brightness levels of a given ambient light type. Specifically, the ambient light brightness threshold is the largest among the candidate ambient light brightness thresholds matching the current ambient light type, which is less than or equal to the current ambient light brightness; the screen brightness threshold is the candidate screen brightness threshold corresponding to the ambient light brightness threshold. In this way, setting corresponding candidate ambient light brightness thresholds and candidate screen brightness thresholds for different ambient light brightness levels under the same ambient light type helps to better determine whether screen brightness needs to be adjusted in manual adjustment mode, and ensures that the adjusted screen brightness is more suitable for the current environment, providing a better user experience.

[0026] In one possible implementation of the first aspect, when determining whether the current ambient light brightness is greater than an ambient light brightness threshold, the current ambient light brightness can be compared with each candidate ambient light brightness threshold matched to the current ambient light, thereby determining a target ambient light brightness threshold to determine whether the ambient light brightness meets the condition of being greater than the ambient light brightness threshold. Correspondingly, a target screen brightness threshold corresponding to the target ambient light brightness threshold can be obtained to determine whether the screen brightness meets the condition of being less than the screen brightness.

[0027] In one possible implementation of the first aspect, in response to the user's action of activating the automatic brightness adjustment mode, the system switches from manual brightness adjustment mode to automatic brightness adjustment mode. Subsequently, the electronic device will automatically adjust the screen brightness based on the automatic brightness adjustment mode and changes in ambient light. This way, adjusting the brightness adjustment mode of the electronic device according to the user's wishes better suits the user's usage habits.

[0028] In one possible implementation of the first aspect, after displaying the second page in response to a screen wake-up operation, the electronic device can periodically detect both ambient light brightness and whether the user has manually set the brightness. Specifically, if the ambient light brightness is detected to be greater than an ambient light brightness threshold, or if the user manually sets the brightness and this setting exceeds the screen brightness threshold, the electronic device can adjust the screen brightness to the user-set brightness. That is, when the ambient light brightness no longer meets the corresponding conditions, or when the user-set brightness no longer meets the corresponding conditions, the electronic device will control the screen display according to the user-set brightness. This makes the screen brightness more consistent with the user's usage habits.

[0029] Secondly, this application also provides an electronic device. The electronic device may include a screen, a processor, and a memory. The screen is used to display an interface, and the memory is used to store computer execution instructions. When the electronic device is running, the processor executes the computer execution instructions stored in the memory to cause the electronic device to perform the brightness control method as described in any of the first aspects above.

[0030] Thirdly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform any of the brightness control methods described in the first aspect above.

[0031] Fourthly, a computer program product containing instructions is provided, which, when run on an electronic device, enables the electronic device to execute any of the brightness control methods described in the first aspect above.

[0032] Fifthly, an apparatus (e.g., a system-on-a-chip) is provided, comprising a processor for supporting an electronic device in performing the functions described in the first aspect above. In one possible design, the apparatus further comprises a memory for storing program instructions and data necessary for the electronic device. When the apparatus is a system-on-a-chip, it may be composed of chips or may include chips and other discrete devices.

[0033] The technical effects of any of the design methods in aspects two through five can be found in the technical effects of different design methods in aspect one, and will not be repeated here. Attached Figure Description

[0034] Figure 1 This is a schematic diagram illustrating the operation of setting brightness according to an embodiment of this application;

[0035] Figure 2 This is a schematic diagram illustrating the operation of setting brightness according to an embodiment of this application;

[0036] Figure 3 A hardware structure diagram of an electronic device provided in an embodiment of this application;

[0037] Figure 4 A software architecture diagram of an electronic device provided in an embodiment of this application;

[0038] Figure 5 A schematic flowchart illustrating a brightness control method provided in an embodiment of this application;

[0039] Figure 6 A schematic flowchart illustrating a brightness control method provided in an embodiment of this application;

[0040] Figure 7A schematic flowchart illustrating a brightness control method provided in an embodiment of this application;

[0041] Figure 8 This is a framework diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0042] In related technologies, electronic devices are typically designed with two modes for adjusting screen brightness: automatic and manual.

[0043] Taking a mobile phone as an example, users can choose between manual adjustment mode and automatic adjustment mode in the settings app. Figure 1 As shown, the phone displays a desktop 101, which includes icons for multiple applications, such as a settings application icon. In response to a user's trigger action on the settings application icon, the phone displays a settings application interface 102. The settings application interface 102 includes display and brightness setting options 103. In response to a user's trigger action on the display and brightness setting option 103, the phone displays a "Display and Brightness" settings interface 104.

[0044] The settings interface 104 includes a brightness setting option 105. This brightness setting option 105 includes a brightness bar 105a and an automatic adjustment mode switch 105b. The brightness bar 105a allows the user to manually adjust the screen brightness. The brightness bar 105a increases gradually from lower to higher brightness from left to right. The automatic adjustment switch 105b allows the user to set whether to enable or disable the automatic adjustment mode. Normally, when the automatic adjustment switch 105b is off, the phone is in manual adjustment mode. In this manual adjustment mode, the phone configures the screen brightness to the brightness manually set by the user.

[0045] In other examples, the phone's screen brightness can also be adjusted in the control center. For example... Figure 2 As shown, when the phone displays any interface, such as the desktop, it displays the control center 201 in response to the user's swipe down from the top of the screen. The control center 201 may include quick switches for WLAN, Bluetooth, mobile data, airplane mode, etc., a music control center, volume settings, and brightness settings 202. The brightness settings 202 may include a brightness bar 202a for manual brightness adjustment and a switch 202b for automatic brightness adjustment mode. The user can turn the automatic brightness adjustment mode on or off by triggering the switch 202b.

[0046] It should be noted that, in Figure 1 and Figure 2In the displayed mobile phone interface, the phone is in manual brightness adjustment mode. It is understood that "manual brightness adjustment mode" in this embodiment refers to the screen brightness adjustment mode being manually set.

[0047] When a phone is in manual brightness adjustment mode, the screen brightness will not be adjusted automatically, but rather according to the user's settings. For example, in low-light conditions such as at night, users will usually lower the screen brightness to avoid glare when looking at the screen. However, in brighter environments such as daytime, users will need to increase the screen brightness to see the displayed content clearly.

[0048] However, in some usage scenarios, the manually adjusted brightness may not be suitable for the current environment, easily leading to problems such as users not being able to see the phone screen clearly. For example, before going to sleep at night with the lights off, a user might lower the phone screen brightness and then turn it off. After waking up during the day, the ambient light is brighter than at night. When the user turns on the phone, it may still be displaying at the manually set brightness. This manually adjusted brightness may be too low for the user during the day when the ambient light is higher, making it difficult to see the screen content. Therefore, the phone's brightness control is not flexible enough.

[0049] Based on this, this application proposes a brightness control method applied to an electronic device with a screen, wherein the electronic device supports manual brightness adjustment. The method includes: displaying a first page while the electronic device is in manual brightness adjustment mode. When displaying the first page, the ambient light brightness is a first brightness, the brightness manually set by the user is a second brightness, and the screen brightness is also a second brightness. That is, the electronic device displays the page according to the brightness manually set by the user. When the electronic device receives a screen wake-up operation, it displays a second page in response. When displaying the second page, the ambient light brightness is a third brightness, the brightness manually set by the user is the second brightness, and the screen brightness is a fourth brightness; the third brightness is greater than the first brightness, and the fourth brightness is greater than the second brightness. That is, even if the brightness manually set by the user remains unchanged, but the ambient light brightness increases, the electronic device does not display the page according to the brightness manually set by the user, but instead increases the screen brightness accordingly. Thus, when the screen brightness adjustment mode of the electronic device is in manual adjustment mode, the flexibility of brightness control is improved, allowing the screen brightness of the electronic device to adapt to more usage scenarios.

[0050] Ambient light refers to the light emitted from the surrounding environment. Ambient light can be expressed as light intensity, or ambient light brightness. Electronic devices such as mobile phones typically have the ability to detect ambient light brightness, for example, through sensors.

[0051] Optionally, as an example, the first brightness is less than or equal to the ambient light brightness threshold, the third brightness is greater than the ambient light brightness threshold, and the second brightness is less than the screen brightness threshold. That is, when the ambient light is low, the electronic device can set the screen brightness according to the brightness manually set by the user to make the screen brightness more in line with the user's usage habits. When the ambient light is high and the screen brightness is low, the page can be displayed at a fourth brightness greater than the brightness manually set by the user to make the content displayed on the screen as clear as possible for the user.

[0052] Optionally, as an example, the preset brightness can specifically be a screen brightness threshold. That is, when both ambient light and screen brightness meet the corresponding conditions, the screen brightness of the electronic device can be configured to the screen brightness threshold.

[0053] For example, electronic devices can include mobile phones, tablets, personal computers (PCs), smart screens, desktop, laptop, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, smartwatches, smart bracelets and other wearable devices, artificial intelligence (AI) speakers, and in-vehicle devices. They can also include various teaching aids (such as learning machines and early education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, media players, etc. Furthermore, they can include devices with mobile office functions, smart home functions, audio-visual entertainment functions, and devices supporting smart travel. This application does not impose any special limitations on the specific form of the electronic device.

[0054] Figure 3The hardware structure of electronic device 400 is shown. Electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, antenna 1, antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a sensor module 480, buttons 490, a motor 491, a camera 492, a display screen 493, and a user identification module (SIM) card interface 494, etc. The sensor module 480 may include a pressure sensor 480A, a touch sensor 480B, and an ambient light sensor 480C, etc.

[0055] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 400. In other embodiments of this application, the electronic device 400 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0056] Processor 410 may include one or more processing units, such as 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). Different processing units may be independent devices or integrated into one or more processors. For example, processor 410 is used to execute the brightness control method in the embodiments of this application.

[0057] The controller can be the nerve center and command center of the electronic device 400. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0058] The processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory can store instructions or data that the processor 410 has just used or that are used repeatedly. If the processor 410 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0059] USB interface 430 is an interface that conforms to the USB standard specification, specifically it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. USB interface 430 can be used to connect a charger to charge electronic device 400, and it can also be used for data transfer between electronic device 400 and peripheral devices.

[0060] The external storage interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 410 through the external storage interface 420 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0061] Internal memory 421 can be used to store executable program code, which includes instructions. Processor 410 executes various functional applications and data processing of electronic device 400 by running the instructions stored in internal memory 421. Internal memory 421 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function (such as sound playback, image playback, etc.).

[0062] In addition, the internal memory 421 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0063] The charging management module 440 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 can receive charging input from the wired charger via a USB interface 430.

[0064] The power management module 441 is used to connect the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440 to power the processor 410, internal memory 421, external memory, display 493, camera 492, and wireless communication module 460, etc.

[0065] In some other embodiments, the power management module 441 may also be located within the processor 410. In still other embodiments, the power management module 441 and the charging management module 440 may also be located in the same device.

[0066] The wireless communication function of electronic device 400 can be realized through antenna 1, antenna 2, mobile communication module 450, wireless communication module 460, modem processor and baseband processor, etc.

[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0068] The mobile communication module 450 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the electronic device 400. The mobile communication module 450 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 450 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 450 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0069] The wireless communication module 460 can provide solutions for wireless communication applications on the electronic device 400, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth, Global Navigation Satellite System (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 410. The wireless communication module 460 can also receive signals to be transmitted from processor 410, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0070] In some embodiments, antenna 1 of electronic device 400 is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460, enabling electronic device 400 to communicate with networks and other devices via wireless communication technology.

[0071] Electronic device 400 can implement audio functions through audio module 470 and application processor, such as music playback and recording.

[0072] The audio module 470 is used to convert digital audio signals into analog audio signals for output, and also to convert analog audio inputs into digital audio signals. The audio module 470 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 470 may be located in the processor 410, or some functional modules of the audio module 470 may be located in the processor 410.

[0073] Pressure sensor 480A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 480A may be disposed on display screen 493. There are many types of pressure sensors 480A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to pressure sensor 480A, the capacitance between the electrodes changes. Electronic device 400 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 493, electronic device 400 detects the intensity of the touch operation based on pressure sensor 480A. Electronic device 400 can also calculate the touch position based on the detection signal from pressure sensor 480A.

[0074] Touch sensor 480B, also known as a "touch panel," can be located on display screen 493. The touch sensor 480B and display screen 493 together form a touchscreen, also known as a "touch screen." Touch sensor 480B detects touch operations applied to or near it. 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 display screen 493. In other embodiments, touch sensor 480B may also be located on the surface of electronic device 400, in a different position than display screen 493.

[0075] The ambient light sensor 480C can be used to sense ambient light brightness. In embodiments of this application, when the electronic device 400 is in manual brightness adjustment mode, the screen brightness can be configured to a brightness other than the user-manually set brightness, provided that both the ambient light brightness sensed by the ambient light sensor 480C and the brightness manually set by the user meet the corresponding conditions. The ambient light sensor 480C can also be used to automatically adjust white balance when taking photos.

[0076] Buttons 490 include a power button, volume buttons, etc. Buttons 490 can be mechanical buttons or touch-sensitive buttons. Electronic device 400 can receive button input and generate key signal inputs related to user settings and function control of electronic device 400.

[0077] Motor 491 can generate vibration alerts. Motor 491 can be used for incoming call vibration alerts or for touch vibration feedback.

[0078] Camera 492 is used to capture still images or videos. In some embodiments, electronic device 400 may include one or N cameras 492, where N is a positive integer greater than 1.

[0079] Electronic device 400 implements display functions through a GPU, a display screen 493, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 493 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 410 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0080] Display screen 493, also known as a screen, is used to display images, videos, etc. In some embodiments, electronic device 400 may include one or N display screens 493, where N is a positive integer greater than 1. In related technologies, common display screens 493 can be LED screens or OLED screens.

[0081] The SIM card interface 494 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 494 to make contact with or separate from the electronic device 400. The electronic device 400 can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0082] Figure 4 The software architecture diagram of some electronic devices in the embodiments of this application is shown.

[0083] The framework of an electronic device includes the application layer, the application framework layer, the hardware abstraction layer (HAL), and the kernel layer.

[0084] The application layer can include a series of application packages. For example, a settings application.

[0085] The application framework layer may include system server, advanced graphics platform (AGP), surface processor, sensor manager, and display manager service.

[0086] The system server is the main system process of the electronic device, providing basic system services and serving as the entry point for launching various services. The Surface Renderer manages and renders graphical windows, displaying application and system interfaces on the screen. It also handles input events, such as touch screen actions, and passes them to the correct applications or system components. Furthermore, the Surface Renderer handles screen rotation, resolution adjustment, and other aspects of display output, providing smooth graphical display and user interface interaction on the electronic device. The sensor management module manages sensors. The display management service manages the device's monitor and system display modes.

[0087] The Hardware Abstraction Layer (HAL) runs in user space, encapsulates kernel-level drivers, and provides calling interfaces to higher layers. The HAL includes modules such as display, audio services, camera, and Bluetooth.

[0088] The kernel layer is the layer between hardware and software. The kernel layer can contain screen drivers, sensor drivers, etc.

[0089] In the brightness control method proposed in this application, when the electronic device is in manual brightness adjustment mode, in response to a screen wake-up operation, the display management service obtains the ambient light brightness, such as a first brightness, from the sensor driver through the sensor management module. The display management service can also obtain the brightness to be configured on the screen, i.e., the brightness manually set by the user, such as a second brightness. In the embodiments of this application, the sensor driver may specifically include an ambient light sensor driver. Then, the display management service determines whether the first brightness is greater than an ambient light brightness threshold and whether the second brightness is less than a screen brightness threshold. If both the ambient light brightness and the brightness to be configured on the screen meet the corresponding conditions, the display management service sends a preset brightness to the screen driver through the display module to configure the screen brightness to the preset brightness.

[0090] The brightness control method proposed in this application will be described in detail below with reference to the accompanying drawings. The following explanation uses a mobile phone as an example. Figure 5 The flowcharts of brightness control methods in some embodiments are shown.

[0091] S500. Receives screen wake-up operation.

[0092] The screen wake-up operation is used to wake up the screen. It can usually be the operation of unlocking the screen, the operation of turning on the screen, or the operation of powering on the device.

[0093] S501. Determine whether the brightness is in manual adjustment mode.

[0094] If the phone is not in manual brightness adjustment mode, it means it is in automatic brightness adjustment mode. In this case, brightness control will be executed according to the logic of automatic adjustment mode. This decision branch is in... Figure 5 Not shown in the image.

[0095] If the phone is in manual brightness adjustment mode, execute S502-S506.

[0096] Optionally, prior to S501, the method may further include: enabling the manual brightness adjustment mode. For example, the specific implementation process of enabling the manual brightness adjustment mode can be referred to... Figure 1 or Figure 2 The operation process is shown.

[0097] S502. Obtain the current ambient light brightness 1 and the current screen brightness to be configured 2.

[0098] In some embodiments, the brightness of the ambient light can be obtained by a sensor, such as an ambient light sensor. In some embodiments, brightness 1 can be a third brightness, and brightness 2 can be a fourth brightness.

[0099] The current screen brightness to be configured specifically refers to the brightness most recently manually set by the user in manual adjustment mode. That is, the screen brightness to be configured when a screen wake-up operation is received. The screen brightness to be configured (i.e., brightness 2) can be obtained from the storage area in the phone used to store the brightness settings manually set by the user. In some embodiments, the phone stores a mapping relationship between the user-manually set values ​​on the brightness bar and the brightness values. Specifically, obtaining the screen brightness to be configured can be done by looking up the mapping relationship based on the current value on the brightness bar.

[0100] S503. Determine whether brightness 1 is greater than the ambient light brightness threshold.

[0101] In some embodiments, the ambient light threshold is specifically the minimum ambient light level at which a user can clearly see the content displayed on the screen when the screen brightness is low. When the screen brightness remains constant, if the ambient light level (a) is gradually increased from less than or equal to the ambient light threshold to greater than the threshold (b), the user may be able to see the content displayed on the screen at ambient light level (a) but not at ambient light level (b). Therefore, when the ambient light level exceeds this threshold, the user may be unable to see the content displayed on the screen. This ambient light threshold may also be named differently in other embodiments, such as minimum invisible brightness.

[0102] The ambient light threshold can be determined by measurement in a laboratory environment and pre-configured in the phone. Optionally, as an example, in a laboratory environment, the phone is in manual adjustment mode with the screen brightness constant, and the ambient light brightness is gradually increased. When the ambient light brightness reaches a certain value, such as 10,000 lux, the human eye can no longer clearly see the content displayed on the screen; this brightness value (e.g., 10,000 lux) is then determined as the minimum invisible brightness. In some embodiments, when determining the ambient light threshold, the screen brightness can be set to a low level, such as the phone's minimum screen brightness.

[0103] If the result of S503 is negative, it indicates that the current environment is a low-light environment. In low-light environments, a lower screen brightness is more in line with the usage habits of most users. Therefore, in low-light environments, the screen can be controlled to display according to the brightness manually adjusted by the user, as in the execution of S506.

[0104] If the result of S503 is yes, it indicates that the current environment is a high-brightness environment. In a high-brightness environment, higher brightness is usually required to ensure that the user can see the content displayed on the screen. Furthermore, if the brightness 1 is greater than the ambient light brightness threshold, S504 is executed.

[0105] S504. Determine whether brightness 2 is less than the screen brightness threshold.

[0106] The screen brightness threshold is specifically the minimum screen brightness at which a user can clearly see the displayed content in a high-brightness environment. With the ambient light brightness remaining constant, if the screen brightness gradually decreases from a value greater than the screen brightness threshold (c) to a value less than or equal to the screen brightness threshold (d), the user may be able to see the displayed content at screen brightness c, but not at screen brightness d. Therefore, when the screen brightness is less than this threshold, the user may be unable to see the displayed content. This ambient light brightness threshold may also be named differently in other embodiments, such as the high-brightness base threshold brightness.

[0107] The screen brightness threshold can be determined through measurement in a laboratory environment and pre-configured in the phone. Optionally, as an example, in a laboratory environment, the phone is in manual adjustment mode with the ambient light brightness constant, and the screen brightness is gradually reduced from high to low. When the screen brightness is reduced to a certain value, such as 20%, the human eye can clearly see the content displayed on the screen; however, if the screen brightness is further reduced from 20%, the human eye cannot clearly see the content displayed on the screen. This brightness value (e.g., 20%) is then determined as the high-brightness baseline threshold brightness. In some embodiments, when determining the high-brightness baseline threshold brightness, the ambient light brightness can be set to a relatively high ambient light brightness, such as the highest ambient light brightness used in daily life.

[0108] In other embodiments, the ambient light threshold and screen brightness threshold can also be determined in other ways and pre-configured in the mobile phone.

[0109] If the brightness 2 is less than the screen brightness threshold, i.e., the judgment result of S504 is yes, it means that the user may not be able to see the content displayed on the screen in the current high-brightness environment. In the embodiments of this application, in order to ensure that the user can see the content displayed on the screen, S505 can be executed in this case.

[0110] If brightness 2 is greater than or equal to the screen brightness threshold, i.e., the judgment result of S504 is negative, it means that the user can clearly see the content displayed on the screen in the current high-brightness environment. Therefore, the phone controls the screen display according to the configured brightness 2, as in S506.

[0111] It should be noted that, in Figure 5 The illustrated process uses the example of the phone first determining whether the ambient light brightness meets the corresponding condition (whether it is greater than the ambient light brightness threshold), and then determining whether the screen brightness meets the corresponding condition (whether it is less than the screen brightness threshold). In other embodiments, the phone may also first determine whether the screen brightness meets the corresponding condition, and then determine whether the ambient light brightness meets the corresponding condition. In this embodiment, if the screen brightness does not meet the corresponding condition, the determination of whether the ambient light brightness meets the corresponding condition can be skipped, and S506 can be executed directly. Furthermore, in this embodiment, S505 is executed if both the screen brightness and the ambient light brightness meet the corresponding condition. Alternatively, the phone may simultaneously determine whether the screen brightness and the ambient light brightness meet the corresponding condition. In this embodiment, S505 is executed if both conditions are met.

[0112] S505. Configure the screen brightness to the preset brightness.

[0113] The preset brightness is greater than 2.

[0114] The screen brightness is configured to the preset brightness, which specifically means controlling the screen to display at the preset brightness.

[0115] In some embodiments, the preset brightness can specifically be the aforementioned screen brightness threshold. As explained above, the screen brightness threshold is the minimum screen brightness at which a user can clearly see the content displayed on the screen in a high-brightness environment. Therefore, when the ambient light brightness is greater than the ambient light brightness threshold and the screen brightness is less than the screen brightness threshold, the screen brightness can be configured to this screen brightness threshold to ensure that the user can clearly see the content displayed on the screen.

[0116] In other embodiments, the preset brightness can also be set to any value greater than brightness 2.

[0117] As described above, the mobile phone includes a brightness bar for users to manually set the screen brightness. In some embodiments, the brightness adjustment range supported by the brightness bar can be expressed as 1%-100%. Typically, the mobile phone maps each value manually set by the user on the brightness bar to a corresponding screen brightness. For example, when the value on the brightness bar is 1%, the corresponding screen brightness is L1; when the value on the brightness bar is 2%, the corresponding screen brightness is L2; ​​and so on. When the mobile phone is in manual brightness adjustment mode, when setting the screen brightness, the phone obtains the brightness value manually set by the user on the brightness bar, and then looks up the mapped screen brightness based on that value to determine the screen brightness to be configured. For example, if the brightness value manually set by the user on the brightness bar is 30%, by looking up the brightness value mapped to 30%, the brightness to be configured is determined to be L30. The mobile phone can then configure the screen brightness to L30.

[0118] In some embodiments, when the phone adjusts the screen brightness based on a preset brightness level, it can also adjust the value of the brightness bar accordingly. This allows the user to be aware of any changes in screen brightness when viewing the brightness bar.

[0119] In other embodiments, the phone can maintain the brightness bar value unchanged when adjusting the screen brightness based on a preset brightness. This allows the phone to adjust the screen brightness in specific scenarios where ambient light is high and the user-set brightness (i.e., the brightness to be configured on the screen) is low, without the user noticing.

[0120] Optionally, taking a preset brightness as the screen brightness threshold as an example. As an example, if the judgment result of S504 is yes, before S505, the above method further includes: adjusting the brightness value mapped to the first value in the brightness bar of the mobile phone from the brightness value of brightness 2 to the brightness value of the screen brightness threshold. Here, the first value is the value corresponding to brightness 2 in the brightness bar. Specifically, S505 may include: the mobile phone obtaining the brightness value manually set by the user on the brightness bar as the first value, and then querying the screen brightness mapped to this first value, which in this embodiment is the brightness value of the screen brightness threshold. Then, the mobile phone determines the brightness value of the screen brightness threshold as the screen brightness to be configured. Finally, the mobile phone configures the screen brightness to the screen brightness to be configured, i.e., the brightness value of the screen brightness threshold.

[0121] For example, assuming a brightness value of 100 nits for brightness 2, a screen brightness threshold of 300 nits, and a first value of 5% corresponding to brightness 2 on the brightness bar, in S505, the phone maintains the current brightness bar value at 5%, and adjusts the brightness value mapped to 5% from 100 nits to 300 nits. After this adjustment, when setting the screen brightness, the phone obtains the brightness value of 5% manually set by the user on the brightness bar, and obtains the brightness value mapped to 5% as 300 nits. Finally, it sets the screen brightness to 300 nits. Therefore, after executing S505, the screen brightness is improved compared to setting the screen brightness according to the user's manual setting. This ensures that the screen brightness is high enough to allow the user to clearly see the displayed content without manually adjusting the brightness bar value.

[0122] Optionally, taking a preset brightness as the screen brightness threshold as an example. As another example, if the judgment result of S504 is yes, before S505, the above method further includes: adjusting the brightness values ​​mapped to the target values ​​in the brightness bar of the mobile phone to the brightness values ​​of the screen brightness threshold. Wherein, the target value is less than or equal to the second value corresponding to the screen brightness threshold in the brightness bar; the target value includes the first value corresponding to brightness 2 in the brightness bar. In this embodiment, in the above S505, when the mobile phone sets the screen brightness, since brightness 2 is one of the target values ​​on the brightness bar, the mobile phone will set the screen brightness according to the screen brightness threshold. For example, taking the brightness value of brightness 2 as 100 nits, the brightness value of the screen brightness threshold as 300 nits, the first value corresponding to brightness 2 in the brightness bar as 5%, and the second value corresponding to the screen brightness threshold in the brightness bar as 20%, in S505, the mobile phone keeps the current value of the brightness bar at 5%, and adjusts the brightness value mapped from 1% to 20% in the brightness bar from 100 nits to 300 nits. After adjustment, when setting screen brightness, the phone obtains 5% of the brightness value manually set by the user on the brightness bar, and obtains the brightness value mapped to 5% as 300 nits. Finally, it sets the screen brightness to 300 nits. Therefore, after executing S505, the screen brightness is improved compared to setting the screen brightness according to the user's manual setting. This ensures that the screen brightness is high enough to allow the user to clearly see the displayed content without manual adjustment of the brightness bar value.

[0123] Furthermore, after adjusting the brightness value mapped from 1% to 20% in the brightness bar from 100 nits to 300 nits, if the user manually adjusts the brightness and sets it to less than 20%, the phone will still display the brightness at the screen brightness threshold. This way, even in high-brightness environments, when the user manually sets a low brightness, the display will still adhere to the screen brightness threshold, ensuring the user can clearly see the displayed content.

[0124] S506. Configure the screen brightness to brightness 2.

[0125] In the technical solution proposed in this application embodiment, when the phone screen is woken up, if the ambient light is high and the user's manually set brightness is low, the phone can increase the screen brightness to ensure that the screen brightness is sufficient for the user to clearly see the displayed content in the current environment. Therefore, the phone is in manual brightness adjustment mode, which improves the flexibility of brightness control, allowing the screen brightness to adapt to more usage scenarios. Furthermore, in this application embodiment, the screen brightness is adjusted only when a screen wake-up operation is detected and certain conditions are met to improve the display effect, rather than changing the manual adjustment mode to an automatic adjustment mode. This allows for more flexible brightness control and screen brightness adaptation to more usage scenarios while maintaining the user's habit of choosing manual adjustment mode.

[0126] Ambient light can be categorized into different types based on the light source. For example, a light source can be a single source of sunlight, a single source of artificial light, or a mixture of sunlight and artificial light. Artificial light can be further classified into different types based on its color tone. Common light source types include Type A, Type C, and Type D, meaning ambient light types include Type A, Type C, and Type D. Type A, Type C, and Type D are standard light source types.

[0127] The human eye's perception of brightness may vary under different types of ambient light conditions. Therefore, in some embodiments, different ambient light brightness thresholds and screen brightness thresholds can be set for different types of ambient light. To differentiate them, multiple ambient light brightness thresholds and screen brightness thresholds pre-stored in the phone can be denoted as candidate ambient light brightness thresholds and candidate screen brightness thresholds. Table 1 shows the candidate ambient light brightness thresholds and candidate screen brightness thresholds in some embodiments.

[0128] Table 1

[0129] Ambient light type Candidate ambient light threshold Candidate screen brightness threshold Type A <![CDATA[X A ]]> <![CDATA[Y A ]]> Type D <![CDATA[X D ]]> <![CDATA[Y D ]]> Type C <![CDATA[X C ]]> <![CDATA[Y C ]]> …… …… ……

[0130] Table 1 above shows the classification according to ambient light type. The candidate ambient light brightness threshold and candidate screen brightness threshold can be obtained for each ambient light type, and the candidate ambient light brightness threshold and candidate screen brightness threshold obtained for each ambient light type can be stored accordingly.

[0131] In an embodiment where different candidate ambient light thresholds and candidate screen brightness thresholds are set for different ambient light types, optionally, before S503, the method further includes: in response to a screen wake-up operation, obtaining the target ambient light type to which the ambient light belongs; querying the candidate ambient light brightness thresholds matching the target ambient light type and their corresponding candidate screen brightness thresholds. In this embodiment, the ambient light brightness threshold in S503 is specifically the candidate ambient light brightness threshold matching the target ambient light type; the screen brightness threshold in S504 is specifically the candidate screen brightness threshold matching the target ambient light type.

[0132] Taking the information shown in Table 1 as an example, when the acquired target ambient light type is type A, the candidate ambient light brightness threshold and the candidate screen brightness threshold are respectively: (X A ,Y A Specifically, S503 may include: determining whether brightness 1 is greater than X. A If brightness 1 is greater than X A This indicates that brightness 1 is greater than the ambient light brightness threshold, meaning the judgment result of S503 is yes. When brightness 1 is greater than X... A At that time, execute S504 to determine whether brightness 2 is less than Y. A If brightness 2 is less than Y A The result of S504 is: if brightness 2 is greater than or equal to Y. A Therefore, the result of S504 is negative.

[0133] In the above embodiments, luminance 1 is less than or equal to Y. A When this happens, the judgment result corresponding to S503 is negative.

[0134] In the embodiments of this application, corresponding candidate ambient light brightness thresholds and candidate screen brightness thresholds are set for different types of ambient light, which can help to better determine whether the screen brightness needs to be adjusted in manual adjustment mode, and to make the adjusted screen brightness more in line with the current environment, thus providing a better user experience.

[0135] Furthermore, for the same ambient light type, the minimum screen brightness required for a user to clearly see the displayed content varies depending on the ambient light intensity. For example, in ambient light type A, at an ambient light intensity of 10000 lux, the screen brightness needs to be increased by at least 10% for the user to clearly see the displayed content. However, in the same ambient light type A, at an ambient light intensity of 20000 lux, a screen brightness of 10% is insufficient for the user to clearly see the displayed content; the screen brightness must be increased by at least 15% for the user to clearly see the displayed content; and so on. Therefore, in some embodiments, different candidate ambient light intensity thresholds and their corresponding candidate screen brightness thresholds can be set for the same ambient light type, as shown in Table 2:

[0136] Table 2

[0137] Ambient light type Candidate ambient light threshold Candidate screen brightness threshold Type A <![CDATA[X A1 ]]> <![CDATA[Y A1 ]]> Type A <![CDATA[X A2 ]]> <![CDATA[Y A2 ]]> Type A <![CDATA[X A3 ]]> <![CDATA[Y A3 ]]> Type D <![CDATA[X D1 ]]> <![CDATA[Y D1 ]]> Type D <![CDATA[X D2 ]]> <![CDATA[Y D2 ]]> Type D <![CDATA[X D3 ]]> <![CDATA[Y D3 ]]> Type C <![CDATA[X c1 ]]> <![CDATA[Y c1 ]]> Type C <![CDATA[X c2 ]]> <![CDATA[Y c2 ]]> Type C <![CDATA[X c3 ]]> <![CDATA[Y c3 ]]> …… …… ……

[0138] In some embodiments, X A1 >X A2 >X A3 Correspondingly, Y A1 >Y A2 >Y A3 .

[0139] In this embodiment, prior to S503, the method further includes: in response to a screen wake-up operation, obtaining the target ambient light type to which the ambient light belongs; querying candidate ambient light brightness thresholds matching the target ambient light type and their corresponding candidate screen brightness thresholds; determining the target ambient light brightness threshold from the matched candidate ambient light brightness thresholds; and obtaining the candidate screen brightness threshold corresponding to the target ambient light brightness threshold as the target screen brightness threshold. The determination result of S503 specifically indicates that brightness 1 is greater than the target ambient light brightness threshold matching the target ambient light type, and brightness 2 is less than the target screen brightness threshold matching the target ambient light type. Wherein, the target ambient light brightness threshold is the largest ambient light brightness threshold among those matching the target ambient light type that is less than or equal to brightness 1; the target screen brightness threshold corresponds to the target ambient light brightness threshold.

[0140] As another example, taking the information shown in Table 2 as an example, when the acquired target ambient light type is type A, the ambient light brightness threshold and its corresponding screen brightness threshold include: (X A1 ,Y A1 ), (X A2 Y A2 ), (X A3 Y A3 Specifically, S503 may include: determining whether brightness 1 is greater than X. A1If so, execute S504 to determine if brightness 2 is less than Y. A1 If brightness 2 is less than Y A1 This indicates that brightness 2 is less than the screen brightness threshold, meaning the judgment result of S504 is yes. In this scenario, the target screen brightness threshold is X. A1 The target screen brightness threshold is Y. A1 Alternatively, if brightness 1 is less than or equal to X. A1 Then execute S503 again to determine whether brightness 1 is greater than X. A2 If so, then execute S504 to determine whether brightness 2 is less than Y. A2 If brightness 2 is less than Y A2 This indicates that brightness 2 is less than the screen brightness threshold. In this scenario, the target screen brightness threshold is X. A2 The target screen brightness threshold is Y. A2 Alternatively, if brightness 1 is less than or equal to X. A2 Then execute S503 again to determine whether brightness 1 is greater than X. A3 If so, then execute S504 to determine whether brightness 2 is less than Y. A3 If brightness 2 is less than Y A3 This indicates that brightness 2 is less than the screen brightness threshold. In this scenario, the target screen brightness threshold is X. A3 The target screen brightness threshold is Y. A3 .

[0141] In this embodiment, luminance 1 is less than or equal to Y. A3 When this happens, the judgment result of S503 is negative.

[0142] In the embodiments of this application, corresponding ambient light brightness thresholds and screen brightness thresholds are set for different ambient light brightness levels under the same ambient light type. This helps to better determine whether the screen brightness needs to be adjusted in manual adjustment mode, and ensures that the adjusted screen brightness is more in line with the current environment, thus providing a better user experience.

[0143] Furthermore, in manual adjustment mode, if the ambient light brightness is detected to be high while the screen brightness is low, the phone adjusts the screen brightness accordingly. As the phone moves, the environment changes, and the ambient light brightness also changes. Since the phone is still in manual adjustment mode, if the ambient light gradually decreases from brightness 1 in S502 while the screen brightness remains unchanged, it will also affect the user's viewing experience. Therefore, in some embodiments, after S505, the phone can continue to detect the ambient light brightness and adjust the screen brightness again based on changes in ambient light brightness. For example, when the ambient light brightness is detected to be lower than the ambient light brightness threshold, the screen brightness is adjusted from the preset brightness back to the brightness manually set by the user, i.e., brightness 2. Figure 6As shown, the method includes:

[0144] S600. Receives screen wake-up operation.

[0145] S601. Determine whether the brightness is in manual adjustment mode.

[0146] If the phone is in manual adjustment mode, execute S602-S609. If the phone is not in manual adjustment mode, brightness control can be performed according to the logic of automatic adjustment mode.

[0147] S602. Obtain the current ambient light brightness 1 and the current screen brightness to be configured 2.

[0148] S603. Determine whether brightness 1 is greater than the ambient light brightness threshold.

[0149] If the result of S603 is negative, it indicates that the current environment is a low-light environment. In low-light environments, a lower screen brightness is more in line with the usage habits of most users. Therefore, in low-light environments, the screen can be controlled to display according to the brightness manually adjusted by the user, as in the execution of S606.

[0150] If the judgment result of S603 above is yes, it means that the current environment is a high-brightness environment. In a high-brightness environment, a higher brightness is usually required to ensure that the user can see the content displayed on the screen. Furthermore, if the brightness 1 is greater than the ambient light brightness threshold, S604 is executed.

[0151] S604. Determine whether brightness 2 is less than the screen brightness threshold.

[0152] If the brightness 2 is less than the screen brightness threshold, that is, if the judgment result of S604 is yes, then S605 is executed.

[0153] If brightness 2 is greater than or equal to the screen brightness threshold, i.e., the judgment result of S604 is negative, the phone can set the screen brightness according to the brightness 2 to be configured, as in S606.

[0154] It should be noted that, in Figure 6The illustrated process uses the example of the phone first determining whether the ambient light brightness meets the corresponding condition (whether it is greater than the ambient light brightness threshold), and then determining whether the screen brightness meets the corresponding condition (whether it is less than the screen brightness threshold). In other embodiments, the phone may also first determine whether the screen brightness meets the corresponding condition, and then determine whether the ambient light brightness meets the corresponding condition. In this embodiment, if the screen brightness does not meet the corresponding condition, the determination of whether the ambient light brightness meets the corresponding condition can be skipped, and S606 can be executed instead. Furthermore, in this embodiment, S605 is executed if both the screen brightness and the ambient light brightness meet the corresponding condition. Alternatively, the phone may simultaneously determine whether the screen brightness and the ambient light brightness meet the corresponding condition. In this embodiment, S605 is executed if both conditions are met.

[0155] S605. Configure the screen brightness to the preset brightness.

[0156] The preset brightness is greater than 2.

[0157] S606. Configure the screen brightness to brightness 2.

[0158] For the specific implementation of S600-S606, please refer to the description of S500-S506.

[0159] S607. Periodically acquire the brightness of ambient light 3.

[0160] In some embodiments, brightness 3 can be a fifth brightness.

[0161] S608. Determine whether brightness 3 is greater than the ambient light brightness threshold.

[0162] If the ambient light brightness is greater than the ambient light brightness threshold (i.e., the judgment result of S608 is yes), it means that the phone is still in a high-brightness environment, and the screen brightness can continue to be maintained at the preset brightness. In this case, the phone can return to S607.

[0163] If the ambient light brightness is detected to be less than or equal to the ambient light brightness threshold, i.e., the judgment result of S608 is no, it means that the current environment in which the mobile phone is located has become a relatively low brightness environment. At this time, the screen brightness of the mobile phone can be configured to the brightness manually set by the user to keep the screen brightness in line with the user's habits, as in S609.

[0164] S609. Adjust the screen brightness to brightness 2.

[0165] Optionally, as an example, in S609, the phone can directly adjust the screen brightness from the preset brightness to brightness 2 when the ambient light intensity is less than or equal to the ambient light intensity threshold. As another example, in S609, the phone can gradually adjust the screen brightness from the preset brightness to brightness 2. This avoids sudden changes in screen brightness.

[0166] The following example, using multiple sets of corresponding ambient light brightness thresholds and screen brightness thresholds for the same ambient light type, illustrates the process of gradually reducing the screen brightness to brightness 2 in S609.

[0167] As another example, taking type A ambient light as shown in Table 2 above, if the brightness 1 in S603 is greater than X... A1 In S604, luminance 2 is less than Y. A1 So, in S608, it can specifically determine whether brightness 3 is greater than X. A1 If the judgment result of S608 is negative, the ambient light brightness may still satisfy the condition of being greater than X. A2 The condition remains the same, meaning there's still a possibility the user won't be able to clearly see the content displayed on the screen. In this embodiment, S608 and S609 are executed as follows:

[0168] Execute S608 to determine if brightness 3 is greater than X. A1 If not, determine if brightness 3 is greater than X. A2 If X A2 < Brightness 3≤X A1 Then adjust the screen brightness to Y. A2 The phone continues to periodically check the ambient light level to determine if brightness 3 is greater than X. A2 If brightness 3 is less than or equal to X A2 Determine if brightness 3 is greater than X. A3 If X A3 < Brightness 3≤X A2 Then adjust the screen brightness to Y. A3 The phone continues to periodically check the ambient light level to determine if brightness 3 is greater than X. A3 If not, it means that the brightness 3 is less than or equal to X. A3 At this point, the screen brightness can be adjusted to the brightness set manually by the user, i.e., brightness 2.

[0169] In the technical solution proposed in this application embodiment, the mobile phone, in manual adjustment mode, automatically adjusts the screen brightness to a higher preset brightness for special scenarios (high-brightness environments, low screen brightness). Furthermore, when the ambient light brightness is detected to decrease, the screen brightness is adjusted back to the brightness manually set by the user. This ensures that the user can clearly see the screen content in special scenarios, and after exiting the special scenario, the screen brightness is adjusted to the user's manually set and preferred brightness, maintaining screen brightness that matches the user's habits. While preserving the user's habit of using manual adjustment mode, it allows the user to obtain a better screen experience in special scenarios without being aware of it, while also enabling brightness control to adapt to more usage scenarios.

[0170] Additionally, since the phone is currently in manual adjustment mode, users may manually adjust the screen brightness if they find it unsuitable. As an example, after the phone automatically adjusts the screen brightness based on specific scenarios, if it detects a user manually adjusting the brightness, the phone can directly control the screen brightness according to the user's manual setting. That is, after S505, when the phone detects a manual brightness setting, it adjusts the screen brightness from the preset brightness to the manually set brightness.

[0171] As another example, after the phone automatically adjusts the screen brightness according to specific scenarios, if it detects a user manually adjusting the brightness, the phone can also determine the brightness setting and decide whether to adjust the screen brightness according to the user's setting. For example, the phone can determine if the user's manually set brightness is greater than the preset brightness; if so, it adjusts the screen brightness from the preset brightness to the manually set brightness. Conversely, if the user's manually set brightness is less than or equal to the preset brightness, it maintains the preset brightness.

[0172] For example, a phone can determine if the brightness setting manually set by the user is greater than the screen brightness threshold. If so, it adjusts the screen brightness from the preset brightness to the manually set brightness. Conversely, if the user's manually set brightness is less than or equal to the screen brightness threshold, it maintains the preset brightness. Figure 7 The flow chart for this process is shown.

[0173] S700. Receives screen wake-up command.

[0174] S701. Determine whether the brightness is in manual adjustment mode.

[0175] If the phone is in manual adjustment mode, execute steps S702-S710. If the phone is not in manual adjustment mode, brightness control will be performed according to the logic of automatic adjustment mode.

[0176] S702. Obtain the current ambient light brightness 1 and the current screen brightness to be configured 2.

[0177] S703. Determine whether brightness 1 is greater than the ambient light brightness threshold.

[0178] If S703's judgment result is negative, it indicates that the current environment is a low-light environment. In low-light environments, a lower screen brightness is more in line with the usage habits of most users. Therefore, in low-light environments, the screen can be controlled to display according to the brightness manually adjusted by the user, as in executing S706.

[0179] If the judgment result of S703 above is yes, it means that the current environment is a high-brightness environment. In a high-brightness environment, a higher brightness is usually required to ensure that the user can see the content displayed on the screen. Furthermore, if the brightness 1 is greater than the ambient light brightness threshold, S704 is executed.

[0180] S704. Determine whether brightness 2 is less than the screen brightness threshold.

[0181] If the brightness 2 is less than the screen brightness threshold, that is, if the judgment result of S704 is yes, then S705 is executed.

[0182] If brightness 2 is greater than or equal to the screen brightness threshold, i.e., the judgment result of S704 is negative, the phone can set the screen brightness according to the brightness 2 to be configured, as in S706.

[0183] It should be noted that, in Figure 7 The illustrated process uses the example of the phone first determining whether the ambient light brightness meets the corresponding condition (whether it is greater than the ambient light brightness threshold), and then determining whether the screen brightness meets the corresponding condition (whether it is less than the screen brightness threshold). In other embodiments, the phone may also first determine whether the screen brightness meets the corresponding condition, and then determine whether the ambient light brightness meets the corresponding condition. In this embodiment, if the screen brightness does not meet the corresponding condition, the determination of whether the ambient light brightness meets the corresponding condition can be skipped, and S706 can be executed instead. Furthermore, in this embodiment, S705 is executed if both the screen brightness and the ambient light brightness meet the corresponding condition. Alternatively, the phone may simultaneously determine whether the screen brightness and the ambient light brightness meet the corresponding condition. In this embodiment, S705 is executed if both conditions are met.

[0184] S705. Configure the screen brightness to the preset brightness.

[0185] The preset brightness is greater than 2.

[0186] S706. Configure the screen brightness to brightness 2.

[0187] For the specific implementation of S700-S706, please refer to the description of S500-S506.

[0188] S707. Responding to user operation, obtain the manually set brightness 4.

[0189] In some embodiments, brightness 4 can be the sixth brightness.

[0190] S708. Determine whether brightness 4 is less than the screen brightness threshold.

[0191] If brightness 4 is less than the screen brightness threshold, meaning the judgment result of S708 is yes, it indicates that even with the screen brightness configured to brightness 4 in the current environment, the user may still have difficulty seeing the content displayed on the screen. Therefore, to ensure that the user can clearly see the content displayed on the screen, as an example, if the judgment result of S708 is yes, the screen brightness will be kept at the preset brightness, as in S709.

[0192] If brightness 4 is greater than or equal to the screen brightness threshold, i.e., the judgment result of S708 is negative, it means that in the current environment, the screen brightness is configured to brightness 4, and the user can clearly see the content displayed on the screen. To make the screen brightness more in line with the user's needs, S710 can be executed when the judgment result of S708 is negative.

[0193] S709. Keep the screen brightness at the preset brightness.

[0194] S710. Adjust the screen brightness to brightness 4.

[0195] In the technical solution proposed in this application embodiment, when the ambient light brightness is maintained at or above the ambient light brightness threshold, if the brightness is detected to be manually set by the user and is greater than or equal to the screen brightness threshold, the screen brightness is configured to the brightness manually set by the user, so that the screen brightness better meets the user's needs.

[0196] In other embodiments, after adjusting the screen brightness to a preset level in a specific scenario, the phone can not only periodically detect ambient light brightness but also continuously detect whether the user manually adjusts the brightness. When the ambient light brightness becomes less than or equal to an ambient light brightness threshold, or when the brightness manually set by the user exceeds the screen brightness threshold, the phone can adjust the screen brightness accordingly: for example, adjusting the screen brightness to the brightness manually set by the user. Thus, in manual adjustment mode, the screen brightness can adapt to more usage scenarios. It should be noted that periodically detecting ambient light brightness and detecting whether the user manually adjusts the brightness can be performed simultaneously. The specific implementation process of periodically detecting ambient light brightness, detecting whether the user manually adjusts the brightness, and adjusting the screen brightness accordingly when the ambient light brightness becomes less than or equal to the ambient light brightness threshold, or when the brightness manually set by the user exceeds the screen brightness threshold, can be found in the detailed description in the above embodiments.

[0197] Additionally, when the phone is in manual brightness adjustment mode, the user may choose to switch to automatic brightness adjustment mode. Upon detecting the user's activation of the automatic brightness adjustment switch, the phone should switch from manual to automatic mode. After switching to automatic mode, the phone will automatically adjust the screen brightness based on changes in ambient light. This allows the phone to adjust the brightness of the electronic device according to the user's preferences, better aligning with their usage habits.

[0198] In the above embodiments, the implementation process of the brightness control method proposed in this application embodiment was described using a mobile phone as the execution subject. Next, the above brightness control method will be described using several different specific scenarios.

[0199] Scenario 1: Displaying the first page; When displaying the first page, the phone is in manual brightness adjustment mode, with the ambient light brightness set to the first brightness, the brightness manually set by the user set to the second brightness, and the screen brightness set to the second brightness.

[0200] In the above scenario one, the first brightness is less than or equal to the ambient light brightness threshold, and the second brightness is less than the screen brightness threshold.

[0201] Scenario 2: Displaying a second page in response to a screen wake-up operation. The phone is in manual adjustment mode, with the ambient light brightness set to the third brightness level, the user-set brightness level set to the second brightness level, and the screen brightness set to the fourth brightness level; the third brightness level is greater than the first brightness level, and the fourth brightness level is greater than the second brightness level.

[0202] In scenario two above, the third brightness level is greater than the ambient light brightness threshold. This means that in scenario two, the ambient light is high, while the user-set brightness is low. If the screen brightness is controlled according to the user's manual setting, the user may not be able to see the displayed content. Therefore, in scenario two, the screen brightness is adjusted to a fourth brightness level, greater than the second brightness level, to ensure that the user can see the displayed content clearly under this high ambient light.

[0203] In some embodiments, the fourth brightness in scenario two above may specifically be a screen brightness threshold.

[0204] As examples, the second page can be the same as the first page.

[0205] In scenario two, the phone can perform... Figure 5 The illustrated embodiment implements screen brightness setting. It is understood that in scenario two, the judgment results of S501, S503, and S504 are all yes.

[0206] Scenario 3: After Scenario 2, the brightness manually set by the user remains at the second brightness level. When the ambient light brightness changes to the fifth brightness level, the screen brightness is adjusted to the second brightness level.

[0207] In some embodiments, the fifth brightness is less than or equal to the ambient light brightness threshold. That is, in scenario three, the ambient light brightness has decreased from the higher ambient light brightness in scenario two, and the ambient light brightness has decreased to below the ambient light brightness threshold. At this time, the screen brightness can be controlled according to the brightness manually set by the user, so that the screen brightness is more in line with the user's usage habits while ensuring that the user can see the content displayed on the screen clearly.

[0208] In scenario three, the phone can perform... Figure 6 The illustrated embodiment implements screen brightness setting. It is understood that in scenario three, the judgment results of S601, S603, and S604 are all yes, while the judgment result of S608 is no.

[0209] Scenario 4: Following Scenario 2, receive the user's manual setting of the screen brightness to the sixth brightness level, and adjust the screen brightness to the sixth brightness level.

[0210] In some embodiments, the sixth brightness level is greater than or equal to the screen brightness threshold. If the screen brightness manually set by the user is greater than or equal to the screen brightness threshold, the electronic device adjusts the screen brightness to the brightness manually set by the user, i.e., the sixth brightness level. In this way, while ensuring that the user can clearly see the content displayed on the screen, the display is based on the brightness manually set by the user, making the screen brightness more in line with the user's usage habits.

[0211] In scenario four, the phone can perform... Figure 7 The illustrated embodiment implements screen brightness setting. It is understood that in scenario four, the judgment results of S701, S703, and S704 are all yes, while the judgment result of S708 is no.

[0212] Other embodiments of this application provide an electronic device (such as a mobile phone). The electronic device may include a screen, a memory, and one or more processors. The screen, memory, and processors are coupled together. The memory is also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the mobile phone in the above method embodiments. The structure of the electronic device can be referred to... Figure 3 The structure of the electronic device 400 shown.

[0213] This application also provides a chip system, such as... Figure 8 As shown, the chip system 800 includes at least one processor 801 and at least one interface circuit 802. The processor 801 and the interface circuit 802 are interconnected via lines. For example, the interface circuit 802 can be used to receive signals from other devices (e.g., a computer's memory). As another example, the interface circuit 802 can be used to send signals to other devices (e.g., the processor 801). Exemplarily, the interface circuit 802 can read instructions stored in memory and send those instructions to the processor 801. When the instructions are executed by the processor 801, the computer can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application embodiment.

[0214] This application also provides a computer-readable storage medium including computer instructions that, when executed on the aforementioned electronic device (such as a mobile phone), cause the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiments.

[0215] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments. The computer can be an electronic device, such as a mobile phone.

[0216] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0217] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0218] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0219] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0220] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0221] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A brightness control method, characterized in that, Applied to an electronic device in a manual brightness adjustment mode, the method includes: The first page is displayed; when the first page is displayed, the ambient light brightness is the first brightness, the brightness manually set by the user is the second brightness, and the screen brightness is the second brightness; The system displays a second page in response to a screen wake-up operation; when the second page is displayed, the ambient light brightness is a third brightness, the brightness manually set by the user is the second brightness, and the screen brightness is a fourth brightness; the third brightness is greater than the first brightness, and the fourth brightness is greater than the second brightness.

2. The method according to claim 1, characterized in that, The response to the screen wake-up operation to display the second page includes: In response to a screen wake-up operation, the system obtains the current ambient light brightness and the current screen brightness to be configured; the screen brightness to be configured is the brightness manually set by the current user. If the current ambient light brightness is greater than the ambient light brightness threshold and the current screen brightness to be configured is less than the screen brightness threshold, the second page is displayed at the fourth brightness.

3. The method according to claim 2, characterized in that, Before displaying the second page at the fourth brightness, the method further includes: If the current ambient light brightness is greater than the ambient light brightness threshold, and the current screen brightness to be configured is less than the screen brightness threshold, the brightness mapped to the first value in the brightness setting options of the electronic device is adjusted from the second brightness to the fourth brightness; the first value is the value corresponding to the current screen brightness to be configured in the brightness setting options; or, When the current ambient light brightness is greater than the ambient light brightness threshold and the current screen brightness to be configured is less than the screen brightness threshold, the brightness mapped to the target value in the brightness setting option of the electronic device is adjusted to the fourth brightness; the target value is less than or equal to the second value; the second value is the value corresponding to the fourth brightness in the brightness setting option, and the target value includes the first value corresponding to the current screen brightness to be configured in the brightness setting option; The step of displaying the second page at the fourth brightness includes: Obtain a first value for the brightness setting option, and the fourth brightness value mapped to the first value; Configure the screen brightness to the fourth brightness level and display the second page.

4. The method according to claim 3, characterized in that, The method further includes: keeping the value of the brightness setting option unchanged at the first value.

5. The method according to any one of claims 2-4, characterized in that, The fourth brightness is the screen brightness threshold.

6. The method according to any one of claims 1-5, characterized in that, After displaying the second page in response to a screen wake-up operation, the method further includes: The electronic device periodically acquires the current ambient light intensity; If the brightness manually set by the user is still the second brightness, and the current ambient light brightness becomes the fifth brightness, the screen brightness is adjusted to the second brightness; the fifth brightness is less than the third brightness.

7. The method according to claim 6, characterized in that, The fifth brightness is less than or equal to the ambient light brightness threshold.

8. The method according to any one of claims 1-7, characterized in that, After displaying the second page in response to a screen wake-up operation, the method further includes: If the ambient light brightness is still the third brightness, the system receives a user's manual setting of the screen brightness to the sixth brightness and adjusts the screen brightness to the sixth brightness.

9. The method according to claim 8, characterized in that, After receiving the user's manual setting of the screen brightness to the sixth brightness level, the method further includes: In response to a user manually setting the screen brightness, if the sixth brightness level is greater than the screen brightness threshold, the screen brightness is adjusted to the sixth brightness level.

10. The method according to claim 9, characterized in that, After receiving the user's manual setting of the screen brightness to the sixth brightness level, the method further includes: If the sixth brightness is less than or equal to the screen brightness threshold, the screen brightness is maintained at the fourth brightness.

11. The method according to any one of claims 2, 3, 5 or 7-10, characterized in that, The electronic device stores multiple sets of candidate ambient light brightness thresholds and candidate screen brightness thresholds; each set of thresholds corresponds to an ambient light type; different ambient light types correspond to different candidate ambient light brightness thresholds, and / or, different ambient light types correspond to different candidate screen brightness thresholds. Wherein, the ambient light brightness threshold is a candidate ambient light brightness threshold that matches the ambient light type to which the current ambient light belongs, and the screen brightness threshold is a candidate screen brightness threshold that matches the ambient light type to which the current ambient light belongs.

12. The method according to claim 11, characterized in that, Each set of thresholds corresponding to each type of ambient light includes: multiple candidate ambient light brightness thresholds and multiple candidate screen brightness thresholds, with a one-to-one correspondence between the candidate ambient light brightness thresholds and the candidate screen brightness thresholds. Wherein, the ambient light brightness threshold is the largest among the candidate ambient light brightness thresholds that match the ambient light type to which the current ambient light belongs, which is less than or equal to the current ambient light brightness; the screen brightness threshold is the candidate screen brightness threshold corresponding to the ambient light brightness threshold.

13. The method according to any one of claims 1-12, characterized in that, The method further includes: In response to the user's operation of turning on the automatic brightness adjustment mode, the brightness is switched from the manual brightness adjustment mode to the automatic brightness adjustment mode.

14. An electronic device, characterized in that, The electronic device includes: a screen, a processor, a memory, and a computer program stored in the memory; the screen, the memory, and the processor are coupled together. When the electronic device is running, the processor executes the computer program to implement the method as described in any one of claims 1-13.

15. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor of an electronic device, implements the method as described in any one of claims 1-13.

16. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the method as described in any one of claims 1-13.