CN111625134B - Display refresh rate synchronization method and device, terminal and storage medium - Google Patents

Display refresh rate synchronization method and device, terminal and storage medium Download PDF

Info

Publication number
CN111625134B
CN111625134B CN202010419532.4A CN202010419532A CN111625134B CN 111625134 B CN111625134 B CN 111625134B CN 202010419532 A CN202010419532 A CN 202010419532A CN 111625134 B CN111625134 B CN 111625134B
Authority
CN
China
Prior art keywords
refresh rate
display
touch
display refresh
touch screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010419532.4A
Other languages
Chinese (zh)
Other versions
CN111625134A (en
Inventor
陈增鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010419532.4A priority Critical patent/CN111625134B/en
Publication of CN111625134A publication Critical patent/CN111625134A/en
Application granted granted Critical
Publication of CN111625134B publication Critical patent/CN111625134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a method for synchronizing a display refresh rate, which comprises the following steps: the display screen system determines the display refresh rate of the display screen; the display screen system informs the touch screen system of the display refresh rate; and the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate. The embodiment of the application also provides a synchronization device, a terminal and a storage medium for displaying the refresh rate.

Description

Display refresh rate synchronization method and device, terminal and storage medium
Technical Field
The present application relates to software technology, and relates to, but is not limited to, a method and apparatus for synchronizing a display refresh rate, a terminal, and a storage medium.
Background
Terminals with high display refresh rate screens are receiving increasing attention and preference from multiple users, particularly the loyalty fans of terminal games. Obviously, improving the display refresh rate can better improve the user experience. However, for a Touch Panel (TP) that shares a module with a display panel, a high display refresh rate inevitably causes more noise interference.
In the related art, for dealing with the above problem, an additional hardware pin is usually used as a hardware synchronization pin for the display screen and the touch screen. When the display refresh rate is changed, the hardware synchronization pin synchronizes information to the touch screen to dynamically adjust the scanning period of the touch screen, so as to achieve the optimal noise reduction effect. However, the hardware synchronization pin adds complexity of a hardware design circuit and increases hardware cost of the mobile phone.
Disclosure of Invention
The embodiment of the application provides a method and a device for synchronizing a display refresh rate, a terminal and a storage medium, which can solve the problem of synchronization of the display refresh rate and a touch screen by using software, and avoid circuit complexity and extra cost loss caused by using a hardware synchronization pin.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for synchronizing a display refresh rate, where the method includes:
the display screen system determines the display refresh rate of the display screen;
the display screen system informs the touch screen system of the display refresh rate;
and the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate.
In a second aspect, an embodiment of the present application provides a synchronization apparatus for displaying a refresh rate, where the synchronization apparatus includes a first determining module, a notifying module, and an adjusting module, where:
the first determining module is used for determining the display refresh rate of the display screen by the display screen system;
the notification module is used for the display screen system to notify the display refresh rate to the touch screen system;
and the adjusting module is used for adjusting the detection parameters of the touch screen by the touch screen system according to the display refresh rate.
In a third aspect, an embodiment of the present application provides a terminal, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps in the synchronization method for the display refresh rate when executing the program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the above method for synchronizing the display refresh rate.
The beneficial effects that technical scheme that this application embodiment brought include at least:
in the embodiment of the application, firstly, a display screen system determines the display refresh rate of a display screen; then, the display screen system notifies the touch screen system of the display refresh rate; finally, the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate; therefore, the display screen system can realize the problem of synchronization of the display refresh rate and the touch screen by determining the display refresh rate of the display screen and informing the touch screen system of the display refresh rate, and the circuit complexity and the extra cost loss caused by using a hardware synchronization pin are optimized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic flowchart illustrating a method for synchronizing a display refresh rate according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another method for synchronizing display refresh rates according to an embodiment of the present disclosure;
FIG. 3 is an interaction flow chart of another method for synchronizing display refresh rates according to an embodiment of the present disclosure;
FIG. 4 is a logic flow diagram of a method for synchronizing display refresh rates according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a notification chain according to an embodiment of the present disclosure;
fig. 6A is a schematic structural diagram illustrating a structure of a synchronization apparatus for displaying a refresh rate according to an embodiment of the present disclosure;
fig. 6B is a schematic structural diagram of another synchronization apparatus for displaying a refresh rate according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware entity of a terminal according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The following examples are intended to illustrate the present application but are not intended to limit the scope of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
It should be noted that the terms "first \ second \ third" referred to in the embodiments of the present application are only used for distinguishing similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under specific ordering or sequence if allowed, so that the embodiments of the present application described herein can be implemented in other orders than illustrated or described herein.
Terminals, such as mobile phones and tablet computers, have become tools frequently used in daily life and work of people. To ensure a better user experience, the display refresh rate of the display screen of the terminal is typically set to a fixed maximum refresh rate. When the terminal runs in the state, no matter what application is started by the user, the display can respond quickly and timely, so that the user can obtain good experience when using the terminal.
With the development of terminal display screens, more and more high display refresh rate screen terminals are coming out. The high display refresh rate screen obviously improves experiences such as games, high definition video, and the promotion that for example experienced to First Person's Shooting (FPS) game is very obvious, and the high display refresh rate screen can bring more smooth visual angle and switch, makes the more light accurate locking enemy position of player. Therefore, terminals with high display refresh rate screens are receiving increasing attention and preference from multiple users, particularly loyalty fans of terminal games.
Obviously, the use experience of the user can be better improved by improving the display refresh rate. However, for a touch screen sharing a module with a display screen, especially for some flexible screens which are more trendy at present, a high display refresh rate inevitably brings more noise interference.
In the related technology, for a high frame rate flexible display screen, an additional hardware pin is specially added as a hardware synchronization pin for the display screen and a touch screen. When the display refresh rate is changed, the hardware synchronization pin synchronizes information to the touch screen to dynamically adjust the scanning period of the touch screen so as to achieve the optimal noise reduction effect. However, the hardware synchronization pin adds complexity to the hardware design circuit and increases the hardware cost of the mobile phone.
The embodiment of the application provides a synchronization method for displaying refresh rate, which is applied to a terminal, wherein the terminal can be various types of equipment with a display screen system and a touch screen system in the implementation process, and the display refresh rate is synchronized by interaction between the display screen system and the touch screen system.
Fig. 1 is a schematic flowchart of a method for synchronizing a display refresh rate according to an embodiment of the present application, where as shown in fig. 1, the method at least includes the following steps:
step S110, the display screen system determines a display refresh rate of the display screen.
Here, the display screen system at least comprises a display screen, a sensor and a control module, wherein the display screen can be a flexible display screen with a bending function or other conventional display screens; the sensor is used for generating a display signal; the control module at least comprises a microcontroller for controlling the display screen to display corresponding contents according to the display signal, and in some embodiments, the control module may further comprise a display driver.
Here, the display refresh rate is the frequency of screen refresh during the display process of the display screen, and represents how many times the picture is refreshed every second. Conventional Display devices such as Cathode Ray Tubes (CRTs), liquid Crystal Displays (LCDs), light Emitting Diodes (LEDs), organic Light Emitting Diodes (OLEDs), active Matrix OLEDs (AMOLEDs) operate at a fixed Display refresh rate such as 60Hz, 85Hz or 120 Hz.
Step S120, the display screen system informs the touch screen system of the display refresh rate.
Here, the touch screen system includes at least a touch screen panel including a plurality of driving electrodes and a plurality of sensing electrodes for detecting a touch point position, a touch sensor, and a control module; the touch sensor is used for generating a touch signal according to touch operation; the control module at least comprises a microcontroller and is used for controlling the touch screen to generate response according to the touch signal; in some embodiments, the control module further includes a touch driver, a touch Integrated Circuit (IC).
Here, the display screen system sends a notification message to the touch screen system, and synchronizes the determined rate of the display refresh ICs to the touch screen system, so that the touch screen system acquires the current display refresh rate. For example, the display screen system may be implemented by way of a notification chain message to notify the touch screen system of the display refresh rate.
It should be noted that each subsystem in the Linux kernel of the operating system is interdependent, and when a state of one subsystem changes, a certain mechanism must be used to notify other subsystems using its service, so that the other subsystems can take corresponding measures. To meet such a demand, the kernel implements an event notification chain mechanism (notification chain). The kernel-provided notification chain mechanism is mainly used for communication between different subsystems and is based on events and priorities. For example, the touch screen belongs to an input subsystem, and the corresponding events can be triggered when the screen is on and off by acquiring a frame buffer (frame buffer) subsystem.
And step S130, the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate.
Here, the detection parameters of the touch screen are represented by the state of the touch IC, such as hardware scanning frequency, touch hit rate, and lock point range. The touch reporting rate is the frequency of reporting contact information to the host computer every second, such as 180Hz, and the faster reporting rate enables the terminal screen to detect the finger of the user more quickly; the lock point range is understood to be the range of the area around the actual position of the user's finger when touched.
It should be noted that the touch screen may be various types of touch screens. For example, the touch screen is a surround screen, a full screen, a water drop full screen, a curved screen, or a bang screen.
Here, the touch screen system adjusts the detection parameter of the touch screen to a value matching the display refresh rate according to the obtained display refresh rate, for example, when the display refresh rate is 60Hz, the pixels of the display screen are refreshed every 16.6 milliseconds (ms), and at this time, to avoid noise interference, the touch IC should be dynamically switched to the optimal low-noise scanning frequency point according to the display refresh rate.
In the embodiment of the application, firstly, a display screen system determines the display refresh rate of a display screen; then, the display screen system notifies the touch screen system of the display refresh rate; finally, the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate; therefore, the display screen system can realize the problem of synchronization of the display refresh rate and the touch screen by determining the display refresh rate of the display screen and informing the touch screen system of the display refresh rate, and the circuit complexity and the extra cost loss caused by using a hardware synchronization pin are optimized.
Fig. 2 is a schematic flowchart of another method for synchronizing a display refresh rate according to an embodiment of the present application, where as shown in fig. 2, the method at least includes the following steps:
step S210, the display screen system determines the current display refresh rate of the display screen.
Here, the display refresh rate is a current display refresh rate of the display screen, and is generally set to a fixed value such as 90Hz.
And step S220, the display screen system determines a target display refresh rate according to the display requirements of the picture to be displayed.
Here, the display requirement of the to-be-displayed picture may be a logic designed for the terminal software itself, for example, an adaptive display refresh rate is adjusted according to the system memory occupancy rate, or a display refresh rate autonomously selected by the user as needed.
It should be noted that, after the target display refresh rate of the display screen is determined, the control module further controls the display screen to read and display the display frame data to be displayed from the frame buffer unit of the display screen at the frequency of the target refresh rate.
When the mobile terminal is used, the application programs can be classified into 3 types according to the display requirements of the display screen: the first category is FPS games, which have the highest requirement on the display refresh rate, and need to run at the highest display refresh rate to ensure smooth pictures and timely response; the second type is a video type, which has a second highest requirement on the display refresh rate; the third type is a general type of application, the requirement on the display refresh rate is not high, and the picture application requirement can be ensured by running at a lower display refresh rate. That is, in the implementation process, the corresponding target display refresh rate can be set according to different display requirements. Compared with the step that the display screen is refreshed at a fixed maximum refresh rate, the step can reduce the power consumption of the display screen of the mobile terminal.
Step S230, in a case that the target display refresh rate is not consistent with the current display refresh rate, the display screen system determines that the display refresh rate of the display screen changes.
Here, by comparing the target display refresh rate and the current display refresh rate, if the target display refresh rate and the current display refresh rate are not consistent, it may be determined that switching of the display refresh rate is performed, that is, the display refresh rate of the display screen is changed.
Step S240, in a case that it is determined that the display refresh rate of the display screen changes, the display screen system notifies the touch screen system of the display refresh rate.
Here, if it is determined that the display refresh rate of the display screen is changed, the display screen system notifies the touch screen system of the changed display refresh rate, i.e., the target display refresh rate, so as to achieve synchronization of the display screen system and the touch screen system.
And step S250, the touch screen system adjusts the detection parameters of the touch screen according to the display refresh rate.
Here, the touch screen system dynamically adjusts the detection parameter of the touch screen to a value matching the display refresh rate according to the obtained changed display refresh rate.
In the embodiment of the application, firstly, a display screen system determines a target display refresh rate according to the display requirements of a picture to be displayed; secondly, the display screen system determines that the display refresh rate of the display screen changes by comparing the current display refresh rate with the target display refresh rate; then, the display screen system informs the touch screen system of the display refresh rate under the condition that the display refresh rate of the display screen is determined to be changed; therefore, when the display refresh rate is changed, the display screen system synchronizes information to the touch screen system, the problem of synchronization of the display refresh rate and the touch screen is solved, and the circuit complexity and the extra cost loss caused by using a hardware synchronization angle are avoided.
Fig. 3 is an interaction flowchart of another method for synchronizing a display refresh rate according to an embodiment of the present application, where as shown in fig. 3, a display screen system includes a display driver, and a touch screen system includes a touch driver and a touch IC, and the method at least includes the following steps:
step S310, the display driver switches the display refresh rate of the display screen.
Here, when the user selects switching of the display refresh rate, or the terminal design itself logic decides that the display refresh rate needs to be switched, the display driver starts switching of the display refresh rate.
In step S320, the display driver sends a refresh rate change notification message to the touch driver.
Here, when the display driver switches the display refresh rate, the touch driver is notified in a notification chain message that the display refresh rate has dynamically changed.
Step S330, the touch driving program determines the display refresh rate according to the refresh rate change notification message.
Here, the touch driver registers a callback function on a display notification chain event, and when a refresh rate change notification event occurs, display refresh rate change information is synchronously obtained.
Step S340, the touch driver determines an identifier corresponding to the display refresh rate.
Here, the indication is a numerical value corresponding to a display refresh rate, and different display refresh rates correspond to different indications. In practice, different manufacturers specify respective values, for example, a value of 1 is set to indicate a refresh rate of 90Hz.
In step S350, the touch driver writes the identifier into a specific address register.
Here, the specific address register is used to store identification information and/or detection parameters of the touch screen.
Here, the touch driver writes a value corresponding to the display refresh rate at this time in a specific address register of the touch IC through a Serial Peripheral Interface (SPI) Interface or an Inter-Integrated Circuit (I2C) bus.
Step S360, the touch IC reads the identifier from the specific address register to obtain the display refresh rate.
Here, when the touch IC detects a change in the value in the specific address register, the display refresh rate is determined by reading the flag corresponding to the display refresh rate.
And step S370, the touch IC adjusts the detection parameters of the touch screen to be values matched with the display refresh rate according to the display refresh rate.
Here, the detection parameter of the touch screen includes at least one of: the scanning frequency of the touch screen, the report rate of the touch screen and the lock point range of the touch screen.
It is worth noting that by synchronously displaying the refresh rate information, the scanning frequency of the touch screen can be adjusted, touch detection parameters such as a report rate and a locking range can be dynamically optimized to achieve an extremely good touch effect, and a user can have better use experience in scenes such as games.
In the embodiment of the application, when the display driver switches the display refresh rate, the touch driver is notified in a manner of a notification chain message that the display refresh rate is dynamically changed, and after receiving the message, the touch driver dynamically changes the state of the touch screen IC, such as the scanning frequency, in a manner of reading and writing the register by I2C; therefore, the problem of display refresh rate and touch screen synchronization is achieved by using a software mode, circuit complexity and extra cost loss caused by using a hardware synchronization pin are optimized, synchronization is more flexible, and touch experience is improved while noise interference is solved.
The foregoing method for synchronizing display refresh rates is described below with reference to a specific embodiment, but it should be noted that the specific embodiment is only for better describing the present application and is not intended to limit the present application.
The embodiment of the application provides a software synchronization mode to achieve the effect basically consistent with a hardware synchronization pin. The basic idea of software synchronization is to notify the TP of the change in the display refresh rate at that time in a software manner when the user dynamically switches the display refresh rate. Fig. 4 is a logic flow diagram of a method for synchronizing a display refresh rate according to an embodiment of the present application, and as shown in fig. 4, a specific implementation process at least includes the following steps:
step S401, according to the upper layer logic, the display refresh rate switching is determined.
Here, the upper layer logic may autonomously select switching of the display refresh rate for the user, or logic of the terminal itself is designed.
In some possible embodiments, whether a touch screen of the mobile terminal has a user touch operation or not can be detected, and if so, the refresh rate of the display screen of the mobile terminal is adjusted to be the highest refresh rate; and if not, maintaining the refresh rate of the display screen of the mobile terminal unchanged. After the step is set, when the user touches the mobile terminal to realize interaction, the display screen is adjusted to run at the highest refresh rate.
In step S402, the display driver switches the display refresh rate.
Here, when the user selects to switch the display refresh rate, or the terminal design logic itself determines that the display refresh rate needs to be switched, the underlying display driver is notified to start switching the display refresh rate.
In step S403, the display driver sends a display refresh rate change notification message to the touch driver.
Here, the display refresh rate change notification message may be one notification chain message. In implementation, the touch driver registers a callback function on a notification chain event. When the display driver completes the refresh rate switching, the touch driver is notified of the dynamic change of the display refresh rate in a notification chain message manner.
In step S404, the touch driver acquires display refresh rate information.
In step S405, the touch driver notifies the touch IC refresh rate information through the SPI interface or the I2C bus.
Here, after receiving the message, the touch driver notifies the touch IC of the latest refresh rate information through the SPI interface or the I2C read/write register.
In step S406, the touch IC changes the state of the touch IC according to the refresh rate information.
Here, the touch IC dynamically changes the state of the touch IC according to the acquired refresh rate information, such as changing a hardware scan frequency, dynamically switching a touch point rate, adjusting a lock point range, and the like.
Fig. 5 is a flowchart illustrating displaying a notification chain according to an embodiment of the present application. As shown in fig. 5, originally, for the touch driver, only the screen-on event 51 and the screen-off event 52 are display notification chain events that need to be used, and the embodiment of the present application adds a new notification event, i.e., a refresh rate change event 53, to the original display notification chain 50 to notify the refresh rate change.
Here, the display notification chain 50 is a list of event handling functions that may be used to send state change information to code segments that request such changes. Each notification chain is related to a certain event or events, and when a specific event occurs, a callback function in the corresponding event notification chain is called to perform corresponding processing.
It should be noted that the display notification chain mechanism uses a publish-subscribe model: when an event occurs, a subsystem of the kernel component which detects or generates the event serves as an active party, and a subscriber (a subsystem interested in the event) serving as a passive party is informed through a notification function. Of course, if a subscribing party needs to handle event notifications issued on a certain event notification chain, it should register callback functions on that notification chain at initialization.
Notably, the subscriber must know which event notification support is provided by the other subsystems to select event notifications that can be subscribed to; of course, the subscriber itself is also a subsystem and therefore also has information publishing functionality, and it is also clear which events within the system are valuable to other subsystems, i.e. which events within the system need to be notified to the subscriber when they occur, but the subsystem has no knowledge of who subscribes to event notifications and why they subscribe.
The design has the advantage of the specification of the whole software flow, and better obeys the permission of the kernel modules to realize the notification chain instead of simple function call-back. Although the traditional function callback mode is simple to implement, the coupling degree between modules can be increased, and the continuation and the development of codes are not facilitated.
The embodiment of the present application addresses software synchronization between the display refresh rate and the touch screen by adding a refresh rate change event 53 to the display notification chain 50, and then the touch driver receives the event and performs a corresponding process 54. Generally, the touch driver writes corresponding values into the fixed address register of the touch IC by means of I2C bus, which represents different display refresh rates. When the touch IC detects the change of the register value, the touch IC can be immediately dynamically switched to the optimal low-noise scanning frequency point according to the display refresh rate at the moment.
In some embodiments, according to the requirements of different items, it is further required to make the touch IC perform more customized processing when the display refresh rate changes, such as dynamically switching the report rate, the lock point range, and the like, and the touch IC may write the corresponding operation register to dynamically modify the dynamically switching report rate or the lock point range while receiving the notification event of the change of the refresh rate, so as to achieve the best touch experience.
In the embodiment of the application, the display refresh rate and the touch screen are synchronized by using software. Not only optimized the circuit complexity and the extra cost loss that use hardware synchronization foot to bring, still let this kind of synchronization more nimble, promoted touch experience when solving noise interference. For the user, the user can experience better display effect and extremely-close touch experience at different display refresh rates, the use experience of the user in scenes such as game playing is obviously improved, and the selling points of the mobile phone and the public praise of the user are increased.
Based on the traditional synchronization scheme for refreshing the display hardware, the software synchronization mode is adopted for the first time to achieve the noise reduction effect consistent with the hardware synchronization pin. Meanwhile, the software implementation mode follows the communication standard design mode of a kernel module, and a notification chain mode is adopted to enable the code to have larger expandability and continuity. Finally, the scanning frequency of the touch IC can be adjusted under different display refresh rates, different touch parameters can be dynamically optimized to achieve an extremely good touch effect, and users can have better use experience in scenes such as games.
Based on the foregoing embodiments, an embodiment of the present application further provides a synchronization apparatus for displaying a refresh rate, where the switching apparatus includes each module and each unit included in each module, and may be implemented by a processor in a terminal; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the Processor may be a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6A is a schematic structural diagram of a synchronization apparatus for displaying a refresh rate according to an embodiment of the present application, and as shown in fig. 6A, the synchronization apparatus 600 includes a first determining module 610, a notifying module 620, and an adjusting module 630, where:
the first determining module 610 is configured to determine a display refresh rate of a display screen by a display screen system;
the notifying module 620 is configured to notify the display screen system of the display refresh rate to the touch screen system;
the adjusting module 630 is configured to adjust the detection parameter of the touch screen according to the display refresh rate by the touch screen system.
In some embodiments, the notifying module 620 is further configured to notify the display refresh rate of the display screen to the touch screen system by the display screen system if it is determined that the display refresh rate of the display screen changes.
In some embodiments, the display refresh rate of the display screen includes a current display refresh rate and a target display refresh rate, as shown in fig. 6B, the synchronization apparatus 600 further includes a second determining module 640, a third determining module 650, and a switching module 660, wherein: the second determining module 640 is configured to determine the target display refresh rate according to a display requirement of a to-be-displayed picture by the display screen system; the third determining module 650, configured to determine that the display refresh rate of the display screen changes when the target display refresh rate is inconsistent with the current display refresh rate; the switching module 660 is configured to switch the current display refresh rate to the target display refresh rate by the display frequency system.
In some embodiments, the display screen system includes a display driver, the touch screen system includes a touch driver, and the notification module 620 includes: a sending submodule and a determining submodule, wherein: the sending submodule is used for sending a refresh rate change notification message to the touch driver by the display driver under the condition that the display refresh rate of the display screen is determined to change; and the determining submodule is used for determining the display refresh rate by the touch driving program according to the refresh rate change notification message.
In some embodiments, the touch screen system further touches the integrated circuit IC, and the adjusting module 630 includes a control sub-module and an adjusting sub-module, wherein: the control submodule is used for the touch driving program to inform the touch IC of the display refresh rate through an SPI or an I2C bus; and the adjusting submodule is used for adjusting the detection parameter of the touch screen to a value matched with the display refresh rate by the touch IC according to the display refresh rate.
In some embodiments, the control submodule comprises a determination unit, a writing unit and an acquisition unit, wherein: the determining unit is used for determining the identifier corresponding to the display refresh rate by the touch driving program; the writing unit is used for writing the identification into the specific address register by the touch driving program; the obtaining unit is configured to obtain the display refresh rate by reading the identifier from the specific address register by the touch IC.
In some embodiments, the detection parameters of the touch screen include at least one of: the scanning frequency of the touch screen and the report rate of the touch screen.
Here, it should be noted that: the above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the synchronization method for the display refresh rate is implemented in the form of a software functional module and is sold or used as an independent product, the method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, which essentially or partly contribute to the related art, may be embodied in the form of a software product stored in a storage medium, and including instructions for enabling a terminal (which may be a smart phone, a tablet computer, an e-book, etc. with a surround screen, a full screen, a drop full screen, a curved screen, or a bang screen) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, based on the same technical concept, the embodiment of the present application provides a terminal for implementing the method for synchronizing the display refresh rate described in the above method embodiment. Fig. 7 is a schematic hardware entity diagram of a terminal according to an embodiment of the present application, as shown in fig. 7, the terminal 700 includes a memory 710 and a processor 720, the memory 710 stores a computer program that can be executed on the processor 720, and the processor 720, when executing the computer program, implements steps in any of the methods for synchronizing a display refresh rate according to the embodiments of the present application.
The Memory 710 is configured to store instructions and applications executable by the processor 720, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 720 and modules in the terminal, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Correspondingly, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the method for synchronizing the display refresh rate according to any of the above embodiments.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Correspondingly, in an embodiment of the present application, a chip is further provided, where the chip includes a programmable logic circuit and/or program instructions, and when the chip runs, the chip is configured to implement the steps in the synchronization method for the display refresh rate in any of the foregoing embodiments.
Correspondingly, in an embodiment of the present application, there is further provided a computer program product, which is used to implement the steps in the method for synchronizing the display refresh rate in any of the foregoing embodiments when the computer program product is executed by a processor of a terminal.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an automatic test line of a device to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A method for synchronizing a display refresh rate is applied to a terminal, the terminal comprises a display screen system and a touch screen system, the display screen system comprises a display driver, the touch screen system comprises a touch driver and a touch Integrated Circuit (IC), and the method comprises the following steps:
the display screen system determines the display refresh rate of the display screen;
under the condition that the display refresh rate of the display screen is determined to be changed, the display driver sends a refresh rate change notification message to the touch driver; the refresh rate change notification message is a notification chain message;
the touch driving program determines the display refresh rate according to the refresh rate change notification message;
the touch driving program determines an identifier corresponding to the display refresh rate; the identification is a numerical value corresponding to the display refresh rate;
the touch driving program writes the identification into a specific address register through a Serial Peripheral Interface (SPI) or an internal integrated circuit (I2C) bus;
the touch IC reads the identifier from the specific address register to acquire the display refresh rate under the condition that the numerical value in the specific address register is determined to be changed;
the touch IC adjusts the detection parameter of the touch screen into a value matched with the display refresh rate according to the display refresh rate; the detection parameters of the touch screen comprise: a scanning frequency of the touch screen, and/or a lock point range of the touch screen.
2. The method of claim 1, wherein the display refresh rate of the display screen comprises a current display refresh rate and a target display refresh rate, the method further comprising:
the display screen system determines the target display refresh rate according to the display requirements of the picture to be displayed;
under the condition that the target display refresh rate is inconsistent with the current display refresh rate, the display screen system determines that the display refresh rate of the display screen changes;
and the display screen system switches the current display refresh rate to the target display refresh rate.
3. The method of claim 1 or 2, wherein detecting parameters of the touch screen further comprises: and reporting the point rate of the touch screen.
4. A synchronization device for displaying a refresh rate is applied to a terminal, the terminal comprises a display screen system and a touch screen system, the display screen system comprises a display driver, the touch screen system comprises a touch driver and a touch Integrated Circuit (IC), the synchronization device comprises a first determination module, a notification module and an adjustment module, wherein:
the first determining module is used for determining the display refresh rate of the display screen by the display screen system;
the notification module is used for sending a refresh rate change notification message to the touch driver by the display driver under the condition that the display refresh rate of the display screen is determined to change; the refresh rate change notification message is a notification chain message; the touch driving program determines the display refresh rate according to the refresh rate change notification message;
the adjusting module is used for the touch driving program to determine an identifier corresponding to the display refresh rate; the identification is a numerical value corresponding to the display refresh rate; the touch driving program writes the identification into a specific address register through a Serial Peripheral Interface (SPI) or an internal integrated circuit (I2C) bus; the touch IC reads the identifier from the specific address register to acquire the display refresh rate under the condition that the numerical value in the specific address register is determined to be changed; the touch IC adjusts the detection parameter of the touch screen into a value matched with the display refresh rate according to the display refresh rate; the detection parameters of the touch screen comprise: a scanning frequency of the touch screen, and/or a lock point range of the touch screen.
5. A terminal comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor when executing the program performs the steps of the method of any one of claims 1 to 3.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3.
CN202010419532.4A 2020-05-18 2020-05-18 Display refresh rate synchronization method and device, terminal and storage medium Active CN111625134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010419532.4A CN111625134B (en) 2020-05-18 2020-05-18 Display refresh rate synchronization method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010419532.4A CN111625134B (en) 2020-05-18 2020-05-18 Display refresh rate synchronization method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111625134A CN111625134A (en) 2020-09-04
CN111625134B true CN111625134B (en) 2023-03-17

Family

ID=72270527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010419532.4A Active CN111625134B (en) 2020-05-18 2020-05-18 Display refresh rate synchronization method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111625134B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199027A (en) * 2020-09-14 2021-01-08 努比亚技术有限公司 Terminal interaction control method, terminal and computer readable storage medium
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN114661403A (en) * 2022-03-29 2022-06-24 联想(北京)有限公司 Processing method, system and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI684971B (en) * 2019-01-16 2020-02-11 大陸商北京集創北方科技股份有限公司 Touch display driving method, touch display device and information processing device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750932B (en) * 2006-07-31 2014-12-03 夏普株式会社 Display controller, display device, display system, and method for controlling display device
US9087473B1 (en) * 2007-11-21 2015-07-21 Nvidia Corporation System, method, and computer program product for changing a display refresh rate in an active period
CN104252273A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Contact reporting rate processing method and device of touch screen
US9354744B2 (en) * 2014-06-09 2016-05-31 Sony Corporation Adaptive touch panel synchronization
CN104238812B (en) * 2014-08-22 2017-07-04 合肥鑫晟光电科技有限公司 The transmission method and relevant apparatus of touch data in a kind of touch-screen
US9880649B2 (en) * 2014-09-29 2018-01-30 Apple Inc. Touch, pen and force sensor operation with variable refresh displays
US9910533B2 (en) * 2015-06-19 2018-03-06 Apple Inc. Timing scheme for touch screen supporting variable refresh rate
CN105843442A (en) * 2016-03-15 2016-08-10 武汉华星光电技术有限公司 Driving method used for touch display panel
CN106933526B (en) * 2017-03-10 2019-03-15 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal of dynamic regulation screen refresh rate
CN106941563B (en) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 control method and device for refresh rate of mobile terminal and mobile terminal
CN108762652B (en) * 2018-03-27 2020-08-21 Oppo广东移动通信有限公司 Display control method and device of intelligent terminal, storage medium and intelligent terminal
CN110174966B (en) * 2019-05-17 2022-07-29 Oppo广东移动通信有限公司 Control method, display module and electronic equipment
CN110703944B (en) * 2019-09-29 2023-03-31 Oppo广东移动通信有限公司 Touch data processing method and device, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI684971B (en) * 2019-01-16 2020-02-11 大陸商北京集創北方科技股份有限公司 Touch display driving method, touch display device and information processing device

Also Published As

Publication number Publication date
CN111625134A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN111625134B (en) Display refresh rate synchronization method and device, terminal and storage medium
US11017496B2 (en) Display driving circuit and method of partial image data
CN106933587B (en) Layer drawing control method and device and mobile terminal
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
US20210173549A1 (en) Method for icon display, terminal, and storage medium
US20150116344A1 (en) Method and apparatus for controlling screen brightness in electronic device
JP4153462B2 (en) Display system switching device, display system switching method, display system switching program, and computer-readable storage medium storing the program
EP2598980A1 (en) Execution and display of applications
EP3584677A1 (en) Method and device for controlling mobile terminal, and mobile terminal
US7598941B2 (en) Pointer for a large display
CN111951206A (en) Image synthesis method, image synthesis device and terminal equipment
CN107436658B (en) Method for reducing temperature rise, computer readable storage medium and mobile terminal
CN105630498A (en) Application program display method and device and electronic equipment
US20130293590A1 (en) Mobile terminal comprising a graphical user interface
CN105677149B (en) Electronic device and display processing method
CN108334349B (en) Mobile terminal, display image switching method thereof and computer-readable storage medium
WO2019085810A1 (en) Processing method, device, apparatus, and machine-readable medium
CN112540716A (en) Method and device for passing through intelligent cabin application program among multiple screens and electronic equipment
US11048533B2 (en) Information processing device and method for selectively displaying support information based on urgency level
CN110716782A (en) Information display method and device and electronic equipment
US20090201259A1 (en) Cursor creation for touch screen
CN111949150B (en) Method and device for controlling peripheral switching, storage medium and electronic equipment
CN111414047B (en) Touch screen control method, electronic device and storage medium
CN110568972B (en) Method and device for presenting shortcut
WO2023098210A1 (en) Split-screen display method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant