Screen brightness adjustment method and apparatus, device, chip, and storage medium
By obtaining and utilizing the screen brightness information of the first system in a dual-system electronic device, the second system performs brightness adjustment, which solves the problem of inconvenient screen brightness adjustment in dual-system devices, achieves smooth and convenient brightness changes, and improves user experience. experience.
Patent Information
- Application Number
- PCT/CN2024/084588
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-03-28
- Publication Date
- 2024-10-03
AI Technical Summary
It is difficult to conveniently and smoothly adjust the screen brightness in dual-system electronic devices with existing technology, resulting in poor user experience.
By obtaining the screen brightness information of the first system, the second system adjusts the screen brightness based on this information when switching systems, and uses brightness gradient rules to avoid screen flickering and improve user experience.
It achieves smooth and convenient screen brightness adjustment in dual-system electronic devices, improves user experience and avoids screen flickering problems caused by discontinuous dimming.
Smart Images

Figure CN2024084588_03102024_PF_FP_ABST
Abstract
Description
Screen brightness adjustment method, device, equipment, chip, and storage medium
[0001] This application claims priority to the Chinese patent application filed on March 29, 2023, with application number 202310324625.2 and invention name “Screen brightness adjustment method and device, equipment, chip, storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of terminal technology, and are related to, but not limited to, a method and apparatus, device, chip, and storage medium for adjusting screen brightness. Background Art
[0003] With the continuous development of terminal technology, electronic devices have more and more functions and richer experiences. People are also enjoying the convenience brought by technological development. Of course, the requirements for electronic devices are also getting higher and higher. For example, electronic devices need to have dual operating systems (abbreviated as dual systems).
[0004] In the prior art, electronic devices are currently limited to adjusting screen brightness with a single operating system (referred to as a single system). For example, upon receiving a screen adjustment instruction, the single system can adjust the screen brightness to the specified brightness. However, for electronic devices with dual operating systems, adjusting the screen brightness of the electronic device is an urgent problem that needs to be solved.
[0005] Summary of the Invention
[0006] In view of this, the embodiments of the present application provide a screen brightness adjustment method and apparatus, device, chip, and storage medium, which can conveniently and smoothly adjust the screen brightness when the electronic device switches the system, thereby improving the user experience.
[0007] In a first aspect, an embodiment of the present application provides a screen brightness adjustment method, which is applied to an electronic device, wherein the electronic device includes at least a first system and a second system. The method includes:
[0008] The second system acquires screen brightness information of the first system, where the first system is the system running before the electronic device performs system switching, and the second system is the system running after the electronic device performs system switching;
[0009] The second system adjusts the screen brightness of the second system based on the screen brightness information of the first system.
[0010] In a second aspect, an embodiment of the present application provides a screen brightness adjustment device, which is applied to an electronic device, wherein the electronic device includes at least a first system and a second system, and the device includes:
[0011] an acquisition module, configured to acquire screen brightness information of the first system, where the first system is the system running on the electronic device before the system switching, and the second system is the system running on the electronic device after the system switching;
[0012] An adjustment module is used to adjust the screen brightness of the second system based on the screen brightness information of the first system.
[0013] In a third aspect, an embodiment of the present application provides a chip system, comprising a first system and a second system, wherein the second system comprises a processor and an interface, wherein the processor and the interface are coupled, the interface is used to receive or output signals, and the processor is used to execute a computer program to implement the method provided in the embodiment of the present application.
[0014] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a first system and a second system, wherein the second system comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.
[0017] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0018] FIG2 is a flow chart of a method for adjusting screen brightness according to an embodiment of the present application.
[0019] FIG3( a ) is a schematic diagram of adjusting screen brightness according to an embodiment of the present application.
[0020] FIG3( b ) is a schematic diagram of dimming the screen brightness provided in an embodiment of the present application.
[0021] FIG4 is a flow chart of another method for adjusting screen brightness provided in an embodiment of the present application.
[0022] FIG5 is a flow chart of a mode adjustment method provided in an embodiment of the present application.
[0023] FIG6 is a flow chart of another mode adjustment method provided in an embodiment of the present application.
[0024] FIG7 is a schematic structural diagram of a screen brightness adjustment device provided in an embodiment of the present application.
[0025] FIG8 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
[0026] FIG9 is a schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0029] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0030] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0031] First, some technical terms or technical concepts involved in this application are introduced.
[0032] Dual-OS: A hardware architecture based on two processor chips, each running an independent operating system. For example, the first processor runs the first operating system, and the second processor runs the second operating system. The two operating systems interact with each other to complete the functions of the hardware device.
[0033] Always On Display (AOD): Also known as always-on display, this function allows the screen to continue displaying images even after the system (e.g., the CPU) goes into sleep mode. When an electronic device is in AOD mode, the screen brightness and refresh rate are reduced, and the entire system is dormant. Only when the data on the interface needs to be updated will the system be awakened to draw the new interface data for the screen display. AOD mode is a low-power, continuously on screen mode.
[0034] Next, an embodiment of an electronic device to which the present application is applicable is introduced. Please refer to Figure 1, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device shown in Figure 1 may include a first processor 101, a second processor 102, a memory 103, an input unit 104, a display unit 105, a sensor 106, a communication unit 107, a power supply 108, an audio circuit 109, a speaker 110, a microphone 111 or other functional components. Those skilled in the art will understand that the electronic device shown in Figure 1 does not constitute a limitation, and it can be determined according to actual needs, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components.
[0035] In actual applications, each processor in the electronic device can run an independent operating system, for example, the first processor 101 can run the first system, the second processor 102 can run the second system, and so on. This application does not limit the number of each component in the device. For example, there can be multiple memories 103 and display units 105, such as one operating system corresponds to one memory 103 and one display unit (which can be a display screen or screen) 105. When the electronic device 100 includes a display unit 105, the first system run by the first processor 101 and the second system run by the second processor 102 will share the same display unit. When the electronic device 100 includes two display units 105, the first system run by the first processor 101 and the second system run by the second processor 102 can each independently use a display unit 105. For the convenience of description, this application hereinafter uses the example of the first system and the second system sharing the same display unit 105 to illustrate the relevant content, and this application does not limit it.
[0036] The memory 103 can be used to store computer programs (also known as program codes or instructions). The corresponding processor executes the computer programs stored in the memory 103 to execute various functional applications and data processing of the electronic device. The memory 103 can mainly include a program storage area and a data storage area. The program storage area can store an operating system, an application corresponding to at least one function (such as a touch screen point reporting function, an image playback function, etc.); the data storage area can store data of the electronic device, such as user usage data of the electronic device. In addition, the memory 103 can include a high-speed random access memory and a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0037] The input unit 104 can be used to receive input digital or character information, and to generate signal input related to the user settings and function control of the electronic device. Specifically, the input unit 104 may include a touch panel 1041 and other input devices 1042. The touch panel 1041 can collect the user's touch operations on or near it (such as the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 1041) and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1041 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the corresponding processor, and can receive commands sent by the corresponding processor and execute them. In addition, the touch panel 1041 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 1041, the input unit 104 may further include other input devices 1042. Specifically, the other input devices 1042 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick.
[0038] The display unit 105 can be used to display information input by the user, information provided to the user, and various menus of the electronic device. The display unit 105 may include a display controller 1051 and a display panel 1052, wherein the display controller 1051 is used to control the display of the display panel 1052, such as controlling the power-on timing of the display panel 1052, controlling the screen brightness and display duration of the display panel 1052, etc. It can be configured according to actual needs and is not limited in this application. It should be noted that this application does not limit the number of display controllers 1051. For example, in actual applications, each processor is configured with a display controller, such as the first processor 101 is configured with a first display controller, and the second processor 102 is configured with a second display controller, both of which are used to control the display of the same display panel 1052. Optionally, the display panel 1052 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Furthermore, the touch panel 1041 may cover the display panel 1052. When the touch panel 1041 detects a touch operation on or near it, it transmits the information to a corresponding processor to determine the type of touch operation (also referred to as the type of touch event). The corresponding processor then provides a corresponding visual output on the display panel 1052 based on the type of touch event. Although in FIG1 , the touch panel 1041 and the display panel 1052 are two independent components to implement the input and output functions of the system, in some embodiments, the touch panel 1041 and the display panel 1052 may be integrated to implement the input and output functions of the system.
[0039] The electronic device also includes at least one sensor 106, such as a touch sensor, a light sensor, a motion sensor or other sensors. Specifically, the touch sensor can be used to detect whether there is a user currently performing a touch operation on the touch panel 1041. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1052 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1052 and / or the backlight when the device where the system is located is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the device where the system is located (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the system, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0040] The communication unit 107 is used to send and receive information or signals, such as receiving information such as touch events reported by the touch panel 1041. In actual applications, the communication unit 107 may include a radio frequency (RF) circuit, a wireless fidelity (WiFi) unit or other communication units. Among them, the RF circuit can be used for sending and receiving information or receiving signals during calls. In particular, after receiving the downlink information from the base station, it is sent to the corresponding processor for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0041] WiFi is a short-range wireless transmission technology. Through the WiFi module, the system enables users to send and receive emails, browse the web, and access streaming media, providing wireless broadband internet access. It is understood that the WiFi unit is not a required component of the electronic device and can be omitted as needed without changing the essence of the invention.
[0042] The audio circuit 109 , the speaker 110 , and the microphone 111 may provide an audio interface between a user and the electronic device 100 .
[0043] The audio circuit 109 can transmit the electrical signal converted from the received audio data to the speaker 110, which is converted into a sound signal for output; on the other hand, the microphone 111 converts the collected sound signal into an electrical signal, which is received by the audio circuit 109 and converted into audio data. The audio data is then output to the corresponding processor for processing, and then sent to other devices via the communication unit 107, or the audio data is output to the memory 103 for further processing.
[0044] The processor is the control center of the corresponding system. For example, the first processor 101 is the control center of the first system, and the second processor 102 is the control center of the second system. The processor can use various interfaces and lines to connect various parts of the entire system. By running or executing computer programs stored in the memory 103 and calling data stored in the memory 103, it performs various system functions and processes data, thereby monitoring the system as a whole. Optionally, the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the above-mentioned modem processor may not be integrated into the processor.
[0045] The electronic device also includes a power supply 108 (e.g., a battery) for supplying power to the various components. Preferably, the power supply 108 can be logically connected to the corresponding processor via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Although not shown, the electronic device may also include functional modules such as a camera and a Bluetooth module, which will not be described in detail here.
[0046] The electronic devices of this application include but are not limited to wearable devices such as smart watches and smart bracelets, and may also include smartphones (such as Android phones, IOS phones, etc.), personal computers, tablets, PDAs, e-readers, mobile Internet devices (MIDs) or other devices with communication functions.
[0047] Based on the above embodiments, the following describes a method embodiment of the present application. FIG2 is a flow chart of a method for adjusting screen brightness provided by an embodiment of the present application. The method shown in FIG2 is applied to the electronic device comprising the first system and the second system, and specifically can be applied to the second system of the electronic device. The method includes the following implementation steps:
[0048] S201. The second system obtains screen brightness information of the first system, where the first system is the system running before the electronic device performs system switching, and the second system is the system running after the electronic device performs system switching.
[0049] In an embodiment of the present application, when the second system detects that the electronic device needs to switch systems, it can obtain screen brightness information of the first system. The first system is the system running before the electronic device switches systems, and the second system is the system that the electronic device needs to run after the system switches.
[0050] The present application does not limit the detection implementation method of the above-mentioned electronic device requiring system switching. For example, after the second system receives the system switching request or system switching message sent by the first system, it can detect that the electronic device requires system switching. The system switching request or system switching message is used to indicate that the electronic device requires system switching, which in this case is switching from the first system to the second system. The system switching request or system switching message can be forwarded by the first system after receiving the upper-layer software, or generated by the first system after detecting the user's system switching operation, or obtained by the first system from other devices (such as terminal devices or servers). The present application does not limit its specific implementation method.
[0051] This application does not limit the implementation method for obtaining the screen brightness information of the above-mentioned first system. For example, the second system can obtain it from the first system through network interaction; for example, when the system switching request or system switching message sent by the above-mentioned first system carries the screen brightness information of the first system, the second system can directly parse the above-mentioned system switching request or system switching message to obtain it, etc. This application does not limit it.
[0052] For example, the electronic device is currently running on the first system. After receiving the system switching request, the first system can obtain the screen brightness information of the first system. And send a system switching message to the second system of the electronic device to indicate that the electronic device needs to perform a system switch. The system switching message may carry the screen brightness message of the first system. Accordingly, after receiving the system switching message, the second system can determine that the electronic device needs to switch from the first system to its own system, and further parse the system switching message to obtain the screen brightness information of the first system.
[0053] The screen brightness information of this application refers to the brightness information of the display screen when the electronic device runs on the first system, which may include but is not limited to, for example, screen brightness value, screen status (such as screen on status or screen off status), etc.
[0054] S202: The second system adjusts the screen brightness of the second system based on the screen brightness information of the first system.
[0055] This application can adjust the screen brightness of the second system according to the screen brightness information of the first system, avoiding problems such as screen flickering due to discontinuous dimming, thereby improving the user experience.
[0056] In actual applications, after obtaining the screen brightness information of the first system, the second system can send a screen-on event to the display controller of the second system to prompt the display controller to display the screen on. Furthermore, the second system can initialize the display screen (such as a liquid crystal display (LCD)), such as resetting the LCD, setting the LCD display direction and display window, etc., which is not limited in this application. Then, the screen brightness of the second system is adjusted based on the screen status of the first system.
[0057] In a specific embodiment, the present application may determine the screen state of the first system based on the screen brightness information of the first system, and the screen state includes a screen-on state or a screen-off state. The present application does not limit the implementation method for determining the above-mentioned screen state. Exemplarily, the present application may determine the screen state of the first system based on the brightness value indicated by the screen brightness information of the first system. For example, if the indicated brightness value is greater than the preset screen-on threshold, the screen state of the first system may be determined to be a screen-on state; if the indicated brightness value is less than the preset screen-off threshold, the screen state of the first system may be determined to be a screen-off state, etc. Among them, the above-mentioned preset screen-on threshold and the preset screen-off threshold are both used to determine the screen state, which may be brightness thresholds customized by the system / user; and, they may be the same or different, which is not limited by the present application. Usually, the above-mentioned preset screen-off threshold is less than or equal to the above-mentioned preset screen-on threshold.
[0058] Furthermore, the present application can determine the target brightness value required by the second system. The present application does not limit the implementation method for determining the target brightness value. For example, the target brightness value can be a power-on brightness value pre-defined by the system or the user; for example, the target brightness value can be calculated based on the ambient brightness value of the second system, such as the smaller the ambient brightness value, the larger the target brightness value; conversely, the larger the ambient brightness value, the smaller the target brightness value, etc. The present application does not limit the implementation method for its calculation. For example, according to the pre-defined brightness calculation formula, the above-mentioned ambient brightness value can be directly substituted into the calculation to obtain the target brightness value.
[0059] Finally, the present application may adjust the screen brightness of the second system to the target brightness value based on the screen state of the first system. In one embodiment, when the screen state is a bright screen state, the present application may adjust the screen brightness of the second system to the target brightness value according to a preset first brightness adjustment rule.
[0060] In another embodiment, when the above-mentioned screen state is the screen-off state, the present application can adjust the screen brightness of the second system to the target brightness value according to a preset second brightness adjustment rule.
[0061] The above-mentioned first brightness adjustment rule and the above-mentioned second brightness adjustment rule involved in this application are both brightness adjustment rules customized by the system, wherein the brightness adjustment rate indicated by the first brightness adjustment rule is less than the brightness adjustment rate indicated by the second brightness adjustment rule. For example, the first brightness adjustment rule can be a brightness gradient adjustment rule, that is, the second system can smoothly and gradually adjust the screen brightness of the second system to the above-mentioned target brightness value for multiple consecutive times, thereby achieving the effect of smooth and gradual screen brightness change, avoiding problems such as screen flickering due to discontinuous dimming. The second brightness adjustment rule can be a brightness mutation adjustment rule, that is, the second system can directly adjust the screen brightness of the second system to the above-mentioned target brightness value at one time, thereby saving brightness adjustment time.
[0062] This application does not limit the above-mentioned implementation of adjusting the screen brightness of the second system to the target brightness value. For example, in actual applications, the processor of the second system may send a brightness instruction to the display controller of the second system, wherein the brightness instruction is used to instruct the display controller to adjust the screen brightness of the second system to the target brightness value. Accordingly, the display controller of the second system may receive and respond to the brightness instruction, adjusting the screen brightness of the second system to the target brightness value, etc.
[0063] It should be noted that this application does not limit the numerical value of the above-mentioned target brightness value, which can be determined according to actual needs. When the above-mentioned target brightness value is greater than the current screen brightness of the second system, it means that the second system needs to gradually brighten the screen brightness so that the screen brightness of the second system can be smoothly and gradually adjusted to the above-mentioned target brightness value. For example, please refer to Figure 3(a) for a schematic diagram of a possible screen brightness adjustment. As shown in the example of Figure 3(a), the second system can smoothly and slowly brighten the screen brightness of the second system to the above-mentioned target brightness value through two screen brightness adjustments.
[0064] On the other hand, when the target brightness value is less than the current screen brightness of the second system, it indicates that the second system needs to gradually dim the screen brightness so that the screen brightness of the second system can be smoothly and gradually adjusted to the target brightness value. For example, please refer to Figure 3(b) for a schematic diagram of a possible screen brightness dimming. As shown in the example of Figure 3(b), the second system can smoothly and slowly dim the screen brightness of the second system to the target brightness value through two screen brightness adjustments, which is not limited in this application.
[0065] Before adjusting the screen brightness of the second system to the target brightness value, the second system can also control the brightness gradient function of the second system based on the screen state. The first brightness adjustment rule is the brightness adjustment rule used after the brightness gradient function is turned on, and the second brightness adjustment rule is the brightness adjustment rule used after the brightness gradient function is turned off. For the first and second brightness adjustment rules, please refer to the relevant descriptions above in this application, and will not be repeated here.
[0066] The present application does not limit the implementation of the above-mentioned on-off control. For example, in one implementation, the present application can use the hardware dimming feature to perform on-off control of the brightness gradient function. In an embodiment of the present application, the second system can send an on-off control instruction to the display controller of the second system based on the above-mentioned screen state to instruct the on-off control of the brightness gradient function of the second system. In an example embodiment, when the above-mentioned screen state is the bright screen state, the processor of the second system can send an on instruction to the display controller of the second system, and the on instruction is used to instruct to turn on the brightness gradient function of the second system.
[0067] Accordingly, the display controller of the second system can receive and respond to the activation instruction, enabling the brightness gradient function of the second system. In actual applications, after receiving the activation instruction, the display controller of the second system can set a designated register of the display controller (e.g., register 61) to 1 to indicate that the brightness gradient function of the second system is enabled. Accordingly, after receiving the brightness instruction, the display controller of the second system can adjust the screen brightness of the second system to the target brightness value in response to the brightness instruction.
[0068] In another example embodiment, when the above-mentioned screen state is the screen-off state, the processor of the second system may send a shutdown instruction to the display controller of the second system, and the shutdown instruction is used to instruct to turn off the brightness gradient function of the second system. Accordingly, the display controller of the second system may receive and respond to the shutdown instruction to turn off the brightness gradient function of the second system. In actual applications, after receiving the shutdown instruction, the display controller of the second system may set the designated register of the display controller (for example, register No. 61) to 0 to indicate that the brightness gradient function of the second system is turned off. Accordingly, after receiving the brightness instruction, the display controller of the second system may adjust the screen brightness of the second system to the target brightness value in response to the brightness instruction.
[0069] In another embodiment, the present application may utilize software to perform on / off control of the brightness gradient function. In an embodiment of the present application, the second system may reset the brightness gradient indication information of the second system based on the above-mentioned screen state to indicate that the brightness gradient function of the second system is to be turned on or off. In an example embodiment, when the above-mentioned screen state is the bright screen state, the second system may reset the brightness gradient indication information of the second system through the processor of the second system, so that the reset brightness gradient indication information is used to indicate that the brightness gradient function of the second system has been turned on.
[0070] In another example embodiment, when the screen state is the off state, the second system can still reset the brightness gradient indication information of the second system, so that the reset brightness gradient indication information is used to indicate that the brightness gradient function of the second system has been turned off.
[0071] The present application does not limit the form of expression of the above-mentioned brightness gradient indication information. For example, it may exist in the form of a flag, an indicator or status information of the system brightness gradient function. Taking the above-mentioned brightness gradient indication information as a brightness gradient function flag as an example, if the second system detects that the screen state of the above-mentioned first system is in the off-screen state, it can be determined that the system switch to the second system occurs when the first system is in the bright-screen state, then the second system can set the brightness gradient function flag to the first flag (such as False) to represent / indicate that the brightness gradient function of the second system is turned off. Conversely, if the second system detects that the screen state of the above-mentioned first system is in the bright-screen state, it can be determined that the system switch to the second system occurs when the second system is in the off-screen state, then the second system can set the brightness gradient function flag to the second flag (such as True) to represent / indicate that the brightness gradient function of the second system is turned on.
[0072] It is understood that after the second system turns on the brightness gradient function of its own system, the screen brightness gradient feature can remain turned on until the brightness gradient function of the second system is turned off. After the brightness gradient function is turned on, the second system can continuously and multiple times smoothly and gradually adjust the screen brightness of its own system to the target brightness value according to the preset second brightness adjustment rule. The corresponding description can be referred to the above embodiments of this application and will not be repeated here.
[0073] It should be noted that during the above-mentioned initialization stage, the present application can also initialize the brightness gradient function of the second system. For example, in the scenario where the present application wants to use the hardware dimming feature of the display controller to control whether to enable the above-mentioned brightness gradient function, the second system can send an on instruction to the display controller of the second system through the processor to instruct to turn on the brightness gradient function of the second system, thereby initializing the brightness gradient function of the system. For another example, in the scenario where the present application wants to use software to control whether to enable the above-mentioned brightness gradient function, the second system can send a off instruction to the display controller of the second system through the processor to instruct to turn off the brightness gradient function of the second system, thereby initializing the brightness gradient function of the system.
[0074] Some optional embodiments of the present application are introduced below.
[0075] In some optional embodiments, when the second system receives the brightness instruction for the second system, it can redraw and display the interface data of the target interface. The target interface can be the main interface displayed in the first system before the electronic device performs system switching. The main interface is customized by the system or the user. For example, it can be the interface at the top or the surface of all interfaces displayed in the first system before the electronic device performs system switching, or it can be the last interface to be started and run among all interfaces displayed in the first system. The present application does not limit the implementation method for determining the above-mentioned target interface. For example, each interface can be sorted and numbered according to the time when it is started. The present application can determine the interface with the largest serial number among all interfaces enabled for display in the first system as the above-mentioned target interface, etc.
[0076] In an embodiment of the present application, the second system can receive a screen-lighting instruction for its own system, and in response to the screen-lighting instruction, first determine the target interface, then notify the application to which the target interface belongs to redraw the interface data of the target interface, and then display the redrawn interface data of the above-mentioned target interface on the display screen corresponding to the second system for display to the user.
[0077] The present application does not limit the implementation method of receiving the above-mentioned screen-lighting instruction. For example, after receiving the system switching instruction or system switching notification sent by the first system, the second system can determine that there is a need to use the screen in the second system, and thus can generate the above-mentioned screen-lighting instruction; for example, the second system can generate the above-mentioned screen-lighting instruction when detecting the user's screen-lighting operation, etc. The screen-lighting operation includes but is not limited to the user's touch operation on the specified control in the electronic device, the user's click operation on the display screen corresponding to the second system in the electronic device, or the user raising his wrist to light up the display screen of the second system, etc., which are not limited in the present application.
[0078] The present application does not limit the implementation method of redrawing the interface data of the above-mentioned target interface. For example, the second system can first search the memory of the electronic device for whether the interface data of the above-mentioned target interface exists. If it exists, the interface data of the target interface can be directly obtained from the memory, and then redrawn and displayed on the display screen corresponding to the second system based on the interface data of the target interface. On the contrary, when the interface data of the above-mentioned target interface cannot be obtained in the memory, the second system (which can be the application to which the target interface belongs in the system) can obtain the basic data of the target interface, and then redraw the interface data of the target interface based on the basic data and display it. The present application does not limit the implementation method of obtaining the basic data. For example, the present application can obtain the basic data of the target interface based on the interface identifier of the target interface. The basic data here refers to the basic data used to describe the target interface, which may include but is not limited to, for example, interface elements of interface design. After obtaining the basic data of the target interface, the present application can redraw the target interface based on the basic data of the target interface, thereby obtaining the interface data of the target interface. The interface data of the target interface can further be displayed on the display screen of the second system for user viewing.
[0079] The interface data of this application, also known as user interface (UI) data, is interface detail data used to describe the target interface, which may include but is not limited to interface size, interface color, location of controls in the interface, or other information, which is not limited in this application.
[0080] In some optional embodiments, the present application supports smooth brightness adjustment of a single system in a bright screen state. Taking the single system as the second system as an example, the second system can receive a brightness adjustment instruction, which is used to instruct the screen brightness of the second system to be adjusted to a preset brightness value. Further, in response to the brightness adjustment instruction, it can be determined whether the above-mentioned preset brightness value and the current target brightness value of the second system are the same. If they are the same, the process can be terminated. If they are not the same, the present application can adjust the screen brightness of the second system at least once according to the above-mentioned preset first brightness adjustment rule, so as to use the screen brightness gradient function to adjust the screen brightness multiple times continuously, thereby adjusting the screen brightness of the second system from the current target brightness value to the final preset brightness value.
[0081] This application does not limit the implementation method for receiving the brightness adjustment instruction. For example, the second system may generate the brightness adjustment instruction when detecting a user's brightness adjustment operation on the display screen of the electronic device. The brightness adjustment operation includes but is not limited to a user's touch operation on a designated control in the electronic device, such as a user's click operation on a brightness button on the display screen, etc. For another example, the second system may receive a screen brightness adjustment instruction sent from other devices (such as a server or terminal device) via a network.
[0082] For example, see FIG4 , which is a flowchart of another possible screen brightness adjustment method according to the present application. The method shown in FIG4 includes the following implementation steps:
[0083] S401: The second system receives a brightness adjustment instruction, where the brightness adjustment instruction is used to instruct the screen brightness of the second system to be adjusted to a preset brightness value.
[0084] S402: Determine whether the current brightness value of the second system is the same as the preset brightness value.
[0085] This application can end the process when it is determined that the current brightness value of the second system is the same as the above-mentioned preset brightness value; otherwise, when it is determined that the current brightness value of the second system is different from the above-mentioned preset brightness value, step S403 can be continued.
[0086] S403: Start the brightness gradient task and adjust the brightness of the screen of the second system.
[0087] When the present application determines that the current brightness value of the second system is different from the final preset brightness value, the second system can initiate a brightness adjustment process, start a brightness gradient task, and adjust the brightness screen of the second system according to the above-mentioned preset first brightness adjustment rule. The first brightness adjustment rule is a brightness gradient adjustment rule set by the system or user, such as increasing the brightness by 4 values each time, or calculating the change in each brightness adjustment according to a custom brightness change curve formula, etc., which is not limited by this application.
[0088] S404: Repeat steps S402-S403 until the screen brightness of the second system is adjusted to a preset brightness value.
[0089] After the second system completes each screen brightness adjustment, the above steps S402-S403 can be repeated, and the change value of each brightness adjustment can be calculated according to the preset first brightness adjustment rule, and the brightness can be adjusted according to the calculated change value, so that the screen brightness of the second system can be smoothly and gradually adjusted to the final preset brightness value to end the entire brightness adjustment process.
[0090] In some optional embodiments, this application supports entering and exiting the highlight mode of a single system in the bright screen state. The brightness mode of a single system includes normal mode and highlight mode. The brightness mode is used to indicate the operating mode of a single system in the bright screen state. It can include normal mode, highlight mode, or other custom modes subdivided according to the screen brightness value, etc., which are not limited by this application.
[0091] Taking the second system as an example, the second system may receive a mode adjustment instruction, wherein the mode adjustment instruction is used to instruct the second system to adjust its current brightness mode to a target mode, wherein the brightness mode is different from the target mode and includes a highlight mode or a normal mode. The screen brightness indicated by the highlight mode is greater than the screen brightness indicated by the normal mode, that is, the minimum value or lower limit value (also referred to as the minimum brightness value) of the screen brightness indicated by the highlight mode is greater than the maximum value or upper limit value (also referred to as the maximum brightness value) of the screen brightness indicated by the normal mode.
[0092] Accordingly, the second system can respond to the mode adjustment instruction and adjust the current brightness mode of the second system to the target mode. This application does not limit the implementation of the target mode adjustment, and two specific implementations are given below as examples.
[0093] In the first embodiment, when the above-mentioned brightness mode is the normal mode and the above-mentioned target mode is the highlight mode, the present application can first adjust the screen brightness of the second system to the maximum brightness value supported by the above-mentioned normal mode, and then turn on and enter the highlight mode, thereby adjusting the normal mode currently in which the second system is located to the highlight mode.
[0094] In actual application, after receiving the above-mentioned mode adjustment instruction, the second system can identify whether the second system is currently in the process of entering the highlight mode. If so, the process can be ended. If not, the present application can first adjust the screen brightness of the second system to the maximum brightness value supported by the above-mentioned normal mode. The maximum brightness value is a system or user-defined setting, for example, it can be 253, 254 or 255, etc., which is not limited in this application. The processor of the second system sends a first delay instruction (also referred to as a first delay task) to the display controller of the second system, which is used to indicate the first delay time required by the display controller. When the first delay time is reached, the present application can turn on the highlight mode of its own system, and the display controller can automatically increase the screen brightness to enter the highlight mode. For example, the screen brightness of the second system can be adjusted to the maximum brightness value supported by the highlight mode (for example, 256), etc., which is not limited in this application. Please refer to Figure 5 below for a detailed introduction to the above-mentioned mode adjustment process.
[0095] Please refer to Figure 5, which is a flowchart of a possible mode adjustment method provided in an embodiment of the present application. The method shown in Figure 5 includes the following implementation steps:
[0096] S501: The second system determines whether to enter a highlight mode.
[0097] In this embodiment of the present application, the screen brightness mode of the second system includes a highlight mode and a normal mode. When the second system is currently in normal mode, it can detect or determine in real time or periodically whether it is necessary to enter the highlight mode. If the second system determines that it is necessary to enter the highlight mode, it can continue to execute step S502; otherwise, it can terminate the process.
[0098] This application does not limit the above-mentioned determination implementation method of entering the highlight mode. For example, when the second system receives the mode adjustment instruction, it can determine that the highlight mode needs to be entered. The introduction of the mode adjustment instruction can be referred to the relevant introduction in the above embodiment, which will not be repeated here.
[0099] S502: Determine whether the second system is in the high-brightness mode adjustment process.
[0100] This application does not limit the implementation of step S502. For example, the second system may determine whether its own screen brightness is already in the process of gradually increasing. If so, it can be determined that the second system is in the process of adjusting to the high-brightness mode, and the process can be terminated. Otherwise, it can be determined that the second system is not in the process of adjusting to the high-brightness mode, and step S503 can be further executed.
[0101] S503: Adjust the screen brightness of the second system to the maximum brightness value supported by the normal mode.
[0102] When the present application determines that the second system is not in the highlight mode adjustment process, the current screen brightness of the second system can be smoothly and gradually adjusted to the maximum brightness value supported by the normal mode (e.g., 255) according to the above-mentioned preset first brightness adjustment rule. For the first brightness adjustment rule, please refer to the relevant description in the above embodiment, and will not be repeated here.
[0103] S504: Generate a first delayed task.
[0104] The second system may submit a first delay task to the display controller of the second system via the processor. The first delay task is used to reflect the first delay time required for adjusting the screen brightness in S503. The first delay time may be a system or user-defined setting, such as 2 seconds.
[0105] S505: When the first delay time indicated by the first delay task is reached, determine whether to interrupt and enter the highlight mode.
[0106] When the second system detects that the current time has reached the first delay time, it can determine whether it is necessary to interrupt the process of entering the highlight mode. If yes, it can continue to step S507; otherwise, it can continue to step S506.
[0107] This application does not limit the above-mentioned method for determining whether to interrupt the entry into the highlight mode. For example, in one example, the second system can detect whether it is currently necessary to reduce the screen brightness of the second system. When the screen brightness needs to be reduced, it determines that it is necessary to interrupt the entry into the highlight mode. Conversely, it can determine that it is not necessary to interrupt the entry into the highlight mode. This application does not limit the above-mentioned method for detecting whether the screen brightness needs to be reduced. For example, when the second system receives a brightness reduction instruction, it can determine that the screen brightness needs to be reduced. This application does not elaborate on or limit this.
[0108] In another example, the second system may detect whether a mode interruption instruction is received. If so, it may determine that the user needs to interrupt the operation to enter the highlighted mode; otherwise, it may determine that the user does not need to interrupt the operation to enter the highlighted mode. This application does not limit the implementation method for receiving the mode interruption instruction. For example, after detecting the user's mode interruption operation, the second system may generate the mode interruption instruction.
[0109] S506: Turn on and enter the highlight mode.
[0110] When the second system determines that there is no need to interrupt to enter the highlight mode, the second system can turn on the highlight mode, and the display controller of the second system can smoothly and gradually increase the screen brightness of the second system according to the above-mentioned preset first brightness adjustment rule to enter the above-mentioned highlight mode. For example, the screen brightness of the second system is adjusted to the maximum brightness value supported by the above-mentioned highlight mode (such as 256, etc.), thereby adjusting the normal mode of the second system to the highlight mode.
[0111] S507: Adjust the screen brightness of the second system from the maximum brightness value supported by the normal mode to a new brightness value.
[0112] When the second system determines that it has interrupted the entry into the highlight mode, it can first determine the new brightness value, and then smoothly and gradually adjust the screen brightness of the second system to the above-mentioned new brightness value according to the above-mentioned preset first brightness adjustment rule. In actual application, the display controller of the second system can adjust the screen brightness of the second system from the maximum brightness value supported by the above-mentioned normal mode to the new brightness value, and continue to keep the second system working in the normal mode.
[0113] The present application does not limit the implementation method for determining the new brightness value. For example, when the above-mentioned brightness reduction instruction or mode interrupt instruction carries a new brightness value, the second system can directly parse the above-mentioned instruction to obtain the new brightness value therefrom; for example, the present application can determine the new brightness value based on the current ambient brightness, such as querying a new brightness value that matches the current ambient brightness from a preset mapping table.
[0114] In a second embodiment, when the brightness mode is the highlight mode and the target mode is the normal mode, the second system can adjust the highlight mode currently in which the second system is located to the normal mode by exiting the highlight mode.
[0115] In actual application, after receiving the above-mentioned mode adjustment instruction, the second system can identify whether the second system is currently in the process of exiting the highlight mode. If so, the process can be ended. If not, the present application can first adjust the screen brightness of the second system to the minimum brightness value supported by the above-mentioned highlight mode. The minimum brightness value is a system or user-defined setting, for example, it can be 254, 255 or 256, etc., which is not limited in this application. The processor of the second system sends a second delay instruction (also referred to as a second delay task) to the display controller of the second system, which is used to indicate the second delay time required by the display controller. When the second delay time is reached, the present application can turn off the highlight mode of its own system, and the display controller can automatically reduce the screen brightness to exit the above-mentioned highlight mode and enter the normal mode. For example, the screen brightness of the second system can be adjusted to the maximum brightness value supported by the normal mode (such as 254), etc., which is not limited in this application. Please refer to Figure 6 below for a detailed introduction to the above-mentioned mode adjustment process.
[0116] Please refer to Figure 6, which is a flowchart of another possible mode adjustment method provided by an embodiment of the present application. The method shown in Figure 6 includes the following implementation steps:
[0117] S601: The second system determines whether to exit the highlight mode.
[0118] In the embodiment of the present application, when the second system is currently in the highlight mode, it can detect or determine in real time or periodically whether it is necessary to exit the highlight mode. If the second system determines that it is necessary to exit the highlight mode, it can continue to execute step S602; otherwise, it can end the process.
[0119] This application does not limit the above-mentioned method for determining the exit of the highlight mode. For example, upon receiving the mode adjustment instruction, the second system may determine that the highlight mode needs to be exited, thereby switching from the highlight mode to the normal mode. For the introduction of the mode adjustment instruction, please refer to the relevant introduction in the above embodiment, and will not be repeated here.
[0120] S602: Determine whether the second system is in the process of exiting the highlight mode.
[0121] This application does not limit the implementation of step S602. For example, the second system may determine whether its own screen brightness is already in the process of gradually decreasing. If so, it can be determined that it is currently in the process of exiting brightness mode and the process can be terminated. Otherwise, it can be determined that the second system is not in the process of exiting highlight mode and step S603 can be further executed.
[0122] S603: Adjust the screen brightness of the second system to the minimum brightness value supported by the highlight mode.
[0123] When the present application determines that the second system is not in the process of exiting the highlight mode, the current screen brightness of the second system can be lowered according to the above-mentioned preset first brightness adjustment rule to adjust it to the minimum brightness value supported by the above-mentioned highlight mode (e.g., 254). For the first brightness adjustment rule, please refer to the relevant description in the above-mentioned embodiment, and will not be repeated here.
[0124] S604: Generate a second delayed task.
[0125] The second system may submit a second delay task to the display controller of the second system via the processor. The second delay task is used to reflect the second delay time required for adjusting the screen brightness in step S603. The first delay time and the second delay time involved in this application may be system or user-defined settings, and they may be the same or different, and this application does not limit them.
[0126] S605: When the second delay time indicated by the second delay task is reached, determine whether to interrupt and exit the highlight mode.
[0127] When the second system detects that the current time has reached the first delay time, it can determine whether it is necessary to interrupt the process of exiting the highlight mode. If yes, it can continue to step S607; otherwise, it can continue to step S606.
[0128] This application does not limit the above-mentioned method for determining whether to interrupt and exit the highlight mode. For example, in one example, the second system can detect whether it is currently necessary to increase the screen brightness of the second system. If so, it can be determined that it is necessary to interrupt and exit the highlight mode. Conversely, it can be determined that it is not necessary to interrupt and enter the highlight mode. This application does not limit the above-mentioned method for detecting whether it is necessary to increase the screen brightness of the second system. For example, when the second system receives a brightness increase instruction, it can determine that it is currently necessary to increase the screen brightness, etc. This application does not elaborate or limit it here.
[0129] In another example, the second system may detect whether a mode interruption instruction is received. If so, it may determine that the highlighted mode needs to be interrupted and exited; otherwise, it may determine that the highlighted mode does not need to be interrupted and exited. This application does not limit the implementation method for receiving the above-mentioned mode interruption instruction. For example, the second system may receive a mode interruption instruction sent from other devices (such as a terminal device or a server) via the network.
[0130] S606: Close and exit the highlight mode.
[0131] When the second system determines that there is no need to interrupt the exit of the highlight mode, the second system can turn off the highlight mode, and the display control of the second system can smoothly and gradually reduce the screen brightness of the second system according to the above-mentioned preset first brightness rule to exit the above-mentioned brightness mode and enter the normal mode, for example, adjusting the screen brightness of the second system to a new brightness value, thereby adjusting the highlight mode of the second system to the normal mode. The new brightness value is a brightness value set by the system or the user, such as the maximum brightness value supported by the above-mentioned normal mode (such as 254, etc.).
[0132] S607: Maintain the highlight mode.
[0133] When the second system determines that it is necessary to interrupt and exit the above-mentioned highlight mode, it can continue to keep the highlight mode turned on, so that the second system continues to work in the highlight mode.
[0134] It can be seen that the electronic device in the embodiment of the present application can adjust the screen brightness of the second system based on the screen brightness information of the first system when entering and exiting the AOD mode, so that the screen brightness can be gradually changed smoothly and conveniently to enhance the user experience. When the AOD mode is applied to the system switching scenario, the second system of the electronic device in the present application can obtain the screen brightness information of its own first system, the first system being the system running before the electronic device performs the system switching, and the second system being the system running after the electronic device performs the system switching; based on the screen brightness information of the first system, the screen brightness of the second system is adjusted. In this way, the electronic device can adjust the screen brightness of the second system to be switched to based on the screen brightness information of the first system before the system switching, so as to achieve the purpose of smooth and gradual adjustment of the screen brightness, which is conducive to enhancing the user experience.
[0135] It should be understood that although the various steps in the flow charts of Figures 2 to 5 are shown in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Figures 2 to 5 may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0136] Based on the foregoing embodiments, an embodiment of the present application provides a screen brightness adjustment device, which includes the modules included and the units included in each module, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0137] Please refer to Figure 7, which is a schematic diagram of the structure of a screen brightness adjustment device provided in an embodiment of the present application. The device shown in Figure 7 is applied to an electronic device, which includes at least a first system and a second system. The device includes an acquisition module 701 and an adjustment module 702; wherein:
[0138] The acquisition module 701 is configured to acquire screen brightness information of the first system, where the first system is the system running on the electronic device before the system is switched, and the second system is the system running on the electronic device after the system is switched;
[0139] The adjustment module 702 is configured to adjust the screen brightness of the second system based on the screen brightness information of the first system.
[0140] In some embodiments, the adjustment module 702 is specifically used to: determine the screen status of the first system based on the screen brightness information of the first system, the screen status including the screen-on state or the screen-off state; determine the target brightness value required by the second system; and adjust the screen brightness of the second system to the target brightness value based on the screen status.
[0141] In some embodiments, the adjustment module 702 is specifically configured to:
[0142] When the screen state is the bright screen state, adjusting the screen brightness of the second system to the target brightness value according to a preset first brightness adjustment rule; or,
[0143] When the screen state is the screen-off state, adjusting the screen brightness of the second system to the target brightness value according to a preset second brightness adjustment rule;
[0144] The brightness adjustment rate indicated by the first brightness adjustment rule is smaller than the brightness adjustment rate indicated by the second brightness adjustment rule.
[0145] In some embodiments, the device further includes a processing module (not shown). Before adjusting the screen brightness of the second system to the target brightness value, the processing module is configured to:
[0146] Based on the screen state, controlling the brightness gradient function of the second system to be turned on and off;
[0147] The first brightness adjustment rule is a brightness adjustment rule used after the brightness gradient function is turned on, and the second brightness adjustment rule is a brightness adjustment rule used after the brightness gradient function is turned off.
[0148] In some embodiments, the processing module is specifically configured to:
[0149] Based on the screen state, sending an on / off control instruction to the display controller of the second system to instruct the on / off control of the brightness gradient function of the second system; or
[0150] Based on the screen status, the brightness gradient indication information of the second system is reset to indicate turning on and off the brightness gradient function of the second system.
[0151] In some embodiments, the processing module is specifically configured to:
[0152] When the screen state is the bright screen state, sending an activation instruction to the display controller of the second system to instruct to activate the brightness gradient function of the second system; or
[0153] When the screen state is the screen-off state, a shutdown instruction is sent to the display controller of the second system to instruct to shut down the brightness gradient function of the second system.
[0154] In some embodiments, the processing module is specifically configured to:
[0155] When the screen state is the bright screen state, resetting the brightness gradient indication information of the second system to indicate turning on the brightness gradient function of the second system; or
[0156] When the screen state is the screen-off state, the brightness gradient indication information of the second system is reset to indicate that the brightness gradient function of the second system is turned off.
[0157] In some embodiments, the processing module is further configured to:
[0158] Upon receiving the screen-lighting instruction from the second system, redrawing and displaying the interface data of the target interface;
[0159] The target interface is the main interface displayed in the first system before the electronic device performs system switching.
[0160] In some embodiments, the processing module is further configured to:
[0161] receiving a brightness adjustment instruction, wherein the brightness adjustment instruction is used to instruct to adjust the screen brightness of the second system to a preset brightness value;
[0162] If the preset brightness value is different from the current target brightness value of the second system, the screen brightness of the second system is adjusted at least once to adjust the screen brightness of the second system to the preset brightness value.
[0163] In some embodiments, the processing module is further configured to:
[0164] receiving a mode adjustment instruction, the mode adjustment instruction being used to instruct to adjust a current brightness mode of the second system to a target mode, the brightness mode including a highlight mode or a normal mode, the screen brightness indicated by the highlight mode being greater than the screen brightness indicated by the normal mode;
[0165] In response to the mode adjustment instruction, the current brightness mode of the second system is adjusted to the target mode.
[0166] In some embodiments, the processing module is specifically configured to:
[0167] When the brightness mode is the normal mode and the target mode is the highlight mode, first adjust the screen brightness of the second system to the maximum brightness value supported by the normal mode, and then enter the highlight mode to adjust the current normal mode of the second system to the highlight mode; or
[0168] When the brightness mode is the highlight mode and the target mode is the normal mode, the current highlight mode of the second system is adjusted to the normal mode by exiting the highlight mode.
[0169] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0170] It should be noted that the division of modules in the screen brightness adjustment device shown in Figure 7 in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or they can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It can also be implemented in the form of a combination of software and hardware.
[0171] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0172] An embodiment of the present application provides an electronic device, which may be a smart watch, and its internal structure diagram may be shown in Figure 8. The electronic device includes a processor, a memory, and a network interface connected via a system bus. The number of processors in the electronic device is not limited. For example, in actual applications, the electronic device includes a first processor and a second processor. The figure only shows one processor as an example, but it does not constitute a limitation. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a screen brightness adjustment method is implemented.
[0173] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0174] An embodiment of the present application provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0175] Those skilled in the art will understand that the structure shown in Figure 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0176] In one embodiment, the apparatus provided herein can be implemented as a computer program that can be run on an electronic device as shown in FIG8 . The memory of the electronic device can store the various program modules that comprise the sampling apparatus, such as the acquisition module, adjustment module, and processing module shown in FIG7 . The computer program comprised of the various program modules causes a processor to execute the steps of the data processing method of various embodiments of the present application as described in this specification.
[0177] Please refer to Figure 9, which is a schematic diagram of the structure of a chip system provided in an embodiment of the present application. The chip system 90 shown in Figure 9 includes a first system 901 and a second system 902. Among them, the first system or the second system can be a physical chip. In other words, the chip system 90 can include a first chip 901 and a second chip 902. The first system 901 may include a processor 9011 and an interface 9012. Optionally, it may also include a memory 9013. Among them, the number of processors 9011 can be one or more, and the number of interfaces 9012 can be multiple.
[0178] The second system 902 may include a processor 9021 and an interface 9022. Optionally, it may also include a memory 9023. The number of processors 9021 may be one or more, and the number of interfaces 9022 may be multiple. The first system 901 and the second system 902 may share the same memory, or they may each use a different memory. The figure illustrates an example in which the first system and the second system each use different memories, but this is not intended to be limiting.
[0179] In one embodiment, for the case where the second system 902 (ie, the second chip) is used to implement the method embodiment described in this application:
[0180] The interface 9022 is used to receive or output signals;
[0181] The processor 9021 is used to execute part or all of the content of the above-mentioned screen brightness adjustment method embodiment.
[0182] It is understandable that the processor in the embodiment of the present application (which may be the above-mentioned processor 9011 or processor 9021) may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above-mentioned method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0183] It is understandable that the memory in the embodiment of the present application (which may be the memory 9013 or the memory 9023 described above) may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0184] It should be noted that the descriptions of the above storage medium, device, and chip embodiments are similar to the descriptions of the above method embodiments and have similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0185] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, 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. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0186] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0187] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0188] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0189] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of this embodiment.
[0190] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0191] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0192] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0193] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0194] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0195] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0196] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art 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 an electronic device, the electronic device includes at least a first system and a second system, and the method includes: Acquire screen brightness information of the first system, where the first system is the system that the electronic device runs before the system is switched, and the second system is the system that the electronic device runs after the system is switched; Based on the screen brightness information of the first system, the screen brightness of the second system is adjusted.
2. The method according to claim 1, characterized in that The adjusting the screen brightness of the second system based on the screen brightness information of the first system includes: Determine a screen state of the first system based on the screen brightness information of the first system, where the screen state includes a screen-on state or a screen-off state; determining a target brightness value required by the second system; Based on the screen status, the screen brightness of the second system is adjusted to the target brightness value.
3. The method according to claim 2, characterized in that The adjusting the screen brightness of the second system to the target brightness value based on the screen state includes: When the screen state is the bright screen state, adjusting the screen brightness of the second system to the target brightness value according to a preset first brightness adjustment rule; or, When the screen state is the screen-off state, adjusting the screen brightness of the second system to the target brightness value according to a preset second brightness adjustment rule; The brightness adjustment rate indicated by the first brightness adjustment rule is smaller than the brightness adjustment rate indicated by the second brightness adjustment rule.
4. The method according to claim 3, characterized in that Before adjusting the screen brightness of the second system to the target brightness value, the method further includes: Based on the screen state, controlling the brightness gradient function of the second system to be turned on and off; The first brightness adjustment rule is a brightness adjustment rule used after the brightness gradient function is turned on, and the second brightness adjustment rule is a brightness adjustment rule used after the brightness gradient function is turned off.
5. The method according to claim 4, characterized in that The controlling the brightness gradient function of the second system on and off based on the screen state includes: Based on the screen state, sending an on / off control instruction to the display controller of the second system to instruct to on / off control the brightness gradient function of the second system; or, Based on the screen state, the brightness gradient indication information of the second system is reset to indicate turning on and off the brightness gradient function of the second system.
6. The method according to claim 5, characterized in that The sending of an on / off control instruction to a display controller of the second system based on the screen state to instruct on / off control of a brightness gradient function of the second system comprises: When the screen state is the bright screen state, sending an enable instruction to the display controller of the second system to instruct to enable a brightness gradient function of the second system; or, When the screen state is the screen-off state, a closing instruction is sent to the display controller of the second system to instruct to close the brightness gradient function of the second system.
7. The method according to claim 5, characterized in that The resetting of the brightness gradient indication information of the second system based on the screen state to indicate turning on and off the brightness gradient function of the second system includes: When the screen state is the bright screen state, resetting the brightness gradient indication information of the second system to indicate turning on the brightness gradient function of the second system; or, When the screen state is the screen-off state, the brightness gradient indication information of the second system is reset to indicate turning off the brightness gradient function of the second system.
8. The method according to claim 2, characterized in that: The determining the screen state of the first system based on the screen brightness information of the first system includes: If the brightness value indicated by the screen brightness information of the first system is greater than a preset screen-brightness threshold, determining that the screen state of the first system is a screen-brightness state; If the brightness value indicated by the screen brightness information of the first system is less than a preset screen-off threshold, it is determined that the screen state of the first system is the screen-off state.
9. The method according to any one of claims 1 to 8, characterized in that: After acquiring the screen brightness information of the first system, the method further includes: The display screen is initialized, and the initialization includes resetting the liquid crystal display, and setting the display direction and display window of the liquid crystal display.
10. The method according to any one of claims 1 to 8, characterized in that The method further comprises: When receiving the screen-lighting instruction from the second system, redrawing and displaying the interface data of the target interface; The target interface is the main interface displayed in the first system before the electronic device switches the system.
11. The method according to claim 10, characterized in that The main interface is a system or user-defined setting, and the main interface includes the interface located at the top or the surface layer of all interfaces displayed in the first system before the electronic device switches the system, or the last interface started and run among all interfaces displayed in the first system.
12. The method according to any one of claims 1 to 8, characterized in that The method further comprises: receiving a brightness adjustment instruction, wherein the brightness adjustment instruction is used to instruct to adjust the screen brightness of the second system to a preset brightness value; If the preset brightness value is different from the current target brightness value of the second system, the screen brightness of the second system is adjusted at least once to adjust the screen brightness of the second system to the preset brightness value.
13. The method according to any one of claims 1 to 8, characterized in that The method further comprises: receiving a mode adjustment instruction, wherein the mode adjustment instruction is used to instruct to adjust the current brightness mode of the second system to a target mode, wherein the brightness mode includes a highlight mode or a normal mode, and the screen brightness indicated by the highlight mode is greater than the screen brightness indicated by the normal mode; In response to the mode adjustment instruction, the current brightness mode of the second system is adjusted to the target mode.
14. The method according to claim 13, characterized in that The adjusting the current brightness mode of the second system to the target mode comprises: When the brightness mode is the normal mode and the target mode is the highlight mode, firstly adjust the screen brightness of the second system to the maximum brightness value supported by the normal mode, and then enter the highlight mode to adjust the current normal mode of the second system to the highlight mode; or, When the brightness mode is the highlight mode and the target mode is the normal mode, the current highlight mode of the second system is adjusted to the normal mode by exiting the highlight mode.
15. The method according to claim 14, characterized in that After adjusting the screen brightness of the second system to the maximum brightness value supported by the normal mode, the method further includes: Generate a first delay task, where the first delay task is used to reflect a first delay time required for adjusting the screen brightness of the second system to a maximum brightness value supported by the normal mode; And, entering the highlight mode includes: When the first delay time indicated by the first delay task is reached, if no interruption is detected to enter the highlight mode, Then enter the highlight mode.
16. The method according to claim 15, characterized in that The method further comprises: When the first delay time indicated by the first delay task is reached, if an interruption to enter the highlight mode is detected, a new brightness value is determined, and the screen brightness of the second system is adjusted to the new brightness according to the preset first brightness adjustment rule.
17. The method according to claim 14, characterized in that When the brightness mode is the highlight mode and the target mode is the normal mode, exiting the highlight mode includes: When the brightness mode is the highlight mode and the target mode is the normal mode, adjusting the screen brightness of the second system to a minimum brightness value supported by the highlight mode; Generate a second delay task, where the second delay task is used to reflect the second delay time required for the screen brightness of the second system to be adjusted to the minimum brightness value supported by the highlight mode; When the second delay time indicated by the second delay task is reached, if no interruption to exit the highlight mode is detected, the highlight mode is exited.
18. A screen brightness adjustment device, characterized in that: Applied to electronic equipment, the electronic equipment includes at least a first system and a second system, and the device includes: an acquisition module, configured to acquire screen brightness information of the first system, wherein the first system is the system running before the electronic device performs system switching, and the second system is the system running after the electronic device performs system switching; An adjustment module is used to adjust the screen brightness of the second system based on the screen brightness information of the first system.
19. An electronic device, comprising a first system and a second system, wherein the second system comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 17 is implemented.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 17 is implemented.
Citation Information
Patent Citations
Screen brightness adjusting method and device, equipment, chip and storage medium
CN118737087A
Mehtod for gradually adjusting screen brightness when switching operating system
CN101382909A
Method and system for switching backlight adjustment speed
CN105575366A
Eye protection mode processing method, mobile terminal and computer readable storage medium
CN108874134A
Display mode conversion method applied to display driving circuit
CN109961756A
Cited By
Ultrathin LCD display screen manufacturing process based on multilayer optical technology
CN119252197A
