Screen brightness adjusting method and device, electronic equipment and readable storage medium
By gradually reducing the brightness of the screen in the electronic device, the screen brightness method is gradually reduced, the problem of brightness restrictions caused by the high equipment temperature in the highlight scene, and improved the user experience and equipment stability.
Patent Information
- Application Number
- CN202310940242.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
When using electronic devices outdoors or in strong light scenes, the screen brightness needs to be improved to ensure the display effect, but this will cause the device temperature to rise rapidly, trigger the temperature protection mechanism, resulting in the screen brightness being limited and affecting 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 reaches another threshold to ensure that the brightness is always at a high level and will not overheat.
By gradually reducing the screen brightness, the brightness limit caused by the high equipment temperature is avoided, the user's experience is improved, and the stable operation of the equipment in the highlight scene is ensured.
Smart Images

Figure CN119380642A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a screen brightness adjustment method, device, electronic device and readable storage medium. Background Art
[0002] When users use electronic devices outdoors or in strong light, the screen of the electronic device needs to provide a higher brightness to ensure the display effect. However, increasing the screen brightness often requires a larger drive current, and the increase in drive current will cause the temperature of the entire device to rise rapidly.
[0003] Currently, the protection mechanism can be triggered when the temperature of the electronic device reaches a certain temperature threshold, and the screen brightness can be reduced to a lower level to reduce the driving current to ensure that the temperature of the electronic device does not become too high.
[0004] 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. Summary of the invention
[0005] The present application provides a screen brightness adjustment method, device, electronic device and readable storage medium, which can gradually reduce the screen brightness when the electronic device is in a high-brightness scene, so that the electronic device can maintain a high brightness and will not overheat, 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.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a screen brightness adjustment method is provided, which is applied to an electronic device, comprising:
[0008] 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.
[0009] 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, super mobile personal computers, netbooks, personal digital assistants, etc.
[0010] In the first aspect, 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. In this process, the screen brightness of the electronic device can always be maintained at a relatively high brightness level without a cliff-like brightness change, giving users a better user experience.
[0011] 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, according to the ambient temperature of the electronic device, a corresponding brightness adjustment function is obtained, 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.
[0012] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is a 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.
[0013] The screen brightness of the electronic device is gradually reduced according to the brightness adjustment function, including: obtaining a brightness adjustment coefficient through the brightness adjustment function according to the first temperature threshold, the second temperature threshold, and the balance brightness coefficient. The screen brightness of the electronic device is adjusted according to the brightness adjustment coefficient.
[0014] 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.
[0015] 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.
[0016] 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 when the environment brightness is greater than or equal to a first brightness threshold, determining that the electronic device is in a highlight scene. Or, obtaining the screen brightness of the electronic device, and when the screen brightness is greater than or equal to a second brightness threshold, determining that the electronic device is in a highlight scene.
[0017] In some possible implementations, the method further includes: when the device temperature reaches a third temperature threshold, gradually reducing the chip performance of the electronic device until the device temperature is the same as or close to the second temperature threshold.
[0018] In a second aspect, a screen brightness adjustment device is provided, which is applied to an electronic device, comprising:
[0019] An acquisition module, used to acquire a device temperature of the electronic device when the electronic device is in a high-brightness scene;
[0020] The adjustment module 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 a first temperature threshold, 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.
[0021] In some possible implementations, the adjustment module is specifically used to obtain a corresponding brightness adjustment function according to the ambient temperature of the electronic device when the device temperature is greater than or equal to the first temperature threshold, the brightness adjustment function is used to determine the screen brightness according to the device temperature at the ambient temperature, and the second temperature threshold is 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 the same as or close to the second temperature threshold.
[0022] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is a 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.
[0023] The adjustment module is specifically used 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.
[0024] In some possible implementations, the adjustment module is specifically used 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.
[0025] 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.
[0026] In some possible implementations, the acquisition module is specifically used to acquire the brightness of the environment in which the electronic device is located, and when the ambient brightness is greater than or equal to a first brightness threshold, determine that the electronic device is in a highlight scene. Or, acquire the screen brightness of the electronic device, and when the screen brightness is greater than or equal to a second brightness threshold, determine that the electronic device is in a highlight scene.
[0027] 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.
[0028] 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 the processor executes the computer program and performs the steps of processing in the first aspect or any one of the methods in the first aspect.
[0029] In a fourth aspect, a chip is provided, characterized in that it includes: 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.
[0030] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and 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.
[0031] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by an electronic device, the electronic device executes the steps of processing in the first aspect or any one of the methods in the first aspect.
[0032] 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
[0033] Figure 1 This is a schematic diagram of an application scenario of a screen brightness adjustment method provided in an embodiment of the present application;
[0034] Figure 2 It is a hardware structure block diagram of an electronic device provided in an embodiment of the present application;
[0035] Figure 3 is a system structure block diagram of an electronic device provided in an embodiment of the present application;
[0036] Figure 4 is a flowchart of a screen brightness adjustment method provided by an embodiment of the present application;
[0037] Figure 5 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;
[0038] Figure 6is a flowchart of a screen brightness adjustment method provided by another embodiment of the present application;
[0039] Figure 7 is a structural block diagram of a screen brightness adjustment device provided in an embodiment of the present application;
[0040] Figure 8 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0042] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0043] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, 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.
[0044] When users use electronic devices, they may use them outdoors or under strong light. In this case, the electronic device needs to increase the brightness of the screen to a certain level to ensure that the user can see the screen clearly and provide a good display effect.
[0045] However, the screen brightness level that can meet the needs of outdoor or strong light use is often higher, and to match it, a sufficiently large driving current needs to be provided to drive the screen. Although the screen brightness is improved under high current, it will also cause the temperature of the electronic device to rise rapidly.
[0046] In the current solution, when the screen brightness is kept high, the temperature of the electronic device will reach the temperature protection threshold in a very short time, triggering the high temperature protection mechanism. Once the high temperature protection mechanism is triggered, the screen brightness will be forced to be reduced to a lower level, which is often not enough for outdoor use or under strong light, seriously affecting the user experience.
[0047] 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.
[0048] In the present 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. In this process, the screen brightness of the electronic device can always be maintained at a relatively high brightness level without a cliff-like brightness change, giving users a better user experience.
[0049] Figure 1 It is a schematic diagram of an application scenario of a screen brightness adjustment method provided in an embodiment of the present application.
[0050] refer to Figure 1 First, the application scenarios of the embodiments of the present application are briefly described.
[0051] Figure 1 The electronic device 100 is shown in the figure. When the user uses the electronic device 100 outdoors under sunlight, the sunlight intensity is 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.
[0052] Figure 2 It is a hardware structure block diagram of an electronic device provided in an embodiment of the present application.
[0053] As an example, the electronic device may include a mobile phone, a tablet computer, a handheld game console, a wearable device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any limitation on the specific type of the electronic device.
[0054] refer to Figure 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.
[0055] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0056] 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.
[0057] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0058] 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.
[0059] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0060] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0061] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.
[0062] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0063] 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 supplies power to the processor 110, the internal memory 121, the display screen 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0064] 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.
[0065] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0066] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the electronic device 100 .
[0067] The modulation and demodulation processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-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.
[0068] 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 integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0069] 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 the network and other devices through wireless communication technology. The wireless communication technology 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).
[0070] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0071] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0072] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0073] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0074] 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.
[0075] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0076] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0077] 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.
[0078] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0079] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0080] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0081] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0082] Microphone 170C, also called "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 microphone 170C to input the sound signal into 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 sound source, realize directional recording function, etc.
[0083] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0084] The pressure sensor 180A is used to sense pressure signals and convert the pressure signals into electrical signals.
[0085] The gyro 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 gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro 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 gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0086] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0087] 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 leather 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.
[0088] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0089] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0090] 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 holds 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.
[0091] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0092] 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.
[0093] 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 a 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0094] In an embodiment of the present application, the temperature sensor 180J may include multiple ones for detecting the temperatures at different positions 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.
[0095] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0096] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0097] 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.
[0098] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0099] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out 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.
[0100] 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.
[0101] Figure 3 It is a system structure block diagram of the electronic device provided in the embodiment of the present application.
[0102] As an example, when the screen brightness adjustment method provided in the present application is executed on the electronic device 100, the operating system of the electronic device 100 may be Android, and its system structure may refer to Figure 3 .
[0103] Among them, the layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0104] The application layer can include a series of application packages.
[0105] like Figure 3 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0106] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0107] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0108] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0109] 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.
[0110] The view system includes visual controls, such as controls for displaying characters, controls for displaying pictures, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text message notification icon can include a view for displaying characters and a view for displaying pictures.
[0111] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0112] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0113] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0114] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0115] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0116] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0117] The system library may 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.
[0118] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0119] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0120] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
[0121] A 2D graphics engine is a drawing engine for 2D drawings.
[0122] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0123] Figure 4 It is a flowchart of a screen brightness adjustment method provided in an embodiment of the present application.
[0124] refer to Figure 4 , the screen brightness adjustment methods include:
[0125] S401: Detect that the electronic device is in a high-brightness scene. If yes, execute S402; otherwise, continue detecting.
[0126] In some possible implementations, detecting whether the electronic device is in a high-brightness scene may be achieved by detecting the ambient brightness of the electronic device or obtaining the screen brightness of the electronic device.
[0127] As an example, refer to Figure 1 The scenes in Figure 2 In the electronic device structure shown in FIG, 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.
[0128] For example, assuming that the first brightness threshold is 10000 lux (lx) for Figure 1 In the scene, if the ambient light sensor 180L collects an ambient brightness of 12000 lx, it can be determined that the electronic device is in a high-brightness scene.
[0129] In another example, if the ambient brightness is not high (such as 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 screen of the electronic device 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.
[0130] 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.
[0131] S402: Obtain the device temperature of the electronic device.
[0132] For some possible implementations, refer to Figure 2 In the electronic device structure shown in FIG. 1 , the electronic device can obtain the device temperature through the temperature sensor 180J, and the temperature sensor 180J can be set at the inside of the housing of the electronic device, near the processor, or inside the screen. Alternatively, multiple temperature sensors 180J can be set, and the average value of the temperatures collected by the multiple temperature sensors 180J is used as the device temperature.
[0133] S403: Detect that the device temperature is greater than or equal to the first temperature threshold. If yes, execute S404; otherwise, continue detecting.
[0134] In some possible implementations, the first temperature threshold may also become a warning temperature, that is, when the temperature of the electronic device rises to the first temperature threshold, it is necessary to intervene to adjust the screen brightness to ensure that the electronic device does not rapidly increase the device temperature due to the high brightness of the screen and trigger the temperature control protection. As an example, the first temperature threshold may be pre-set, and the first temperature threshold may be less than the temperature at which the temperature control triggers the temperature control protection. For example, the first temperature threshold may be 30°C, 33°C, or 35°C, etc.
[0135] Figure 5 It is a schematic diagram of the change curve of screen brightness, device temperature and time in the screen brightness adjustment method provided in one embodiment of the present application.
[0136] refer to Figure 5, wherein the screen brightness of the electronic device starts to increase at time t1, and it is detected at time t2 that the electronic device is in a high-brightness scene. In this case, S402 and S403 are executed. When it is detected at time t3 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.
[0137] S404: Obtain a corresponding brightness adjustment function according to the ambient temperature of the electronic device.
[0138] In some possible implementations, the electronic device has a different temperature environment, and the rate at which the device temperature of the electronic device increases is also different. Therefore, the corresponding brightness adjustment function can be obtained according to the ambient temperature of the electronic device.
[0139] The ambient temperature of the electronic device can be obtained by a temperature sensor disposed on the surface of the electronic device. Alternatively, it can also be obtained through a weather forecast application. Alternatively, it can also be obtained through an intelligent device with a temperature measurement function that is connected to the electronic device for communication. For example, if the environment in which the electronic device is located includes intelligent devices such as an intelligent air conditioner, an intelligent thermometer, and an intelligent air purifier that are connected to the electronic device for communication, the electronic device can request the intelligent device to feedback the ambient temperature to obtain the ambient temperature of the electronic device.
[0140] As an example, for each electronic product, the balanced brightness coefficient of the electronic device under different ambient temperatures can be obtained in advance. 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 is maintained at the balanced screen brightness, the device temperature is the same as or close to the second temperature threshold.
[0141] That is, the balanced brightness coefficient K 平 It can be expressed by formula 1:
[0142] K 平 =L 平 / L max (Formula 1)
[0143] Among them, L 平 To balance the screen brightness, L max is the maximum screen brightness.
[0144] Then, a brightness adjustment function of the electronic product under different ambient temperatures is obtained.
[0145] 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.
[0146] As an example, refer to Figure 5, the brightness adjustment coefficient K can be calculated by formula 2 or formula 3:
[0147]
[0148]
[0149] 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.
[0150] Then the target brightness L of the screen can be calculated by formula 4:
[0151] L=K*L max (Formula 4)
[0152] Wherein, T is the device temperature of the electronic device, T2 is the second temperature threshold, that is, the temperature when the screen brightness is maintained at the balanced screen brightness, and T3 is the temperature that triggers the temperature control protection.
[0153] Taking room temperature of 25℃ as an example, T1 can be 35℃, T2 can be 40℃, and T3 can be 42℃.
[0154] As an example, refer 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 (ie, 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.
[0155] S405: gradually reduce the screen brightness of the electronic device according to the brightness adjustment function.
[0156] In some possible implementations, referring to the example in S404, when adjusting the screen brightness according to Formula 2 or Formula 3, the threshold of the temperature sensor (sensor) may be set first. For example, the first temperature threshold T1 may be set to 35° C. When the temperature acquired by the temperature sensor is greater than or equal to 35° C., the acquired device temperature T is sent to the display engine.
[0157] The display engine calculates the real-time brightness adjustment coefficient K according to the received temperature T and reference formula 2 or formula 3.
[0158] 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.
[0159] As an example, when the electronic device is a mobile phone, L maxIt can be 1500nit. When the room temperature is 25°C, if the mobile phone load is normal, the screen brightness is 1000nit, which can stabilize the device temperature of the mobile phone 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 may report the temperature every 5 seconds, and the device temperature of the electronic device may be the average of the last five temperatures reported by the temperature sensor.
[0160] As an example, the electronic device can also update the brightness adjustment coefficient K every preset temperature. 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 and above, the brightness adjustment coefficient K can be updated. If it rises from 35°C to 35.4°C, the brightness adjustment coefficient K will not be updated because the temperature rise is less than 0.5°C.
[0161] The above calculation steps can be performed in the display engine service in 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 with the brightness switching module to smoothly switch the screen brightness in a gradual manner.
[0162] 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 through the Backlight Driver.
[0163] 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 device's screen brightness. 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.
[0164] The Backlight Driver is used to control the backlight brightness of the screen. The Backlight Driver provides a smooth adjustment function, which can perform smooth brightness transition to avoid obvious changes in brightness adjustment. After receiving the target brightness L, the Backlight Driver performs smooth adjustment based on the difference in backlight brightness between the target brightness L and the current display brightness, and controls the backlight brightness of the screen to display according to the target brightness L.
[0165] S406: Detect that the device temperature is the same as or close to the second temperature threshold. If yes, execute S407; otherwise, continue to execute S405.
[0166] S407. Maintain the screen brightness of the electronic device.
[0167] In some possible implementations, reference is made to Figure 5 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 and temperature of the electronic device are balanced, 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).
[0168] 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.
[0169] 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.
[0170] For another example, the second temperature threshold is 40°C and the preset ratio is 1%. 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 39.6°C (40°C*99%) to 40.4°C (40°C*101%), it is confirmed that the device temperature is close to the second temperature threshold.
[0171] Figure 6 It is a flow chart of a screen brightness adjustment method provided in another embodiment of the present application.
[0172] refer to Figure 6 , among which S401 to S407 are Figure 4 The process is the same as shown in , and will not be repeated here.
[0173] After S407, the screen brightness adjustment method further includes:
[0174] S408: Detect that the device temperature is greater than or equal to the third temperature threshold. If yes, execute S409; otherwise, continue detecting.
[0175] S409. Gradually reduce the chip performance of electronic devices.
[0176] S410: Detect that the device temperature is the same as or close to the second temperature threshold. If yes, execute S407; otherwise, continue detecting.
[0177] In some possible implementations, when the screen brightness of the electronic device is maintained, the electronic device is operated, resulting in increased power consumption of the electronic device, or a significant change in ambient temperature, both of which may cause the device temperature of the electronic device to rise sharply.
[0178] 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.
[0179] As an example, the chip performance of the electronic device can be gradually reduced. For example, the screen refresh frequency can be reduced, that is, the GPU rendering frame rate can be reduced, or the chip computing requirements can be reduced, such as reducing the sampling frequency of various sensors on the electronic device, the transmission rate of wireless networks, near-field communications, and Bluetooth, and shutting down the application calculations in the system background. By reducing the chip's computing load and shutting down some of the chip's hardware computing units, the heat generation of the chip and major components can be reduced to prevent the temperature from continuing to rise.
[0180] The method in S410 is the same as that in S406 and will not be described in detail here.
[0181] In this embodiment, when it is detected that the device temperature is greater than or equal to the 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. When the device temperature of the electronic device is too high, the screen brightness can be kept at a high level, and the temperature of the electronic device can be reduced to a reasonable range, thereby providing a better user experience for the user.
[0182] 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.
[0183] 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.
[0184] Corresponding to the screen brightness adjustment method provided in the above embodiment, Figure 7 This is a structural block diagram of a screen brightness adjustment device provided in an embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0185] Reference Figure 7 , a screen brightness adjustment device, applied to electronic equipment, comprising:
[0186] An acquisition module 71 is used to acquire a device temperature of the electronic device when the electronic device is in a high-brightness scene;
[0187] 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.
[0188] In some possible implementations, the adjustment module 72 is specifically used to obtain a corresponding brightness adjustment function according to the ambient temperature of the electronic device when the device temperature is greater than or equal to the first temperature threshold, 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.
[0189] In some possible implementations, the brightness adjustment function includes a balanced brightness coefficient, which is a 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.
[0190] 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 to adjust the screen brightness of the electronic device according to the brightness adjustment coefficient.
[0191] 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.
[0192] 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.
[0193] In some possible implementations, the acquisition module 71 is specifically used to acquire the brightness of the environment in which the electronic device is located, and when the ambient brightness is greater than or equal to a first brightness threshold, determine that the electronic device is in a highlight scene. Or, acquire the screen brightness of the electronic device, and when the screen brightness is greater than or equal to a second brightness threshold, determine that the electronic device is in a highlight scene.
[0194] In some possible implementations, the adjustment module 72 is further configured to gradually reduce the 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.
[0195] Those skilled in the art can clearly understand that for the convenience and simplicity 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.
[0196] Each functional unit and module in the embodiment 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, and the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional unit. 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 a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.
[0197] Therefore, the modules of each example described in the embodiments of the present 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0198] In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other and are not used to limit the protection scope of this application. The specific working process of the units and modules in the above system can refer to the corresponding process in the following method embodiment, which will not be repeated here.
[0199] 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.
[0200] An embodiment of the present application also provides another electronic device, including a processor and a memory.
[0201] Memory is used to store computer programs that can be executed on the processor.
[0202] The processor is used to execute the processing steps in the method for entering the long standby mode as described above.
[0203] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored; when the computer-readable storage medium is executed on an electronic device, the electronic device executes the method as shown above.
[0204] 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.
[0205] 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.
[0206] 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)).
[0207] The embodiment of the present application also provides a computer program product including computer instructions, which, when executed on an electronic device, enables the electronic device to execute the technical solution shown above.
[0208] Figure 8 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Figure 8 The chip shown 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 to execute the technical solution shown above.
[0209] Optionally, the chip further includes a transceiver 802, and the transceiver 802 is used to accept the control of the processor 801 and to support the communication device to execute the technical solution shown above.
[0210] Optional, Figure 8 The chip shown may further include: a storage medium 803 .
[0211] It should be noted that Figure 8The chip shown 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.
[0212] 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.
[0213] It should be understood that the above is only to help those skilled in the art to 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 given.
[0214] For example, some steps in the various embodiments of the above method may not be necessary, or some new steps may be added, etc. Or any combination of any two or any multiple embodiments above. Such modified, changed or combined solutions also fall within the scope of the embodiments of the present application.
[0215] 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 to each other. For the sake of brevity, they will not be repeated here.
[0216] 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 the present application.
[0217] 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.
[0218] It should also be understood that the division of the methods, 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 methods, categories, situations and embodiments can be combined without contradiction.
[0219] 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.
[0220] Finally, it should be noted that the above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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 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 a first temperature threshold, 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.
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.