Refresh rate switching method and electronic equipment

By calling the adaptive refresh rate switching function according to the power supply status of the display in electronic devices, the problem of splash screen or black screen during refresh rate switching is solved, and the unsensed refresh rate switching is achieved, which improves the user experience.

CN119400127AActive Publication Date: 2025-02-07HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411215711.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2025-02-07
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The prior art may easily cause the display screen to splash or black screen when switching the refresh rate of electronic devices, affecting the user experience.

Method used

By calling the refresh rate switching function in the electronic device that is suitable for the current state of the display, including setting the display configuration function and changing the display setting function, the refresh rate switching is performed according to the power supply status of the display to reduce the probability of splashing or black screen.

Benefits of technology

It realizes the possibility of display splashing or black screen reducing the probability of display screen splashing or black screen when switching refresh rate, improves user experience and ensures that refresh rate switching is unaware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119400127A_ABST
    Figure CN119400127A_ABST
Patent Text Reader

Abstract

The invention discloses a refresh rate switching method and electronic equipment, relates to the technical field of display screens, and is applied to the electronic equipment which comprises a display card and a display screen. The display screen corresponds to a plurality of first refresh rates, and the first refresh rates represent refresh rates supported by the display screen. The display card corresponds to a plurality of second refresh rates, and the second refresh rates represent the sending and displaying frequency of the display card. Comprising the steps that when the electronic equipment receives a refresh rate switching instruction, the number of first refresh rates is obtained; and when the number of the first refresh rates is greater than the number of the second refresh rates and the plurality of first refresh rates comprise a preset refresh rate, the electronic equipment calls a refresh rate switching function matched with a power supply state according to the power supply state of the display screen, and executes a refresh rate switching operation. By calling the refresh rate switching function adapted to the current state of the display screen, while refresh rate switching is realized, the probability of splash screen occurrence of the display screen is reduced, and refresh rate switching without perception of a user is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of display technology, and in particular to a refresh rate switching method and an electronic device. Background Art

[0002] The refresh rate burned into the graphics card of an electronic device can be understood as the physical refresh rate, and the physical refresh rate can refer to the display frequency given to the display. The actual refresh rate of the display of an electronic device can be understood as the virtual refresh rate. When the graphics card is set to a physical refresh rate, the display can support multiple virtual refresh rates corresponding to it.

[0003] In the prior art, a display screen of an electronic device may support multiple virtual refresh rates. When the refresh rate is switched, the display screen may flicker, affecting the user experience of switching the refresh rate. Summary of the invention

[0004] The embodiments of the present application provide a refresh rate switching method and an electronic device. When it is determined that a display screen has a dynamic refresh rate turned on, a refresh rate switching function adapted to the current state of the display screen is called. While implementing the refresh rate switching, the probability of screen flickering on the display screen is reduced, thereby implementing refresh rate switching without the user noticing.

[0005] In order to achieve the above-mentioned purpose, the embodiments of the present application adopt the following technical solutions.

[0006] In a first aspect, a refresh rate switching method is provided, which is applied to an electronic device, wherein the electronic device includes a graphics card and a display screen. The display screen corresponds to multiple first refresh rates, and the first refresh rate represents the refresh rate supported by the display screen. The graphics card corresponds to multiple second refresh rates, and the second refresh rate represents the display frequency of the graphics card. One second refresh rate corresponds to one or more first refresh rates.

[0007] The method includes:

[0008] When the electronic device receives the refresh rate switching instruction, it obtains the number of the first refresh rate;

[0009] When the number of first refresh rates is greater than the number of second refresh rates and the multiple first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power state according to the power state of the display screen and performs a refresh rate switching operation; the power state includes a direct current DC state or an alternating current AC state.

[0010] In the present application, when the electronic device receives a refresh rate switching operation and determines that the electronic device has turned on a dynamic refresh rate, it can select a refresh rate switching function that is adapted to the actual state of the display screen based on the actual state of the display screen to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, avoiding the problem of flickering screen on the display screen as much as possible, and achieving refresh rate switching without the user noticing.

[0011] In a possible implementation manner of the first aspect, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including:

[0012] If the display screen is in a direct current (DC) state, the electronic device calls a display configuration setting function to perform a refresh rate switching operation.

[0013] If the display screen is in an alternating current (AC) state, the electronic device calls a display setting change function to perform a refresh rate switching operation.

[0014] In the present application, when the electronic device receives a refresh rate switching operation and determines that the electronic device has turned on a dynamic refresh rate, it can select a refresh rate switching function that is adapted to the actual state of the display screen based on the actual state of the display screen to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, avoiding the problem of flickering screen on the display screen as much as possible, and achieving refresh rate switching without the user noticing.

[0015] In another possible implementation manner of the first aspect, a path mark is defined in the display configuration setting function, and the path mark is used to indicate that the electronic device is in a refresh rate configuration mode in which the refresh rate is configured in a non-dynamic range.

[0016] In this application, the parameter used to characterize the support of dynamic range configuration refresh rate is removed from the path tag. If this field is retained, it may be set to the mode of automatic dynamic adjustment of refresh rate, which may adjust the virtual refresh rate of the display screen to a certain range, causing display instability of the display screen.

[0017] In another possible implementation manner of the first aspect, a return path defining a refresh rate switching result in a display configuration function is set as a current path, wherein the path refers to a path between a display mode of a display screen and an output mode of a graphics card.

[0018] In the present application, defining the return path of the refresh rate switching result as the current path can avoid the problem of slow response caused by returning all paths, and can indirectly improve the efficiency of the refresh rate switching.

[0019] In another possible implementation manner of the first aspect, the display setting change function defines dynamically changing the display device attribute parameters to be continuously effective.

[0020] In this application, the display setting change function defines that the dynamic change of the display device attribute parameters is persistent. Not only will the display settings of the current screen take effect immediately, but these settings will also be saved in the registry of the operating system, so that they remain valid after the system is restarted. That is, before the next refresh rate switch is performed, the current refresh rate switch operation is permanently effective.

[0021] In another possible implementation manner of the first aspect, the method further includes:

[0022] If the number of the first refresh rates is less than or equal to the number of the second refresh rates, or the plurality of first refresh rates do not include a preset refresh rate, the electronic device calls a display setting change function to perform a refresh rate switching operation.

[0023] In the present application, the number of the first refresh rate is less than or equal to the number of the second refresh rate, or the first refresh rate does not include the preset refresh rate, which means that the electronic device has not turned on the dynamic refresh rate. In this case, there will be no screen flickering when switching the refresh rate. Commonly used functions (for example, changing the display settings function) can be used to perform refresh rate switching operations to improve the efficiency of refresh rate switching.

[0024] In another possible implementation manner of the first aspect, when the number of first refresh rates is greater than the number of second refresh rates and the plurality of first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including:

[0025] When the number of first refresh rates is greater than the number of second refresh rates and the plurality of first refresh rates includes a preset refresh rate, the electronic device obtains a target refresh rate indicated by the refresh rate switching instruction.

[0026] The electronic device obtains a target second refresh rate corresponding to a current first refresh rate of the display screen.

[0027] If the target refresh rate does not match the target second refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen and performs a refresh rate switching operation.

[0028] In the present application, when the electronic device receives a refresh rate switching operation and determines that the electronic device has turned on a dynamic refresh rate, it can preliminarily determine whether the physical refresh rate has changed. When the physical refresh rate has changed, based on the actual state of the display screen, a refresh rate switching function adapted to the actual state of the display screen is selected to perform the display screen refresh rate switching operation, thereby reducing the probability of display screen flashing caused by refresh rate switching to a certain extent, and trying to avoid the problem of black screen or flashing screen on the display screen, thereby achieving refresh rate switching without user perception.

[0029] In another possible implementation of the first aspect, the refresh rate switching instruction includes an instruction triggered by the electronic device in response to a user acting on a refresh rate switching shortcut key, and the target refresh rate indicated by the refresh rate switching instruction is a first refresh rate that is higher than the current first refresh rate of the display screen.

[0030] In the present application, the refresh rate switching instruction received by the electronic device may be an instruction triggered by the user acting on the refresh rate switching shortcut key. In this case, the user does not specify the target refresh rate after the switch. Then the target refresh rate may be any refresh rate higher than the current refresh rate. For example, the target refresh rate may be a refresh rate higher than the current refresh rate and closest to the current refresh rate. The electronic device may respond to refresh rate switching operations in a variety of scenarios.

[0031] In another possible implementation of the first aspect, the refresh rate switching instruction includes an instruction triggered by the electronic device in response to a switching operation performed by a user on a refresh rate option, and the target refresh rate indicated by the refresh rate switching instruction is the refresh rate corresponding to the refresh rate option selected by the user.

[0032] In the present application, the refresh rate switching instruction received by the electronic device may be an instruction triggered by a switching operation of the user acting on the refresh rate option. In this case, the user specifies the target refresh rate after the switch. Then the target refresh rate may be the refresh rate selected by the user. The electronic device may respond to the refresh rate switching operation in a variety of scenarios.

[0033] In another possible implementation manner of the first aspect, when the number of first refresh rates is greater than the number of second refresh rates and the plurality of first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including:

[0034] When the number of the first refresh rates is greater than the number of the second refresh rates and the plurality of first refresh rates includes a preset refresh rate, the electronic device acquires a target refresh rate indicated by the refresh rate switching instruction;

[0035] The electronic device obtains a target second refresh rate corresponding to the current first refresh rate of the display screen;

[0036] If the display screen turns on high dynamic range imaging HDR, and the target refresh rate does not match the target second refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen and performs a refresh rate switching operation.

[0037] In this application, when the display screen opens the Standard Dynamic Range (SDR), the display screen is in AC state, and the function of changing the display settings is called to switch the refresh rate without flickering. When the display screen is in DC state, the function of setting the display configuration is called to switch the refresh rate without flickering.

[0038] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation, when determining that the electronic device has turned on a dynamic refresh rate, the refresh rate of the display screen can be switched based on whether the electronic device is in HDR. When the physical refresh rate changes, based on the actual state of the display screen, a refresh rate switching function adapted to the actual state of the display screen is selected to perform the display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, avoiding the problem of a black screen or a flickering screen as much as possible, and achieving refresh rate switching without the user's perception.

[0039] In another possible implementation manner of the first aspect, after performing the refresh rate switching operation, the method further includes:

[0040] The electronic device displays a refresh rate prompt window; the refresh rate prompt window includes the refresh rate after switching.

[0041] In the present application, the electronic device can display the refresh rate after switching so that the user can perceive the refresh rate after switching, so that the user can determine whether to continue using the refresh rate or switch the refresh rate next time, thereby optimizing the user experience.

[0042] In another possible implementation manner of the first aspect, the display configuration function is set to SetDisplayConfig.

[0043] The path tag is defined in the display configuration setting function, and the parameter supporting the dynamic range configuration refresh rate is removed from the path tag, where the parameter supporting the dynamic range configuration refresh rate is DISPLAYCONFIG_PATH_BOOST_REFRESH_RATE.

[0044] The return path that defines the refresh rate switching result in the display configuration function is set as the current path, wherein the parameter used to indicate that the return path of the refresh rate switching result is the current path is QDC_ONLY_ACTIVE_PATHS.

[0045] In this application, the parameters used to characterize the support for dynamic range configuration of refresh rate are removed from the path tag. If this field is retained, it may be set to the mode of automatic dynamic adjustment of the refresh rate. Automatic dynamic adjustment of the refresh rate may adjust the virtual refresh rate of the display to a certain range, causing display instability of the display. The parameters that support dynamic range configuration of refresh rate are removed, and the refresh rate can be switched to a target refresh rate. Defining the return path of the refresh rate switching result as the current path can avoid the problem of slow response caused by returning all paths, which can indirectly improve the efficiency of refresh rate switching.

[0046] In another possible implementation of the first aspect, the display setting change function is ChangeDisplaySettings;

[0047] The function for changing the display settings defines a parameter for indicating that the dynamic change of the display device attribute parameter is continuously effective. The parameter for indicating that the dynamic change of the display device attribute parameter is continuously effective is CDS_UPDATEREGISTRY.

[0048] In this application, CDS_UPDATEREGISTRY is defined in the display setting change function. Not only will the display settings of the current screen take effect immediately, but these settings will also be saved in the operating system's registry, so that they remain valid after the system is restarted. That is, before the next refresh rate switch, the current refresh rate switch operation is permanently effective. CDS_UPDATEREGISTRY ensures dynamic adjustment and persistent storage of display settings.

[0049] In a second aspect, an electronic device is provided, which includes a display screen, a graphics card, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.

[0050] In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer program / instructions are executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0051] In a fourth aspect, a computer program product comprising instructions is provided, including a computer program / instructions, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0052] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute a method as described in any one of the methods in the first aspect.

[0053] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of a refresh rate switching method provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of a refresh rate setting interface provided in an embodiment of the present application;

[0058] Figure 5 A schematic diagram of a display interface after a refresh rate switch is provided in an embodiment of the present application;

[0059] Figure 6 A schematic diagram of another display interface after refresh rate switching provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of a display interface for a refresh rate switching process provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of a flow chart of another refresh rate switching method provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0063] Fig.10 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include such expressions as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.

[0065] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0066] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0067] The refresh rate burned into the graphics card of an electronic device can be called the active signal mode. Among them, the active signal mode refers to the resolution and refresh rate of the output signal of the graphics card of the electronic device. The active signal mode can also refer to the display frequency of the graphics card to the display screen, which can also be called the physical refresh rate. The actual set refresh rate of the display screen of the electronic device can be called the desktop mode. The desktop mode refers to the resolution and refresh rate displayed by the display screen. The desktop mode can also be called the virtual refresh rate. The virtual refresh rate supports a range of refresh rates, and the granularity of the virtual refresh rate can be 0.01Hz.

[0068] Generally, a graphics card can burn multiple refresh rates according to the display performance of the electronic device. For example, multiple refresh rates may include inherent refresh rates such as 60 Hz, 120 Hz, 144 Hz, and 165 Hz. Under a physical refresh rate of the graphics card, the display screen can support multiple virtual refresh rates corresponding to it. For example, when the physical refresh rate of the graphics card is 120Hz, the virtual refresh rates supported by the display screen include multiple refresh rates in the range of 100Hz-120Hz.

[0069] Exemplarily, the graphics card of the electronic device is burned with three physical refresh rates, for example, the three physical refresh rates include 60Hz, 120Hz, and 165Hz. The virtual refresh rate of the display screen may include 59Hz, 60Hz, 75Hz, 82Hz, 100Hz, 120Hz, 165Hz, etc. Among them, the virtual refresh rate may include the refresh rate of the refresh rate area corresponding to the physical refresh rate, and the virtual refresh rate may also include a pre-set refresh rate. For example, the pre-set virtual refresh rate may be 82Hz.

[0070] The number of virtual refresh rates corresponding to this display is greater than the physical refresh rate burned into the graphics card, and the virtual refresh rate of the display includes a pre-set refresh rate, which can determine whether the electronic device has enabled the dynamic refresh rate (DRR). In the scenario where the electronic device has enabled DRR, the electronic device supports direct connection to the discrete graphics card and high dynamic range imaging (HDR). Direct connection to the discrete graphics card refers to directly connecting the discrete graphics card to the processor, bypassing the motherboard, providing faster data transmission speeds and lower latency.

[0071] In the prior art, when the electronic device turns on DRR, when the electronic device switches the refresh rate, a black screen or a flashing screen may appear on the display screen. For example, specifically, when the refresh rate switching of the electronic device involves the switching of the physical refresh rate, for example, the refresh rate is switched from physical refresh rate 1 (or the refresh rate range corresponding to physical refresh rate 1) to physical refresh rate 2 (or the refresh rate range corresponding to physical refresh rate 2), a black screen may appear on the display screen; or, when the graphics card does not support senseless switching of the refresh rate, a black screen may also appear on the display screen when the refresh rate is switched. In addition, in the existing refresh rate switching method, when the electronic device is in the alternating current (AC) HDR state, or when the electronic device is in the direct current (DC) HDR state, a flashing screen state of the display screen may appear when the electronic device switches the refresh rate. The phenomenon of a black screen or a flashing screen will appear when the refresh rate is switched, which will affect the user experience of switching the refresh rate.

[0072] In the refresh rate switching method provided in the embodiment of the present application, after multiple simulation experiments and data analysis, it is found that Under the system, the traditional refresh rate switching method involves two functions related to refresh rate switching. Calling and passing in appropriate parameters in specific scenarios can achieve the refresh rate switching of the display without flickering. Among them, the two functions related to refresh rate switching are functions in the application programming interface (API), including a function to change display settings and a function to set display configuration. When the display screen of the electronic device is in the alternating current high dynamic range imaging (AC-HDR) state, calling the function to change display settings to switch the refresh rate will not cause the display screen to flicker; calling the function to set the display configuration will cause the display screen to flicker. When the display screen of the electronic device is in the direct current high dynamic range imaging (DC-HDR) state, calling the function to set the display configuration to switch the refresh rate will not cause the display screen to flicker; calling the function to change the display settings will cause the display screen to flicker.

[0073] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation, it can select a refresh rate switching function that is adapted to the actual state of the display screen based on the actual state of the display screen to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, and trying to avoid the problem of a black screen or a flickering screen on the display screen, thereby achieving a refresh rate switching that is imperceptible to the user.

[0074] The refresh rate switching method provided in the embodiment of the present application can be applied to electronic devices with a graphics card and a display screen. For example, the electronic device can be a tablet computer, a laptop computer, a personal computer (PC), a car computer, etc. The following embodiments do not specifically limit the specific form of the electronic device.

[0075] Figure 1 A schematic diagram of the hardware structure of an electronic device is shown.

[0076] like Figure 1 The electronic device 100 shown may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a display screen 194, a graphics card 195, etc.

[0077] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0079] 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.

[0080] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0081] In this embodiment, the processor can be used as an executor of the refresh rate switching method. The processor can obtain the physical refresh rate burned into the graphics card, the virtual refresh rate of the display screen, and the power supply state (AC state or DC state) of the display screen, and according to the actual power supply state of the display screen, call the refresh rate switching function adapted to the power supply state, execute the refresh rate switching operation, and try to reduce the probability of a black screen or a flashing screen when the refresh rate is switched.

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

[0083] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0084] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0085] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0086] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0087] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0088] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini LED, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0089] Graphics card 195 is responsible for processing graphics data and outputting it to the display screen (i.e., sending it for display). The frequency at which the graphics card sends the display screen is the physical refresh rate of the graphics card. The actual display refresh rate of display screen 194 is the virtual refresh rate. The physical refresh rate burned into the graphics card is a fixed value, and the virtual refresh rate can be a refresh rate within the dynamic range corresponding to the physical refresh rate. The virtual refresh rate can also include a set refresh rate. The granularity of the virtual refresh rate can be 0.01Hz.

[0090] In this embodiment, the display screen 194 is a display screen supporting HDR.

[0091] The refresh rate switching method provided in the embodiment of the present application is applicable to an electronic device with a dynamic refresh rate DRR enabled, wherein the graphics card driver version and the operating system version of the electronic device need to meet the requirements before the electronic device can enable DRR.

[0092] The specific setting of enabling DRR of the electronic device includes configuring the relevant options for enabling DRR in the system registry of the electronic device. For example, the default number of the graphics card in the configuration of the parameter Galileo_G in the system registry is updated to a preset number, and a field for enabling DRR is added in the configuration of the parameter Galileo_G. Exemplarily, the field for enabling DRR may be "DisplayFeatureControl2"=dword:0x00001008".

[0093] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0094] The internal memory 121 can be used to store computer executable program codes, which include 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. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0095] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, speakers, receivers, microphones, headphone interfaces, and application processors.

[0096] The key 190 may be a mechanical key of a keyboard or a solid-state key. In this embodiment, the electronic device may receive a refresh rate switching operation triggered by a user through a refresh rate switching shortcut key.

[0097] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.

[0098] Figure 2 Schematic diagram of the software structure of the electronic device 100 of an embodiment of the present invention. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software structure of the electronic device 100 includes an application layer and a user state.

[0099] The application layer may include a series of application packages. For example, the application package may include a system manager (for example, when the electronic device is a computer, the system manager may be a computer manager), game applications, office applications, conference applications, system applications, and the like.

[0100] The user state may include a refresh rate adjustment module. The refresh rate adjustment module may call a preset refresh rate switching function to perform a refresh rate switching operation. The preset refresh rate switching function includes a display setting change function and a display configuration setting function.

[0101] Exemplarily, the refresh rate switching method provided in the embodiment of the present application is illustrated by taking the electronic device as a computer and the application as a system manager as an example.

[0102] When the system manager receives the refresh rate switching operation, it sends a refresh rate switching request to the refresh rate adjustment module through the corresponding interface. After receiving the refresh rate switching request, the refresh rate adjustment module obtains the virtual refresh rate of the display screen and the physical refresh rate of the graphics card. If the number of virtual refresh rates is greater than the number of physical refresh rates, and the virtual refresh rate contains a preset refresh rate, the refresh rate adjustment module can determine that the electronic device has turned on DRR. When the electronic device turns on DRR, the refresh rate adjustment module calls the adapted refresh rate switching function to switch the refresh rate according to the power supply status of the display screen. Among them, if the refresh rate adjustment module determines that the display screen is in the DC state, the display configuration setting function is called to switch the refresh rate; if the refresh rate adjustment module determines that the display screen is in the AC state, the display setting change function is called to switch the refresh rate.

[0103] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation, it can select a refresh rate switching function that is adapted to the actual state of the display screen based on the actual state of the display screen to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, and trying to avoid the problem of a black screen or a flickering screen on the display screen, thereby achieving a refresh rate switching that is imperceptible to the user.

[0104] refer to Figure 3 , Figure 3 A flow chart of a refresh rate switching method is given, and the method is illustrated by taking an electronic device as an example. The method includes:

[0105] S301, the electronic device receives a refresh rate switching operation.

[0106] The refresh rate switching operation may be an operation triggered by the user based on a refresh rate switching shortcut; or, the refresh rate switching operation may be an operation triggered by the user in a refresh rate setting interface.

[0107] In one scenario, a user triggers a refresh rate switching operation based on a refresh rate shortcut, which may be an operation triggered by the user through a refresh rate switching shortcut key. For example, the refresh rate switching shortcut key may be Fn+R; or, the refresh rate switching shortcut key may also be another defined key combination. The refresh rate switching shortcut key / refresh rate switching shortcut may be customized, and this embodiment does not limit this.

[0108] In the scenario where the user switches the refresh rate based on the shortcut, the electronic device defaults to a target refresh rate that is one level higher than the current refresh rate. For example, the current refresh rate of the display screen of the electronic device is 60Hz. The higher refresh rate of 60Hz is 75Hz. When the electronic device receives a refresh rate switching operation triggered by the user based on the shortcut, the target refresh rate is determined to be a higher refresh rate of 75Hz than the current refresh rate of 60Hz.

[0109] In another scenario, the user triggers a refresh rate switching operation in the refresh rate setting interface, which may be a confirmation switching operation triggered after the user selects a target refresh rate in the refresh rate setting interface.

[0110] For example, Figure 4 A schematic diagram of a refresh rate setting interface is given. Figure 4 As shown, Figure 4 The given display interface includes content for describing the type of display screen (monitor), controls for setting display screen (monitor) properties, and a setting area for switching refresh rates (such as Figure 4 The screen refresh rate refers to the virtual refresh rate of the display. Figure 4 As shown in the figure, the virtual refresh rate of the display includes multiple, including 59 Hz, 60 Hz, 75 Hz, 82 Hz, 100 Hz, 120 Hz, and 165 Hz. Based on the refresh rate setting interface, the current refresh rate of the display is 60 Hz. The user ( Figure 4 The refresh rate to be switched is 100 Hz. In the scenario where the user switches the refresh rate based on the refresh rate setting interface, the target refresh rate is the refresh rate selected by the user in the refresh rate setting interface.

[0111] S302: The electronic device obtains a virtual refresh rate of a display screen.

[0112] In this embodiment, after the electronic device receives the refresh rate switching operation, the electronic device can determine whether the dynamic refresh rate DRR is turned on. When the dynamic refresh rate DRR is turned on, the electronic device calls the adaptive refresh rate switching function to perform the refresh rate switching operation.

[0113] The judgment condition for turning on DRR for an electronic device may include that the number of virtual refresh rates of the electronic device is greater than the number of physical refresh rates. The number of virtual refresh rates is greater than the number of physical refresh rates, which can determine to a certain extent that the actual refresh rate (virtual refresh rate) of the display screen of the electronic device is not limited to the physical refresh rate burned in the graphics card, that is, the electronic device can dynamically adjust the refresh rate within the refresh rate range corresponding to the burned refresh rate, and the electronic device may have turned on the dynamic refresh rate.

[0114] Based on this judgment condition, the electronic device can obtain the virtual refresh rate of the display screen. Exemplarily, the electronic device can call the obtain virtual refresh rate function to obtain the virtual refresh rate of the current display screen. For example, the virtual refresh rate function can be EnumDisplaySettings. The electronic device calls EnumDisplaySettings to obtain the virtual refresh rate of the current display screen and the number of virtual refresh rates.

[0115] It is understandable that the virtual refresh rate can be a custom set value, or the virtual refresh rate can also be calculated based on the physical refresh rate, or the virtual refresh rate can also be determined based on the refresh rate range corresponding to the physical refresh rate. The setting of the virtual refresh rate is not limited in the embodiments of the present application.

[0116] S303, the electronic device obtains the physical refresh rate of the graphics card.

[0117] In this embodiment, the electronic device can obtain the physical refresh rate of the graphics card by using a detection tool, or can also obtain the physical refresh rate of the graphics card by obtaining the factory information of the graphics card.

[0118] S304, determine whether the number of virtual refresh rates is greater than the number of physical refresh rates, if so, execute S305; otherwise, execute S308.

[0119] The number of virtual refresh rates is greater than the number of physical refresh rates. To a certain extent, it can be determined that the actual refresh rate (virtual refresh rate) of the display screen of the electronic device is not limited to the physical refresh rate burned in the graphics card. That is, the electronic device can dynamically adjust the refresh rate within the refresh rate range corresponding to the burned refresh rate, and the electronic device may have enabled the dynamic refresh rate.

[0120] In some other scenarios, for example, the electronic device is connected to multiple display screens, for example, two display screens are connected. The virtual refresh rate of the display screen obtained by the electronic device includes the union of the virtual refresh rates of the two display screens, and the number of virtual refresh rates may be greater than the number of virtual refresh rates of one display screen. For example, the graphics card of the electronic device is burned with three physical refresh rates, namely 60 Hz, 120 Hz, and 165 Hz. The virtual refresh rates of display screen 1 are 60 Hz, 120 Hz, and 165 Hz, and the virtual refresh rates of display screen 2 are 59 Hz, 120 Hz, and 165 Hz. The virtual refresh rates of the display screens obtained by the electronic device include 59 Hz, 60 Hz, 120 Hz, and 165 Hz. The number of virtual refresh rates of the display screen is greater than the number of physical refresh rates of the graphics card.

[0121] In this case, the electronic device has not turned on DRR, and the number of virtual refresh rates is greater than the number of physical refresh rates, which may easily lead to the misjudgment that the electronic device has turned on DRR. Therefore, based on the fact that the number of virtual refresh rates is greater than the number of physical refresh rates, the electronic device can make further judgments to determine whether the electronic device has turned on DRR.

[0122] If the number of virtual refresh rates is not greater than the physical refresh rate, for example, the number of virtual refresh rates is equal to the physical refresh rate, the display screen only supports the display of the refresh rate corresponding to the physical refresh rate, and the electronic device does not turn on DRR, in this case, the electronic device can directly execute S308 and call the display setting change function to perform the refresh rate switching operation.

[0123] S305, determining whether the virtual refresh rate includes the preset refresh rate, if so, executing S306; otherwise, executing S308.

[0124] In this embodiment, the preset refresh rate is a specified virtual refresh rate. The preset refresh rate can be set based on the usage scenario of the electronic device, and can meet the refresh rate requirements of users in some specific scenarios. Exemplarily, the preset refresh rate can include 75 Hz, 82 Hz, 100 Hz, etc.

[0125] If the virtual refresh rate of the display screen includes a preset refresh rate, it can be determined that the electronic device turns on DRR and can dynamically switch between multiple different virtual refresh rates. In this case, the electronic device can call an adapted refresh rate switching function to switch the refresh rate according to the actual power supply status of the display screen.

[0126] If the virtual refresh rate of the display screen does not include the preset refresh rate, the display screen only supports the display of the refresh rate corresponding to the physical refresh rate, and the electronic device does not turn on DRR, in this case, the electronic device can directly execute S308 and call the display setting change function to perform the refresh rate switching operation.

[0127] S306, the electronic device determines whether the power supply state of the display screen is a DC state, if so, execute S307; otherwise, execute S308.

[0128] In this embodiment, the electronic device can obtain the power supply state of the display screen through the power supply record of the display screen, whether it is directly powered by the battery (not plugged in, that is, DC state), or the charging state (that is, AC state). Alternatively, the electronic device can also obtain the power supply state bit of the display screen through a designated interface to determine whether the power supply state of the display screen is the DC state or the AC state.

[0129] Since the display screen flickers when the electronic device is in the DC-HDR state, the display configuration setting function is called to switch the refresh rate. When the electronic device determines that the power supply state of the display screen is the DC state, S307 is executed to call the display configuration setting function to switch the refresh rate.

[0130] In terms of whether the display screen is in an alternating current (AC) state or a direct current (DC) state, the display screen is either in a DC state or in an AC state. Therefore, when the electronic device determines that the display screen is not in a DC state, step S308 of placing the display screen in an AC state can be executed. Since when the electronic device is in an alternating current high dynamic range imaging (AC-HDR) state, calling the change display setting function to switch the refresh rate will not cause the display screen to flicker; calling the set display configuration function will cause the display screen to flicker.

[0131] S307, the electronic device calls a display configuration setting function to perform a refresh rate switching operation.

[0132] Exemplarily, the display configuration setting function may be a SetDisplayConfig function, or a function named with other names that can implement the following functions.

[0133] The display configuration function is set to define a path tag, and the path tag removes the parameter used to characterize the support for dynamic range configuration refresh rate. Exemplarily, the parameter supporting the dynamic range configuration refresh rate may be DISPLAYCONFIG_PATH_BOOST_REFRESH_RATE, and the path tag may be represented as "paths[0].flags&=~DISPLAYCONFIG_PATH_BOOST_REFRESH_RATE". If this field is retained, it may be set to a mode of automatic dynamic adjustment of the refresh rate, which may adjust the virtual refresh rate of the display screen to a certain range, causing display instability of the display screen. For example, when the above field is removed, the electronic device can switch the virtual refresh rate of the display screen to 70Hz. If the above field is not removed, the electronic device will adjust the virtual refresh rate of the display screen to 70Hz or 140Hz, or the electronic device will adjust the virtual refresh rate of the display screen to any refresh rate of 70Hz-140Hz, resulting in the final virtual refresh rate of the display screen being inconsistent with the target refresh rate that the user wants to switch to.

[0134] In some embodiments, the electronic device may display a refresh rate switching prompt message on the display interface after completing the refresh rate switching operation. For example, the electronic device may display the refresh rate after switching in the form of a floating window. For example, Figure 5 A schematic diagram of the display interface after the refresh rate is switched is given. Figure 5 As shown, in the display interface of the electronic device, the refresh rate after switching is displayed in a floating window as 70Hz. If the above field is not removed in the path mark, the electronic device will adjust the virtual refresh rate of the display screen to 70Hz or 140Hz. Then, after the electronic device completes the refresh rate switching operation, the refresh rate switching information displayed on the display interface can refer to Figure 6 shown. Figure 6 Another schematic diagram of the display interface after the refresh rate is switched is given. Figure 6 As shown, in the display interface of the electronic device, the refresh rate after switching is displayed in a floating window to 70Hz or 140Hz in the mode of automatically and dynamically adjusting the refresh rate.

[0135] In some embodiments, the display configuration function is set to define a target refresh rate (virtual refresh rate) and a maximum physical refresh rate of the current display screen to achieve dynamic switching adjustment of the refresh rate of the display screen.

[0136] In some embodiments, the display configuration setting function further defines a return path for a refresh rate switching result, a virtual refresh rate that can be supported by the display screen, and a parameter field for setting a refresh rate range that can be supported by the display screen.

[0137] The above path refers to the path between the display mode of the display screen and the output mode of the graphics card. The display mode of the display screen can be understood as the display mode that the display screen can support. The mode is used to define some display attributes, where the display attributes include length, width, color format and bit depth, etc. The output mode of the graphics card defines some output attributes, where the output attributes include length, width, color format, physical refresh rate, bit depth, buffer length, etc.

[0138] Defining the return path of the refresh rate switching result as the current path can avoid the problem of slow response caused by returning all paths, and can indirectly improve the efficiency of refresh rate switching.

[0139] In some embodiments, the display configuration setting function further defines a structure for display screen refresh rate switching, allocates memory for the structure, and fills relevant fields of the structure with data.

[0140] In some embodiments, setting the display configuration function also defines the fine granularity of the virtual refresh rate and the fine granularity of the physical refresh rate of the display screen.

[0141] In some embodiments, the display configuration setting function further defines a field for returning a failure log if the refresh rate switching fails. When the refresh rate switching fails, the electronic device can obtain and analyze the cause of the refresh rate switching failure based on the failure log, which is conducive to improving the feasibility and effectiveness of the refresh rate switching operation.

[0142] S308: The electronic device calls a display setting change function to perform a refresh rate switching operation.

[0143] Exemplarily, the display setting change function may be a ChangeDisplaySetting function, or a ChangeDisplaySettings(Ex) function, or a function named with other names that can implement the following functions.

[0144] When the electronic device determines that the display screen is in AC state, and when the electronic device determines that DRR is not turned on (the virtual refresh rate data is not greater than the physical refresh rate, or the virtual refresh rate does not include the preset refresh rate), the electronic device can call the display setting change function to perform the refresh rate switching operation.

[0145] The display setting function is changed to a refresh rate switching function commonly used by electronic devices.

[0146] It is a display refresh rate suitable for the display screen in this embodiment when it is in AC state and in other situations.

[0147] The display setting change function in the embodiment of the present application defines a parameter for indicating that the dynamic change of the display device attribute parameter is persistent. For example, the parameter may be CDS_UPDATEREGISTRY. The definition of the parameter in the display setting change function may be expressed as:

[0148] LONG ret=ChangeDisplaySettingsEx(NULL,&dm,NULL,CDS_UPDATEREGISTRY,NULL).

[0149] Among them, the parameter field used to characterize the dynamic change of display device attribute parameters as persistent is "CDS_UPDATEREGISTRY". CDS_UPDATEREGISTRY is used to indicate that the ChangeDisplaySettingsEx function should dynamically change the graphics mode of the current screen and update the changed graphics mode to the registry of the electronic device. This means that when the CDS_UPDATEREGISTRY flag is used, not only will the display settings of the current screen take effect immediately, but these settings will also be saved in the registry of the operating system, so that they remain valid after the system is restarted. In other words, the current refresh rate switching operation is permanently effective until the next refresh rate switching. CDS_UPDATEREGISTRY ensures dynamic adjustment and persistent storage of display settings.

[0150] If the display setting change function does not define this parameter field, the refresh rate may be reset after the electronic device is restarted (the refresh rate is restored to the refresh rate before switching). In addition, if this parameter field is not defined, the refresh rate switching operation is considered a temporary operation, and a jitter reminder problem may occur when the refresh rate is switched.

[0151] Furthermore, in this embodiment, a field for obtaining a target refresh rate is defined in the display setting change function.

[0152] Combined with the usage scenario, Figure 7 A schematic diagram of a display interface of a refresh rate switching process is given.

[0153] refer to Figure 7 (a), the electronic device can display the current refresh rate on the current interface when receiving the user's operation to display the current refresh rate. For example, the current refresh rate is 60Hz. Alternatively, the electronic device can also display the current refresh rate on the display interface when the device is turned on or periodically monitors the device refresh rate.

[0154] Users can switch the refresh rate through the refresh rate setting interface, such as Figure 7In (b), the user selects 100 Hz in the refresh rate drop-down option. After the user clicks the OK button, the electronic device responds to the refresh rate switching operation triggered by the user and obtains the target refresh rate (100 Hz). At the same time, the above S303-S308 are executed to switch the refresh rate. Figure 7 (c), the electronic device switches the refresh rate of the display screen to 100 Hz and displays the switched refresh rate in the current display interface.

[0155] In some embodiments, the electronic device can automatically switch the refresh rate according to the actual scenario. When switching the refresh rate, the above refresh rate switching method can be used to call an adaptive function to switch.

[0156] For example, when the electronic device detects that the working scene is switched to the gaming scene, a refresh rate switching instruction is triggered to automatically switch the refresh rate and increase the refresh rate of the display screen. When the electronic device detects that the gaming scene is switched to the working scene, a refresh rate switching instruction is triggered to automatically switch the refresh rate and reduce the refresh rate of the display screen. When the electronic device detects that the working scene is switched to the movie watching scene, a refresh rate switching instruction is triggered to automatically switch the refresh rate and increase the refresh rate of the display screen. And so on. The refresh rate switching method provided in the embodiments of the present application can be applied to refresh rate switching scenarios triggered by users and scenarios where electronic devices automatically switch refresh rates.

[0157] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation and determines that the electronic device has turned on a dynamic refresh rate, it can select a refresh rate switching function that is adapted to the actual state of the display screen based on the actual state of the display screen to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flashing screen caused by the refresh rate switching, and trying to avoid the problem of a black screen or a flashing screen on the display screen, thereby achieving refresh rate switching that is imperceptible to the user.

[0158] In some feasible embodiments, another refresh rate switching method is provided. Figure 3 In the provided embodiment, after the electronic device obtains the virtual refresh rate, it can directly determine whether the virtual refresh rate includes the preset refresh rate (that is, execute S305 and subsequent steps). Since the preset refresh rate is a pre-set virtual refresh rate, if the preset refresh rate is included, it can be determined that the display screen supports dynamic adjustment of the refresh rate, that is, the display screen has turned on DRR. The electronic device may not execute S304, which can reduce the judgment time of the electronic device and improve the efficiency of refresh rate switching.

[0159] In some feasible embodiments, another refresh rate switching method is provided, referring to Figure 8 , Figure 8A flow chart of another refresh rate switching method is given, including:

[0160] S401: The electronic device receives a refresh rate switching operation.

[0161] Please refer to the embodiment provided in S301 above, and this embodiment will not be described in detail.

[0162] S402: The electronic device obtains a virtual refresh rate of a display screen.

[0163] Please refer to the embodiment provided in S302 above, and this embodiment will not be described in detail.

[0164] S403, the electronic device obtains the physical refresh rate of the graphics card.

[0165] Please refer to the embodiment provided in the above S303, which will not be described in detail in this embodiment.

[0166] S404, if the number of virtual refresh rates is greater than the number of physical refresh rates, execute S405; otherwise, execute S410.

[0167] Please refer to the embodiment provided in the above S304, and this embodiment will not be described in detail.

[0168] S405, whether the virtual refresh rate includes the preset refresh rate, if so, execute S406; otherwise, execute S410.

[0169] Please refer to the embodiment provided in the above S305, which will not be described in detail in this embodiment.

[0170] S406: The electronic device obtains a target refresh rate indicated by the refresh rate switching operation.

[0171] In this embodiment, when the user switches the refresh rate based on the shortcut, the default target refresh rate of the electronic device is a refresh rate higher than the current refresh rate. If the refresh rates are sorted, the default target refresh rate is a refresh rate higher than and closest to the current refresh rate. When the user switches the refresh rate based on the refresh rate setting interface, the target refresh rate is the refresh rate selected by the user in the refresh rate setting interface.

[0172] S407, if the physical refresh rate indicated by the target refresh rate changes, execute S408; otherwise, execute S410.

[0173] The electronic device can determine whether the physical refresh rate corresponding to the target refresh rate and the current refresh rate of the display screen has changed. If it has changed, that is, the physical refresh rate has been switched. In this case, the electronic device calls the adapted refresh rate switching function based on the power supply status of the display screen to switch the refresh rate. If the physical refresh rate has not been switched, the electronic device can directly call the change display setting function to perform the refresh rate switching operation.

[0174] This is because the display screen may go black when the physical refresh rate is switched. Therefore, calling the adapted refresh rate switching function to switch the refresh rate based on the actual power supply status of the display screen can effectively reduce the probability of a black screen. If the physical refresh rate is not switched, the display screen will not go black, and the electronic device can use a common function (that is, a display setting change function) to switch the refresh rate.

[0175] S408, the electronic device determines whether the power supply state of the display screen is a DC state, if so, executes S409; otherwise, executes S410.

[0176] If the display screen is in the DC state, then S409 is executed. If the display screen is in the AC state, then S410 is executed.

[0177] Please refer to the embodiment provided in the above S306, which will not be described in detail in this embodiment.

[0178] S409, the electronic device calls a display configuration setting function to perform a refresh rate switching operation.

[0179] Please refer to the embodiment provided in S307 above, and this embodiment will not be described in detail.

[0180] S410: The electronic device calls a display setting change function to perform a refresh rate switching operation.

[0181] Please refer to the embodiment provided in S308 above, and this embodiment will not be described in detail.

[0182] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation and determines that the electronic device has turned on a dynamic refresh rate, it can preliminarily determine whether the physical refresh rate has changed. When the physical refresh rate has changed, based on the actual state of the display screen, a refresh rate switching function adapted to the actual state of the display screen is selected to perform a display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flashing screen caused by the refresh rate switching, and trying to avoid the problem of a black screen or a flashing screen on the display screen, thereby achieving refresh rate switching without the user's perception.

[0183] In some feasible embodiments, another refresh rate switching method is provided. Before the above step S406, it can also be determined whether the electronic device has HDR turned on. If so, execute S406.

[0184] The electronic device can determine whether the display screen has HDR turned on by obtaining parameters used to characterize whether HDR is turned on. When the display screen is in AC state, the display screen is in AC state, and the function of changing the display settings is called to switch the refresh rate without flickering. When the display screen is in DC state, the function of setting the display configuration is called to switch the refresh rate without flickering.

[0185] In some other scenarios, when the display opens the Standard Dynamic Range (SDR), the display is in AC state, and the function to change the display settings is called to switch the refresh rate without flickering. When the display is in DC state, the function to set the display configuration is called to switch the refresh rate without flickering.

[0186] In an embodiment of the present application, when the electronic device receives a refresh rate switching operation, when determining that the electronic device has turned on a dynamic refresh rate, the refresh rate of the display screen can be switched based on whether the electronic device is in HDR. When the physical refresh rate changes, based on the actual state of the display screen, a refresh rate switching function adapted to the actual state of the display screen is selected to perform the display screen refresh rate switching operation, thereby reducing the probability of a black screen or a flickering screen caused by the refresh rate switching to a certain extent, avoiding the problem of a black screen or a flickering screen as much as possible, and achieving refresh rate switching without the user's perception.

[0187] Fig. 9 A possible structural diagram of the electronic device involved in the above embodiments is shown. Fig. 9 The electronic device 900 shown includes a processing module 901 , a display module 902 , and a storage module 903 .

[0188] Among them, the processing module 901 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor may include an application processor and a baseband processor. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0189] For example, the processing module 901 may be as follows Figure 1 The processor 110 shown; the display module 902 can be as follows Figure 1 The display screen 194 shown; the storage module 903 can be as follows Figure 1 The internal memory 121 shown. The electronic device provided in the embodiment of the present application can be Figure 1 An electronic device 100 is shown.

[0190] The present application also provides a chip system (eg, a system on a chip (SoC)), such as Fig.10 As shown, the chip system includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 can be interconnected via lines. For example, the interface circuit 1002 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1002 can be used to send signals to other devices (such as a processor 1001 or a display screen of an electronic device). Exemplarily, the interface circuit 1002 can read instructions stored in the memory and send the instructions to the processor 1001. When the instructions are executed by the processor 1001, the electronic device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0191] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the electronic device 100 in the above-mentioned method embodiment.

[0192] The embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the electronic device 100 in the above method embodiment. For example, the computer may be the above electronic device 100.

[0193] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0194] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0195] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0196] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0197] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0198] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A refresh rate switching method, characterized in that: Applied to an electronic device, the electronic device comprises a graphics card and a display screen, the display screen corresponds to a plurality of first refresh rates, the first refresh rate representing a refresh rate supported by the display screen; The graphics card corresponds to a plurality of second refresh rates, and the second refresh rates represent the display frequency of the graphics card; One of the second refresh rates corresponds to one or more of the first refresh rates; The method comprises: When the electronic device receives the refresh rate switching instruction, acquiring the number of the first refresh rate; When the number of the first refresh rates is greater than the number of the second refresh rates and the multiple first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power state according to the power state of the display screen and performs a refresh rate switching operation; the power state includes a direct current DC state or an alternating current AC state.

2. The method according to claim 1, characterized in that: The electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including: If the display screen is in the direct current DC state, the electronic device calls a display configuration setting function to perform the refresh rate switching operation; If the display screen is in the alternating current (AC) state, the electronic device calls a display setting change function to perform the refresh rate switching operation.

3. The method according to claim 2, characterized in that A path tag is defined in the display configuration setting function, and the path tag is used to indicate that the electronic device is in a refresh rate configuration mode in a non-dynamic range configuration refresh rate.

4. The method according to claim 2 or 3, characterized in that: The return path of the refresh rate switching result defined in the display configuration setting function is the current path, wherein the path refers to the path between the display mode of the display screen and the output mode of the graphics card.

5. The method according to claim 2, characterized in that: The display setting change function defines that the dynamic change of the display device attribute parameters is continuously effective.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the number of the first refresh rates is less than or equal to the number of the second refresh rates, or the plurality of first refresh rates do not include the preset refresh rate, the electronic device calls a display setting change function to perform the refresh rate switching operation.

7. The method according to any one of claims 1 to 6, characterized in that When the number of the first refresh rates is greater than the number of the second refresh rates, and the plurality of first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including: When the number of the first refresh rates is greater than the number of the second refresh rates and the plurality of first refresh rates include a preset refresh rate, the electronic device acquires a target refresh rate indicated by the refresh rate switching instruction; The electronic device obtains a target second refresh rate corresponding to a current first refresh rate of the display screen; If the target refresh rate does not match the target second refresh rate, the electronic device calls a refresh rate switching function adapted to the power state according to the power state of the display screen to perform the refresh rate switching operation.

8. The method according to claim 7, characterized in that The refresh rate switching instruction includes an instruction triggered by the electronic device in response to a user's action on a refresh rate switching shortcut key, and the target refresh rate indicated by the refresh rate switching instruction is a first refresh rate that is higher than a current first refresh rate of the display screen.

9. The method according to claim 7, characterized in that: The refresh rate switching instruction includes an instruction triggered by the electronic device in response to a switching operation performed by a user on a refresh rate option, and the target refresh rate indicated by the refresh rate switching instruction is the refresh rate corresponding to the refresh rate option selected by the user.

10. The method according to any one of claims 1 to 9, characterized in that When the number of the first refresh rates is greater than the number of the second refresh rates, and the plurality of first refresh rates include a preset refresh rate, the electronic device calls a refresh rate switching function adapted to the power supply state according to the power supply state of the display screen to perform a refresh rate switching operation, including: When the number of the first refresh rates is greater than the number of the second refresh rates and the plurality of first refresh rates include a preset refresh rate, the electronic device acquires a target refresh rate indicated by the refresh rate switching instruction; The electronic device obtains a target second refresh rate corresponding to a current first refresh rate of the display screen; If the display screen turns on high dynamic range imaging HDR, and the target refresh rate does not match the target second refresh rate, the electronic device calls a refresh rate switching function adapted to the power state according to the power state of the display screen to perform the refresh rate switching operation.

11. The method according to any one of claims 1 to 10, characterized in that After performing the refresh rate switching operation, the method further includes: The electronic device displays a refresh rate prompt window; the refresh rate prompt window includes the switched refresh rate.

12. The method according to any one of claims 2 to 5, characterized in that: The display configuration setting function is SetDisplayConfig; A path tag is defined in the setting display configuration function, and a parameter supporting a dynamic range configuration refresh rate is removed from the path tag, wherein the parameter supporting a dynamic range configuration refresh rate is DI SPLAYCONF IG_PATH_BOOST_REFRESH_RATE; The setting display configuration function defines the return path of the refresh rate switching result as the current path, wherein the parameter used to characterize that the return path of the refresh rate switching result is the current path is QDC_ONLY_ACTIVE_PATHS.

13. The method according to any one of claims 2 to 5, characterized in that: The display setting change function is ChangeDisplaySettings; The function for changing the display setting defines a parameter for indicating that the dynamic change of the display device attribute parameter is continuously effective. The parameter for indicating that the dynamic change of the display device attribute parameter is continuously effective is CDS_UPDATEREGISTRY.

14. An electronic device comprising a display screen, a graphics card, a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 13.

15. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Novel display screen driving method

    CN116110317A

  • Refresh rate adjustment method and device, application program, electronic equipment and storage medium

    CN116778877A

  • Refresh rate control method and related device

    CN118072674A

  • Display device, terminal device and display processing method

    WO2024139366A1