Color scale adjustment method and electronic device

By dynamically adjusting the color level in electronic devices, the problem of brightness flickering during interface switching is solved, and maximum power consumption saving is achieved, improving the user experience.

WO2025107450A1PCT designated stage expired Publication Date: 2025-05-30HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080700
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-22
Filing Date
2024-03-08
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

During the interface switching process, the brightness flicker of the electronic device leads to poor user experience. At the same time, although setting the high color level can save more power, the flickering problem is caused due to the longer calculation time of the brightness compensation algorithm.

Method used

By dynamically adjusting the color level of the display screen, the specific steps include setting a lower color level first when switching windows, and gradually adjusting to a higher color level after the window is stable, thereby avoiding brightness flickering and saving power consumption to the greatest extent.

Benefits of technology

It effectively solves the problem of brightness flickering during interface switching, while minimizing the power consumption of the display and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080700_30052025_PF_FP_ABST
    Figure CN2024080700_30052025_PF_FP_ABST
Patent Text Reader

Abstract

A color scale adjustment method and an electronic device. The color scale adjustment method comprises: displaying a first window of a first application at a first moment, wherein a color scale of the electronic device at the first moment is a first color scale (S701); in response to a first window switching operation input by a user, displaying a second window of a second application at a second moment, wherein when the second window is displayed, the color scale of the electronic device is changed into a second color scale (S702), and the second color scale is less than the first color scale; and at a third moment after a first duration from the second moment, changing the color scale of the electronic device into the first color scale (S703). In this way, on one hand, the color scale is first changed into the second color scale of a lower color scale level, thereby avoiding a brightness flickering phenomenon after window change. On the other hand, the second color scale is adjusted to the first color scale of a higher color scale level, so that the electronic device can be maintain at the higher color scale level after the second window is stabilized, thereby reducing the power consumption of a display screen to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Color level adjustment method and electronic device

[0001] This application claims priority to the Chinese patent application filed on November 22, 2023, with application number 202311557962.2 and invention name “A color level adjustment method and electronic device”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0002] The present application belongs to the field of display technology, and in particular relates to a color level adjustment method and electronic equipment. Background Art

[0003] Displays are the most power-hungry hardware in electronic devices. To reduce the power consumption of displays, display power saving technology (DPST) has emerged.

[0004] DPST is a technology that reduces display power consumption by adjusting the color scale level. Specifically, electronic devices can use a brightness compensation algorithm to adjust the brightness of the displayed or to-be-displayed image based on the set color scale level, so that the brightness of the adjusted image is compatible with the backlight brightness. The higher the color scale level, the greater the power savings, the more brightness compensation required, and the longer the calculation time of the brightness compensation algorithm.

[0005] Typically, electronic devices have a fixed color gradation of 3 levels. To save more power, the color gradation can be fixed to 6 levels. However, if the color gradation is fixed to 6 levels, the brightness compensation algorithm takes longer to calculate, so users may notice obvious brightness flickering during interface switching.

[0006] Summary of the Invention

[0007] The present application provides a color level adjustment method and electronic device, which can solve the problem of brightness flickering during interface switching and can save display power consumption to the greatest extent.

[0008] In a first aspect, the present application provides a color scale adjustment method, which is applied to an electronic device, and the method includes: displaying a first window of a first application at a first moment; wherein the color scale of the electronic device at the first moment is the first color scale; in response to a first window switching operation input by a user, displaying a second window of a second application at a second moment; wherein, after displaying the second window, the color scale of the electronic device changes to a second color scale, and the second color scale is smaller than the first color scale; at a third moment after a first time interval from the second moment, the color scale of the electronic device changes to the first color scale.

[0009] In this way, after the electronic device's window switches from the first window to the second window, the electronic device's color scale first changes to the second color scale of the lower color scale level, and then adjusts from the second color scale to the first color scale of the higher color scale level. This, on the one hand, first changing the color scale to the second color scale of the lower color scale level can avoid brightness flickering after the window change. On the other hand, adjusting from the second color scale to the first color scale of the higher color scale level allows the electronic device to maintain the higher color scale level after stabilizing the second window, thereby minimizing the power consumption of the display.

[0010] In one implementable manner, at the first moment, the first window is the focus window; at the second moment, the focus window changes from the first window to the second window.

[0011] In one achievable manner, the method further includes: after the second moment, based on the change in the focus window, adjusting the color scale of the electronic device to a second color scale.

[0012] In this way, whenever the focus window changes, the color level of the electronic device will be adjusted to the second color level to ensure that there will be no brightness flickering problem during each focus window switching process.

[0013] In one implementable manner, at a third moment after the second moment which is separated by a first time period, the color level of the electronic device changes to the first color level, including: at a second time period after the second moment, the color level of the electronic device changes to a third color level; wherein the third color level is smaller than the first color level and larger than the second color level, and the second time period is smaller than the first time period; at a third time period after the second moment, the color level of the electronic device changes to a fourth color level; wherein the fourth color level is smaller than the first color level and larger than the third color level, and the third time period is larger than the second time period and smaller than the first time period.

[0014] In this way, the color level of the electronic device can be adjusted from the second color level of the lower level to the first color level of the higher level by adjusting the color level level step by step. In this way, the stability of the displayed brightness can be ensured during the color level adjustment process.

[0015] In one implementable manner, the color level of the electronic device changes to the third color level for a second time period after the second moment, including: setting a first timer after the second moment, the first timer being used to time the stable time period of the focus window; after the timing time of the first timer reaches a preset stable time period, obtaining the first current color level of the electronic device, the first current color level being the second color level; when the first current color level is less than the first color level, adjusting the color level of the electronic device to the third color level.

[0016] In an implementable manner, before setting the first timer, the method further includes: if there is a first timer that is timing after the second moment, stopping the first timer that is timing.

[0017] In this way, you can set a first timer to wait for the second window to stabilize before adjusting the color scale from the second to the first. If a new window change is detected within the preset stabilization time, you can stop the first timer and reset a new first timer to count the preset stabilization time. This way, you can promptly interrupt the color scale adjustment process based on the last focus window change.

[0018] In one implementable manner, the color level of the electronic device changes to the fourth color level for a third time period after the second moment, including: after the second moment, setting the display power saving technology DPST characteristic parameter to the first parameter; setting a first timer, the first timer being used to time the stable time period of the focus window; after the timing time of the first timer reaches a preset stable time period, setting the DPST characteristic parameter to the second parameter; obtaining the first current color level of the electronic device, the first current color level being the second color level; when the first current color level is less than the first color level, adjusting the second color level to the third color level; after adjusting the second color level to the third color level, when the DPST characteristic parameter is the second parameter, obtaining the second current color level of the electronic device, the second current color level being the third color level; when the second current color level is less than the first color level, adjusting the third color level of the electronic device to the fourth color level.

[0019] In this way, if a new window change occurs during the process of adjusting the color scale step by step, the color scale adjustment process of the last focus window change can be interrupted in time based on the change of the DPST characteristic parameters.

[0020] In one implementable method, after adjusting the second color level to the third color level, it also includes: when the DPST characteristic parameter is the second parameter, setting a second timer, the second timer is used to time the preset cycle interval time; when the timing time of the second timer reaches the preset cycle interval time and no focus window change notification is identified within the preset cycle interval time, obtaining the second current color level; wherein the focus window change notification is used to notify the focus window change.

[0021] In this way, if a new window change occurs during the waiting process of the preset cycle interval time, the color scale adjustment process of the last focus window change can be interrupted in time based on the focus window change notification.

[0022] In one implementable embodiment, the method further includes: displaying a third window at a fourth moment in response to a second window switching operation input by the user; after displaying the third window, the color scale of the electronic device changes to the second color scale, and the fourth moment is after the third moment; a second time period after the fourth moment, the color scale of the electronic device changes to the third color scale; wherein the third color scale is smaller than the first color scale and larger than the second color scale; after the color scale of the electronic device changes to the third color scale, displaying a fourth window at a fifth moment in response to a third window switching operation input by the user; after displaying the fourth window, the color scale of the electronic device changes to the second color scale.

[0023] In this way, when the second window is switched to the third window, and when the third window is switched to the fourth window, the color scale of the electronic device will be changed back to the second color scale.

[0024] In one implementable manner, at the fourth moment, the third window is the focus window; at the fifth moment, the focus window changes from the third window to the fourth window; and based on the change in the focus window, the color scale of the electronic device is adjusted to the second color scale.

[0025] In one implementable embodiment, the method further includes: after the color scale of the electronic device changes to the third color scale, setting a second timer, the second timer being used to time a preset cycle interval time; in response to a third window switching operation input by the user, displaying a fourth window at a fifth moment within the preset cycle interval time; after the fifth moment, generating a window change notification; and based on the window change notification, ending the color scale adjustment of the third color scale.

[0026] In this way, after the color level changes to the third color level, if a new window change occurs during the waiting process of the preset cycle interval time, the color level adjustment process of the last focus window change can be interrupted in time based on the focus window change notification.

[0027] In one implementable embodiment, after the second moment, based on the change of the focus window, the color level of the electronic device is adjusted to the second color level, including: after the second moment, based on the change of the focus window and the power mode of the electronic device is a DC power supply, the color level of the electronic device is adjusted to the second color level.

[0028] In one achievable manner, the method further includes: when an exit from sleep mode event or a power-on event is identified, adjusting the color level of the electronic device to the second color level.

[0029] In a second aspect, the present application also provides an electronic device, comprising a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of the first aspects.

[0030] In a third aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program or instructions. When the computer program or instructions are executed on a computer, the computer executes the method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] FIG1 is a schematic structural diagram of a display screen provided in an embodiment of the present application;

[0032] FIG2 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0033] FIG3 is a software architecture diagram of an electronic device provided in an embodiment of the present application;

[0034] FIG4 is a software interaction diagram of a color scale adjustment method provided in an embodiment of the present application;

[0035] FIG5 is a schematic diagram of color scale changes based on FIG4 provided in an embodiment of the present application;

[0036] FIG6 is a software interaction diagram of another color scale adjustment method provided in an embodiment of the present application;

[0037] FIG7 is a schematic diagram of color scale changes based on FIG6 provided in an embodiment of the present application;

[0038] FIG8 is a software interaction diagram of another color scale adjustment method provided in an embodiment of the present application;

[0039] FIG9 is a schematic diagram of color scale changes based on FIG8 provided in an embodiment of the present application;

[0040] FIG10 is a software interaction diagram of another color scale adjustment method provided in an embodiment of the present application;

[0041] FIG11 is a schematic diagram of color scale changes based on FIG10 provided in an embodiment of the present application;

[0042] FIG12 is a software interaction diagram of another color scale adjustment method provided in an embodiment of the present application;

[0043] FIG13 is a flowchart of a further method for adjusting color scales according to an embodiment of the present application;

[0044] FIG14 is a schematic diagram of color scale changes based on FIG13 provided in an embodiment of the present application;

[0045] FIG15 is a schematic diagram of the color scale level change read by the tool PowerMax. DETAILED DESCRIPTION

[0046] To facilitate understanding of the technical solution of the application, some concepts involved in this application are first explained below.

[0047] The focus window is the window that has focus. The focus window is the only window that can receive keyboard input. The focus window is determined by the system's focus mode. The topmost window of the focus window is called the active window. Only one window can be active at a time. The focus window is most likely the window that the user is currently working with.

[0048] For example, the focus window may be the window displayed in the front of the electronic device and directly operable by the user. When the electronic device displays a first window (or a first interface), the focus window may correspond to the first window. When the electronic device displays a second window (or a second interface), the focus window may correspond to the second window.

[0049] Focus mode can be used to determine how the mouse focuses on a window. Generally, there are three focus modes:

[0050] (1) Click-to-focus. In this mode, the window that the mouse clicks on gains focus. That is, when the mouse clicks anywhere on a window that can gain focus, the window is activated, placed on top of all other windows, and receives keyboard input. When the mouse clicks on another window, the window loses focus.

[0051] (2) Focus follows mouse. In this mode, the window under the mouse can obtain focus. That is, when the mouse moves into the range of a window that can obtain focus, the user can activate this window and receive keyboard input without clicking anywhere in the window, but the window is not necessarily brought to the front of all windows. When the mouse moves out of the range of this window, the window will also lose focus.

[0052] (3) Sloppy focus. This focus mode is similar to focus-follow-mouse: when the mouse moves into the range of a window that can receive focus, the user can activate the window without clicking anywhere in the window and receive keyboard input, but the window is not necessarily brought to the front of all windows. Unlike focus-follow-mouse, the focus does not change when the mouse moves out of the window range. The system focus only changes when the mouse moves to another window that can receive focus.

[0053] Displays are a major power-hungry component of electronic devices. Statistics show that, in typical use, the display consumes nearly one-third of the device's power. To reduce display power consumption, display power saving technology (DPST) has emerged.

[0054] The following describes DPST using a liquid crystal display (LCD) as an example.

[0055] Figure 1 is a schematic diagram of the structure of an LCD provided by an embodiment of the present application. As shown in Figure 1, the LCD includes a circuit layer 10, a backlight layer 20, a liquid crystal layer 30, a polarizing unit 40, a color filter 50, and a surface layer 60 arranged in sequence.

[0056] The circuit layer 10 can supply power to the backlight layer 20, causing the backlight layer 20 to emit uniform white light. The liquid crystal layer 30 deflects light based on the color and brightness information of each point. Since the deflection rates of light of different primary colors are different, the final color of different points is affected. Therefore, it can be seen that the part of the LCD that actually emits light is the backlight layer 20. In other words, the backlight layer 20 is the most power-consuming part of the LCD. The stronger the backlight brightness provided by the backlight layer 20, the higher the power consumption of the LCD. Therefore, reducing the backlight brightness of the backlight layer 20 can reduce the power consumption of the LCD. The liquid crystal layer 30 is actually a dissipative layer that can deflect and block light through the color filter 50 and the polarization unit 40.

[0057] It should be understood that lowering the backlight brightness reduces the LCD's power consumption, but the displayed image will become dimmer overall. DPST is a technology that maintains overall display quality even when the backlight brightness is reduced, preventing the user from perceiving changes in the brightness of the displayed image. In this way, DPST reduces LCD power consumption without affecting the user's visual experience.

[0058] DPST is a technology that reduces display power consumption by adjusting the color scale level. Color scale is an index that represents the brightness of an image, and the color scale level can affect the brightness of the image being displayed or to be displayed. Specifically, based on the set color scale level, the electronic device can use a brightness compensation algorithm to adjust the brightness of the image being displayed or to be displayed, so that the brightness of the adjusted image is compatible with the backlight brightness, ensuring that the user does not perceive any changes in the brightness of the displayed image. The higher the color scale level, the more brightness compensation is required, and the longer the calculation time of the brightness compensation algorithm.

[0059] That is, DPST can utilize a brightness compensation algorithm to modify pixel data of an image being displayed or to be displayed, so as to adjust the brightness of the image being displayed or to be displayed.

[0060] Specifically, DPST may include multiple color levels, and the higher the color level, the more power consumption is saved. For example, DPST may include six color levels from 1 to 6, among which color level 6 saves the most power and color level 1 saves the least power. Usually, electronic devices fix the color level to 3 levels. If you want to save more power consumption, you can fix the color level to 6 levels. However, if the color level is fixed to 6 levels, since the calculation time of the brightness compensation algorithm is longer, the user may perceive obvious brightness flickering during the interface switching process, which can also be called a flickering screen. For example, the display screen flickers or flickers irregularly.

[0061] An embodiment of the present application provides a color scale adjustment method that can monitor changes in a focus window and dynamically adjust the color scale level of a display screen according to the changes in the focus window to solve the problem that users may perceive obvious brightness flickering during interface switching.

[0062] The color scale adjustment method provided in the embodiments of the present application can be applied to electronic devices. The electronic devices can be terminal devices with display screens such as mobile phones, tablet computers, laptop computers, and the embodiments of the present application do not limit the specific form of the electronic devices.

[0063] The following embodiments only take the electronic device being a laptop as an example to illustrate the color level adjustment method provided in the embodiments of the present application.

[0064] FIG2 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application.

[0065] As shown in Figure 2, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 150, a display screen 160, etc.

[0066] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0067] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0068] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0069] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0070] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an I2C interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface.

[0071] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0072] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.

[0073] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 160, and the wireless communication module 150. In some embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.

[0074] The wireless communication module 150 can provide wireless communication solutions for the electronic device 100, including WLAN (such as Wi-Fi), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. For example, in an embodiment of the present application, the electronic device 100 can establish a Bluetooth connection with a terminal device (such as a wireless headset 100) through the wireless communication module 150.

[0075] The wireless communication module 150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via an antenna, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 150 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and convert them into electromagnetic waves for radiation via the antenna.

[0076] Electronic device 100 implements display functionality through a GPU, display screen 160, and an application processor. A GPU is a microprocessor for image processing that connects display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0077] Display screen 160 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED).

[0078] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0079] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 can execute instructions stored in the internal memory 121, and the internal memory 121 can include a program storage area and a data storage area.

[0080] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0081] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present invention, the software structure of the electronic device 100 is exemplified by taking a Windows system with a layered architecture as an example.

[0082] FIG3 is a software architecture diagram of an electronic device 100 provided in an embodiment of the present application.

[0083] As shown in Figure 3, the layered architecture divides software into several layers, each with clear roles and divisions of labor. Layers communicate with each other through software interfaces. In some embodiments, the Windows system includes an application layer and an operating system (OS) layer, where the application layer and OS layer can run on a system-on-a-chip (SOC). The SOC can be connected to external devices via a bus, and external devices may include a display, camera, keyboard, mouse, etc.

[0084] The application layer may include a computer manager application (application, APP). The application layer may also include other applications (not shown in the figure), such as music, video, games, office, social, shopping applications, browsers, etc., which are not limited in this application.

[0085] The OS layer may include OS services and a kernel. The kernel may include an IGPU driver, which is an integrated graphics driver. The kernel may also include drivers such as a mouse driver, audio and video drivers, camera drivers, and keyboard drivers, which are not limited in this application.

[0086] The PC Manager APP may include a system probe and a DPST policy scheduling module. The system probe may include a window status probe and a system event probe, and the DPST policy scheduling module may include a window status monitoring submodule, an event filtering submodule, and a DPST adjustment submodule.

[0087] The window state probe can monitor whether the focus window of the electronic device 100 has changed. When the focus window is detected to have changed, the window state probe can send a window state change notification to the window state monitoring submodule to notify the DPST policy scheduling module of the focus window change.

[0088] In response to monitoring the focus window change, the DPST adjustment submodule may execute a color scale adjustment strategy based on the focus window change, for example, first adjusting the color scale to level 3, and then gradually adjusting the color scale to level 6.

[0089] The system event probe can monitor the sleep events and power-on events of the electronic device 100. When the system event probe detects the electronic device 100 exiting sleep or powering on, it can send a notification of the exiting sleep event or power-on event to the event filtering submodule to notify the DPST policy scheduling module to exit sleep or power on the system.

[0090] In response to monitoring that the system exits sleep or starts up, the DPST adjustment submodule may execute a color scale adjustment strategy based on the system exiting sleep or starting up, for example, directly adjusting the color scale to level 3.

[0091] After the DPST policy scheduling module determines the color scale level to be adjusted, it can send the color scale level parameters through the interface in the IGCL library (IGCL Lib) (such as the ctlGetPowerOptimizationSetting function). The IGCL library then sends the color scale level parameters to the integrated display (IGPU) driver. The SOC's IGPU / CPU / GPU can then use a brightness compensation algorithm based on the received color scale level parameters to perform brightness compensation on the displayed or to-be-displayed image. Finally, the brightness-compensated image is sent to the display for display.

[0092] It should be noted that the embodiments of the present application are only illustrated using the Windows system as an example. In other operating systems (such as the Android system, the IOS system, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of the present application, the solutions of the present application can also be implemented.

[0093] Figure 4 shows a module interaction diagram of a color scale adjustment method provided by an embodiment of the present application. The following embodiment takes the window state probe, system event probe and DPST policy scheduling module as independent modules, and the window state monitoring submodule, event filtering submodule and DPST adjustment submodule as three threads in the DPST policy scheduling module as an example to illustrate the color scale adjustment method provided by an embodiment of the present application. Among them, the window state monitoring submodule can also be called the window state monitoring thread, the event filtering submodule can also be called the event filtering thread, and the DPST adjustment submodule can also be called the DPST adjustment thread. The window state monitoring thread, the event filtering thread and the DPST adjustment thread can be asynchronous threads.

[0094] As shown in FIG4 , a color scale adjustment method provided in an embodiment of the present application may include the following steps:

[0095] S201: The window status probe monitors whether the focus window changes.

[0096] S202: When a change in the focus window is detected, the DPST policy scheduling module sets the color level of the electronic device to an initial color level.

[0097] For example, at a first moment, the electronic device displays a first window of a first application. For example, the first application is a video application, and the first window is a search interface of the video application. In response to a user operation on the first application, at a second moment, the electronic device displays a second window. For example, the user exits the video application and returns to the main interface of the electronic device. When the electronic device switches from the search interface of the video application to the main interface, the window status probe can monitor whether the focus window changes from the first window to the second window, thereby determining that the focus window has changed.

[0098] After detecting a change in the focus window, the DPST policy scheduling module can first set the color scale of the electronic device to an initial color scale. The initial color scale can be a smaller color scale. In this way, for smaller color scales, the calculation time of the brightness compensation algorithm is shorter, which can ensure that there is no screen flickering after switching to the second window. For example, in the embodiment of the present application, the initial color scale can be level 3.

[0099] In some embodiments, the power mode of the electronic device can also be monitored. The power mode can include alternating current (AC) and direct current (DC). When the power mode of the electronic device is AC, it indicates that the electronic device is connected to an adapter and is powered by a power source such as a socket. In this power mode, the power consumption of the display screen can be ignored. When the power mode of the electronic device is DC, it indicates that the electronic device is powered by a battery. In this power mode, the power consumption of the display screen needs to be considered.

[0100] Therefore, in the embodiment of the present application, when it is detected that the power mode of the electronic device is DC and the focus window has changed, the DPST policy scheduling module sets the color level of the electronic device to the initial color level. In other words, when it is detected that the focus window has changed but the power mode is AC, the DPST policy scheduling module may not be triggered to execute step S202.

[0101] S203: The DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0102] In some embodiments, the color scale level can be set by calling the ctlGetPowerOptimizationSetting function. The ctlGetPowerOptimizationSetting function is an interface in the Intel IGCL library for setting and retrieving color scale levels. After sending the initial color scale to the IGPU driver, the SoC's IGPU / CPU / GPU, etc., can use a brightness compensation algorithm based on the received initial color scale to perform brightness compensation on the displayed or to-be-displayed image. Finally, the brightness-compensated image is sent to the display for display.

[0103] S204: The DPST policy scheduling module sets a first timer, where the first timer is used to measure the stable duration of the focus window.

[0104] The focus window stability duration refers to the duration during which the focus window remains unchanged. For example, after the focus window changes to the second window, the duration during which the second window remains unchanged.

[0105] After the embodiment of the present application detects that the focus window has changed, the color scale is first set to the initial color scale. Then, if the focus window does not change again within the preset stable time, the DPST adjustment thread can be started to adjust the color scale level from the initial color scale to the target color scale step by step. Among them, the color scale level of the target color scale is higher than the color scale level of the initial color scale. In this way, by gradually adjusting the color scale from a lower level color scale to a higher level target color scale, the problem of screen flickering when the color scale is fixed to level 6 can be solved.

[0106] The embodiment of the present application does not limit the specific value of the preset stabilization time, for example, the preset stabilization time may be 120 seconds. If the timing time (WaitTime) of the first timer reaches 120 seconds, the DPST adjustment thread may be started.

[0107] Steps S201 to S204 above can be understood as the logic for determining whether the focus window is stable. After the focus window is stable, the DPST adjustment thread can be started to gradually adjust the color level from the initial color level to the target color level. The step of gradually adjusting the color level from the initial color level to the target color level can be seen in steps S205 to S208.

[0108] S205: When the timing time WaitTime of the first timer reaches the preset stable duration, the DPST policy scheduling module obtains the current color level curLevel.

[0109] In some embodiments, the current color level curLevel may be obtained by calling the ctlGetPowerOptimizationSetting function.

[0110] S206: Determine whether the current color level curLevel is less than the target color level.

[0111] The embodiment of the present application does not limit the target color level. Exemplarily, the target color level can be the highest color level in the DPST, for example, the target color level is level 6. It should be understood that if the highest color level in the future DPST exceeds level 6, the target color level can be the highest color level in the future DPST.

[0112] S207: If the current color level curLevel is less than the target color level, set the color level curLevel to curLevel+1.

[0113] S208: The DPST policy scheduling module sends the current color level curLevel to the IGPU driver.

[0114] Among them, the current color level curLevel sent by the DPST policy scheduling module to the IGPU driver is the latest set color level curLevel.

[0115] S209, looping through steps S205 to S208 according to a preset loop interval until the current color level is equal to the target color level, and then exiting the DPST adjustment thread.

[0116] For example, a second timer may be provided for timing a preset cycle interval. Thus, after setting curLevel=curLevel+1 in S207, the second timer may begin timing. When the timing reaches the preset cycle interval, steps S205 to S208 are executed again until the current color level curLevel is no less than the target color level.

[0117] The above steps S205 to S208 are a cyclic process, and the above cyclic process is described by taking the initial color level being 3, the target color level being 6, and the preset cycle interval being 12 seconds as an example.

[0118] As shown in Figures 4 and 5, at time T0, a change in the focus window is detected, and the current color level curLevel is set to level 3. After the stable duration of the timing focus window of the first timer WaitTime = 120s, the above steps S205-S208 are started. Specifically, after WaitTime = 120s, the current color level curLevel obtained for the first time is level 3. Since the current color level curLevel is level 3, which is less than the target color level (i.e., level 6), the color level curLevel is set to level 4 at time T1 after WaitTime = 120s. After the color level curLevel is set to level 4, after waiting for the cycle interval time CycleTime = 12s, the current color level curLevel obtained for the second time is level 4. Since the current color level curLevel is level 4, which is less than the target color level (i.e., level 6), the color level curLevel is set to level 5 at time T2 after the first CycleTime = 12s. After setting the color level curLevel to level 5, wait again for the cycle interval time CycleTime = 12s, and the current color level curLevel obtained for the third time is level 5. Since the current color level curLevel 5 is smaller than the target color level (i.e., level 6), at time T3 after the second CycleTime = 12s, the color level curLevel is set to (i.e., level 6). After setting the color level curLevel to level 6, wait again for the cycle interval time CycleTime = 12s, and the current color level obtained for the third time is level 6. Since the current color level curLevel is level 6, which is not smaller than the target color level (i.e., level 6), the loop algorithm ends here and the DPST adjustment thread can be exited.

[0119] In this way, the color level adjustment method provided in the embodiment of the present application, after detecting the change of the focus window, first adjusts the color level to a lower level of color level, for example, the lower level of color level is level 3, to ensure that the interface after switching will not have the screen flickering phenomenon. Further, after waiting for the focus window to stabilize, the color level is gradually raised to a higher level, for example, the higher level of color level is level 6. In this way, when the focus window changes, that is, after the interface is switched, there will be no screen flickering phenomenon, and the power consumption of the display screen can be saved to the greatest extent.

[0120] It should be noted that the above embodiment only uses the scenario where the focus window is changed as an example to illustrate the color level adjustment method provided in the embodiment of the present application. In some embodiments, after the electronic device exits sleep or starts up, the display of the interface is also involved, so the problem of screen flickering is also involved.

[0121] To solve the problem of screen flickering when the electronic device exits sleep mode or starts up, as shown in FIG4 , the color scale adjustment method provided in the embodiment of the present application may further include the following steps:

[0122] S210 , the OS service reports an exit-sleep event or a power-on event to the system event probe.

[0123] S211 : The system event probe determines that the current scenario is an exit-hibernation event or a power-on event based on the exit-hibernation event or power-on event reported by the OS service.

[0124] S212: The DPST policy scheduling module sets the color level to the initial color level.

[0125] Among them, after exiting the sleep event, the display interface of the electronic device usually displays the interface before the sleep event. After powering on, the display interface of the electronic device usually displays the main interface of the electronic device. In the embodiment of the present application, after the electronic device exits sleep or powers on, the color scale is directly set to the initial color scale, for example, the color scale level of the initial color scale is level 3. In this way, when displaying the interface before the sleep event or the main interface of the electronic device, no screen flickering phenomenon will occur.

[0126] After displaying the interface before sleep or the main interface of the electronic device, the above steps S201 to S209 can be performed. That is, after exiting sleep or turning on the device, the color scale level is first set to level 3. Then, if a change in the focus window is detected, the color scale level is first set to level 3, and then the color scale level is gradually adjusted to level 6. In this way, no screen flickering will occur during the interface switching process in the scenarios where the electronic device exits sleep, turns on, or the focus window changes.

[0127] In some embodiments, the computer manager app is launched after the electronic device is turned on. The computer manager app can load a configuration file when it is launched. For example, the configuration file may include the name of the machine adapted for the color level adjustment solution provided in the embodiment of the application, the initial color level, the WaitTime of the focus window stabilization time, the preset cycle interval CycleTime, etc.

[0128] S213, the DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0129] It should be noted that the color scale adjustment solution provided by the above embodiment is applicable to the situation where there is no new focus window change during the entire color scale adjustment process. However, in the actual operation process, new focus window changes may occur at different stages of the color scale adjustment. If a new focus window change occurs, it means that the previous focus window is no longer displayed, so there is no need to continue adjusting the color scale of the previous focus window. In other words, if a new focus window change occurs, it is necessary to interrupt the ongoing color scale adjustment, and then re-execute step S202 and subsequent steps. Therefore, the embodiment of the present application may also include the following interruption mechanism to adapt to the situation where a new focus window change occurs during the color scale adjustment process.

[0130] Several interruption mechanisms provided in the embodiments of the present application are described below.

[0131] The first interrupt mechanism is applicable to the situation where the stable duration of the focus window timed by the first timer does not reach the preset stable duration, and the window status probe monitors the change of the new focus window.

[0132] Exemplarily, as shown in FIG6 and FIG7 , the color scale adjustment solution including the first interruption mechanism may include the following steps:

[0133] S301: The window status probe monitors whether the focus window changes.

[0134] S302: When a change in the focus window is detected, the DPST policy scheduling module sets the color level of the electronic device to an initial color level.

[0135] S303: The DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0136] S304: The DPST policy scheduling module determines whether there is a first timer that is running.

[0137] S305: If it is determined that there is a running first timer, stop the running first timer.

[0138] S306: When it is determined that there is no running first timer or after the running first timer is closed, the DPST policy scheduling module resets the first timer, where the first timer is used to measure the stable duration of the focus window.

[0139] S307: When the timing time WaitTime of the first timer reaches the preset stable duration, the DPST policy scheduling module obtains the current color level curLevel.

[0140] S308: Determine whether the current color level curLevel is less than the target color level.

[0141] S309: If the current color level curLevel is less than the target color level, set the color level curLevel to curLevel+1.

[0142] S310: The DPST policy scheduling module sends the current color scale to the IGPU driver.

[0143] S311 , looping through steps S307 to S310 according to a preset loop interval until the current color level is equal to the target color level.

[0144] As shown in Figures 6 and 7, a change in the focus window is detected at time T0, the current color level curLevel is set to level 3, and the first timer is set to time the stable duration of the focus window WaitTime1. If a new focus window change is detected at time T0' within the stable duration of the focus window WaitTime1, the ongoing color level adjustment is interrupted (i.e., the process from T0' to T3' in Figure 7 is interrupted). Instead, the current color level curLevel is reset to level 3, and the first timer that is timing is turned off. Afterwards, the DPST policy scheduling module can reset the new first timer and re-time the stable duration of the focus window WaitTime2 from 0s. If no new focus window change is detected within the re-timed WaitTime2, the following steps S307 to S310 can be executed. That is, at time T1 after WaitTime2=120s, the color level curLevel is set to level 4. After setting the color level curLevel to level 4, wait for the cycle interval time CycleTime = 12s, and the current color level curLevel obtained for the second time is level 4. Since the current color level curLevel level 4 is less than the target color level (i.e., level 6), at time T2 after the first CycleTime = 12s, the color level curLevel is set to level 5. After setting the color level curLevel to level 5, wait for the cycle interval time CycleTime = 12s again, and the current color level curLevel obtained for the third time is level 5. Since the current color level curLevel is level 5, which is less than the target color level (i.e., level 6), at time T3 after the second CycleTime = 12s, the color level curLevel is set to level 6. After setting the color level curLevel to level 6, wait for the cycle interval time CycleTime = 12s again, and the current color level obtained for the third time is level 6. Since the current color level curLevel is level 6, which is not less than the target color level (i.e., level 6), the loop algorithm ends here and the DPST adjustment thread can be exited.

[0145] If a new focus window change is detected again within the re-timed WaitTime2, the steps of resetting the color level to level 3, closing the first timer that is timing, and resetting the first timer are performed again. In this way, the color level adjustment scheme shown in Figure 6 above can be applied to the situation where the window status probe monitors new focus window changes when the stable duration of the focus window timed by the first timer does not reach the preset stable duration. By adopting the color level adjustment scheme shown in Figure 6 above, the color level adjustment strategy based on the last focus window change can be interrupted in time.

[0146] It should be noted that, in the above embodiment, steps S301 to S303 may refer to the description of steps S201 to S203, and steps S307 to S311 may refer to the description of steps S205 to S209, which will not be repeated here.

[0147] The second interrupt mechanism is applicable to the situation where the window status probe monitors the change of the new focus window during the execution of S205-S207 or S307-S309.

[0148] Exemplarily, as shown in FIG8 , the color scale adjustment solution including the second interruption mechanism may include the following steps:

[0149] S401: The window status probe monitors whether the focus window changes.

[0150] S402: When a change in the focus window is detected, the DPST policy scheduling module sets the color level of the electronic device to an initial color level.

[0151] S403: The DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0152] S404: The DPST policy scheduling module sets the DPST characteristic parameter mFlag to True.

[0153] In the embodiment of the present application, when the focus window changes, the window status monitoring thread may set mFlag to True, wherein mFlag=True may indicate that the focus window has changed.

[0154] Among them, mFlag can include two parameter values, namely mFlag = True or mFlag = False. The DPST characteristic parameter mFlag can be a global variable, that is, each thread in the DPST policy scheduling module can know the current mFlag = True or mFlag = False.

[0155] For example, when the window status monitoring thread sets mFlag=True, the DPST adjustment thread can learn that mFlag=True. Correspondingly, when the DPST adjustment thread sets mFlag=Flase, the window status monitoring thread can learn that mFlag=Flase.

[0156] S405: The DPST policy scheduling module sets a first timer, where the first timer is used to measure the stable duration of the focus window.

[0157] S406: When the stable duration of the focus window reaches the preset stable duration, the DPST policy scheduling module sets the DPST characteristic parameter mFlag to False.

[0158] In this embodiment of the present application, after the focus window reaches a predetermined stability time, the DPST adjustment thread can first set the DPST characteristic parameter mFlag to False, thereby starting the DPST adjustment thread to adjust the initial color level to the target color level. In other words, mFlag = False can be understood as a switch to start the DPST adjustment thread.

[0159] S407, the DPST policy scheduling module obtains the current color level curLevel.

[0160] S408: The DPST policy scheduling module determines whether the current color level curLevel is less than the target color level.

[0161] S409: If the current color level curLevel is less than the target color level, the DPST policy scheduling module sets the color level curLevel to curLevel+1.

[0162] S410: The DPST policy scheduling module sends the current color scale to the IGPU driver.

[0163] S411: The DPST policy scheduling module determines whether the DPST characteristic parameter mFlag is True.

[0164] In the embodiment of the present application, mFlag is set to True as long as a focus window change is detected. Thus, if a new focus window change is detected during the execution of steps S406 to S409, the mFlag originally set by the DPST adjustment thread is reset to mFlag=True.

[0165] That is, in the embodiment of the present application, mFlag=True or mFlag=Flase can be used to determine whether a new focus window change is detected during the execution of steps S406 to S409. Specifically, if the DPST policy scheduling module determines that the DPST characteristic parameter mFlag=True in step S411, it means that a new focus window change is detected during the execution of steps S406 to S409. Conversely, if the DPST policy scheduling module determines that the DPST characteristic parameter mFlag=Flase in step S411, it means that no new focus window change is detected during the execution of steps S406 to S409.

[0166] S412: When it is determined that the DPST characteristic parameter mFlag is True, exit the DPST adjustment thread.

[0167] When it is determined that the DPST characteristic parameter mFlag is not True, the above steps S407 to S411 are cyclically executed according to a preset cyclic interval until the current color level is equal to the target color level.

[0168] It should be noted that, in the embodiment of the present application, step S411 is determined once before each waiting cycle interval, and if it is determined that the DPST characteristic parameter mFlag is not True, the waiting cycle interval is started again.

[0169] It should be noted that, in some embodiments, step S411 may be performed first and then step S410. In this way, if the DPST policy scheduling module determines that the DPST characteristic parameter mFlag is True, step S410 will not be performed.

[0170] Exemplarily, as shown in FIG9 , at time T0, a change in the focus window is detected, the current color level curLevel is set to level 3, and mFlag is set to True. Then, the first timer is set to count the stable duration of the focus window, WaitTime1. At time T1 after WaitTime1=120s, mFlag=Flase is set. After that, the color level curLevel is set to level 4. If at time T1' during the process of adjusting the color level from level 3 to level 4, a new focus window change is detected again, the current color level curLevel is reset to level 3, and mFlag=True is reset. In this way, after the color level is adjusted to level 4, it can be determined that mFlag=True, and the ongoing color level adjustment process based on the last focus window change is interrupted (i.e., the process from T2' to T5' in FIG9 is interrupted), and the color level adjustment process based on the latest focus window change is restarted (i.e., the process from T1' to T4 in FIG9 ).

[0171] Thus, the color scale adjustment scheme shown in FIG8 can be applied to the case where the window status probe monitors a new focus window change during the execution of S407 to S409. Using the color scale adjustment scheme shown in FIG8 can timely interrupt the color scale adjustment strategy based on the previous focus window change.

[0172] The third interrupt mechanism is applicable to the situation where the window status probe monitors the change of the new focus window during the waiting period of the preset cycle interval.

[0173] Exemplarily, as shown in FIG10 , the color scale adjustment solution including the third interruption mechanism may include the following steps:

[0174] S501: The window status probe monitors whether the focus window changes.

[0175] S502: When a change in the focus window is detected, the DPST policy scheduling module sets the color level of the electronic device to an initial color level.

[0176] S503: The DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0177] S504: The DPST policy scheduling module generates a window change notification, which is used to notify that a change in the monitored focus window has been detected.

[0178] S505: The DPST policy scheduling module sets a first timer, where the first timer is used to measure the stable duration of the focus window.

[0179] S506: When the stable duration of the focus window reaches a preset stable duration, the DPST policy scheduling module obtains the current color level.

[0180] S507: The DPST policy scheduling module determines whether the current color level curLevel is less than the target color level.

[0181] S508: If the current color level curLevel is less than the target color level, the DPST policy scheduling module sets the color level curLevel to curLevel+1.

[0182] S509: The DPST policy scheduling module sends the current color scale to the IGPU driver.

[0183] S510: The DPST policy scheduling module determines whether a window change notification is recognized within a preset cycle interval.

[0184] It should be noted that steps S502, S504, and S505 can be executed by the window status monitoring thread, while steps S506 to S510 can be executed by the DPST adjustment thread. Since the window status monitoring thread and the DPST adjustment thread are executed as asynchronous threads, if the focus window changes during the waiting loop interval, the DPST adjustment thread will not be aware of the focus window change unless the DPST adjustment thread is not notified.

[0185] In order to enable the DPST adjustment thread to know in time that a new focus window change has occurred, so as to interrupt the ongoing color scale adjustment. In the embodiment of the present application, when a new focus window change is detected, the window status monitoring thread generates a window change notification, and the window change notification can be used exclusively for the DPST adjustment thread to identify during the waiting period of the preset cycle interval. That is to say, if the new focus window change occurs during the period of waiting for the preset cycle interval, the DPST adjustment thread can identify the window change notification. If the new focus window change does not occur during the period of waiting for the preset cycle interval, the DPST adjustment thread will not identify the window change notification.

[0186] In this way, the DPST adjustment thread can determine whether a window change notification is recognized during the waiting period of the preset cycle interval. If a window change notification is recognized, it means that the focus window has changed again. If no window change notification is recognized, it means that no new focus window change has occurred during the waiting period of the preset cycle interval, and the next color scale adjustment can be continued.

[0187] S511 , when a window change notification is identified within a preset cycle interval, exit the DPST adjustment thread.

[0188] If it is determined that no window change notification is recognized within the preset cycle interval, the above steps S506 to S510 are performed again until the current color level is equal to the target color level.

[0189] Exemplarily, as shown in FIG11 , at time T0, a change in the focus window is detected, and the current color level curLevel is set to level 3. Then, the first timer is set to count the stable duration of the focus window, WaitTime1. At time T1 after WaitTime1=120s, the current color level curLevel is adjusted from level 3 to level 4. After that, after waiting for the preset cycle interval time to reach 12s, the process of adjusting the current color level curLevel from level 4 to level 5 is started. If a new focus window change is detected again at time T1' while waiting for the preset cycle interval time CycleTime, a window change notification is generated. In this way, since the DPST adjustment thread recognizes the window change notification during the time period of waiting for the preset cycle interval time, the color level adjustment process based on the last focus window change (i.e., the process from T1' to T3' in FIG11 ) is interrupted, and the color level adjustment process based on the latest focus window change (i.e., the process from T1' to T4 in FIG11 ) is restarted.

[0190] It should be noted that the three interruption mechanisms provided in the above embodiments can be applied individually to the color scale adjustment solution provided in the embodiments of the present application, or any two or three of them can be applied in combination to the color scale adjustment solution provided in the embodiments of the present application.

[0191] The following describes the color scale adjustment solution provided in the embodiment of the present application using a combination of three interrupt mechanisms as an example.

[0192] As shown in FIG12 , the combination of the three interruption mechanisms is applied to the color scale adjustment solution provided in the embodiment of the present application, which may include the following steps:

[0193] S601: The window status probe monitors whether the focus window changes.

[0194] S602: When a change in the focus window is detected, the DPST policy scheduling module sets the color level of the electronic device to the initial color level.

[0195] S603: The DPST policy scheduling module sends the initial color scale to the IGPU driver.

[0196] S604: The DPST policy scheduling module determines whether there is a first timer that is running.

[0197] S605: If it is determined that there is a running first timer, stop the running first timer.

[0198] S606: When it is determined that there is no running first timer or after the running first timer is closed, the DPST policy scheduling module sets the DPST characteristic parameter mFlag to True.

[0199] S607: The DPST policy scheduling module generates a window change notification, which is used to notify that a change in the monitored focus window has been detected.

[0200] S608: The DPST policy scheduling module sets a first timer, where the first timer is used to measure the stable duration of the focus window.

[0201] S609: When the stable duration of the focus window reaches the preset stable duration, the DPST policy scheduling module sets the DPST characteristic parameter mFlag to False.

[0202] S610: The DPST policy scheduling module obtains the current color level curLevel.

[0203] S611: The DPST policy scheduling module determines whether the current color level curLevel is less than the target color level.

[0204] S612: If the current color level curLevel is less than the target color level, the DPST policy scheduling module sets the color level curLevel to curLevel+1.

[0205] S613: The DPST policy scheduling module sends the current color scale to the IGPU driver.

[0206] S614: The DPST policy scheduling module determines whether the DPST characteristic parameter mFlag is True.

[0207] S615: When it is determined that the DPST characteristic parameter mFlag is not True, the DPST policy scheduling module determines whether a window change notification is recognized within a preset cycle interval.

[0208] S616: If a window change notification is identified within a preset cycle interval, or if the DPST characteristic parameter mFlag is determined to be True, exit the DPST adjustment thread.

[0209] If it is determined that no window change notification is recognized within the preset cycle interval, the above steps S610 to S615 are performed again until the current color level is equal to the target color level.

[0210] In this way, if a new focus window change occurs during the stage of waiting for the focus window to stabilize, the first timer that is timing can be closed through steps S604, S605 and S608, and a new first timer can be recreated to restart the timing. In this way, the first interruption mechanism is applied to interrupt the color scale adjustment process based on the last focus window change. If a new focus window change occurs in the stages S609 to S612, the new focus window change can be determined in the stages S609 to S612 based on the change of mFlag through steps S606, S609, S614. In this way, the second interruption mechanism is applied to interrupt the color scale adjustment process based on the last focus window change. If a new focus window change occurs in the preset cycle interval time stage, the new focus window change can be determined in the preset cycle interval time stage based on the window change notification through steps S607 and S615. In this way, the third interruption mechanism is applied to interrupt the color scale adjustment process based on the last focus window change.

[0211] Among them, the above steps S601 to S605 can refer to the description of steps S301 to S306, steps S606, S608 to S614 can refer to the description of steps S404 to S412, and steps S607 and S615 can refer to the description of steps S504 to S511, which will not be repeated here.

[0212] It should be noted that the above embodiment only uses the adjustment strategy of increasing the color level by one level at a time as an example, and does not limit the color level adjustment strategy. For example, the color level adjustment can also be performed by increasing the color level by two levels at a time. For another example, the color level adjustment can also be performed by increasing the color level by one level at a time, and then increasing the color level by two levels at a time.

[0213] FIG13 is a flow chart of a color scale adjustment method provided in an embodiment of the present application. As shown in FIG13 , the method may include the following steps:

[0214] S701 , displaying a first window of a first application at a first moment; wherein the color level of the electronic device at the first moment is a first color level (also referred to as a target color level).

[0215] S702, in response to a first window switching operation input by the user, displaying a second window of the second application at a second moment; wherein, after displaying the second window, the color level of the electronic device changes to a second color level (also referred to as an initial color level), and the second color level is smaller than the first color level.

[0216] S703: At a third moment which is separated from the second moment by a first time period, the color level of the electronic device changes to the first color level.

[0217] For example, as shown in FIG14 , the first window displayed at the first moment T1 may be the focus window. At the second moment T2, the focus window switches from the first window to the second window. The first application and the second application may be the same application or different applications, which is not limited in this embodiment of the present application.

[0218] After the second moment T2, based on the change in the focus window, the color level changes to the second color level L2. For example, at time T2' after the second moment T2, the color level changes to the second color level L2. The color level of the first color level L1 can be level 6, and the color level of the second color level L2 can be level 3.

[0219] The specific implementation method of monitoring the focus window change can be found in the description of steps S201 to S202, which will not be repeated here.

[0220] In some embodiments, as shown in FIG14 , at a third time T3 after a first time interval K1 from the second time T2, the process of the electronic device's color level changing to the first color level L1 may include: a second time interval K2 after the second time T2, the electronic device's color level changing to a third color level L3. The third color level L3 is smaller than the first color level L1 and larger than the second color level L2, and the second time interval K2 is smaller than the first time interval K1. A third time interval K3 after the second time T2, the electronic device's color level changing to a fourth color level L4. The fourth color level L4 is smaller than the first color level L1 and larger than the third color level L3, and the third time interval K3 is larger than the second time interval K2 and smaller than the first time interval K1.

[0221] In some embodiments, after the second time T2 and for a second duration K2, the color level of the electronic device changes to the third color level L3. This can be achieved by setting a first timer after the second time T2, the first timer being used to measure the stability duration of the focus window. After the first timer reaches the preset stability duration, a first current color level of the electronic device is obtained, where the first current color level is the second color level L2. If the first current color level L2 is less than the first color level L1, the color level of the electronic device is adjusted from the second color level L2 to the third color level L3.

[0222] For example, the color level of the first color level L1 is 6, the color level of the second color level L2 is 3, the color level of the third color level L3 is 4, and the color level of the fourth color level L4 is 5. In combination with Figure 4 and Figure 14, the above is a process of adjusting the electronic device from the second color level L2 to the first color level L1 step by step. Among them, steps S201 to S208 can be performed once within the second time period K2 to adjust the color level from the second color level L2 to the third color level L3. The third time period K3 includes the second time period K2, and the loop process of S205 to S208 can be performed one more time within the third time period K3 to adjust the color level from the third color level L3 to the fourth color level L4.

[0223] It should be noted that the specific implementation process of the electronic device changing the color level to the first color level L1 at the third time T3 after the first time length K1 from the second time T2 can be found in the description of steps S201 to S208 and will not be repeated here.

[0224] It should also be noted that the above embodiment illustrates only two steps of the adjustment process for gradually adjusting the second color level L2 to the first color level L1, and does not limit the color level adjustment method. For details, see the description of steps S201 to S208. For example, multiple adjustment steps may be included until the colorant is adjusted to the first color level.

[0225] In some embodiments, before setting the first timer, the method may further include: if there is a first timer that is timing after the second time T2, stopping the first timer that is timing.

[0226] For example, referring to Figures 6 and 7, steps S301 to S310 can be executed once within the second time period K2. In this way, if a new focus window change is detected within the timing period of the first timer, the first timer that is timing can be closed, and then a new first timer can be reset to restart the timing.

[0227] The above specific implementation process can be found in the description of steps S301 to S310, which will not be repeated here.

[0228] In some embodiments, the color level of the electronic device changes to a fourth color level a third time after the second time T2. This can be achieved by: after the second time T2, setting a display power saving technology (DPST) characteristic parameter to a first parameter. Then, setting a first timer for timing the stability duration of the focus window. After the first timer reaches a preset stability duration, setting the DPST characteristic parameter to a second parameter. Then, obtaining a first current color level of the electronic device, where the first current color level is the second color level L2. If the first current color level is less than the first color level L1, adjusting the color level of the electronic device from the second color level L2 to the third color level L3. After adjusting the color level of the electronic device from the second color level L2 to the third color level L3, if the DPST characteristic parameter is the second parameter, obtaining a second current color level of the electronic device, where the second current color level is the third color level L3. If the second current color level is less than the first color level L1, adjusting the color level of the electronic device from the third color level L3 to the fourth color level L4.

[0229] Exemplarily, referring to Figures 8 and 9, steps S401 to S411 can be performed once within the second duration K2 time period. In this way, if no new focus window change is detected within the time period S406 to S409 (or S406 to S410), it can be determined in step S411 that the DPST characteristic parameter is still the second parameter. In this way, the process of adjusting the color level of the electronic device from the third color level L3 to the fourth color level L4 can be entered. If a new focus window change is detected within the time period S406 to S409 (or S406 to S410), it can be determined in step S411 that the DPST characteristic parameter becomes the first parameter. In this way, the process of adjusting the color level of the electronic device from the third color level L3 to the fourth color level L4 will not be entered, and the continued adjustment process of the third color level L3 is terminated.

[0230] The above specific implementation process can be found in the description of steps S401 to S412, which will not be repeated here.

[0231] It should be noted that the DPST characteristic parameter may be mFlag, the first parameter may be mFlag=True, and the second parameter may be mFlag=Flase. For another example, the first parameter may be mFlag=1, and the second parameter may be mFlag=0. This application does not limit this.

[0232] In some embodiments, after adjusting the color level of the electronic device from the second color level L2 to the third color level L3, the method may further include: setting a second timer when the DPST characteristic parameter is the second parameter, the second timer being used to time a preset cycle interval. When the second timer reaches the preset cycle interval and no focus window change notification is recognized within the preset cycle interval, obtaining a second current color level. The focus window change notification is used to notify the focus window of a change.

[0233] For example, referring to FIG. 12 , after the color scale of the electronic device is adjusted from the second color scale L2 to the third color scale L3, step S614 may be executed. If the DPST characteristic parameter is determined to be the second parameter in step S614, step S615 may be further executed. If no window change notification is received within the time period of executing step S615, the process of adjusting the color scale of the electronic device from the third color scale L3 to the fourth color scale L4 may be entered. If a new focus window change occurs within the time period of executing step S615, a window change notification will be received within the time period of executing step S615. In this way, based on the window change notification, the process of adjusting the color scale of the electronic device from the third color scale L3 to the fourth color scale L4 will not be entered, and the process of continuing to adjust the third color scale L3 is terminated.

[0234] The above specific implementation process can be found in the description of steps S601 to S616, which will not be repeated here.

[0235] In some embodiments, referring to FIG. 13 , in response to a second window switching operation input by the user, a third window is displayed at a fourth moment T4. After the third window is displayed, the color level of the electronic device changes to the second color level L2 (for example, at a moment T4′ after the fourth moment T4, the color level changes to the second color level L2), and the fourth moment T4 is after the third moment T3. For a second duration K2 after the fourth moment T4, the color level of the electronic device changes to the third color level L3. The third color level L3 is smaller than the first color level L1 and larger than the second color level L2. After the color level of the electronic device changes to the third color level L3, in response to a third window switching operation input by the user, a fourth window is displayed at a fifth moment T5. After the fourth window is displayed, the color level of the electronic device changes to the second color level L2 (for example, at a moment T5′ after the fourth moment T5, the color level changes to the second color level L2).

[0236] At the fourth moment T4, the third window is the focus window; at the fifth moment T5, the focus window changes from the third window to the fourth window; based on the change of the focus window, the color level of the electronic device is adjusted to the second color level L2.

[0237] That is to say, from the second moment T2 to the fourth moment T4, the focus window is stable at the second window. From the second moment T2 to the third moment T3, the process of adjusting the color level from the second color level L2 to the first color level L1 can be realized. From the third moment T3 to the fourth moment, the color level can be stabilized at the first color level L1. Until the fourth moment T4, the focus window becomes the third window. At the moment T4' after the focus window becomes the third window, based on the change of the focus window, the color level changes to the second color level L2 again. Afterwards, first adjust the second color level L2 to the third color level L3 at the second time length K2 after the fourth moment T4. At the fifth moment T5 in the process of adjusting the third color level L3 to the fourth color level, the focus window becomes the fourth window. At the moment T4' after the focus window becomes the fourth window, based on the change of the focus window, the color level changes to the second color level L2 again.

[0238] In some embodiments, after the color scale of the electronic device changes to the third color scale, a second timer may be set to measure a preset cyclic interval. In response to a third window switching operation input by the user, a fourth window is displayed at a fifth time T5 within the preset cyclic interval. After the fifth time, a window change notification is generated; based on the window change notification, the color scale adjustment of the third color scale L3 is terminated.

[0239] For example, steps S601 to S616 may be performed from the fourth time T4 to the fifth time T5. The specific implementation process can be found in the description of steps S601 to S616, which will not be repeated here.

[0240] In some embodiments, after the second moment, based on the change of the focus window and the power mode of the electronic device being a direct current power supply, the color level of the electronic device is adjusted to a second color level.

[0241] In some embodiments, when an exit from sleep mode event or a power-on event is identified, the color level of the electronic device is adjusted to a second color level. Detailed descriptions of steps S211 to S213 are provided and will not be repeated here.

[0242] The color scale adjustment method provided in an embodiment of the present application first sets the color scale of the electronic device to the second color scale after the window is switched. Then, the color scale is gradually adjusted from the second color scale to the first color scale. In this way, the screen flickering problem that occurs when the focus window changes can be solved, and the power consumption of the display screen can be saved to the greatest extent. In addition, during the color scale adjustment process, if a new focus window changes, the color scale adjustment process based on the previous focus window change can be interrupted in time.

[0243] Figure 15 is a schematic diagram of the color scale level change of the color scale adjustment solution provided by the embodiment of the present application read by the tool PowerMax. Figure 15 is the color scale level change information of the local video full-screen mode for 15 minutes captured when the power mode is DC. As shown in Figure 15, the color scale level of the electronic device is gradually increased from level 3 to level 6, and is stably operated at level 6. Among them, in the process of the electronic device gradually increasing the color scale level from level 3 to level 6, the color scale level is increased by one level every 12 seconds until the color scale level reaches level 6. In this way, since the color scale level is gradually increased from level 3 to level 6, there will be no screen flickering during this process. In addition, after the color scale level is increased to level 6, stable operation at level 6 can save the power consumption of the display screen to the greatest extent.

[0244] The various method embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the scope of protection of this application.

[0245] It can be understood that, in the above-mentioned various method embodiments, the methods and operations implemented by the electronic device can also be implemented by components (such as chips or circuits) that can be used in the electronic device.

[0246] The above embodiments introduce the color scale adjustment method provided by the present application. It is understandable that, in order to implement the above functions, the electronic device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0247] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it will not be described in detail here.

[0248] It should be noted that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The above processor can 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. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0249] It is understood that the memory in the embodiments of the present application 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 SDRAM (DDR SDRAM), 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.

[0250] According to the method provided in the embodiment of the present application, the embodiment of the present application also provides a computer program product, which includes: a computer program or instructions, which, when the computer program or instructions are run on a computer, enables the computer to execute the method of any one of the method embodiments.

[0251] According to the method provided in the embodiment of the present application, the embodiment of the present application also provides a computer storage medium, which stores a computer program or instruction. When the computer program or instruction is run on a computer, the computer executes the method of any one of the embodiments of the method.

[0252] According to the method provided in an embodiment of the present application, an embodiment of the present application also provides an electronic device, including a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method of any one of the embodiments of the method.

[0253] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0254] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps 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 USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0255] The computer storage medium, computer program product, and electronic device provided in the above-mentioned embodiments of the present application are all used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the method provided above, and will not be repeated here.

[0256] It should be understood that in each embodiment of the present application, the execution order of each step should be determined by its function and internal logic. The size of the sequence number of each step does not mean the order of execution and does not limit the implementation process of the embodiment.

[0257] The various sections of this specification are described in a progressive manner. Similar portions between embodiments can be referenced to each other, and each embodiment focuses on the differences between the other embodiments. In particular, the embodiments of the apparatus, computer storage medium, computer program product, and electronic device are generally similar to the method embodiments, so their descriptions are simplified. For relevant details, refer to the descriptions of the method embodiments.

[0258] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0259] The above-described embodiments of the present application do not constitute a limitation on the scope of protection of the present application.

Claims

1. A color scale adjustment method, characterized in that: The method is applied to an electronic device, and the method comprises: Displaying a first window at a first moment; wherein, at the first moment, the first window is a focus window, and the color level of the electronic device at the first moment is a first color level; In response to a first operation input by a user, a second window is set as a focus window at a second moment; wherein, after the second moment, the color level of the electronic device is a second color level, the second color level is smaller than the first color level, and the second moment is later than the first moment.

2. The method according to claim 1, characterized in that The method further comprises: After the second window is set as the focus window, the color scale of the electronic device is set to the second color scale based on the focus window change.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: At a third moment, the color level of the electronic device is set to the first color level; the third moment is later than the second moment.

4. The method according to claim 3, characterized in that Before setting the color level of the electronic device to the first color level at the third moment, the method further includes: After the color level of the electronic device is the second color level and before the third moment, setting the color level of the electronic device to a third color level; wherein the third color level is smaller than the first color level and larger than the second color level; After the color level of the electronic device is set to the third color level and before the third moment, the color level of the electronic device is set to a fourth color level; wherein the fourth color level is smaller than the first color level and larger than the third color level.

5. The method according to claim 4, characterized in that The method further comprises: setting a first timer after the second moment; The step of setting the color scale of the electronic device to a third color scale comprises: After the timing time of the first timer reaches a preset time length, based on the fact that the current second color level of the electronic device is smaller than the first color level, the second color level of the electronic device is set to the third color level.

6. The method according to claim 4, characterized in that The method further comprises: After the second moment, setting the display power consumption saving technology DPST characteristic parameter to a first parameter, and setting a first timer; After the timing time of the first timer reaches a preset time length, the DPST characteristic parameter is set as the second parameter; wherein the DPST characteristic parameter has the characteristic of being set as the first parameter when the focus window changes; The step of setting the color scale of the electronic device to a third color scale comprises: Based on the DPST characteristic parameter being the second parameter and the current second color gradation of the electronic device being less than the first color gradation, setting the color gradation of the electronic device to the third color gradation; The step of setting the color level of the electronic device to the fourth color level comprises: Based on the DPST characteristic parameter being the second parameter and the current third color gradation of the electronic device being smaller than the first color gradation, the color gradation of the electronic device is set to the fourth color gradation.

7. The method according to claim 4 or 5, characterized in that: After setting the color scale of the electronic device to the third color scale, the method further includes: Set a second timer; The step of setting the color scale of the electronic device to the fourth color scale comprises: Based on the timing time of the second timer reaching a preset cycle interval time, no focus window change notification is recognized within the preset cycle interval time, and the current third color level of the electronic device is less than the first color level, the color level of the electronic device is set to a fourth color level; wherein the focus window change notification is used to notify the focus window change.

8. The method according to claim 5 or 6, characterized in that: Before setting the first timer, the method further includes: Based on the existence of the first timer that is timing after the second time, the first timer that is timing is closed.

9. The method according to claim 3, characterized in that: The method further comprises: In response to a second operation input by the user, at a fourth moment, the third window is set as the focus window; after the fourth moment, the color level of the electronic device is the second color level, and the fourth moment is after the third moment; After the fourth moment, the color level of the electronic device is set to a third color level; wherein the third color level is smaller than the first color level and larger than the second color level; After the color scale of the electronic device is set to the third color scale, in response to a third operation input by the user, the fourth window is set as the focus window at a fifth moment; after the fifth moment, the color scale of the electronic device is the second color scale.

10. The method according to claim 9, characterized in that The method further comprises: After the color level of the electronic device is set to the third color level, setting a second timer; After the fifth moment, generating a window change notification; Based on the timing time of the second timer being within the preset cycle interval time and the window change notification, the color level adjustment after the color level of the electronic device is set to the third color level is ended.

11. The method according to claim 1, characterized in that: The method further comprises: Based on an exit-sleep event or a power-on event, the color level of the electronic device is set to the second color level.

12. An electronic device, characterized in that: The electronic device comprises a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-11.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction. When the computer program or instruction is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Color gradation adjusting method and electronic equipment

    CN117275387A

  • Display brightness adjustment method and mobile terminal

    CN106502609A

  • Interface switching method, terminal and computer readable storage medium

    CN111158814A

  • Refresh rate switching method, electronic equipment and storage medium

    CN114697446A

  • Driving method and device of display panel and computer readable storage medium

    CN115691389A