WO2021077264A1 - 触摸屏刷新率的更新方法、装置、移动终端及存储介质 - Google Patents
触摸屏刷新率的更新方法、装置、移动终端及存储介质 Download PDFInfo
- Publication number
- WO2021077264A1 WO2021077264A1 PCT/CN2019/112348 CN2019112348W WO2021077264A1 WO 2021077264 A1 WO2021077264 A1 WO 2021077264A1 CN 2019112348 W CN2019112348 W CN 2019112348W WO 2021077264 A1 WO2021077264 A1 WO 2021077264A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- touch
- mobile terminal
- display state
- acceleration
- refresh rate
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Definitions
- This application relates to the field of computer technology, and more specifically, to a method, device, mobile terminal, and storage medium for updating the refresh rate of a touch screen.
- mobile terminals such as mobile phones or tablet computers have become more and more widely used. People can watch videos, read e-books, play games, etc. through mobile terminals. Therefore, it is ensured that mobile terminals have relatively high performance. A good display effect is very necessary.
- this application proposes a method, device, mobile terminal and storage medium for updating the refresh rate of a touch screen to solve the above-mentioned problems.
- an embodiment of the present application provides a method for updating the refresh rate of a touch screen.
- the method is applied to a mobile terminal.
- the mobile terminal includes a touch screen.
- the method includes: determining the current display state of the mobile terminal. Screen display state and portrait display state; obtain the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates; update the refresh rate of the touch screen based on the target refresh rate.
- an embodiment of the present application provides a device for updating refresh rate of a touch screen.
- the device is applied to a mobile terminal.
- the mobile terminal includes a touch screen.
- the device includes a display state determination module, a target refresh rate acquisition module, and an update module.
- the display state determination module is used to determine the current display state of the mobile terminal.
- the current display state includes the horizontal screen display state and the vertical screen display state;
- the target refresh rate acquisition module is used to acquire the target refresh rate corresponding to the current display state.
- the display status corresponds to different refresh rates;
- the update module is used to update the refresh rate of the touch screen based on the target refresh rate.
- embodiments of the present application provide a mobile terminal, including one or more processors, a memory, and one or more application programs, where one or more application programs are stored in the memory and configured to be configured by One or more processors are executed, and one or more application programs are configured to execute the above-mentioned method for updating the refresh rate of the touch screen.
- the embodiments of the present application provide a computer-readable storage medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the above-mentioned method for updating the refresh rate of the touch screen.
- the method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen determine the current display state of the mobile terminal, where the current display state includes the horizontal screen display state and the vertical screen display state;
- the refresh rate of the touch screen is updated based on the target refresh rate, so that the mobile terminal can use different display states according to the horizontal screen display state and the vertical screen display state.
- Refresh rate When the horizontal display state is displayed, users usually use mobile terminals to watch videos, etc., and the display demand is high. At this time, a higher refresh rate can be used to ensure a better display effect, thereby improving user experience.
- the vertical screen is displayed, the display requirement is relatively low, and a lower refresh rate can be used at this time, thereby effectively reducing the power consumption of the mobile terminal.
- Fig. 1 shows a flowchart of a method for updating a refresh rate of a touch screen according to an embodiment of the present application.
- FIG. 2 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
- Fig. 3 shows a method flow chart of an embodiment of step S210 in the method for updating the refresh rate of the touch screen shown in Fig. 2 of the present application.
- Fig. 4 shows a schematic diagram of acceleration display when the mobile terminal is in a landscape display state according to an embodiment of the present application.
- Fig. 5 shows a schematic diagram of acceleration display when the mobile terminal is in a vertical screen display state according to an embodiment of the present application.
- FIG. 6 shows a method flowchart of another embodiment of step S210 in the method for updating the refresh rate of the touch screen shown in FIG. 2 of the present application.
- FIG. 7 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
- FIG. 8 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
- FIG. 9 shows a method flowchart of an embodiment of step S450 in the method for updating the refresh rate of the touch screen shown in FIG. 8 of the present application.
- FIG. 10 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to yet another embodiment of the present application.
- FIG. 11 shows a functional module diagram for updating the refresh rate of the touch screen provided by an embodiment of the present application.
- Fig. 12 shows a structural block diagram of a mobile terminal provided by an embodiment of the present application.
- FIG. 13 is a storage medium for storing or carrying program codes for implementing the method for updating the refresh rate of the touch screen according to the embodiment of the present application.
- mobile terminals such as mobile phones or tablets have become more and more widely used, and mobile terminals have more and more functions, such as watching videos, reading e-books, and playing electronic games. It can be implemented by a mobile terminal, so the display effect of the mobile terminal often directly determines the user experience.
- the refresh rate of the touch screen of the current mobile terminal is usually fixed, and the refresh rate cannot be adjusted according to the current display requirements of the touch screen. For example, when the user uses the mobile terminal to watch videos or play games, the display requirements are high at this time. , The mobile terminal’s touch screen is required to maintain a high frame rate refresh rate, and when the user reads e-books through the mobile terminal, there is no need for too high display requirements at this time. If the high frame rate refresh rate is still maintained, it will cause movement The terminal generates unnecessary power consumption.
- the high refresh rate or low refresh rate of the touch screen can also be activated by establishing an application whitelist.
- an application is associated with a refresh rate in advance.
- the startup is associated with the application. Refresh rate.
- the setting of the application whitelist has the problem that the application list cannot be updated in time, so that the refresh rate of the touch screen cannot be adjusted in time, resulting in a poor user experience.
- the inventor proposes a method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen in the embodiments of the present application.
- FIG. 1 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to an embodiment of the present application, and the method may be applied to a mobile terminal.
- the mobile terminal can be various mobile terminals with a touch screen, a display screen, an acceleration sensor, a pressure sensor, a video output function and support for data input, including but not limited to smart phones, tablets, and wearable electronics. Equipment, etc.
- the method may include the following steps:
- the current display state includes a horizontal screen display state and a vertical screen display state.
- the mobile terminal detects in real time whether it is currently in a horizontal screen display state or a vertical screen display state.
- S120 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
- the mobile terminal can locally store the corresponding relationship between the display state and the target refresh rate in advance, so that the mobile terminal can locally extract the target refresh rate corresponding to the current display state.
- the corresponding relationship between the display state and the target refresh rate may be stored in the cloud server, so that the mobile terminal can send a request to the cloud server to obtain the target refresh rate corresponding to the current display state.
- the refresh rate refers to the number of times that the electron beam repeatedly scans the image on the display screen. The higher the refresh rate, the better the stability of the picture displayed on the display screen and the better the display effect.
- the refresh rate of the touch screen of the mobile terminal may be updated to the high frame rate refresh rate.
- the vertical screen display state corresponds to a low frame rate refresh rate, when the mobile terminal switches from the horizontal screen display state to the vertical screen display state, the refresh rate of the touch screen of the mobile terminal can be updated to the refresh rate of the low frame rate.
- the current display state of the mobile terminal is determined, where the current display state includes the horizontal display state and the vertical display state; and the target refresh rate corresponding to the current display state is obtained, where different display states correspond to different
- the refresh rate of the touch screen is updated based on the target refresh rate, so that the mobile terminal can use different refresh rates according to the horizontal screen display state and the vertical screen display state.
- the horizontal screen display state is displayed, users usually use mobile terminals to watch videos, play games, etc. At this time, the display demand is high, so a higher refresh rate can be used to ensure a better display effect.
- the vertical screen is displayed, the mobile terminal is in the default display state.
- the display demand is relatively low, and a lower refresh rate can be used, thereby effectively reducing the power consumption of the mobile terminal.
- the refresh rate of the touch screen is automatically adjusted through the display state of the mobile terminal, which makes the adjustment of the refresh rate of the touch screen more convenient, timely and accurate.
- FIG. 2 shows a schematic flowchart of a method for updating the refresh rate of a touch screen according to another embodiment of the present application.
- the method may include the following steps:
- the current display state includes a horizontal screen display state and a vertical screen display state.
- S210 may include the following steps:
- the acceleration is detected in real time through the built-in acceleration sensor of the mobile terminal.
- the acceleration can be acceleration in one direction, or acceleration in multiple directions.
- the acceleration sensor may be a gyroscope.
- the mobile terminal Since the mobile terminal is always affected by gravity, when the value of the acceleration in one direction of the mobile terminal is closer to the gravitational acceleration, it can be judged that the acceleration is roughly in the direction of the gravitational acceleration. Therefore, it can be determined by judging the mobile terminal in the specified direction. Whether the acceleration value is within a preset range is used to determine whether the acceleration in the specified direction is close to the gravitational acceleration, and then it is determined whether the mobile terminal is currently in a landscape display state. Since the acceleration of gravity is 9.8m / s 2, therefore, alternatively, the predetermined range may be 8m / s 2 -12m / s 2 .
- the acceleration includes a first acceleration (also referred to as Y-axis acceleration), wherein the direction of the first acceleration is parallel to the length direction of the touch screen.
- the way of judging whether the acceleration is within the preset range may be: judging whether the first acceleration is within the first preset range; when the first acceleration is within the first preset range, determining that the acceleration is within the preset range .
- the length direction of the touch screen is usually perpendicular to the direction of gravitational acceleration
- the width direction of the touch screen is usually parallel to the direction of gravitational acceleration.
- Whether the first acceleration is close to 0 m/s 2 is used to determine whether the mobile terminal 100 is in a landscape display state. For example, when the first preset range is -1m/s 2 to 1m/s 2 , and the detected first acceleration is 0.596035m/s 2 , it can be determined whether the acceleration is within the preset range, and then the mobile terminal 100 The current display state of is the horizontal display state. In this embodiment, by detecting whether the acceleration in the longitudinal direction of the touch screen is within the first preset range, it is possible to quickly and accurately determine whether the mobile terminal 100 is in the landscape display state.
- the acceleration includes a second acceleration (also referred to as an X-axis acceleration), and the direction of the second acceleration is perpendicular to the length direction of the touch screen.
- the method of determining whether the acceleration is within the preset range may be: determining whether the second acceleration is within the second preset range; when the second acceleration is within the second preset range, determining that the acceleration is within the preset range .
- the length direction of the touch screen is usually parallel to the direction of gravitational acceleration
- the width direction of the touch screen is usually perpendicular to the direction of gravitational acceleration.
- Whether the second acceleration is close to 0 m/s 2 is used to determine whether the mobile terminal 100 is in a portrait display state.
- the first preset range is -1m/s 2 to 1m/s 2 and the detected first acceleration is 0.08293m/s 2
- the current display state of is the horizontal display state.
- the Z axis in Figure XX can be perpendicular to the X axis and the Y axis at the same time.
- by detecting whether the acceleration in the width direction of the touch screen is within the second preset range it is possible to quickly and accurately determine whether the mobile terminal 100 is in the landscape display state.
- the second acceleration is 9.38537 m/s 2
- the first acceleration is 10.21775 m/s 2 . Therefore, optionally, whether the mobile terminal 100 is in the vertical screen display state can be determined by judging whether the second acceleration is close to the gravitational acceleration, and when the second acceleration is close to the gravity acceleration, it can be determined that the mobile terminal 100 is in the vertical screen display state. It can also be determined whether the mobile terminal 100 is in the landscape display state by judging whether the first acceleration is close to the gravitational acceleration. When the first acceleration is close to the gravitational acceleration, it can be determined that the mobile terminal 100 is in the landscape display state.
- the first acceleration is within the first preset range and the second acceleration is within the second preset range, for example, when the first acceleration is close to 0m/s 2 and the second acceleration is close to 9.8m/s 2 , the movement can be determined
- the terminal 100 is in a landscape display state. In this embodiment, by determining whether the mobile terminal 100 is in a landscape display state according to accelerations in two directions, the accuracy of the determination can be further ensured.
- S212A may include: when the acceleration is within the preset range, determining whether the duration of the acceleration within the preset range is greater than or equal to the first preset duration; when the duration of the acceleration within the preset range is greater than or equal to When the first preset duration is used, it is determined that the current display state of the mobile terminal is the horizontal display state. As an example, if the first preset duration is 3 seconds, when the duration of the acceleration within the preset range is greater than or equal to 3 seconds, it can be determined that the mobile terminal is in the landscape display state.
- the mobile terminal may be prevented from being in a state of frequent movement. This leads to a misjudgment of whether the mobile terminal is in a landscape display state.
- the mobile terminal since the mobile terminal usually only has two display states of the horizontal screen and the vertical screen, when the mobile terminal is not in the horizontal screen display state, it can only be in the vertical screen display state. Therefore, when the acceleration is outside the preset range, it can be quickly and accurately determined that the current display state of the mobile terminal is the vertical display state.
- S213A may include the following steps: when the acceleration is outside the preset range, judging whether the duration of the acceleration outside the preset range is greater than or equal to the second preset duration; when the acceleration is outside the preset range, the duration is greater than When it is equal to the second preset duration, it is determined that the current display state of the mobile terminal is the vertical display state.
- the mobile terminal by determining that the current display state of the mobile terminal is the horizontal display state when the time period during which the acceleration is outside the preset range is greater than or equal to the second preset time period, the mobile terminal can be prevented from being in a state of frequent movement. This leads to a misjudgment of whether the mobile terminal is in a landscape display state.
- S210 may include the following steps:
- the first touch operation may be an operation detected by the first side wall such as pressing or holding.
- the number of the first side walls may be one or two.
- a pressure sensor provided on the mobile terminal can be used to detect whether a pressure signal is applied to the first side wall, and the pressure signal is at the position of the first side wall, so as to detect the first touch operation.
- the first touch operation is valid by detecting the magnitude of the pressure signal corresponding to the first touch operation. For example, when the magnitude of the pressure signal corresponding to the first touch operation is greater than or equal to the pressure threshold, the first touch may be determined The operation is effective. Thus, the misjudgment of the first touch operation is avoided.
- S210 may further include: detecting a second touch operation on the second side wall of the mobile terminal. Wherein, the second side wall is perpendicular to the longitudinal direction of the mobile terminal. When the second touch operation is detected, it is determined that the current display state of the mobile terminal is the horizontal display state.
- the mobile terminal can be judged by detecting whether there is a second touch operation on the second side wall In the landscape display state.
- the first touch operation may be an operation detected by the second side wall such as pressing or holding.
- the number of the second side walls may be one or two.
- the second touch operation can be detected by detecting whether a pressure signal is received on the second side wall and the pressure signal is at the position of the second side wall.
- the refresh rate of the mobile terminal is updated to 90HZ. If the original refresh rate of the touch screen is 90HZ, you can keep the refresh rate unchanged. If the original refresh rate of the touch screen is less than 90HZ, switch the original refresh rate to 90HZ to ensure the display quality of the touch screen in the horizontal display state, so that The display is smoother, which also ensures that the user can get a better viewing effect when using it.
- the second target refresh rate is 60HZ
- the refresh rate of the mobile terminal is updated to 60HZ. If the original refresh rate of the touch screen is 60HZ, the refresh rate can be kept unchanged. If the original refresh rate of the touch screen is greater than 60HZ, such as 90HZ, switch the original 90HZ refresh rate to 60HZ to ensure that the touch screen does not need to be in the vertical display state. Excessive power consumption can also effectively extend the service life of the mobile terminal.
- the display state of the mobile terminal by detecting the acceleration of the mobile terminal to determine the display state of the mobile terminal, it is not only possible to accurately determine the display state of the mobile terminal. Moreover, when the display state of the mobile terminal is switched, the display state of the mobile terminal can also be determined in time, and the corresponding target refresh rate can be used to update the refresh rate of the touch screen in a timely and effective manner, avoiding the refresh rate update delay, which is effective Improved user experience.
- FIG. 7 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to another embodiment of the present application.
- the method may include the following steps:
- S310 Determine whether the mobile terminal is in a screen rotation lock state.
- the display state of the mobile terminal will not change with the change of the placement direction of the mobile terminal.
- S320 When the mobile terminal is not in the screen rotation lock state, determine the current display state of the mobile terminal, where the current display state includes a horizontal screen display state and a vertical screen display state.
- S330 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
- the display state of the mobile terminal When the mobile terminal is in the screen rotation locked state, the display state of the mobile terminal will not change with the change of the placement direction of the mobile terminal. Therefore, the display state of the mobile terminal is determined through acceleration, the first touch operation, and the second touch operation. In this implementation, by determining whether the mobile terminal is in the screen rotation locked state, when the mobile terminal is not in the screen rotation locked state, the current display state of the mobile terminal is determined. It can effectively avoid the misjudgment of the display state of the mobile terminal.
- the method for updating the refresh rate of the touch screen may further include the following steps:
- S350 Detect whether the mobile terminal switches to a vertical screen display state or enters a screen off state within a third preset time period.
- the mobile terminal switches back to the vertical display state or enters the off-screen state.
- the touch screen of the mobile terminal switches back to the vertical display state or enters the off-screen state within 5 seconds after switching to the first target refresh rate, it means that the user does not need to use the mobile terminal too much in the horizontal screen state.
- the refresh rate of the touch screen can be updated from the first target refresh rate to the second target refresh rate. Since the second target refresh rate is less than the first target refresh rate, it is possible to prevent the mobile terminal from generating no The necessary power consumption.
- FIG. 8 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to another embodiment of the present application.
- the method may include the following steps:
- S410 Determine the current display state of the mobile terminal, where the current display state includes a horizontal screen display state and a vertical screen display state.
- S420 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
- the touch operation may be operations such as single click, double tap, multiple touches, pressing, and sliding.
- the touch position may be divided into one touch area among the multiple touch areas on the touch screen.
- the touch area is the current touch position corresponding to the touch operation.
- the multiple touch areas mentioned above correspond to multiple target reporting rates in advance. Therefore, when the front touch position corresponding to the touch operation belongs to one of the touch areas, the target reporting rate corresponding to the touch area can be obtained. The target report rate corresponding to the current touch position.
- the touch screen may include a first touch area and a second touch area, the second touch area surrounds the first touch area, and the area of the first touch area is larger than the area of the second touch area.
- S450 may include the following steps:
- S451 Determine that the current touch position is located in the first touch area or the second touch area.
- the implementation manner of S451 may be to obtain the first touch coordinate corresponding to the current touch position.
- the first touch coordinate corresponding to the current touch position is (X 1 , Y 1 ).
- the first touch coordinate When the first touch coordinate is located in the first touch area, it is determined that the current touch position is located in the first touch area.
- the coordinate range of the first touch area is: 1 ⁇ X ⁇ 4, 1 ⁇ Y ⁇ 6.
- 1 ⁇ X 1 ⁇ 4 and 1 ⁇ Y 1 ⁇ 6 it can be determined that the current touch position is located in the first touch area.
- the coordinate range of the second touch area is: 0 ⁇ X ⁇ 1 or 4 ⁇ X ⁇ 5;0 ⁇ Y ⁇ 1 or 6 ⁇ X ⁇ 7.
- 0 ⁇ X 1 ⁇ 1 or 4 ⁇ X 1 ⁇ 5; 0 ⁇ Y 1 ⁇ 1 or 6 ⁇ Y 1 ⁇ 7 it is determined that the current touch position is located in the second touch area.
- the implementation manner of S451 may also be to obtain multiple second touch coordinates corresponding to the current touch position.
- the multiple second touch coordinates may be double taps, multiple touches and so on.
- the number of second touch coordinates located in the first touch area is acquired from the plurality of second touch coordinates as the first number.
- the first number is three.
- the number of second touch coordinates located in the second touch area is acquired from the plurality of second touch coordinates as the second number.
- the second number is two.
- the first number is greater than the second number, and it is determined that the current touch position is located in the first touch area.
- the current touch position when there are multiple second touch coordinates corresponding to the current touch position, by judging the number of the second touch coordinates located in the first touch area and the second touch area, the current touch position can be effectively and accurately determined. Whether the touch position is located in the first touch area or the second touch area.
- the implementation manner of S451 may also be to obtain the touch area corresponding to the current touch position.
- the current touch position may correspond to one or more touch areas.
- the current touch position corresponds to a touch area
- the touch area is located in the area of the first touch area and the area of the second touch area, it can be effectively and accurately judged whether the current touch position is Whether it is located in the first touch area or the second touch area.
- the first touch area is pre-associated with the first target report rate.
- the first target report rate corresponding to the first touch area it may be obtained locally from the mobile terminal, or may be obtained from a cloud server communicating with the mobile terminal.
- the second touch area is pre-associated with the second target report rate.
- the second target report rate corresponding to the second touch area it may be obtained locally from the mobile terminal, or may be obtained from a cloud server communicating with the mobile terminal.
- the touch screen is divided into a first touch area and a second touch area, and the second touch area surrounds the first touch area, and the area of the first touch area is larger than the area of the second touch area.
- the first touch area is closer to the center of the touch screen, which belongs to the area with more frequent touches, which corresponds to a higher report rate;
- the second touch area is closer to the edge of the touch screen, which belongs to the area with less touch frequency, and its correspondence is lower
- the report rate of the first touch area and the second touch area can correspond to a reasonable report rate.
- the report rate of the touch screen is updated to the higher report rate.
- Target reporting rate to improve the response speed of the touch screen and improve the user's operating experience.
- the report rate of the touch screen is updated to a second target report rate with a lower report rate.
- the report rate and the refresh rate of the current touch screen are both fixed, it is impossible to adopt the corresponding report rate and refresh rate according to different scenarios, resulting in unnecessary power consumption of the mobile terminal.
- the current touch position corresponding to the touch operation is acquired, and then the target report rate corresponding to the current touch position is acquired, and then based on the target report
- the dot rate updates the reporting rate of the touch screen, thereby flexibly controlling the mobile terminal to switch the reporting rate of the touch screen according to different scenarios, and avoiding unnecessary power consumption while ensuring user experience.
- FIG. 10 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to yet another embodiment of the present application.
- the method may include the following steps:
- the current display state includes a horizontal screen display state and a vertical screen display state.
- S520 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
- S560 Update the report rate of the touch screen based on the target report rate.
- S570 Detect whether the mobile terminal receives a touch instruction within a fourth preset time period.
- the touch instruction is used to represent the control instruction input by the user to the mobile terminal through a touch action, such as an instruction to control the volume of the mobile terminal, an instruction to control the brightness of the touch screen of the mobile terminal, and so on.
- the touch instruction may be input through the touch screen of the mobile terminal, or through physical keys or virtual keys provided on the side walls of the mobile terminal.
- the fourth preset duration is 60 seconds
- the report rate of the touch screen can be changed from the first
- the target report rate is switched to the second target report rate to reduce power consumption.
- the report rate of the touch screen is switched from the first target report rate to the second target report rate by the mobile terminal not receiving a touch command within the fourth preset time period, which can effectively reduce the mobile terminal’s report rate.
- the power consumption can also extend the service life of the touch screen.
- FIG. 11 shows a touch screen refresh rate update device 600 provided by an embodiment of the present application.
- the device 600 is applied to a mobile terminal.
- the mobile terminal includes a touch screen.
- the device 600 includes: a display state determination module 610, a target refresh Rate acquisition module and update module 630.
- the display state determining module 610 is used to determine the current display state of the mobile terminal, and the current display state includes a horizontal screen display state and a vertical screen display state.
- the target refresh rate acquisition module is used to acquire the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
- the update module 630 is configured to update the refresh rate of the touch screen based on the target refresh rate.
- the target refresh rate acquisition module includes:
- the first target refresh rate obtaining unit when the current display state is the horizontal screen display state, obtains the first target refresh rate corresponding to the horizontal screen display state;
- the second target refresh rate acquiring unit acquires a second target refresh rate corresponding to the portrait display state when the current display state is the portrait display state, where the first target refresh rate is greater than the second target refresh rate.
- the display state determination module 610 includes:
- An acceleration acquisition unit for acquiring the acceleration of the mobile terminal
- the horizontal screen display state determining unit is configured to determine that the current display state of the mobile terminal is the horizontal screen display state when the acceleration is within a preset range.
- the vertical screen display state determining unit is configured to determine that the current display state of the mobile terminal is the vertical screen display state when the acceleration is outside the preset range.
- the acceleration includes a first acceleration
- the direction of the first acceleration is parallel to the length direction of the touch screen
- the preset range includes the first preset range.
- the horizontal screen display state determination unit is specifically used for:
- the acceleration includes a second acceleration
- the direction of the second acceleration is perpendicular to the length direction of the touch screen
- the preset range includes the second preset range.
- the horizontal screen display state determination unit is also specifically used for:
- the horizontal screen display state determining unit includes:
- the first duration judging subunit is used to determine whether the duration of the acceleration within the preset range is greater than or equal to the first preset duration when the acceleration is within the preset range;
- the horizontal screen display state determining subunit is configured to determine that the current display state of the mobile terminal is the horizontal screen display state when the time period during which the acceleration is within the preset range is greater than or equal to the first preset time period.
- the horizontal screen display state determining unit includes:
- the second duration judging subunit is used to determine whether the duration of the acceleration outside the preset range is greater than or equal to the second preset duration when the acceleration is outside the preset range;
- the vertical screen display state determining subunit is configured to determine that the current display state of the mobile terminal is the vertical screen display state when the time period during which the acceleration is outside the preset range is greater than or equal to the second preset time period.
- the display state determination module 610 is also used to detect a first touch operation acting on the first side wall of the mobile terminal, the first side wall being parallel to the longitudinal direction of the mobile terminal.
- the current display state of the mobile terminal is the vertical display state.
- the display state determination module 610 is also used to detect a second touch operation acting on the second side wall of the mobile terminal, and the second side wall is perpendicular to the longitudinal direction of the mobile terminal.
- the device 600 for updating the refresh rate of the touch screen further includes: a screen rotation lock state detection module for determining whether the mobile terminal is in a screen rotation lock state.
- the current display state of the mobile terminal is determined.
- the device 600 for updating the refresh rate of the touch screen further includes: a refresh rate switching module for detecting whether the mobile terminal switches to the vertical screen display state or enters the screen off state within the third preset time period.
- the refresh rate of the touch screen is updated from the first target refresh rate to the second target refresh rate.
- the device 600 for updating the refresh rate of the touch screen further includes:
- the touch position acquisition module is used to acquire the current touch position corresponding to the touch operation when a touch operation acting on the touch screen is detected.
- the target report rate acquisition module is used to obtain the target report rate corresponding to the current touch position.
- the reporting rate update module 630 is configured to update the reporting rate of the touch screen based on the target reporting rate.
- Target report rate acquisition module including:
- the first target reporting rate obtaining unit is configured to obtain the first target reporting rate corresponding to the first touch area when the current touch position is located in the first touch area.
- the second target report rate obtaining unit is configured to obtain a second target report rate corresponding to the second touch area when the current touch position is located in the second touch area, and the first target report rate is greater than the second target report rate rate.
- the touch position obtaining module is also used to obtain the first touch coordinate corresponding to the current touch position.
- the first touch coordinate When the first touch coordinate is located in the first touch area, it is determined that the current touch position is located in the first touch area.
- the touch position acquisition module is also used to: acquire multiple second touch coordinates corresponding to the current touch position.
- the number of second touch coordinates located in the first touch area is acquired from the plurality of second touch coordinates as the first number.
- the number of second touch coordinates located in the second touch area is acquired from the plurality of second touch coordinates as the second number.
- the touch position obtaining module is also used to obtain the touch area corresponding to the current touch position.
- the device 600 for updating the refresh rate of the touch screen further includes:
- the reporting rate switching module is used to detect whether the mobile terminal receives a touch instruction within the fourth preset time period.
- the report rate of the touch screen is switched from the first target report rate to the second target report rate.
- the coupling or direct coupling or communication connection between the displayed or discussed modules may be through some interfaces.
- the indirect coupling or communication connection of the device 600 or the modules may be electrical. , Mechanical or other forms.
- each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
- FIG. 12 shows a structural block diagram of a mobile terminal 700 provided by an embodiment of the present application.
- the mobile terminal 700 may be the mobile terminal 700 capable of running application programs in the foregoing embodiment.
- the mobile terminal 700 in this application may include one or more of the following components: a processor 710, a memory, a touch screen 730, an acceleration sensor, a pressure sensor, and one or more application programs, of which one or more application programs may be stored in the memory It is configured to be executed by one or more processors 710, and one or more programs are configured to execute the method described in the foregoing method embodiment.
- the processor 710 may include one or more processing cores.
- the processor 710 uses various interfaces and lines to connect various parts of the entire mobile terminal, and executes the mobile terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory, and calling data stored in the memory.
- Various functions and processing data may be adopted at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 710 may integrate one or a combination of a central processing unit 710 (Central Processing Unit, CPU), a graphics processing unit 710 (Graphics Processing Unit, GPU), a modem, and the like.
- a central processing unit 710 Central Processing Unit, CPU
- a graphics processing unit 710 Graphics Processing Unit, GPU
- the CPU mainly processes the operating system, user interface, and application programs
- the GPU is used for rendering and drawing of display content
- the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a communication chip alone.
- the memory may include random access memory (RAM) or read-only memory (Read-Only Memory).
- RAM random access memory
- Read-Only Memory The memory can be used to store instructions, programs, codes, code sets or instruction sets.
- the memory may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the following various method embodiments, etc.
- the data storage area can also store data created by the terminal in use (such as phone book, audio and video data, chat record data) and so on.
- the touch screen 730 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the mobile terminal. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof.
- the touch screen 730 may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
- FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- the computer readable medium 800 stores a program code 810, and the program code 810 can be invoked by a processor to execute the method described in the foregoing method embodiment.
- the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium includes a non-transitory computer-readable storage medium.
- the computer-readable storage medium has a storage space for executing program codes of any method steps in the above methods. These program codes can be read from or written into one or more computer program products. The program code can be compressed in an appropriate form, for example.
- the method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen determine the current display state of the mobile terminal, where the current display state includes the horizontal screen display state and the vertical screen display state; And obtain the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates; and then update the refresh rate of the touch screen based on the target refresh rate, so that the mobile terminal can display according to the horizontal screen display state and the vertical screen display State to use different refresh rates.
- the horizontal display state is displayed, users usually use mobile terminals to watch videos, etc., and the display demand is high. At this time, a higher refresh rate can be used to ensure a better display effect, thereby improving user experience.
- the vertical screen is displayed, the display requirement is relatively low, and a lower refresh rate can be used at this time, thereby effectively reducing the power consumption of the mobile terminal.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (20)
- 一种触摸屏刷新率的更新方法,其特征在于,应用于移动终端,所述移动终端包括触摸屏,所述方法包括:确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态;获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;基于所述目标刷新率对所述触摸屏的刷新率进行更新。
- 根据权利要求1所述的方法,其特征在于,所述获取与所述当前显示状态对应的目标刷新率,包括:当所述当前显示状态为横屏显示状态时,获取与所述横屏显示状态对应的第一目标刷新率;当所述当前显示状态为竖屏显示状态时,获取与所述竖屏显示状态对应的第二目标刷新率,其中,所述第一目标刷新率大于所述第二目标刷新率。
- 根据权利要求2所述的方法,其特征在于,所述确定所述移动终端的当前显示状态,包括:获取所述移动终端的加速度;当所述加速度处于预设范围内时,确定所述移动终端的当前显示状态为横屏显示状态;当所述加速度处于预设范围外时,确定所述移动终端的当前显示状态为竖屏显示状态。
- 根据权利要求3所述的方法,其特征在于,所述加速度包括第一加速度,所述第一加速度的方向与所述触摸屏的长度方向平行,所述预设范围包括第一预设范围,在所述获取所述移动终端的加速度之后,还包括:判断所述第一加速度是否处于所述第一预设范围内;当所述第一加速度处于所述第一预设范围内时,确定所述加速度处于预设范围内。
- 根据权利要求3所述的方法,其特征在于,所述加速度包括第二加速度,所述第二加速度的方向与所述触摸屏的长度方向垂直,所述预设范围包括第二预设范围,在所述获取所述移动终端的加速度之后,还包括:判断所述第二加速度是否处于所述第二预设范围内;当所述第二加速度处于所述第二预设范围内时,确定所述加速度处于预设范围内。
- 根据权利要求3-5任一项所述的方法,其特征在于,所述当所述加速度处于预设范围内时,确定所述移动终端的当前显示状态为横屏显示状态,包括:当所述加速度处于预设范围内时,判断所述加速度处于预设范围内的时长是否大于或等于第一预设时长;当所述加速度处于预设范围内的时长大于或等于第一预设时长时,确定所述移动终端的当前显示状态为横屏显示状态。
- 根据权利要求3-5任一项所述的方法,其特征在于,所述当所述加速度处于预设范围外时,确定所述移动终端的当前显示状态为竖屏显示状态,包括:当所述加速度处于预设范围外时,判断所述加速度处于预设范围外的时长是否大于或等于第二预设时长;当所述加速度处于预设范围外的时长大于或等于第二预设时长时,确定所述移动终端的当前显示状态为竖屏显示状态。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述确定所述移动终端的当 前显示状态,包括:检测作用于所述移动终端的第一侧壁上的第一触摸操作,所述第一侧壁与所述移动终端的长方向平行;当检测到所述第一触摸操作时,确定所述移动终端的当前显示状态为竖屏显示状态。
- 根据权利要求1-7任一项所述的方法,其特征在于,所述确定所述移动终端的当前显示状态,包括:检测作用于所述移动终端的第二侧壁上的第二触摸操作,所述第二侧壁与所述移动终端的长方向垂直;当检测到所述第二触摸操作时,确定所述移动终端的当前显示状态为横屏显示状态。
- 根据权利要求3-9任一项所述的方法,其特征在于,在所述确定所述移动终端的当前显示状态之前,还包括:判断所述移动终端是否处于屏幕旋转锁定状态;当所述移动终端不处于屏幕旋转锁定状态,执行所述确定所述移动终端的当前显示状态。
- 根据权利要求2-7任一项所述的方法,其特征在于,在所述基于所述目标刷新率对所述触摸屏的刷新率进行更新之后,还包括:检测所述移动终端在第三预设时长内是否切换到竖屏显示状态或者进入熄屏状态;当所述移动终端在第三预设时间内切换到竖屏显示状态或者进入熄屏状态时,将所述触摸屏的刷新率从所述第一目标刷新率更新为所述第二目标刷新率。
- 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:当检测到作用于所述触摸屏上的触控操作时,获取与所述触控操作对应的当前触控位置;获取与所述当前触控位置对应的目标报点率;基于所述目标报点率对所述触摸屏的报点率进行更新。
- 根据权利要求12所述的方法,其特征在于,所述触摸屏包括第一触摸区域和第二触摸区域,所述第二触摸区域包围所述第一触摸区域,且所述第一触摸区域的面积大于所述第二触摸区域的面积,所述获取与所述当前触控位置对应的目标报点率,包括:当所述当前触控位置位于所述第一触摸区域时,获取与所述第一触摸区域对应的第一目标报点率;当所述当前触控位置位于所述第二触摸区域时,获取与所述第二触摸区域对应的第二目标报点率,所述第一目标报点率大于所述第二目标报点率。
- 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:获取与所述当前触控位置对应的第一触控坐标;当所述第一触控坐标位于所述第一触摸区域内时,确定所述当前触控位置位于所述第一触摸区域;当所述第一触控坐标位于所述第二触摸区域内时,确定所述当前触控位置位于所述第二触摸区域。
- 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:获取所述当前触控位置对应的多个第二触控坐标;从所述多个第二触控坐标中获取位于所述第一触摸区域的所述第二触控坐标的数 量作为第一数量;从所述多个第二触控坐标中获取位于所述第二触摸区域的所述第二触控坐标的数量作为第二数量;当所述第一数量大于或等于所述第二数量时,确定所述当前触控位置位于所述第一触摸区域;当所述第一数量小于所述第二数量时,确定所述当前触控位置位于所述第二触摸区域。
- 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:获取与所述当前触控位置对应的触控面积;从所述触控面积中获取位于所述第一触摸区域的面积作为第一面积;从所述触控面积中获取位于所述第一触摸区域的面积作为第二面积;当所述第一面积大于或等于所述第二面积时,确定所述当前触控位置位于所述第一触摸区域;当所述第一面积小于所述第二面积时,确定所述当前触控位置位于所述第二触摸区域。
- 根据权利要求13-16任一项所述的方法,其特征在于,在所述基于所述目标报点率对所述触摸屏的报点率进行更新之后,还包括:检测所述移动终端在第四预设时长内是否接收到所述触摸指令;当所述移动终端在第四预设时长内没有接收到所述触摸指令,将所述触摸屏的报点率从所述第一目标报点率切换为所述第二目标报点率。
- 一种触摸屏刷新率更新装置,其特征在于,应用于移动终端,所述移动终端包括触摸屏,所述装置包括:显示状态确定模块,用于确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态;目标刷新率获取模块,用于获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;更新模块,用于基于所述目标刷新率对所述触摸屏的刷新率进行更新。
- 一种移动终端,其特征在于,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1-17任一项所述的方法。
- 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/112348 WO2021077264A1 (zh) | 2019-10-21 | 2019-10-21 | 触摸屏刷新率的更新方法、装置、移动终端及存储介质 |
CN201980099300.0A CN114286978A (zh) | 2019-10-21 | 2019-10-21 | 触摸屏刷新率的更新方法、装置、移动终端及存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/112348 WO2021077264A1 (zh) | 2019-10-21 | 2019-10-21 | 触摸屏刷新率的更新方法、装置、移动终端及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021077264A1 true WO2021077264A1 (zh) | 2021-04-29 |
Family
ID=75619517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/112348 WO2021077264A1 (zh) | 2019-10-21 | 2019-10-21 | 触摸屏刷新率的更新方法、装置、移动终端及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114286978A (zh) |
WO (1) | WO2021077264A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080143729A1 (en) * | 2006-12-15 | 2008-06-19 | Nvidia Corporation | System, method and computer program product for adjusting a refresh rate of a display for power savings |
CN103530036A (zh) * | 2013-10-18 | 2014-01-22 | 惠州Tcl移动通信有限公司 | 一种横屏切换的控制方法及移动终端 |
CN105164618A (zh) * | 2013-11-15 | 2015-12-16 | 华为终端有限公司 | 数据上报方法、装置及终端设备 |
CN105242893A (zh) * | 2015-09-22 | 2016-01-13 | 小米科技有限责任公司 | 刷新率调整方法及装置 |
CN106250085A (zh) * | 2016-07-29 | 2016-12-21 | 北京小米移动软件有限公司 | 刷新率调整方法及装置 |
CN110164356A (zh) * | 2019-06-11 | 2019-08-23 | 惠科股份有限公司 | 数据显示的控制电路及补偿方法 |
-
2019
- 2019-10-21 WO PCT/CN2019/112348 patent/WO2021077264A1/zh active Application Filing
- 2019-10-21 CN CN201980099300.0A patent/CN114286978A/zh active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080143729A1 (en) * | 2006-12-15 | 2008-06-19 | Nvidia Corporation | System, method and computer program product for adjusting a refresh rate of a display for power savings |
CN103530036A (zh) * | 2013-10-18 | 2014-01-22 | 惠州Tcl移动通信有限公司 | 一种横屏切换的控制方法及移动终端 |
CN105164618A (zh) * | 2013-11-15 | 2015-12-16 | 华为终端有限公司 | 数据上报方法、装置及终端设备 |
CN105242893A (zh) * | 2015-09-22 | 2016-01-13 | 小米科技有限责任公司 | 刷新率调整方法及装置 |
CN106250085A (zh) * | 2016-07-29 | 2016-12-21 | 北京小米移动软件有限公司 | 刷新率调整方法及装置 |
CN110164356A (zh) * | 2019-06-11 | 2019-08-23 | 惠科股份有限公司 | 数据显示的控制电路及补偿方法 |
Also Published As
Publication number | Publication date |
---|---|
CN114286978A (zh) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10908703B2 (en) | User terminal device and method for controlling the user terminal device thereof | |
US11474657B2 (en) | Screen casting method, apparatus, terminal and storage medium | |
CN108235086B (zh) | 视频播放控制方法、装置及相应的终端 | |
TWI566575B (zh) | 一種圖像渲染方法、裝置及電子設備 | |
CN108646906B (zh) | 帧率调整方法、装置、存储介质及智能终端 | |
WO2017016339A1 (zh) | 视频分享方法和装置、视频播放方法和装置 | |
WO2017076289A1 (zh) | 视频播放方法及装置 | |
US20070008338A1 (en) | Display system, display apparatus, and method of controlling video source and display apparatus | |
CN112445315A (zh) | 屏幕刷新帧率的控制方法、装置及存储介质 | |
WO2016082586A1 (zh) | 网页更新方法及装置 | |
CN109157839B (zh) | 帧率调控方法、装置、存储介质及终端 | |
CN108648259B (zh) | 图像绘制方法、装置、存储介质及智能终端 | |
US11086635B2 (en) | Electronic device, method for controlling electronic device, and program | |
CN108733193B (zh) | 智能调整帧率的方法、装置、存储介质及智能终端 | |
WO2019201140A1 (zh) | 应用显示方法、装置、存储介质及电子设备 | |
CN107148776B (zh) | 获取视频数据的方法、装置、系统及计算机可读存储介质 | |
KR20130020238A (ko) | 포인팅 장치를 이용한 컨텐츠 이동 방법 및 장치 | |
WO2022057407A1 (zh) | 挂件显示方法和电子设备 | |
WO2022171054A1 (zh) | 一种刷新显示的方法、装置和电子设备 | |
CN108762465B (zh) | 帧率自适应调整方法、装置、存储介质及智能终端 | |
WO2019047187A1 (zh) | 导航栏控制方法及装置 | |
US20220319388A1 (en) | Display control method and electronic device | |
CN110830653B (zh) | 传感器控制方法、装置、移动终端以及存储介质 | |
WO2023197679A1 (zh) | 视频播放方法、装置、电子设备及存储介质 | |
WO2021077308A1 (zh) | 触摸屏处理方法、装置、移动终端以及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19949840 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19949840 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.10.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19949840 Country of ref document: EP Kind code of ref document: A1 |