Screen brightness adjustment method and apparatus, and electronic device and readable storage medium
By achieving temperature induction in electronic devices and gradually reducing the brightness of the screen, the problem of overheating equipment in high brightness scenarios has been solved, and high screen brightness and good user experience have been maintained.
Patent Information
- Application Number
- PCT/CN2024/078620
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-27
- Filing Date
- 2024-02-26
- Publication Date
- 2025-01-30
AI Technical Summary
When using electronic devices outdoors or in strong light scenarios, the screen brightness needs to be increased to ensure the display effect, but this will cause the device temperature to rise rapidly, trigger the temperature protection mechanism, limit the screen brightness, and affect the user experience.
Provide a screen brightness adjustment method. By obtaining the equipment temperature, when the temperature reaches a certain threshold, the screen brightness is gradually reduced according to a linear or non -linear way, until the temperature stabilizes at another high threshold to avoid overheating equipment.
It is realized that the high screen brightness is maintained in the high brightness scenario without heat, avoiding the problem of sudden decrease in brightness, and improving the user experience.
Smart Images

Figure CN2024078620_30012025_PF_FP_ABST
Abstract
Description
Screen brightness adjustment method, device, electronic device and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on July 27, 2023, with application number 202310940242.8 and application name “Screen brightness adjustment method, device, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a method, device, electronic device and readable storage medium for adjusting screen brightness. Background Art
[0003] When users use electronic devices outdoors or in bright sunlight, the screens of these devices need to provide higher brightness to ensure a good display. However, increasing screen brightness often requires a higher drive current, which can cause the entire device to heat up rapidly.
[0004] Currently, a protection mechanism can be triggered when the temperature of an electronic device reaches a certain temperature threshold, reducing the screen brightness to a lower level to reduce the driving current to ensure that the temperature of the electronic device does not become too high.
[0005] However, the current solution will reach the temperature protection threshold in a very short time when the screen brightness is maintained at a high level, triggering the protection mechanism, causing the screen brightness to be limited to a lower level, affecting the user experience.
[0006] Summary of the Invention
[0007] The present application provides a screen brightness adjustment method, device, electronic device and readable storage medium, which can gradually reduce the screen brightness of the electronic device when it is in a high-brightness scene, so that the electronic device can maintain a high brightness without overheating, and improve the problem that when the screen brightness is maintained at a high brightness, the temperature protection threshold will be reached in a very short time, triggering the protection mechanism, resulting in the screen brightness being limited to a lower level, affecting the user experience.
[0008] To achieve the above objectives, this application adopts the following technical solutions:
[0009] In a first aspect, a screen brightness adjustment method is provided, which is applied to an electronic device and includes:
[0010] When the electronic device is in a high-brightness scene, the device temperature of the electronic device is obtained; when the device temperature is greater than or equal to a first temperature threshold, the screen brightness of the electronic device is gradually reduced linearly or nonlinearly until the device temperature is the same as or close to a second temperature threshold, and the second temperature threshold is greater than the first temperature threshold.
[0011] In the embodiments of the present application, the screen brightness adjustment method can be applied to electronic devices, including mobile phones, tablet computers, handheld game consoles, wearable devices, augmented reality / virtual reality devices, laptops, ultra-mobile personal computers, netbooks, personal digital assistants, etc.
[0012] In the first aspect, by adjusting the screen brightness of the electronic device when the device is in a high-brightness scenario and reaches the first temperature threshold, the brightness of the electronic device can be gradually reduced until the device temperature reaches or is close to the second temperature threshold. During this process, the screen brightness of the electronic device can be maintained at a relatively high level without abrupt brightness changes, providing a better user experience.
[0013] In some possible implementations, when the device temperature is greater than or equal to a first temperature threshold, the screen brightness of the electronic device is gradually reduced linearly or nonlinearly until the device temperature is the same as or close to a second temperature threshold, including: when the device temperature is greater than or equal to the first temperature threshold, obtaining a corresponding brightness adjustment function based on the ambient temperature of the electronic device, the brightness adjustment function being used to determine the screen brightness based on the device temperature at the ambient temperature, the brightness adjustment function including a linear brightness adjustment function or a nonlinear brightness adjustment function. Gradually reducing the screen brightness of the electronic device according to the brightness adjustment function until the device temperature is the same as or close to the second temperature threshold.
[0014] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is the ratio of the balanced screen brightness to the maximum screen brightness. When the screen brightness of the electronic device is maintained at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold.
[0015] Gradually reducing the screen brightness of the electronic device according to the brightness adjustment function includes: obtaining a brightness adjustment coefficient through the brightness adjustment function according to a first temperature threshold, a second temperature threshold, and a balance brightness coefficient, and adjusting the screen brightness of the electronic device according to the brightness adjustment coefficient.
[0016] In some possible implementations, adjusting the screen brightness of the electronic device according to the brightness adjustment coefficient includes: multiplying the brightness adjustment coefficient by the maximum screen brightness to obtain a target brightness; and adjusting the screen brightness of the electronic device to the target brightness.
[0017] In some possible implementations, the device temperature is close to the second temperature threshold, including: the difference between the device temperature and the second temperature threshold is less than or equal to a preset threshold; or the temperature difference between the device temperature and the second temperature threshold is less than or equal to a preset ratio.
[0018] In some possible implementations, determining that the electronic device is in a highlight scene includes: obtaining the brightness of the environment in which the electronic device is located, and determining that the electronic device is in a highlight scene when the ambient brightness is greater than or equal to a first brightness threshold. Alternatively, obtaining the screen brightness of the electronic device, and determining that the electronic device is in a highlight scene when the screen brightness is greater than or equal to a second brightness threshold.
[0019] In some possible implementations, the method further includes: when the device temperature reaches a third temperature threshold, gradually reducing chip performance of the electronic device until the device temperature is the same as or close to the second temperature threshold.
[0020] In a second aspect, a screen brightness adjustment device is provided, which is applied to an electronic device, comprising:
[0021] An acquisition module, configured to acquire a device temperature of the electronic device when the electronic device is in a high-brightness scene;
[0022] The adjustment module is used to gradually reduce the screen brightness of the electronic device in a linear or nonlinear manner when the device temperature is greater than or equal to the first temperature threshold until the device temperature is the same as or close to the second temperature threshold, and the second temperature threshold is greater than the first temperature threshold.
[0023] In some possible implementations, the adjustment module is specifically configured to, when the device temperature is greater than or equal to a first temperature threshold, obtain a corresponding brightness adjustment function based on the ambient temperature of the electronic device, the brightness adjustment function being configured to determine screen brightness based on the device temperature at the ambient temperature, and the second temperature threshold being greater than the first temperature threshold. The screen brightness of the electronic device is gradually reduced according to the brightness adjustment function until the device temperature is equal to or close to the second temperature threshold.
[0024] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is the ratio of the balanced screen brightness to the maximum screen brightness. When the screen brightness of the electronic device is maintained at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold.
[0025] The adjustment module is specifically configured to obtain a brightness adjustment coefficient through a brightness adjustment function according to the first temperature threshold, the second temperature threshold, and the balance brightness coefficient, and adjust the screen brightness of the electronic device according to the brightness adjustment coefficient.
[0026] In some possible implementations, the adjustment module is specifically configured to multiply the brightness adjustment coefficient by the maximum screen brightness to obtain a target brightness; and adjust the screen brightness of the electronic device to the target brightness.
[0027] In some possible implementations, the device temperature is close to the second temperature threshold, including: the difference between the device temperature and the second temperature threshold is less than or equal to a preset threshold; or the temperature difference between the device temperature and the second temperature threshold is less than or equal to a preset ratio.
[0028] In some possible implementations, the acquisition module is specifically configured to acquire the brightness of the environment in which the electronic device is located, and determine that the electronic device is in a high-brightness scene when the ambient brightness is greater than or equal to a first brightness threshold. Alternatively, the acquisition module is configured to acquire the screen brightness of the electronic device, and determine that the electronic device is in a high-brightness scene when the screen brightness is greater than or equal to a second brightness threshold.
[0029] In some possible implementations, the adjustment module is further configured to gradually reduce chip performance of the electronic device when the device temperature reaches a third temperature threshold, until the device temperature is the same as or close to the second temperature threshold.
[0030] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor performs the steps of processing in the first aspect or any one of the methods in the first aspect.
[0031] In a fourth aspect, a chip is provided, comprising: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the steps of processing in the first aspect or any one of the methods in the first aspect.
[0032] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the steps of processing in the first aspect or any one of the methods in the first aspect.
[0033] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program code, which, when executed by an electronic device, enables the electronic device to execute the steps of processing in the first aspect or any one of the methods in the first aspect.
[0034] Among them, the beneficial effects of the second to sixth aspects can refer to the first aspect and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] FIG1 is a schematic diagram of an application scenario of a screen brightness adjustment method provided by an embodiment of the present application;
[0036] FIG2 is a hardware structure block diagram of an electronic device provided in an embodiment of the present application;
[0037] FIG3 is a system structure block diagram of an electronic device provided in an embodiment of the present application;
[0038] FIG4 is a flow chart of a method for adjusting screen brightness according to an embodiment of the present application;
[0039] FIG5 is a schematic diagram of a curve showing changes in screen brightness, device temperature, and time in a screen brightness adjustment method provided in an embodiment of the present application;
[0040] FIG6 is a flow chart of a method for adjusting screen brightness according to another embodiment of the present application;
[0041] FIG7 is a structural block diagram of a screen brightness adjustment device provided in an embodiment of the present application;
[0042] FIG8 is a schematic structural diagram of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solution in this application will be described below with reference to the accompanying drawings.
[0044] In the description of the embodiments of this application, unless otherwise specified, " / " represents or. For example, A / B can represent A or B. "And / or" in this article is simply a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "plurality" means two or more than two.
[0045] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0046] When using electronic devices outdoors or under strong sunlight, users may need to increase the screen brightness to a certain level to ensure that users can see the screen clearly and provide good display effects.
[0047] However, screen brightness levels that meet the requirements for outdoor use or under strong sunlight are often higher, and to match this, a sufficiently large drive current is required to drive the screen. Although high current improves screen brightness, it also causes the entire electronic device to heat up rapidly.
[0048] With the current solution, when the screen brightness remains high, the entire electronic device's temperature quickly reaches the temperature protection threshold, triggering the overheat protection mechanism. Once triggered, the overheat protection mechanism forcibly reduces the screen brightness to a lower level, which is often insufficient for outdoor use or in strong sunlight, severely impacting the user experience.
[0049] In this regard, the present application provides a screen brightness adjustment method, which is applied to an electronic device, including: when the electronic device is in a high-brightness scene, obtaining the device temperature of the electronic device; when the device temperature is greater than or equal to a first temperature threshold, gradually reducing the screen brightness of the electronic device in a linear or nonlinear manner until the device temperature is the same as or close to a second temperature threshold, and the second temperature threshold is greater than the first temperature threshold.
[0050] In this application, since the screen brightness of the electronic device is adjusted when the electronic device is in a high-brightness scene and reaches the first temperature threshold, the brightness of the electronic device can be gradually reduced until the device temperature is the same as or close to the second temperature threshold. During this process, the screen brightness of the electronic device can always be maintained at a relatively high brightness level without cliff-like brightness changes, providing users with a better user experience.
[0051] FIG1 is a schematic diagram of an application scenario of a screen brightness adjustment method provided in an embodiment of the present application.
[0052] With reference to FIG1 , the application scenario of the embodiment of the present application is first briefly described.
[0053] FIG1 shows an electronic device 100. When a user uses the electronic device 100 outdoors under sunlight, the sunlight intensity is relatively high. The electronic device 100 detects that the ambient brightness is greater than the first brightness threshold and determines that the electronic device 100 is in a high-brightness scene. In this case, the electronic device 100 starts to obtain the device temperature. When the device temperature is greater than or equal to the first temperature threshold, the electronic device 100 starts to adjust the screen brightness of the electronic device until the device temperature is the same as or close to the second temperature threshold. During this adjustment process, the screen brightness of the electronic device is gradually reduced, and the screen brightness of the electronic device can always be maintained at a relatively high brightness level, giving the user a better user experience.
[0054] FIG2 is a block diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0055] As examples, electronic devices may include mobile phones, tablet computers, handheld game consoles, wearable devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0056] 2 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0057] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0058] For example, when the electronic device 100 is a mobile phone or a tablet computer, it may include all the components shown in the figure, or may include only some of the components shown in the figure.
[0059] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0060] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0061] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0062] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0063] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0064] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0065] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0066] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0067] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0068] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.
[0069] The modem processor can include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
[0070] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0071] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0072] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0073] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0074] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0075] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0076] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0077] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0078] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0079] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0080] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0081] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0082] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0083] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0084] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0085] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0086] The pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals.
[0087] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0088] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0089] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0090] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0091] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0092] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0093] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0094] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0095] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0096] In an embodiment of the present application, the temperature sensor 180J may include multiple ones for detecting the temperatures at different locations of the electronic device 100, such as being set near the processor to obtain the temperature of the processor, being set near the battery to obtain the temperature of the battery, or being set on the inside of the outer casing of the electronic device 100 to obtain the temperature of the outer casing of the electronic device 100.
[0097] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0098] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0100] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0101] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0102] For the scenario in the above example, the operating system of the electronic device 100 may include but is not limited to Symbian, Android, Windows, MacOS, iOS, Blackberry, HarmonyOS, Linux or Unix operating systems.
[0103] FIG3 is a system structure block diagram of an electronic device provided in an embodiment of the present application.
[0104] As an example, when the screen brightness adjustment method provided in the present application is run on the electronic device 100, the operating system of the electronic device 100 may be Android, and its system structure may refer to FIG3 .
[0105] The layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0106] The application layer can include a series of application packages.
[0107] As shown in FIG3 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0108] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0109] As shown in FIG3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0110] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0111] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0112] The view system includes visual controls, such as controls for displaying text and images. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text message notification icon might include a view for displaying text and a view for displaying images.
[0113] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0114] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0115] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0116] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0117] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0118] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0119] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0120] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0121] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0122] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing.
[0123] A 2D graphics engine is a drawing engine for 2D drawings.
[0124] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0125] FIG4 is a flow chart of a method for adjusting screen brightness according to an embodiment of the present application.
[0126] Referring to FIG4 , the screen brightness adjustment method includes:
[0127] S401: Detect that the electronic device is in a highlight scene. If yes, execute S402; otherwise, continue detecting.
[0128] In some possible implementations, detecting whether the electronic device is in a high-brightness scene can be achieved by detecting the ambient brightness of the electronic device or obtaining the screen brightness of the electronic device.
[0129] As an example, referring to the scene in Figure 1 and the electronic device structure shown in Figure 2, when the ambient brightness acquired by the ambient light sensor 180L in the electronic device is greater than or equal to the first brightness threshold, it can be determined whether the electronic device is in a high-brightness scene.
[0130] For example, assuming that the first brightness threshold is 10,000 lux (lx), for the scene in FIG1 , if the ambient brightness illuminance collected by the ambient light sensor 180L is 12,000 lx, it can be determined that the electronic device is in a high-brightness scene.
[0131] In another example, if the ambient brightness is not high (e.g., only 5000 lx), but the screen brightness is manually set or forced to be increased by some applications, in this case, the brightness of the electronic device's screen can be obtained, and when the screen brightness is greater than or equal to the second brightness threshold, it can be determined whether the electronic device is in a high-brightness scene.
[0132] For example, assuming that the second brightness threshold is 1000 nits (nit), if the brightness of the screen of the electronic device is obtained to be 1300 nit, it can be determined that the electronic device is in a high-brightness scene.
[0133] S402: Acquire the device temperature of the electronic device.
[0134] In some possible implementations, referring to the electronic device structure shown in FIG2 , the electronic device can obtain the device temperature via a temperature sensor 180J. The temperature sensor 180J can be located inside the housing of the electronic device, near the processor, or inside the screen. Alternatively, multiple temperature sensors 180J can be provided, and the average of the temperatures collected by the multiple temperature sensors 180J can be used as the device temperature.
[0135] S403: Detect that the device temperature is greater than or equal to the first temperature threshold. If so, execute S404; otherwise, continue detecting.
[0136] In some possible implementations, the first temperature threshold can also serve as a warning temperature. That is, when the temperature of the electronic device rises to the first temperature threshold, it is necessary to intervene and adjust the screen brightness to ensure that the electronic device does not rapidly increase the device temperature due to high screen brightness and trigger thermal control protection. As an example, the first temperature threshold can be pre-set and can be lower than the temperature at which thermal control triggers thermal control protection. For example, the first temperature threshold can be 30°C, 33°C, or 35°C.
[0137] FIG5 is a schematic diagram of a curve showing changes in screen brightness, device temperature, and time in a screen brightness adjustment method provided in an embodiment of the present application.
[0138] Referring to Figure 5 , at time t1, the screen brightness of the electronic device begins to increase, and at time t2, the electronic device is detected to be in a high-brightness scene. In this case, S402 and S403 are executed. When, at time t3, it is detected that the device temperature is greater than or equal to the first temperature threshold T1, it is determined that intervention is required to adjust the screen brightness.
[0139] S404: Obtain a corresponding brightness adjustment function according to the ambient temperature of the electronic device.
[0140] In some possible implementations, the electronic device's temperature rise rate may be different due to different ambient temperatures. Therefore, a corresponding brightness adjustment function may be obtained based on the ambient temperature of the electronic device.
[0141] The ambient temperature of the electronic device can be obtained by a temperature sensor provided on the surface of the electronic device. Alternatively, it can be obtained through a weather forecast application. Alternatively, it can be obtained through a smart device with a temperature measurement function that is communicatively connected to the electronic device. For example, if the environment in which the electronic device is located includes smart devices such as a smart air conditioner, a smart thermometer, or a smart air purifier that are communicatively connected to the electronic device, the electronic device can request the smart device to feedback the ambient temperature to obtain the ambient temperature of the electronic device.
[0142] As an example, for each electronic product, a balanced brightness coefficient of the electronic device under different ambient temperatures can be pre-acquired. The balanced brightness coefficient is the ratio of the balanced screen brightness to the maximum screen brightness. When the screen brightness of the electronic device remains at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold.
[0143] That is, the balanced brightness coefficient K 平 It can be expressed by formula 1: K 平 =L 平 / L max (Formula 1)
[0144] Among them, L 平 To balance the screen brightness, L max is the maximum screen brightness.
[0145] Then, a brightness adjustment function of the electronic product under different ambient temperatures is obtained.
[0146] In some possible implementations, the brightness adjustment function may output a brightness adjustment coefficient K, which is related to L max The product of is the target brightness L of the screen.
[0147] As an example, referring to FIG5 , the brightness adjustment coefficient K can be calculated by Formula 2 or Formula 3:
[0148] Among them, formula 2 is a linear brightness adjustment function. By adjusting the screen brightness by K in formula 2, linear adjustment of the screen brightness can be achieved. Formula 3 is a nonlinear brightness adjustment function. By adjusting the screen brightness by K in formula 3, nonlinear adjustment of the screen brightness can be achieved.
[0149] The target brightness L of the screen can be calculated by formula 4: L = K * L max (Formula 4)
[0150] Where T is the device temperature of the electronic device, T2 is the second temperature threshold, that is, the temperature at which the screen brightness is maintained at the balanced screen brightness, and T3 is the temperature at which the temperature control protection is triggered.
[0151] Taking the room temperature of 25℃ as an example, T1 can be 35℃, T2 can be 40℃, and T3 can be 42℃.
[0152] As an example, referring to Figure 5, when it is detected at time t3 that the device temperature is greater than or equal to the first temperature threshold T1, the brightness adjustment function of the electronic device (i.e., Formula 2 or Formula 3) can be obtained according to the current ambient temperature of the electronic device. Then, S405 is executed according to Formula 2 or Formula 3.
[0153] S405: gradually reduce the screen brightness of the electronic device according to the brightness adjustment function.
[0154] In some possible implementations, referring to the example in S404, when adjusting screen brightness according to Formula 2 or Formula 3, a temperature sensor threshold may be set first. For example, the first temperature threshold T1 may be set to 35°C. When the temperature obtained by the temperature sensor is greater than or equal to 35°C, the obtained device temperature T is sent to the display engine.
[0155] The display engine calculates the real-time brightness adjustment coefficient K according to the received temperature T and reference formula 2 or formula 3.
[0156] The display engine may be a software display engine or a hardware display engine. For example, the software display engine may be a display engine service in a framework layer.
[0157] For example, when the electronic device is a mobile phone, L max It can be 1500nit. When the room temperature is 25°C, if the mobile phone load is normal, the screen brightness is 1000nit, which can make the device temperature of the mobile phone stable at around 40℃ (T2). Then T1 can be set to 35℃. According to the formula in the above example, K can be calculated. 平 When the device temperature is higher than T1, the temperature sensor can report the temperature every 5 seconds, and the device temperature of the electronic device can be the average of the last 5 temperatures reported by the temperature sensor.
[0158] As an example, the electronic device can also update the brightness adjustment coefficient K at preset temperature intervals. For example, after the device temperature T reaches T1 (35°C), the brightness adjustment coefficient K can be updated every 0.5°C increase. That is, when T rises from 35°C to 35.5°C or above, the brightness adjustment coefficient K can be updated. If it rises from 35°C to 35.4°C, the brightness adjustment coefficient K is not updated because the temperature increase is less than 0.5°C.
[0159] The above calculation steps can be performed in the display engine service of the Framework. After the brightness coefficient K is calculated, according to K and L max Calculate the target brightness L. Then, send the target brightness to the thread that controls the screen brightness, and combine it with the brightness switching module to smoothly switch the screen brightness in a gradual manner.
[0160] For example, the brightness can be sent to the backlight driver (Backlight Driver) of the kernel layer through the brightness control service "lightService", and the brightness can be smoothly adjusted by the Backlight Driver.
[0161] Among them, lightService is a service in the Android system that is used to control the screen brightness. lightService allows the use of functions to set the screen brightness of the device. For example, you can adjust the screen brightness by passing a brightness value parameter or using a predefined brightness constant. In this application, the K and L calculated using Formula 2 or Formula 3 are max Multiply them to get the target brightness L, and use the target brightness L as a parameter of the brightness value to adjust the screen brightness.
[0162] The Backlight Driver controls the screen's backlight brightness. It provides smooth adjustment, enabling smooth brightness transitions to avoid noticeable brightness changes. Upon receiving the target brightness L, the Backlight Driver smoothly adjusts the backlight brightness based on the difference between the target brightness L and the current display brightness, controlling the screen's backlight brightness to match the target brightness L.
[0163] S406: Detect that the device temperature is the same as or close to the second temperature threshold. If so, execute S407; otherwise, continue to execute S405.
[0164] S407. Maintain the screen brightness of the electronic device.
[0165] In some possible implementations, referring to FIG5 , when at time t4, it is detected that the device temperature is the same as or close to the second temperature threshold, that is, it is determined that the screen brightness of the electronic device is balanced with the temperature, the screen brightness of the electronic device can be maintained. In this case, the device temperature of the electronic device can be maintained at a suitable temperature (T2).
[0166] The device temperature being close to the second temperature threshold includes: the difference between the device temperature and the second temperature threshold being less than or equal to a preset threshold, or the difference between the device temperature and the second temperature threshold being less than or equal to a preset ratio.
[0167] For example, the second temperature threshold is 40°C and the preset threshold is 0.2°C. When the device temperature is 40°C, it is confirmed that the device temperature is the same as the second temperature threshold. When the device temperature is between 39.8°C and 40.2°C, it is confirmed that the device temperature is close to the second temperature threshold.
[0168] For another example, the second temperature threshold is 40°C and the preset ratio is 1%. When the device temperature is 40°C, the device temperature is confirmed to be the same as the second temperature threshold. When the device temperature is between 39.6°C (40°C * 99%) and 40.4°C (40°C * 101%), the device temperature is confirmed to be close to the second temperature threshold.
[0169] FIG6 is a flow chart of a method for adjusting screen brightness according to another embodiment of the present application.
[0170] Referring to FIG. 6 , steps S401 to S407 are the same as those in FIG. 4 , and are not described in detail herein.
[0171] After S407, the screen brightness adjustment method further includes:
[0172] S408: Detect that the device temperature is greater than or equal to a third temperature threshold. If so, execute S409; otherwise, continue detecting.
[0173] S409. Gradually reduce the chip performance of the electronic device.
[0174] S410: Detect that the device temperature is the same as or close to the second temperature threshold. If so, execute S407; otherwise, continue detecting.
[0175] In some possible implementations, when the screen brightness of the electronic device is maintained, operating the electronic device causes the power consumption of the electronic device to increase, or the ambient temperature changes significantly, both of which may cause the device temperature of the electronic device to rise sharply.
[0176] In this case, if it is detected that the device temperature is greater than or equal to the third temperature threshold (ie, the temperature that triggers temperature control protection), S409 may be executed to reduce device power consumption, thereby reducing the device temperature of the electronic device.
[0177] For example, gradually reducing the chip performance of an electronic device can involve lowering the screen refresh rate, that is, reducing the GPU rendering frame rate. Alternatively, the chip's computing requirements can be reduced, such as by lowering the sampling frequency of various sensors on the electronic device, the transmission rate of wireless networks, near-field communications, and Bluetooth, and disabling background computing applications. By reducing the chip's computing load and disabling some of the chip's hardware computing units, the heat generated by the chip and its key components can be reduced, preventing continued temperature increases.
[0178] The method in S410 is the same as that in S406 and will not be described in detail here.
[0179] In this embodiment, when the device temperature is detected to be greater than or equal to the third temperature threshold, the chip performance of the electronic device is gradually reduced until the device temperature is equal to or close to the second temperature threshold. This ensures that the screen brightness remains at a high level while also reducing the temperature of the electronic device to a reasonable range when the device temperature is too high, providing a better user experience.
[0180] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated.
[0181] It is obvious that those skilled in the art can make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.
[0182] Corresponding to the screen brightness adjustment method provided in the above embodiment, Figure 7 is a structural block diagram of a screen brightness adjustment device provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown.
[0183] 7 , a screen brightness adjustment device is applied to an electronic device, comprising:
[0184] An acquisition module 71 is configured to acquire a device temperature of the electronic device when the electronic device is in a high-brightness scene;
[0185] The adjustment module 72 is used to gradually reduce the screen brightness of the electronic device linearly or nonlinearly when the device temperature is greater than or equal to the first temperature threshold until the device temperature is the same as or close to the second temperature threshold, and the second temperature threshold is greater than the first temperature threshold.
[0186] In some possible implementations, the adjustment module 72 is specifically configured to, when the device temperature is greater than or equal to a first temperature threshold, obtain a corresponding brightness adjustment function based on the ambient temperature of the electronic device, the brightness adjustment function being configured to determine screen brightness based on the device temperature at the ambient temperature, the brightness adjustment function including a linear brightness adjustment function or a nonlinear brightness adjustment function. The screen brightness of the electronic device is gradually reduced according to the brightness adjustment function until the device temperature is equal to or close to a second temperature threshold.
[0187] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is the ratio of the balanced screen brightness to the maximum screen brightness. When the screen brightness of the electronic device is maintained at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold.
[0188] The adjustment module 72 is specifically configured to obtain a brightness adjustment coefficient through a brightness adjustment function according to the first temperature threshold, the second temperature threshold, and the balance brightness coefficient, and adjust the screen brightness of the electronic device according to the brightness adjustment coefficient.
[0189] In some possible implementations, the adjustment module 72 is specifically configured to multiply the brightness adjustment coefficient by the maximum screen brightness to obtain a target brightness; and adjust the screen brightness of the electronic device to the target brightness.
[0190] In some possible implementations, the device temperature is close to the second temperature threshold, including: the difference between the device temperature and the second temperature threshold is less than or equal to a preset threshold; or the temperature difference between the device temperature and the second temperature threshold is less than or equal to a preset ratio.
[0191] In some possible implementations, the acquisition module 71 is specifically configured to acquire the brightness of the environment in which the electronic device is located, and determine that the electronic device is in a high-brightness scene when the ambient brightness is greater than or equal to a first brightness threshold. Alternatively, the acquisition module 71 is configured to acquire the screen brightness of the electronic device, and determine that the electronic device is in a high-brightness scene when the screen brightness is greater than or equal to a second brightness threshold.
[0192] In some possible implementations, the adjustment module 72 is further configured to gradually reduce chip performance of the electronic device when the device temperature reaches a third temperature threshold, until the device temperature is the same as or close to the second temperature threshold.
[0193] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0194] The functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units. For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above-mentioned functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.
[0195] Therefore, the modules of each example described in the embodiments of this application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0196] In addition, the specific names of the functional units and modules are only for the purpose of distinguishing each other and are not intended to limit the scope of protection of this application. The specific working processes of the units and modules in the above system can be referred to the corresponding processes in the following method embodiments and will not be repeated here.
[0197] It should be understood that the hardware system and chip in the embodiments of the present application can execute the various methods of entering the long standby mode in the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0198] An embodiment of the present application also provides another electronic device, including a processor and a memory.
[0199] Memory is used to store computer programs that can be executed on the processor.
[0200] The processor is configured to execute the processing steps in the method for entering the long standby mode as described above.
[0201] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions; when the computer-readable storage medium is run on an electronic device, the electronic device executes the method as shown above.
[0202] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0203] The computer-readable storage medium may be any available medium that can be accessed by a computer or may include one or more servers, data centers, and other data storage devices that can be integrated with the medium.
[0204] The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (eg, a solid state disk (SSD)).
[0205] An embodiment of the present application also provides a computer program product containing computer instructions, which, when executed on an electronic device, enables the electronic device to execute the technical solution shown above.
[0206] FIG8 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip shown in FIG8 can be a general-purpose processor or a dedicated processor. The chip includes a processor 801. The processor 801 is used to support the electronic device in executing the technical solution shown above.
[0207] Optionally, the chip further includes a transceiver 802, which is configured to accept control of the processor 801 and to support the communication device in executing the aforementioned technical solution.
[0208] Optionally, the chip shown in FIG8 may further include: a storage medium 803 .
[0209] It should be noted that the chip shown in Figure 8 can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.
[0210] The electronic device, computer storage medium, computer program product, and chip provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.
[0211] It should be understood that the above is only to help those skilled in the art better understand the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples.
[0212] For example, some steps in the various embodiments of the above method may be unnecessary, or some new steps may be added, etc. Or any two or more of the above embodiments may be combined. Such modifications, variations, or combinations also fall within the scope of the embodiments of the present application.
[0213] It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced with each other. For the sake of brevity, they will not be repeated here.
[0214] It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0215] It should also be understood that in the embodiments of the present application, "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including an electronic device), and the present application does not limit its specific implementation method.
[0216] It should also be understood that the division of the modes, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various modes, categories, situations and embodiments can be combined without contradiction.
[0217] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0218] Finally, it should be noted that 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 in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A screen brightness adjustment method, characterized in that: Applied to electronic equipment, the method comprises: When the electronic device is in a high-brightness scene, obtaining a device temperature of the electronic device; When the device temperature is greater than or equal to a first temperature threshold, the screen brightness of the electronic device is gradually reduced linearly or nonlinearly until the device temperature is the same as or close to a second temperature threshold, and the second temperature threshold is greater than the first temperature threshold.
2. The method according to claim 1, characterized in that: When the device temperature is greater than or equal to the first temperature threshold, gradually reducing the screen brightness of the electronic device in a linear or nonlinear manner until the device temperature is the same as or close to the second temperature threshold, including: When the device temperature is greater than or equal to a first temperature threshold, acquiring a corresponding brightness adjustment function according to the ambient temperature of the electronic device, wherein the brightness adjustment function is used to determine the screen brightness according to the device temperature at the ambient temperature, and the brightness adjustment function includes a linear brightness adjustment function or a nonlinear brightness adjustment function; The screen brightness of the electronic device is gradually reduced according to the brightness adjustment function until the device temperature is the same as or close to the second temperature threshold.
3. The method according to claim 2, characterized in that The brightness adjustment function includes a balanced brightness coefficient, where the balanced brightness coefficient is a ratio of balanced screen brightness to maximum screen brightness, and when the screen brightness of the electronic device is maintained at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold; The step of gradually reducing the screen brightness of the electronic device according to the brightness adjustment function includes: According to the first temperature threshold, the second temperature threshold, and the balanced brightness coefficient, obtaining a brightness adjustment coefficient through the brightness adjustment function; The screen brightness of the electronic device is adjusted according to the brightness adjustment coefficient.
4. The method according to claim 3, characterized in that The step of adjusting the screen brightness of the electronic device according to the brightness adjustment coefficient includes: Multiplying the brightness adjustment coefficient by the maximum screen brightness to obtain a target brightness; The screen brightness of the electronic device is adjusted to the target brightness.
5. The method according to any one of claims 1 to 4, characterized in that: The device temperature is close to the second temperature threshold, including: The difference between the device temperature and the second temperature threshold is less than or equal to a preset threshold; or, the difference between the device temperature and the second temperature threshold is less than or equal to a preset ratio.
6. The method according to any one of claims 1 to 5, characterized in that: Determining that the electronic device is in a highlight scene includes: Acquire the brightness of the environment in which the electronic device is located, and when the brightness of the environment is greater than or equal to a first brightness threshold, determine that the electronic device is in a high-brightness scene; or, The screen brightness of the electronic device is obtained, and when the screen brightness is greater than or equal to a second brightness threshold, it is determined that the electronic device is in a high-brightness scene.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the device temperature reaches a third temperature threshold, the chip performance of the electronic device is gradually reduced until the device temperature is the same as or close to the second temperature threshold.
8. A screen brightness adjustment device, characterized in that: Applied to electronic equipment, the device comprises: An acquisition module, used for acquiring a device temperature of the electronic device when the electronic device is in a high-brightness scene; an adjustment module, configured to, when the device temperature is greater than or equal to a first temperature threshold, gradually reduce the screen brightness of the electronic device in a linear or nonlinear manner until the device temperature is the same as or close to a second temperature threshold, The second temperature threshold is greater than the first temperature threshold.
9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Temperature value detection method based on intelligent terminal and intelligent terminal
CN105511592A
Method for preventing high temperature liquefaction of LCD screen
CN105609057A
Electronic product heating control method
CN106094932A
Backlight adjusting method and device
CN110796988A
Temperature protection algorithm based on vehicle-mounted display screen
CN112181017A
Cited By
Brightness adjusting method and electronic equipment
CN120148434A