CN107943347B - Touch screen control method and device - Google Patents

Touch screen control method and device Download PDF

Info

Publication number
CN107943347B
CN107943347B CN201711315984.2A CN201711315984A CN107943347B CN 107943347 B CN107943347 B CN 107943347B CN 201711315984 A CN201711315984 A CN 201711315984A CN 107943347 B CN107943347 B CN 107943347B
Authority
CN
China
Prior art keywords
application
touch screen
preset
response speed
mode
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
CN201711315984.2A
Other languages
Chinese (zh)
Other versions
CN107943347A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711315984.2A priority Critical patent/CN107943347B/en
Publication of CN107943347A publication Critical patent/CN107943347A/en
Application granted granted Critical
Publication of CN107943347B publication Critical patent/CN107943347B/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/0416Control or interface arrangements specially adapted for digitisers

Abstract

The disclosure provides a touch screen control method and device, and belongs to the technical field of terminals. The method comprises the following steps: after the application is started, recording an output value of a target sensor when the application is operated within a preset time period; determining that the response speed required by the application is greater than a preset threshold value according to the output value, and switching the working mode of the touch screen to a first low-power-consumption mode when the touch operation is not detected within a first preset time length, wherein the first preset time length is greater than a fixed time length; and determining that the response speed required by the application is smaller than a preset threshold value according to the output value, and switching the working mode of the touch screen to a second low power consumption mode when the touch operation is not detected within a second preset time length, wherein the second preset time length is smaller than a fixed time length. According to the method, the touch screen is controlled to enter the low power consumption mode at different times according to the output value of the target sensor in the application running process, the response speed and the power consumption can be better considered, the balance between the response speed and the power consumption is realized, and the power consumption of the system is integrally reduced.

Description

Touch screen control method and device
Technical Field
The disclosure relates to the technical field of terminals, in particular to a touch screen control method and device.
Background
At present, most screens of terminals (such as mobile phones) on the market are touch screens, and touch operations of fingers on the screens, such as clicking operations of the fingers on the screens, can be detected. One of the operation modes of the touch screen is a Doze mode (pseudo sleep mode), in which the touch screen has a low scanning frequency, low power consumption, and a slow click response speed to fingers. The scanning frequency of the touch screen refers to the detection frequency of a touch chip of the touch screen on touch operation, and the larger the scanning frequency is, the higher the probability that the touch operation is detected is, so that the more timely the response of the touch screen on the touch operation is, the faster the response speed is. During the use of the terminal, in order to save power consumption, the terminal may set the operating mode of the touch screen to the Doze mode.
Currently, the process of the touch screen entering into the Doze mode may include: when the touch operation is not detected within a certain period of time (e.g., within a fixed time period), for example, the user does not need to click the screen when watching a video on the terminal, at this time, the terminal sets the operating mode of the touch screen to the Doze mode.
Disclosure of Invention
The embodiment of the disclosure provides a touch screen control method and device, which can solve the problem that the related technology cannot give good consideration to both response speed and power consumption.
According to a first aspect of the embodiments of the present disclosure, there is provided a touch screen control method, including:
after the application is started, recording an output value of a target sensor when the application is operated within a preset time period;
determining that the response speed required by the application is greater than a preset threshold value according to the output value, and switching the working mode of the touch screen to a first low-power-consumption mode when the touch operation is not detected within a first preset time length, wherein the first preset time length is greater than a fixed time length;
and when the response speed required by the application is determined to be smaller than the preset threshold value according to the output value and the touch operation is not detected within a second preset time, switching the working mode of the touch screen to a second low-power-consumption mode, wherein the second preset time is smaller than the fixed time.
According to the method provided by the embodiment of the disclosure, the output values of the target sensor are recorded in the preset time period after the application is started, and the time for the touch screen to enter the low power consumption mode is controlled according to the output values. When the application is determined to have higher requirement on the response speed according to the output value, the terminal can prolong the time for the touch screen to enter the low power consumption mode, so that the touch screen is not easy to enter the low power consumption mode, and the probability of no response when a user clicks the touch screen is reduced; when the requirement of the application on the response speed is determined to be low according to the output value, the terminal can shorten the time for the touch screen to enter the low-power-consumption mode, so that the touch screen can enter the low-power-consumption mode more easily, and the state of saving power consumption can be achieved more quickly. The requirement of the application on the response speed is analyzed according to the output value condition of the target sensor in the application running process, so that the touch screen is controlled to enter a low power consumption mode at different time aiming at the application with different response speed requirements, the response speed and the power consumption can be better considered, the balance between the response speed and the power consumption is realized, and the power consumption of the system is integrally reduced.
In a first implementation manner of the first aspect, the determining that the response speed required by the application is greater than a preset threshold according to the output value includes: counting the number of output values which are larger than a preset value in all the output values in the preset time period; and when the number is larger than a preset number, determining that the response speed required by the application is larger than the preset threshold value.
According to the method provided by the embodiment of the disclosure, when the number of the output values larger than the preset value is large, the application can be considered to have a high requirement on the response speed, and the terminal can prolong the time for the touch screen to enter the low power consumption mode, so that the touch screen is not easy to enter the low power consumption mode, and the probability of no response when a user clicks the touch screen is reduced.
In a second implementation manner of the first aspect, the determining that the response speed required by the application is smaller than a preset threshold according to the output value includes: counting the number of output values which are larger than a preset value in all the output values in the preset time period; and when the number is smaller than a preset number, determining that the response speed required by the application is smaller than the preset threshold value.
According to the method provided by the embodiment of the disclosure, when the number of the output values larger than the preset value is small, the requirement of the application on the response speed is considered to be low, and the terminal can shorten the time for the touch screen to enter the low power consumption mode, so that the touch screen can enter the low power consumption mode more easily, and the state of saving power consumption can be achieved more quickly.
In a third implementation manner of the first aspect, the application with the required response speed greater than the preset threshold comprises a game-class application, and the application with the required response speed less than the preset threshold comprises a video-class application.
According to the method provided by the embodiment of the disclosure, the game application can be the first application due to the high requirement of the game application on the timely response or the response speed, and the video application can be the application requiring the response speed smaller than the preset threshold value due to the low requirement of the video application on the timely response or the response speed.
In a fourth implementation form of the first aspect, the second low power consumption mode is the same as the first low power consumption mode; or the scanning frequency of the touch screen in the second low-power mode is smaller than the scanning frequency of the touch screen in the first low-power mode.
According to the method provided by the embodiment of the disclosure, since the application has no high requirement on the timely response or response speed of the touch screen, the scanning frequency of the touch screen in the second low-power-consumption mode can be less than that of the touch screen in the first low-power-consumption mode, so that compared with the Doze mode in the prior art, the scanning frequency can be reduced more in the second low-power-consumption mode, and the power consumption of the touch screen after entering the second low-power-consumption mode is lower.
According to a second aspect of the embodiments of the present disclosure, there is provided a touch screen control device including:
the recording module is used for recording the output value of the target sensor when the application is operated within a preset time period after the application is started;
the switching module is used for switching the working mode of the touch screen to a first low power consumption mode when the response speed of the application requirement is determined to be greater than a preset threshold value according to the output value and the touch operation is not detected within a first preset time length, wherein the first preset time length is greater than a fixed time length;
the switching module is further configured to switch the operating mode of the touch screen to a second low power consumption mode when it is determined that the response speed required by the application is smaller than a preset threshold according to the output value and no touch operation is detected within a second preset duration, where the second preset duration is smaller than the fixed duration.
In a first implementation manner of the second aspect, the output value includes an acceleration or an inclination angle, and the switching module is configured to count the number of output values greater than a preset value in all output values in the preset time period; and when the number is larger than a preset number, determining that the response speed required by the application is larger than the preset threshold value.
In a second implementation manner of the second aspect, the output value includes an acceleration or an inclination angle, and the switching module is configured to count the number of output values that are greater than a preset value in all output values within the preset time period; and when the number is smaller than a preset number, determining that the response speed required by the application is smaller than the preset threshold value.
In a third implementation manner of the second aspect, the application with the required response speed greater than the preset threshold comprises a game-class application, and the application with the required response speed less than the preset threshold comprises a video-class application.
In a fourth implementation form of the second aspect, the second low power mode is the same as the first low power mode; or the scanning frequency of the touch screen in the second low-power mode is smaller than the scanning frequency of the touch screen in the first low-power mode.
According to a third aspect of the embodiments of the present disclosure, there is provided a touch screen control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the application is started, recording an output value of a target sensor when the application is operated within a preset time period;
determining that the response speed required by the application is greater than a preset threshold value according to the output value, and switching the working mode of the touch screen to a first low-power-consumption mode when the touch operation is not detected within a first preset time length, wherein the first preset time length is greater than a fixed time length;
and when the response speed required by the application is determined to be smaller than the preset threshold value according to the output value and the touch operation is not detected within a second preset time, switching the working mode of the touch screen to a second low-power-consumption mode, wherein the second preset time is smaller than the fixed time.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a touch screen control method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a touch screen control method according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a touch screen control apparatus according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a touch screen control apparatus 400 according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a touch screen control method according to an exemplary embodiment, where the touch screen control method is applied to a terminal having a touch screen, as shown in fig. 1, and includes the following steps:
in step 101, when an application is started, an output value of a target sensor when the application is operated for a preset time period is recorded.
In step 102, when it is determined that the response speed required by the application is greater than a preset threshold according to the output value and no touch operation is detected within a first preset time period, the operating mode of the touch screen is switched to a first low power consumption mode, where the first preset time period is greater than a fixed time period.
In step 103, when it is determined that the response speed required by the application is smaller than the preset threshold according to the output value and the touch operation is not detected within a second preset time period, the operating mode of the touch screen is switched to a second low power consumption mode, where the second preset time period is smaller than the fixed time period.
In the embodiment of the disclosure, the output values of the target sensor are recorded within a preset time period after the application is started, and the time for the touch screen to enter the low power consumption mode is controlled according to the output values. When the application is determined to have higher requirement on the response speed according to the output value, the terminal can prolong the time for the touch screen to enter the low power consumption mode, so that the touch screen is not easy to enter the low power consumption mode, and the probability of no response when a user clicks the touch screen is reduced; when the requirement of the application on the response speed is determined to be low according to the output value, the terminal can shorten the time for the touch screen to enter the low-power-consumption mode, so that the touch screen can enter the low-power-consumption mode more easily, and the state of saving power consumption can be achieved more quickly. The requirement of the application on the response speed is analyzed according to the output value condition of the target sensor in the application running process, so that the touch screen is controlled to enter a low power consumption mode at different time aiming at the application with different response speed requirements, the response speed and the power consumption can be better considered, the balance between the response speed and the power consumption is realized, and the power consumption of the system is integrally reduced.
In one possible implementation, the output value includes an acceleration or a tilt angle, and the determining that the response speed required by the application is greater than a preset threshold according to the output value includes: counting the number of output values which are larger than a preset value in all the output values in the preset time period; and when the number is larger than the preset number, determining that the response speed required by the application is larger than the preset threshold value.
In one possible implementation, the determining that the response speed required by the application is less than the preset threshold according to the output value includes: counting the number of output values which are larger than a preset value in all the output values in the preset time period; and when the number is smaller than the preset number, determining that the response speed required by the application is smaller than the preset threshold value.
In one possible implementation, the applications requiring a response speed greater than the preset threshold include game-type applications, and the applications requiring a response speed less than the preset threshold include video-type applications.
In one possible implementation, the second low power mode is the same as the first low power mode; or the like, or, alternatively,
the scanning frequency of the touch screen in the second low-power mode is less than that in the first low-power mode.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a touch screen control method according to an exemplary embodiment, where the touch screen control method is used in a terminal having a touch screen, as shown in fig. 2, and includes the steps of:
in step 201, when an application is started, an output value of a target sensor when the application is operated within a preset time period is recorded.
The target sensor may be an acceleration sensor, and the output value of the acceleration sensor may be an acceleration or other parameters that can reflect the movement of the terminal, such as the inclination angle of the terminal relative to the horizontal plane. Of course, the target sensor may also be another sensor for measuring the movement condition of the terminal, which is not limited in this disclosure.
In the embodiment of the disclosure, after the application is started, a user may perform corresponding operations on an operation interface of the application, the terminal may move during the operation process of the user, and the operation amplitude and frequency of the user may affect the motion amplitude and frequency of the terminal, and the motion amplitude and frequency may be reflected by the output value of the target sensor. For this purpose, the terminal may record the output value of the target sensor in real time or at a preset time interval (e.g., 5ms or 10ms) for each application within a preset time period after the application is started, that is, record the output value of the target sensor multiple times within the preset time period to obtain multiple output values.
When the output value of the target sensor is greater than the preset value, the motion amplitude of the terminal is considered to be large, and when the number of the output values greater than the preset value is large in the plurality of output values recorded in the preset time period, the motion frequency of the terminal in the preset time period is considered to be high, and the interaction between the user and the application is large, for example, when the user plays a racing game on the terminal, the mobile phone is tilted left and right at a high frequency to change the running track of the vehicle.
In step 202, the number of output values greater than a preset value in all the output values in the preset time period is counted.
In the embodiment of the disclosure, the terminal may determine whether the user operation is frequent in the application running process by counting the number of output values greater than the preset value in all the output values of the target sensor in the preset time period, and the application which generally requires frequent operation by the user has a higher requirement on the timely response or the response speed, and the application which does not require frequent operation by the user has a lower requirement on the timely response or the response speed.
The timely response means that after the user performs touch operation on the terminal screen, the terminal can respond to the touch operation of the user within a target time length, and the target time length can be recorded in configuration parameters of the terminal and is determined by hardware conditions of the terminal. In a possible implementation manner, the terminal may determine the type of the application by the number of output values of the target sensor that are greater than a preset value within a preset time period, for example, an application with a high requirement on the timely response or response speed and an application with a low requirement on the timely response or response speed, and the specific process is as follows in step 203 and step 205.
In step 203, when the number of output values greater than the preset number is greater than the preset number, it is determined that the response speed required by the application is greater than the preset threshold.
In the embodiment of the disclosure, when the number of the output values greater than the preset value in the output values of the target sensor in the preset time period is greater than the preset number, the motion amplitude and the motion frequency of the terminal in the preset time period may be considered to be relatively large, the user operates relatively frequently in the running process of the application, and the user has relatively more interaction with the application. In this case, the terminal may determine that the response speed required by the application is greater than the preset threshold, and then the terminal may perform the subsequent step 204.
In one possible implementation, the applications requiring a response speed greater than the preset threshold include game-class applications, for example, when the user plays a game, especially for a breakthrough-class game, the user wants the terminal to respond quickly to any operation due to the limited time or the scene of mutual fight, so as to break the breakthrough smoothly. As can be seen, the game-like application has a high demand for timely response or response speed. Of course, the application requiring the response speed greater than the preset threshold may also include other applications, which are not limited in the embodiment of the present disclosure. Thus, when the response speed required by the application is greater than the preset threshold, the application may be a game-type application.
It should be noted that, the above steps 202 and 203 are one possible implementation manner for the terminal to determine that the response speed required by the application is greater than the preset threshold according to the output value.
In step 204, when no touch operation is detected within a first preset duration, the operating mode of the touch screen is switched to a first low power consumption mode, where the first preset duration is longer than a fixed duration.
The fixed duration may be a duration that the touch screen enters the Doze mode preset by the terminal, or a duration that the terminal enters the Doze mode when no application is running, for example, after the terminal closes all applications, when the touch operation is not detected within the fixed duration, the terminal may switch the operating mode of the touch screen to the Doze mode, which is not limited in this disclosure.
In the embodiment of the disclosure, if the response speed required by the application currently running in the terminal is greater than the preset threshold, since the application has a high requirement on timely response, the terminal needs to provide a higher response speed for the application, and therefore, the touch screen needs to maintain a higher scanning frequency. However, in the running process of the application, when the user does not operate the touch screen for a long time (for example, within the first preset time), it indicates that the user may not need to perform any operation on the terminal currently, and in this case, if the touch screen of the terminal keeps a higher scanning frequency all the time to detect the touch operation of the user, unnecessary power consumption may be caused. Therefore, in order to save power consumption, the terminal may switch the operation mode of the touch screen to a first low power consumption mode, which may be a Doze mode in the related art, which is an operation mode of the touch screen without extinguishing the screen.
In one possible implementation manner, if the touch screen is currently in the high power consumption mode, the terminal may switch the operating mode of the touch screen from the current high power consumption mode to the first low power consumption mode, and specifically, the terminal may switch the operating mode of the touch screen to the first low power consumption mode by reducing the scanning frequency in the high power consumption mode. The high power consumption mode may be an Active mode (Active mode) in the prior art, where the Active mode is another working mode of the touch screen except the Doze mode when the terminal is not turned off, and compared with the Doze mode, the Active mode has a high scanning frequency, high power consumption, and a fast response speed to a touch operation of a user.
Because the power consumption is low in the first low-power mode, but the scanning frequency is also low, when the touch screen is clicked for the first time, the touch screen does not respond, and the response speed required by the application is high, therefore, compared with the fixed duration for entering the Doze mode in the prior art, the terminal can improve the duration for the touch screen to enter the first low-power mode, if the first preset duration is longer than the fixed duration, the time for the touch screen to enter the first low-power mode is prolonged, so that the touch screen is not easy to enter the first low-power mode, and the probability of no response when the touch screen is clicked for the first time is reduced.
In step 205, when the number of output values greater than the preset value is less than the preset number, it is determined that the response speed required by the application is less than the preset threshold.
In the embodiment of the disclosure, when the number of the output values greater than the preset value in the output values of the target sensor in the preset time period is smaller than the preset number, the motion amplitude and the motion frequency of the terminal in the preset time period may be considered to be smaller, and then, the operation of the user in the running process of the application may be considered to be less, and the interaction between the user and the application is less. In this case, the terminal may determine that the response speed required by the application is less than the preset threshold, and then the terminal may perform the subsequent step 206.
In a possible implementation manner, the application requiring a response speed less than the preset threshold includes a video application, for example, when a user watches a video, the user generally only needs to open a playing interface of the video to watch the video, and before the video is played, the user does not need to perform any operation on the touch screen and may not need to interact with the terminal. It can be seen that video-like applications do not have much demand for timely response or response speed. Of course, the applications requiring a response speed smaller than the preset threshold may also include other applications, such as reading applications, which is not limited in the embodiment of the present disclosure. Therefore, when the response speed required by the application is less than the preset threshold, the application may be a video-type application or a reading-type application.
It should be noted that, the above step 202 and step 205 are one possible implementation manner for the terminal to determine that the response speed required by the application is smaller than the preset threshold according to the output value.
In step 206, when no touch operation is detected within a second preset duration, the operating mode of the touch screen is switched to a second low power consumption mode, where the second preset duration is less than the fixed duration.
In the embodiment of the disclosure, if the response speed required by the application currently running by the terminal is less than the preset threshold, the terminal does not need to provide a higher response speed for the application because the application has low requirement on timely response, and therefore, the touch screen does not need to keep a higher scanning frequency. Therefore, in the running process of the application, when the user does not operate the touch screen for a long time (for example, within the second preset time), it indicates that the user may not need to perform any operation on the terminal currently, and in this case, the terminal may switch the operating mode of the touch screen to the second low power consumption mode to avoid unnecessary power consumption.
In one possible implementation manner, if the touch screen is currently in a high power consumption mode (e.g., Active mode), the terminal may switch the operating mode of the touch screen from the current high power consumption mode to a second low power consumption mode, and specifically, the terminal may switch the operating mode of the touch screen to the second low power consumption mode by reducing the scanning frequency in the high power consumption mode.
In one possible implementation, the second low power mode may be the same as the first low power mode, e.g., the first low power mode may also be a Doze mode in the prior art. Certainly, the second low power consumption mode and the first low power consumption mode may also be different, for example, because the requirement on the timely response or response speed of the application on the touch screen is not high, the scanning frequency of the touch screen in the second low power consumption mode may be smaller than the scanning frequency of the touch screen in the first low power consumption mode, so that compared with the Doze mode in the prior art, the scanning frequency may be reduced more in the second low power consumption mode, and the power consumption of the touch screen after entering the second low power consumption mode is lower.
Because the requirement of the application on the response speed is not high, compared with the fixed time length for entering the Doze mode in the prior art, the terminal can reduce the time length for the touch screen to enter the second low-power-consumption mode, and if the second preset time length is less than the fixed time length, the time for the touch screen to enter the second low-power-consumption mode is advanced, so that the touch screen can enter the second low-power-consumption mode more easily, and the state of saving power consumption is achieved more quickly.
It should be noted that the steps 203 to 204 and the steps 205 to 206 are two parallel steps, and after the terminal executes the steps 201 and 202, the terminal executes the steps 203 to 204 or executes the steps 205 to 206, that is, the method provided by the embodiment of the present disclosure may include the steps 201, 202, 203 and 204 or the steps 201, 202, 205 and 206.
In the prior art, for any application, because the time for the touch screen to enter the Doze mode is fixed, the application with high response requirement may not be able to respond in time because of entering the Doze mode more quickly, and for the application with low response requirement, the application may not be able to save power more quickly because of entering the Doze mode more slowly, and response speed and power consumption cannot be better considered. In the disclosure, the terminal can control the touch screen to enter the low power consumption mode at different times according to different applications, and response speed and power consumption can be better considered.
It should be noted that, in the embodiment of the present disclosure, each time an application is started, a terminal records an output value of a target sensor in a preset time period after the application is started, and determines, according to the output value, whether a response speed required by the application currently running in a foreground is greater than a preset threshold or less than the preset threshold, where in reality, the terminal may also record only when the application is started for the first time, or record only when the application is started for several times before the application, and after determining the type of the application according to the record, correspondingly store the application identifier and the type of the application. Therefore, after the terminal starts the application next time, the application type corresponding to the application identifier can be directly inquired according to the application identifier of the application, and therefore whether the response speed required by the application is greater than or less than the preset threshold value is determined.
It is understood that step 204 or step 206 is a process in which the touch screen may enter the first low power consumption mode or the second low power consumption mode to save power consumption when the user does not operate the touch screen for a long time. When the touch screen is in the first low-power-consumption mode or the second low-power-consumption mode, the scanning frequency of the touch screen is low, the probability that the touch operation of the user on the touch screen is detected is low, and if the touch operation of the user is detected once by the touch screen, the fact that the user may need to perform corresponding operation on the terminal currently means that, in this case, in order to quickly respond to the operation of the user, the terminal may switch the working mode of the touch screen from the current first low-power-consumption mode or the current second low-power-consumption mode to the high-power-consumption mode.
In the embodiment of the disclosure, the output values of the target sensor are recorded within a preset time period after the application is started, and the time for the touch screen to enter the low power consumption mode is controlled according to the output values. When the application is determined to have higher requirement on the response speed according to the output value, the terminal can prolong the time for the touch screen to enter the low power consumption mode, so that the touch screen is not easy to enter the low power consumption mode, and the probability of no response when a user clicks the touch screen is reduced; when the requirement of the application on the response speed is determined to be low according to the output value, the terminal can shorten the time for the touch screen to enter the low-power-consumption mode, so that the touch screen can enter the low-power-consumption mode more easily, and the state of saving power consumption can be achieved more quickly. The requirement of the application on the response speed is analyzed according to the output value condition of the target sensor in the application running process, so that the touch screen is controlled to enter a low power consumption mode at different time aiming at the application with different response speed requirements, the response speed and the power consumption can be better considered, the balance between the response speed and the power consumption is realized, and the power consumption of the system is integrally reduced.
In addition, for the application with lower requirement on response speed, the terminal can further reduce the scanning frequency of the touch screen after entering the low power consumption mode, so that the touch screen can save more power consumption in the low power consumption mode.
Fig. 3 is a block diagram illustrating a touch screen control apparatus according to an exemplary embodiment. Referring to fig. 3, the apparatus includes a recording module 301 and a switching module 302.
The recording module 301 is configured to record an output value of the target sensor when the application is operated within a preset time period after the application is started;
the switching module 302 is configured to determine, according to the output value, that the response speed required by the application is greater than a preset threshold, and when no touch operation is detected within a first preset time period, switch the operating mode of the touch screen to a first low power consumption mode, where the first preset time period is greater than a fixed time period;
the switching module 302 is further configured to switch the operating mode of the touch screen to a second low power consumption mode when it is determined that the response speed required by the application is less than a preset threshold according to the output value and no touch operation is detected within a second preset time period, where the second preset time period is less than the fixed time period.
In a possible implementation manner, the output value includes an acceleration or a tilt angle, and the switching module 302 is configured to count the number of output values greater than a preset value in all the output values in the preset time period; and when the number is larger than the preset number, determining that the response speed required by the application is larger than the preset threshold value.
In a possible implementation manner, the output value includes an acceleration or a tilt angle, and the switching module 302 is configured to count the number of output values greater than a preset value in all the output values within the preset time period; and when the number is smaller than the preset number, determining that the response speed required by the application is smaller than the preset threshold value.
In one possible implementation, the applications requiring a response speed greater than the preset threshold include game-type applications, and the applications requiring a response speed less than the preset threshold include video-type applications.
In one possible implementation, the second low power mode is the same as the first low power mode; or the scanning frequency of the touch screen in the second low power consumption mode is less than the scanning frequency of the touch screen in the first low power consumption mode.
In the embodiment of the disclosure, the output values of the target sensor are recorded within a preset time period after the application is started, and the time for the touch screen to enter the low power consumption mode is controlled according to the output values. When the application is determined to have higher requirement on the response speed according to the output value, the terminal can prolong the time for the touch screen to enter the low power consumption mode, so that the touch screen is not easy to enter the low power consumption mode, and the probability of no response when a user clicks the touch screen is reduced; when the requirement of the application on the response speed is determined to be low according to the output value, the terminal can shorten the time for the touch screen to enter the low-power-consumption mode, so that the touch screen can enter the low-power-consumption mode more easily, and the state of saving power consumption can be achieved more quickly. The requirement of the application on the response speed is analyzed according to the output value condition of the target sensor in the application running process, so that the touch screen is controlled to enter a low power consumption mode at different time aiming at the application with different response speed requirements, the response speed and the power consumption can be better considered, the balance between the response speed and the power consumption is realized, and the power consumption of the system is integrally reduced.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating a touch screen control apparatus 400 according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, input/output (I/O) interface 412, sensor component 414, and communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described touch screen control method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer readable storage medium, such as a memory, storing a computer program is further provided, where the computer program is executed by a processor to implement the touch screen control method in the embodiment corresponding to fig. 1 or fig. 2. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A touch screen control method is applied to a terminal with a touch screen, and the method comprises the following steps:
after the application is started, recording an output value of a target sensor when the application is operated within a preset time period, wherein the output value comprises an acceleration or an inclination angle;
counting the number of output values which are larger than a preset value in all the output values in the preset time period; when the number is larger than a preset number, determining that the response speed required by the application is larger than a preset threshold value, and when no touch operation is detected within a first preset time length, switching the working mode of the touch screen to a first low power consumption mode, wherein the first preset time length is larger than a fixed time length;
and when the response speed required by the application is determined to be smaller than the preset threshold value according to the output value and the touch operation is not detected within a second preset time, switching the working mode of the touch screen to a second low-power-consumption mode, wherein the second preset time is smaller than the fixed time.
2. The method of claim 1, wherein said determining from the output value that the response speed required by the application is less than a preset threshold comprises:
counting the number of output values which are larger than a preset value in all the output values in the preset time period;
and when the number is smaller than a preset number, determining that the response speed required by the application is smaller than the preset threshold value.
3. The method of claim 1, wherein the applications requiring a response speed greater than the preset threshold comprise game-like applications and the applications requiring a response speed less than the preset threshold comprise video-like applications.
4. The method of claim 1, wherein the second low power mode is the same as the first low power mode; or the like, or, alternatively,
the scanning frequency of the touch screen in the second low-power mode is smaller than the scanning frequency of the touch screen in the first low-power mode.
5. A touch screen control device, applied to a terminal having a touch screen, the device comprising:
the recording module is used for recording an output value of the target sensor when the application is operated within a preset time period after the application is started, wherein the output value comprises an acceleration or an inclination angle;
the switching module is used for counting the number of output values which are larger than a preset numerical value in all the output values in the preset time period; when the number is larger than a preset number, determining that the response speed required by the application is larger than a preset threshold value, and when no touch operation is detected within a first preset time length, switching the working mode of the touch screen to a first low power consumption mode, wherein the first preset time length is larger than a fixed time length;
the switching module is further configured to switch the operating mode of the touch screen to a second low power consumption mode when it is determined that the response speed required by the application is smaller than the preset threshold according to the output value and the touch operation is not detected within a second preset duration, where the second preset duration is smaller than the fixed duration.
6. The device according to claim 5, wherein the switching module is configured to count the number of output values greater than a preset value in all output values within the preset time period; and when the number is smaller than a preset number, determining that the response speed required by the application is smaller than the preset threshold value.
7. The apparatus of claim 5, wherein the applications requiring a response speed greater than the preset threshold comprise game-like applications and the applications requiring a response speed less than the preset threshold comprise video-like applications.
8. The apparatus of claim 5, wherein the second low power mode is the same as the first low power mode; or the scanning frequency of the touch screen in the second low-power mode is smaller than the scanning frequency of the touch screen in the first low-power mode.
9. A touch screen control apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the application is started, recording an output value of a target sensor when the application is operated within a preset time period, wherein the output value comprises an acceleration or an inclination angle;
counting the number of output values which are larger than a preset value in all the output values in the preset time period; when the number is larger than a preset number, determining that the response speed required by the application is larger than a preset threshold value, and when no touch operation is detected within a first preset time length, switching the working mode of the touch screen to a first low power consumption mode, wherein the first preset time length is larger than a fixed time length;
and when the response speed required by the application is determined to be smaller than the preset threshold value according to the output value and the touch operation is not detected within a second preset time, switching the working mode of the touch screen to a second low-power-consumption mode, wherein the second preset time is smaller than the fixed time.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1-4.
CN201711315984.2A 2017-12-12 2017-12-12 Touch screen control method and device Active CN107943347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711315984.2A CN107943347B (en) 2017-12-12 2017-12-12 Touch screen control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711315984.2A CN107943347B (en) 2017-12-12 2017-12-12 Touch screen control method and device

Publications (2)

Publication Number Publication Date
CN107943347A CN107943347A (en) 2018-04-20
CN107943347B true CN107943347B (en) 2020-12-04

Family

ID=61943801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711315984.2A Active CN107943347B (en) 2017-12-12 2017-12-12 Touch screen control method and device

Country Status (1)

Country Link
CN (1) CN107943347B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110176158A (en) * 2018-07-09 2019-08-27 深圳睿尚教育科技有限公司 A kind of record live streaming switching system and its method
CN109144224B (en) * 2018-09-26 2020-08-07 Oppo广东移动通信有限公司 Power consumption optimization method and device for touch screen
CN109992315B (en) * 2019-04-09 2022-03-25 Oppo广东移动通信有限公司 Touch screen control method and device, terminal and storage medium
CN110007800B (en) * 2019-04-10 2020-11-10 广州视源电子科技股份有限公司 Control method, device and equipment of touch operation mode and storage medium
CN110060460A (en) * 2019-05-07 2019-07-26 广东好太太科技集团股份有限公司 A kind of the RF touch remote controller and its regulating power consumption method of adjustable power consumption
CN111625128A (en) * 2020-05-12 2020-09-04 Oppo广东移动通信有限公司 Control method and control device of touch screen, mobile terminal and storage medium
CN112035050B (en) * 2020-09-10 2022-03-04 Oppo(重庆)智能科技有限公司 Control method, control device, storage medium and terminal device
CN112286286B (en) * 2020-10-28 2023-08-25 广东小天才科技有限公司 Standby control method, wearable device and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630493A (en) * 2015-12-22 2016-06-01 周奇 Method and device for regulating sleep time of mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262465B (en) * 2010-05-26 2016-10-05 鸿富锦精密工业(深圳)有限公司 There is electronic installation and the touch inputting method thereof of touch input unit
US9354744B2 (en) * 2014-06-09 2016-05-31 Sony Corporation Adaptive touch panel synchronization
US9858409B2 (en) * 2015-11-23 2018-01-02 International Business Machines Corporation Enhancing security of a mobile device using pre-authentication sequences
WO2019014888A1 (en) * 2017-07-20 2019-01-24 深圳市汇顶科技股份有限公司 Method for detecting touch point, and touch controller
CN107943409B (en) * 2017-12-07 2020-12-11 北京小米移动软件有限公司 Touch screen control method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630493A (en) * 2015-12-22 2016-06-01 周奇 Method and device for regulating sleep time of mobile terminal

Also Published As

Publication number Publication date
CN107943347A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107943347B (en) Touch screen control method and device
CN107943409B (en) Touch screen control method and device
CN107608561B (en) Touch screen control method and device
EP3188066B1 (en) A method and an apparatus for managing an application
US20170344192A1 (en) Method and device for playing live videos
EP3182716A1 (en) Method and device for video display
US10409684B2 (en) Method, device and storage medium for cleaning memory
CN106766022B (en) Sensor control method and device
EP3136793A1 (en) Method and apparatus for awakening electronic device
EP3133874A1 (en) Method and apparatus for starting energy saving mode
CN105786507B (en) Display interface switching method and device
CN105912450B (en) Application state information display method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN111031177A (en) Screen recording method, device and readable storage medium
CN105511777B (en) Session display method and device on touch display screen
CN112839177B (en) Lens control method, lens control device and storage medium
CN106547462B (en) Photographing control method and device and mobile terminal
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN109862169B (en) Electronic equipment control method, device and storage medium
CN112130719B (en) Page display method, device and system, electronic equipment and storage medium
US11221734B2 (en) Punch-hole screen display method and apparatus
CN105786561B (en) Method and device for calling process
CN108874450B (en) Method and device for waking up voice assistant
CN109922203B (en) Terminal, screen off method and device

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