Screen Refresh Rate Update Method, Device, Equipment, and Storage Medium
By calculating and configuring LCD display clocks based on screen parameters, the method optimizes refresh rates across different screen models, addressing resource inefficiencies and enhancing display quality and user experience.
Patent Information
- Application Number
- CN202211700144.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Traditional screen refresh rate update methods often have flash points when they are large display screens, and the refresh rate is fixed when they are small and medium display screens, resulting in unreasonable utilization of display resources and poor user experience.
By obtaining the screen parameters of the display screen, calculating the theoretical screen refresh rate, determining the total LCD display clock, and configuring the total LCD display clock in the LCD driver to achieve dynamic adjustment of the screen refresh rate.
Rationally utilize display resources, improve the display effect and user experience, and is suitable for screen refresh rate updates of different models of display screens.
Smart Images

Figure CN115862529B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technologies, and in particular, to a method, apparatus, device, and storage medium for updating the screen refresh rate. Background Art
[0002] In current LED (light-emitting diode) displays, the dot pitch is getting smaller and the resolution is getting larger, and people have higher and higher requirements for the display effect.
[0003] In traditional methods for updating the screen refresh rate, flash points often occur when using large displays, and the refresh rate is fixed when using medium and small displays, which cannot reasonably utilize display resources, resulting in poor display effects and poor user experience. Summary of the Invention
[0004] The present invention provides a method, apparatus, device, and storage medium for updating the screen refresh rate to reasonably utilize display resources, improve the display effect, and enhance the user experience.
[0005] According to one aspect of the present invention, there is provided a method for updating the screen refresh rate, including:
[0006] Obtaining screen parameters of a display screen;
[0007] Determining a theoretical screen refresh rate according to the screen parameters of the display screen;
[0008] Determining the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total row time, and the total field time of the display screen;
[0009] Configuring the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen;
[0010] Determining the actual refresh rate of the screen according to the total row time of the display screen, the total field time of the display screen, and the total LCD display clock configured in the LCD driver.
[0011] According to another aspect of the present invention, there is provided a device for updating the screen refresh rate, including:
[0012] A screen parameter acquisition module for acquiring screen parameters of a display screen;
[0013] A refresh rate determination module for determining a theoretical screen refresh rate according to the screen parameters of the display screen;
[0014] A total clock determination module for determining the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total row time, and the total field time of the display screen;
[0015] A total clock configuration module, configured to configure the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen for LCD display.
[0016] An actual refresh rate determination module, which determines the actual refresh rate of the screen according to the total row time of the display screen, the total field time of the display screen in the LCD driver, and the total LCD display clock configured in the LCD driver.
[0017] According to another aspect of the present invention, there is provided an electronic device, which includes:
[0018] At least one processor; and
[0019] A memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the screen refresh rate update method of any embodiment of the present invention.
[0021] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the screen refresh rate update method of any embodiment of the present invention when executed.
[0022] The technical solution of the embodiment of the present invention includes: obtaining the screen parameters of the display screen; determining the theoretical screen refresh rate according to the screen parameters of the display screen; determining the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total row time and the total field time of the display screen; configuring the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen; and determining the actual refresh rate of the screen according to the total row time of the display screen, the total field time of the display screen in the LCD driver, and the total LCD display clock configured in the LCD driver. Through the above technical solution, by calculating the theoretical screen refresh rate, the total LCD display clock of the display screen is inversely deduced; and according to the total LCD display clock of the display screen, the relevant parameters in the LCD driver are reconfigured, so as to realize the update of the screen refresh rate of different models of display screens, reasonably utilize the display resources, improve the display effect, and improve the user experience.
[0023] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0025] Figure 1A is the display control block diagram of the traditional screen refresh rate update method;
[0026] Figure 1B is the flowchart of a screen refresh rate update method provided in Embodiment 1 of the present invention;
[0027] Figure 2 is the flowchart of a screen refresh rate update method provided in Embodiment 2 of the present invention;
[0028] Figure 3 is the structural schematic diagram of a screen refresh rate update device provided in Embodiment 3 of the present invention;
[0029] Figure 4 is the structural schematic diagram of an electronic device for implementing the screen refresh rate update method of the embodiments of the present invention. Detailed implementation manners
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0031] It should be noted that the terms "original", "theoretical", and "actual" in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device including a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0032] In addition, it should be noted that in the technical solution of the present invention, the collection, storage, use, processing, transmission, provision, and disclosure of the screen parameters of the display screen comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0033] For the sake of easy understanding, first, a brief introduction to the traditional method for updating the screen refresh rate is given. Refer to Figure 1A , the figure includes an LED (light-emitting diode) control card and an LED display screen; the LED control card includes a CPU, a FLASH (Flash EEPROM Memory), an SDRAM (synchronous dynamic random-access memory), and an FPGA (Field Programmable Gate Array).
[0034] Among them, the CPU includes an LCD (Liquid Crystal Display) interface and a configuration interface. The FPGA includes a cache control module and a display data output module. The LCD interface in the CPU is connected to the cache control module in the FPGA, the configuration interface in the CPU is connected to the FPGA, and the display data output module in the FPGA is connected to the LED display screen.
[0035] Among them, the LED control card is used to control the picture required for the LED screen display and adjust various adjustable parameters of the display screen. The FLASH is used to quickly read and store the data in the FPGA cache control module to prevent data loss due to power failure. The data in the FPGA cache control module is transmitted from the LCD interface in the CPU. The SDRAM is a dynamic random-access memory with a synchronous interface, and synchronization with the system bus can be achieved through this synchronous interface.
[0036] Embodiment 1
[0037] Figure 1B As shown in the flowchart of a method for updating the screen refresh rate provided in Embodiment 1 of the present invention, this embodiment is applicable to the situation of updating the screen refresh rates of various different models of display screens. This method can be executed by a screen refresh rate update device, which can be implemented in the form of hardware and / or software and can be configured in an electronic device, which can be a notebook computer, a desktop computer, a flat-panel TV, a projector, or the like. As Figure 1B shown, the method includes:
[0038] S101. Obtain the screen parameters of the display screen.
[0039] Among them, the screen parameters are used to describe the attribute information of the display screen, which may include the size of the display screen, the screen resolution of the display screen, the color gamut of the display screen, and the contrast of the display screen. Among them, the size of the display screen may include the width of the display screen and the height of the display screen. The screen resolution of the display screen may refer to the number of pixels displayed by the display screen. When the display screen size is the same, the higher the screen resolution of the display screen, the clearer the picture displayed by the display screen. The color gamut of the display screen may refer to the color range area that the display screen can display, which is used to measure the number of colors displayed by the display screen. The contrast of the display screen is used to detect the visual effect displayed by the display screen. It can be understood that the greater the contrast of the display screen, the clearer and more eye-catching the image displayed by the display screen, and the brighter and more colorful the colors displayed by the display screen.
[0040] Exemplarily, the screen parameters of the display screen are obtained from a screen specification book of the display screen, wherein the screen specification book is used to record the screen parameters of the display screen.
[0041] Exemplarily, according to the model of the display screen, screen parameters corresponding to the model of the display screen are obtained from the Internet.
[0042] Exemplarily, the screen parameters of the display screen corresponding to the electronic device are obtained from the display settings of the electronic device where the display screen is located.
[0043] Exemplarily, the screen parameters of the display screen are read by using a CPU of the electronic device where the display screen is located, thereby obtaining the screen parameters of the display screen.
[0044] In addition, the screen parameters of different display models can be manually configured.
[0045] S102: Determine a theoretical screen refresh rate according to screen parameters of the display screen.
[0046] Among them, the theoretical screen refresh rate may refer to the screen refresh rate calculated by a specific algorithm. The specific algorithm may be a formula for specifically calculating the screen refresh rate of a display screen, for example, the theoretical screen refresh rate is equal to the number of horizontal synchronization scan lines of the display screen multiplied by the number of frames. Among them, the number of horizontal synchronization scan lines of the display screen is set by default when the display screen leaves the factory, for example, the number of horizontal synchronization scan lines of the display screen is 525. The number of frames may refer to the number of frames used by the display screen to display continuous images within one second. The specific algorithm may be preset as needed. It should be noted that the theoretical screen refresh rate determined according to the screen parameters of the display screen is different for different display screen models.
[0047] Exemplarily, the theoretical screen refresh rate is determined by the following specific algorithm according to the screen parameters of the display screen:
[0048] fps = n*f;
[0049] Among them, fps (Frames Per Second) represents the theoretical screen refresh rate, n is a positive integer representing the number of horizontal synchronous scanning lines of the display screen, and f represents the number of frames.
[0050] Optionally, the screen parameters of the display screen include the width of the display screen, the number of folding lines of the module wiring, the line blanking time, the number of scans, and the pixel clock period; correspondingly, the determination of the theoretical screen refresh rate according to the screen parameters of the display screen can be: determining the theoretical screen refresh rate according to the width of the display screen, the number of folding lines of the module wiring, the line blanking time, the number of scans, and the pixel clock period.
[0051] Among them, the number of folding lines of the module wiring can refer to the number of lines passed by the wiring in the display module; the display module is a display module composed of at least two display pixels, and the display pixels in the display module are structurally independent of each other. The line blanking time can refer to the time required for the return process between rows of the display screen. The number of scans can refer to the number of rows that are lit simultaneously on the display screen. The pixel clock period can refer to the time required for the display screen to send one pixel.
[0052] Specifically, according to the width of the display screen, the number of folding lines of the module wiring, the line blanking time, the number of scans, and the pixel clock period, the theoretical screen refresh rate is determined by the following formula:
[0053]
[0054] Among them, fps represents the theoretical screen refresh rate, Tdclk represents the pixel clock period, wide represents the width of the display screen, fold represents the number of folding lines of the module wiring, blank_time represents the line blanking time, and scan_lines represents the number of scans.
[0055] It can be understood that the theoretical screen refresh rate determined according to the width of the display screen, the number of folding lines of the module wiring, the line blanking time, the number of scans, and the pixel clock period can make better use of the display resources of the corresponding display screen and improve the display effect of the corresponding display screen.
[0056] S103. Determine the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time, and the total field time of the display screen.
[0057] Among them, the total line time is equal to the sum of the effective line pixels of the display screen, the horizontal front porch of the display screen, the horizontal synchronous clock of the display screen, and the horizontal back porch of the display screen. The total field time is equal to the sum of the effective column pixels of the display screen, the vertical front porch of the display screen, the vertical synchronous clock of the display screen, and the vertical back porch of the display screen. It should be noted that the total line time and total field time of the display screen are set by default when the display screen leaves the factory. That is to say, the total line time and total field time of the display screen can be obtained from the screen specification of the display screen. In addition, if the total line time and total field time of the display screen are not available in the screen specification of the display screen, the total line time and total field time of the display screen can also be obtained through manual experience debugging. The total LCD display clock may refer to the time used by the display screen to display all pixels.
[0058] Specifically, based on a preset calculation rule, the total LCD display clock of the display screen is determined according to the theoretical screen refresh rate, the total line time, and the total field time of the display screen. For example, the preset calculation rule is: the total LCD display clock of the display screen is equal to the product of the theoretical screen refresh rate, the total line time, and the total field time of the display screen.
[0059] Exemplarily, calculate the product of the theoretical screen refresh rate, the total line time, and the total field time of the display screen, and use the product as the total LCD display clock of the display screen. Correspondingly, the total LCD display clock of the display screen can be determined through the following formula:
[0060] lcd_dclk_freq = lcd_ht * lcd_vt * fps;
[0061] Among them, lcd_dclk_freq represents the total LCD display clock of the display screen, lcd_ht represents the total line time of the display screen, lcd_vt represents the total field time of the display screen, and fps represents the theoretical screen refresh rate.
[0062] S104. Configure the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen.
[0063] Specifically, according to the value of the total LCD display clock of the display screen, modify the value of the total LCD display clock in the LCD driver. It should be noted that the LCD driver by default includes the total LCD display clock, the total line time, and the total field time of the display screen, etc.
[0064] S105. Determine the actual refresh rate of the screen according to the total line time of the display screen, the total field time of the display screen, and the total LCD display clock configured in the LCD driver.
[0065] Among them, the actual refresh rate may refer to the screen refresh rate finally determined by the display screen. Specifically, according to the total line time of the display screen in the LCD driver, the total field time of the display screen, and the total LCD display clock configured in the LCD driver, the actual refresh rate of the screen is determined through the following formula:
[0066]
[0067] Among them, fps1 represents the actual refresh rate of the screen, lcd_dclk_freq represents the total LCD display clock configured in the LCD driver, lcd_ht represents the total line time of the display screen in the LCD driver, and lcd_vt represents the total field time of the display screen in the LCD driver.
[0068] It should be noted that only by reloading the LCD driver on the application side can the configuration in the LCD driver take effect, thereby realizing the update of the screen refresh rate of the display screen.
[0069] The technical solution of the embodiment of the present invention includes: obtaining the screen parameters of the display screen; determining the theoretical screen refresh rate according to the screen parameters of the display screen; determining the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time and the total field time of the display screen; configuring the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen; and determining the actual refresh rate of the screen according to the total line time of the display screen in the LCD driver, the total field time of the display screen, and the total LCD display clock configured in the LCD driver. Through the above technical solution, by calculating the theoretical screen refresh rate, the total LCD display clock of the display screen is deduced backwards; and according to the total LCD display clock of the display screen, the relevant parameters in the LCD driver are reconfigured, thereby realizing the update of the screen refresh rate of different models of display screens, reasonably utilizing the display resources, improving the display effect, and improving the user experience.
[0070] Embodiment 2
[0071] Figure 2 As shown in the figure, this is a flowchart of a method for updating the screen refresh rate provided by the second embodiment of the present invention. On the basis of the above embodiment, this embodiment further optimizes "configuring the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen" to provide an optional implementation solution. It should be noted that for the parts not detailed in the embodiment of the present invention, reference may be made to the relevant descriptions of other embodiments.
[0072] As Figure 2 shown, the method includes:
[0073] S201. Obtain the screen parameters of the display screen.
[0074] S202. Determine the theoretical screen refresh rate according to the screen parameters of the display screen.
[0075] S203. Determine the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time and the total field time of the display screen.
[0076] S204. Update the total LCD display clock in the system hardware parameters according to the total LCD display clock of the display screen; wherein, the system hardware parameters include the total line time of the display screen, the total field time of the display screen and the total LCD display clock.
[0077] Among them, the system hardware parameters can refer to the hardware parameters of the electronic device where the display screen is located, and can include parameters such as CPU, FLASH, SDRAM, the total line time of the display screen, the total field time of the display screen and the total LCD display clock. The system hardware parameters are default settings when the electronic device where the display screen is located leaves the factory.
[0078] Specifically, according to the value of the total LCD display clock of the display screen, correspondingly modify the value of the total LCD display clock in the system hardware parameters.
[0079] S205. Configure the total line time of the display screen, the total field time of the display screen and the total LCD display clock in the LCD driver according to the system hardware parameters.
[0080] Specifically, according to the value of the total line time of the display screen, the value of the total field time of the display screen and the value of the total LCD display clock in the system hardware parameters, correspondingly configure the value of the total line time of the display screen, the value of the total field time of the display screen and the value of the total LCD display clock in the LCD driver.
[0081] S206. Determine the actual refresh rate of the screen according to the total line time of the display screen, the total field time of the display screen and the total LCD display clock configured in the LCD driver.
[0082] It should be noted that only when the application side reloads the LCD driver can the configuration in the LCD driver take effect, thereby realizing the update of the screen refresh rate of the display screen.
[0083] The technical solution of the embodiment of the present invention updates the total LCD display clock in the system hardware parameters according to the calculated total LCD display clock of the display screen; and then configures the total line time of the display screen, the total field time of the display screen and the total LCD display clock in the LCD driver according to the total line time of the display screen, the total field time of the display screen and the total LCD display clock in the system hardware parameters. So that the finally configured LCD driver can specifically realize the update of the screen refresh rate of different models of display screens, reasonably utilize the display resources of different models of display screens, improve the display effect of different models of display screens, and thereby improve the user experience.
[0084] Based on the above embodiments, as an alternative embodiment of the present invention, the method may further include: if the total LCD display clock of the display screen cannot be updated according to the total LCD display clock of the display screen, and the system hardware parameters can only be read once during power-on, then uninstall the original LCD driver, and store the total LCD display clock, the total row time and the total field time of the display screen in a specific system partition; correspondingly, the configuration of the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen may be: reading the total LCD display clock, the total row time and the total field time of the display screen from the specific system partition, and configuring the total row time, the total field time and the total LCD display clock of the display screen in the LCD driver according to the read total LCD display clock, the total row time and the total field time of the display screen.
[0085] Among them, power-on may refer to the electronic device where the display screen is turned on. The original LCD driver may refer to the LCD driver that is the default configuration when the electronic device where the display screen is manufactured. The specific system partition may be pre-set in the storage unit of the electronic device where the display screen is located, and is used to store the total row time, the total field time of the display screen, and the calculated total LCD display clock of the display screen.
[0086] Specifically, in the case where the system hardware parameters cannot be modified and can only be read once during power-on, uninstall the original LCD driver in the electronic device where the display screen is located, and store the total LCD display clock, the total row time and the total field time of the display screen in a specific system partition; read the total LCD display clock, the total row time and the total field time of the display screen from the specific system partition, and correspondingly configure the values of the total LCD display clock, the total row time and the total field time in the LCD driver according to the values of the read total LCD display clock, the total row time value of the display screen and the total field time value of the display screen. Furthermore, according to the total row time, the total field time and the total LCD display clock of the display screen configured in the LCD driver, determine the actual refresh rate of the screen.
[0087] It can be understood that when the system hardware parameters cannot be modified and can only be read once during power-on, storing the total LCD display clock, the total line time, and the total field time of the display screen in a specific system partition avoids the occurrence of restarting the electronic device where the display screen is located when configuring the LCD driver, saves time, and optimizes the user experience. At the same time, according to the total LCD display clock, the total line time, and the total field time of the display screen read from the specific system partition, configuring the total line time, the total field time of the display screen, and the total LCD display clock in the LCD driver enables the finally configured LCD driver to update the screen refresh rate of different models of display screens in a targeted manner, rationally utilizes the display resources of different models of display screens, and improves the display effect of different models of display screens.
[0088] In addition, when the system hardware parameters cannot be modified and can only be read once during power-on, if the specific system partition is empty, configure the total line time, the total field time, and the total LCD display clock of the display screen in the LCD driver according to the total line time, the total field time, and the total LCD display clock of the display screen in the system hardware parameters. Furthermore, determine the actual refresh rate of the screen according to the total line time, the total field time, and the total LCD display clock of the display screen configured in the LCD driver. Various situations in the LCD driver configuration process are fully considered, enabling the screen refresh rate update method to meet the display requirements of different models of display screens and improving the applicable range of the screen refresh rate update method.
[0089] Embodiment 3
[0090] Figure 3 The following is a schematic structural diagram of a screen refresh rate update device provided in Embodiment 3 of the present invention. This embodiment is applicable to the situation of updating the screen refresh rate of various different models of display screens. The device can be implemented in the form of hardware and / or software and can be configured in an electronic device, which can be one of a notebook computer, a desktop computer, a flat-panel TV, a projector, etc. As Figure 3 shown, the device includes:
[0091] A screen parameter acquisition module 301, configured to acquire the screen parameters of the display screen;
[0092] A refresh rate determination module 302, configured to determine the theoretical screen refresh rate according to the screen parameters of the display screen;
[0093] A total clock determination module 303, configured to determine the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time, and the total field time of the display screen;
[0094] A total clock configuration module 304, configured to configure the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen;
[0095] The actual refresh rate determination module 305 determines the actual refresh rate of the screen according to the total row time of the display screen in the LCD driver, the total field time of the display screen, and the total LCD display clock configured in the LCD driver.
[0096] The technical solution of the embodiment of the present invention obtains the screen parameters of the display screen through the screen parameter acquisition module; determines the theoretical screen refresh rate through the refresh rate determination module; determines the total LCD display clock of the display screen through the total clock determination module; through the total clock configuration module, configures the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen; through the actual refresh rate determination module, determines the actual refresh rate of the screen according to the total row time of the display screen in the LCD driver, the total field time of the display screen, and the total LCD display clock configured in the LCD driver. The above technical solution calculates the theoretical screen refresh rate, reversely deduces the total LCD display clock of the display screen; and reconfigures the relevant parameters in the LCD driver according to the total LCD display clock of the display screen, thereby realizing the update of the screen refresh rate of different models of display screens, reasonably utilizing the display resources, improving the display effect, and improving the user experience.
[0097] Optionally, the screen parameters of the display screen include the width of the display screen, the number of module wiring folding rows, the line blanking time, the number of scans, and the pixel clock period;
[0098] Correspondingly, the refresh rate determination module 302 is specifically configured to:
[0099] Determine the theoretical screen refresh rate according to the width of the display screen, the number of module wiring folding rows, the line blanking time, the number of scans, and the pixel clock period.
[0100] Optionally, the total clock determination module 303 is specifically configured to:
[0101] Calculate the product of the theoretical screen refresh rate, the total row time of the display screen, and the total field time, and use the product as the total LCD display clock of the display screen.
[0102] Optionally, the total clock configuration module 304 is specifically configured to:
[0103] Update the total LCD display clock in the system hardware parameters according to the total LCD display clock of the display screen; wherein, the system hardware parameters include the total row time of the display screen, the total field time of the display screen, and the total LCD display clock; configure the total row time of the display screen, the total field time of the display screen, and the total LCD display clock in the LCD driver according to the system hardware parameters.
[0104] Optionally, the device may further include:
[0105] The LCD parameter storage module is used to unload the original LCD driver and store the total LCD display clock, the total line time and the total field time of the display screen in a specific system partition if the total LCD display clock in the system hardware parameters cannot be updated according to the total LCD display clock of the display screen, and the system hardware parameters can only be read once when powering on.
[0106] Correspondingly, the total clock configuration module 304 is specifically used for:
[0107] Read the total LCD display clock, the total line time and the total field time of the display screen from a specific system partition, and configure the total line time of the display screen, the total field time of the display screen and the total LCD display clock in the LCD driver according to the read total LCD display clock, the total line time and the total field time of the display screen.
[0108] The screen refresh rate updating device provided by the embodiment of the present invention can execute the screen refresh rate updating method provided by any embodiment of the present invention, and has function modules and beneficial effects corresponding to executing each screen refresh rate updating method.
[0109] Embodiment 4
[0110] Figure 4 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0111] As Figure 4 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0112] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0113] The processor 11 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the screen refresh rate update method.
[0114] In some embodiments, the screen refresh rate update method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the screen refresh rate update method described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the screen refresh rate update method by any other suitable means (e.g., by means of firmware).
[0115] The various embodiments of the systems and technologies described above in this article can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special or general programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] A computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing device, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0117] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] In order to provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0119] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0120] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0121] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0122] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for updating screen refresh rate, characterized in that, include: Obtaining screen parameters of the display screen; wherein the screen parameters of the display screen include the width of the display screen, the number of module routing lines, the line blanking time, the number of scans and the pixel clock cycle; Determining a theoretical screen refresh rate according to screen parameters of the display screen; Determine the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time and the total field time of the display screen; According to the LCD display master clock of the display screen, configuring the LCD display master clock in the LCD driver; Determine the actual refresh rate of the screen according to the total line time of the display screen in the LCD driver, the total field time of the display screen and the total LCD display clock configured in the LCD driver; Wherein, determining the theoretical screen refresh rate according to the screen parameters of the display screen includes: According to the width of the display screen, the number of module routing folds, the line blanking time, the number of scans and the pixel clock cycle, the theoretical screen refresh rate is determined by the following formula: Among them, fps represents the theoretical screen refresh rate, Tdclk represents the pixel clock cycle, wide represents the width of the display, fold represents the number of fold lines of the module routing, blank_time represents the line blanking time, and scan_lines represents the number of scans.
2. The method according to claim 1, wherein Determining the LCD display total clock of the display screen according to the theoretical screen refresh rate, the total line time and the total field time of the display screen includes: The product of the theoretical screen refresh rate, the total line time and the total field time of the display screen is calculated, and the product is used as the LCD display total clock of the display screen.
3. The method according to claim 1, wherein The configuring the LCD display master clock in the LCD driver according to the LCD display master clock of the display screen includes: According to the LCD display total clock of the display screen, the LCD display total clock in the system hardware parameters is updated; wherein the system hardware parameters include the line total time of the display screen, the field total time of the display screen and the LCD display total clock; According to the system hardware parameters, the total line time of the display screen, the total field time of the display screen and the total LCD display clock in the LCD driver are configured.
4. The method according to claim 3, wherein The method further comprises: If the LCD display total clock in the system hardware parameters cannot be updated according to the LCD display total clock of the display screen, and the system hardware parameters can only be read once when powered on, then the original LCD driver is uninstalled, and the LCD display total clock, the row total time and the field total time of the display screen are stored in a specific system partition; wherein the specific system partition refers to a region pre-set in a storage unit of the electronic device where the display screen is located, for storing the row total time, the field total time and the calculated LCD display total clock of the display screen; Correspondingly, configuring the LCD display master clock in the LCD driver according to the LCD display master clock of the display screen includes: Read the total LCD display clock, the total line time and the total field time of the display screen from the specific system partition, and configure the total line time, the total field time of the display screen and the total LCD display clock in the LCD driver according to the read total LCD display clock, the total line time and the total field time of the display screen.
5. A screen refresh rate update device, characterized in that, It includes: A screen parameter acquisition module for acquiring the screen parameters of the display screen; wherein, the screen parameters of the display screen include the width of the display screen, the number of module trace folding lines, the line blanking time, the number of scans and the pixel clock period; A refresh rate determination module for determining the theoretical screen refresh rate according to the screen parameters of the display screen; A total clock determination module for determining the total LCD display clock of the display screen according to the theoretical screen refresh rate, the total line time and the total field time of the display screen; A total clock configuration module for configuring the total LCD display clock in the LCD driver according to the total LCD display clock of the display screen; An actual refresh rate determination module for determining the actual refresh rate of the screen according to the total line time of the display screen, the total field time of the display screen in the LCD driver and the total LCD display clock configured in the LCD driver; Wherein, the refresh rate determination module is specifically used for: Determine the theoretical screen refresh rate through the following formula according to the width of the display screen, the number of module trace folding lines, the line blanking time, the number of scans and the pixel clock period: Wherein, fps represents the theoretical screen refresh rate, Tdclk represents the pixel clock period, wide represents the width of the display screen, fold represents the number of module trace folding lines, blank_time represents the line blanking time, and scan_lines represents the number of scans.
6. The device according to claim 5, characterized in that, The total clock determination module is specifically used for: Calculate the product of the theoretical screen refresh rate, the total line time and the total field time of the display screen, and use the product as the total LCD display clock of the display screen.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the screen refresh rate update method according to any one of claims 1-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the screen refresh rate update method according to any one of claims 1-4 when executed.
Citation Information
Patent Citations
Time schedule controller and signal calibration method thereof and display device
CN111477187A