CN107943409B - Touch screen control method and device - Google Patents

Touch screen control method and device Download PDF

Info

Publication number
CN107943409B
CN107943409B CN201711285269.9A CN201711285269A CN107943409B CN 107943409 B CN107943409 B CN 107943409B CN 201711285269 A CN201711285269 A CN 201711285269A CN 107943409 B CN107943409 B CN 107943409B
Authority
CN
China
Prior art keywords
application
touch screen
running
preset time
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
CN201711285269.9A
Other languages
Chinese (zh)
Other versions
CN107943409A (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 CN201711285269.9A priority Critical patent/CN107943409B/en
Publication of CN107943409A publication Critical patent/CN107943409A/en
Application granted granted Critical
Publication of CN107943409B publication Critical patent/CN107943409B/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3262Power saving in digitizer or tablet
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • 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
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving

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: acquiring the running characteristics of the currently running application; determining the type of the application according to the operation characteristics and the classification model of the application; when the application is determined to be the first application type and the touch operation is not 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 longer than a fixed time length; and when the application is determined to be the second application type and the touch operation is not detected within the second preset time, switching the working mode of the touch screen to a second low power consumption mode, wherein the second preset time is less than the fixed time. The method and the device can give consideration to response speed and power consumption well, realize balance between the response speed and the power consumption, and reduce the power consumption of the system as a whole.

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 applied in a terminal having a touch screen, the method including:
acquiring the running characteristics of the currently running application, wherein the running characteristics of the application are the running characteristics reflecting the frequency of the application being operated;
determining the type of the application according to the operation characteristics of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operation characteristics corresponding to a first application type requiring response speed to be greater than a preset threshold value and operation characteristics corresponding to a second application type requiring response speed to be less than the preset threshold value;
when the application is determined to be a first application type and touch operation is not 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 longer than a fixed time length;
and when the application is determined to be a second application type 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 shorter than the fixed time.
According to the method provided by the embodiment of the disclosure, after the application is started, the running characteristics of the application are obtained, and whether the application has a high requirement on the response speed or has a low requirement on the response speed is determined according to the running characteristics and the classification model of the application. When the application has a high requirement on response speed, 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 application has a low requirement on the response speed, 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 determined according to the running characteristics of the application, 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 running feature of the application includes:
and at least one of the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor and the total starting number and the total running time of the application in a preset time period after the application is started.
According to the method provided by the embodiment of the disclosure, the operation characteristics of the frequency of the operation of the application can be reflected by acquiring the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor, the total starting number, the total operation duration and the like, so that the terminal can determine whether the application has a high requirement on the response speed or has a low requirement on the response speed according to the operation characteristics and the classification model of the application, and further adopt different power consumption saving strategies according to different application types.
In a second implementation manner of the first aspect, the obtaining process of the number of clicks of the touch screen and the change frequency and the change amplitude of the output value of the target sensor includes:
after the application is started, recording the click operation detected in the preset time period and the output value of the target sensor;
counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen;
and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
According to the method provided by the embodiment of the disclosure, the number of clicks of the touch screen is obtained by counting the detected clicking operations in the preset time period after the application is started, and the change frequency and the change amplitude of the output value are obtained by recording the output value of the target sensor in the preset time period after the application is started, so that a mode for acquiring the running characteristics is provided.
In a third implementation manner of the first aspect, the obtaining process of the total starting times and the total operating time includes:
and counting the total starting times and the total running time of the application according to the running log of the application, wherein the running log is used for recording the time of starting running and finishing running of the application each time.
According to the method provided by the embodiment of the disclosure, the total operation times and the total operation duration of the application are obtained through statistics of the time of starting operation and finishing operation of the application each time recorded in the operation log, and a mode of obtaining the total start times and the total operation duration in the operation characteristics is provided.
In a fourth implementation form of the first aspect, the first application type comprises a game-type application and an input method application, and the second application type comprises a reading-type application and a video-type application.
According to the method provided by the embodiment of the disclosure, the game application can be of the first application type due to the high requirement of the game application on the timely response or the response speed, and the video application can be of the second application type due to the low requirement of the video application on the timely response or the response speed, so that a specific example of the first application type and the second application type is provided.
In a fifth implementation form of the first aspect, the second low power consumption mode is the same as the first low power consumption 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.
According to the method provided by the embodiment of the disclosure, since the requirement of the second application on the timely response or response speed of the touch screen is not high, the scanning frequency of the touch screen in the second low-power mode may be less than the scanning frequency of the touch screen in the first low-power mode, so that compared with the Doze mode, the scanning frequency may be reduced more in the second low-power mode, and the power consumption of the touch screen after entering the second low-power mode is lower.
According to a second aspect of the embodiments of the present disclosure, there is provided a touch screen control device applied to a terminal having a touch screen, the device including:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the running characteristics of the currently running application, and the running characteristics of the application are the running characteristics reflecting the frequency of the application being operated;
the determining module is used for determining the type of the application according to the operating characteristics and the classification model of the application, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises the operating characteristics corresponding to a first application type requiring the response speed to be greater than a preset threshold value and the operating characteristics corresponding to a second application type requiring the response speed to be less than the preset threshold value;
the switching module is used for switching the working mode of the touch screen to a first low-power-consumption mode when the application is determined to be a first application type and touch operation is not detected within a first preset time length, wherein the first preset time length is longer 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 application is of a second application type and a touch operation is not detected within a second preset time period, where the second preset time period is shorter than the fixed time period.
In a first implementation manner of the second aspect, the running feature of the application includes:
and at least one of the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor and the total starting number and the total running time of the application in a preset time period after the application is started.
In a second implementation manner of the second aspect, the obtaining module is configured to record, after the application is started, a click operation detected within the preset time period and an output value of the target sensor; counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen; and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
In a third implementation manner of the second aspect, the obtaining module is configured to count a total starting time and a total running duration of the application according to a running log of the application, where the running log is used to record a time for starting and ending running of the application each time.
In a fourth implementation form of the second aspect, the first application type comprises a game-type application and an input method application, and the second application type comprises a reading-type application and a video-type application.
In a fifth implementation form of the second aspect, the second low power consumption mode is the same as the first low power consumption 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.
According to a third aspect of the embodiments of the present disclosure, there is provided a touch screen control apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the running characteristics of the currently running application, wherein the running characteristics of the application are the running characteristics reflecting the frequency of the application being operated;
determining the type of the application according to the operation characteristics of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operation characteristics corresponding to a first application type requiring response speed to be greater than a preset threshold value and operation characteristics corresponding to a second application type requiring response speed to be less than the preset threshold value;
when the application is determined to be a first application type and touch operation is not 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 longer than a fixed time length;
and when the application is determined to be a second application type 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 shorter 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 embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described in further detail below 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, an operation characteristic of a currently running application is obtained, where the operation characteristic of the application is an operation characteristic reflecting a frequency with which the application is operated.
In step 102, the type of the application is determined according to the operating characteristics of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operating characteristics corresponding to a first application type requiring a response speed greater than a preset threshold value and operating characteristics corresponding to a second application type requiring a response speed less than the preset threshold value.
In step 103, when it is determined that the application is the first application type and the touch operation is not detected within the first preset duration, the operating mode of the touch screen is switched to the first low power consumption mode, where the first preset duration is longer than the fixed duration.
In step 104, when it is determined that the application is of the second application type and the touch operation is not detected within the second preset time period, the operating mode of the touch screen is switched to the second low power consumption mode, where the second preset time period is shorter than the fixed time period.
In the embodiment of the disclosure, after the application is started, the running characteristics of the application are acquired, and whether the application has a high requirement on the response speed or has a low requirement on the response speed is determined according to the running characteristics of the application and the classification model. When the application has a high requirement on response speed, 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 application has a low requirement on the response speed, 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 determined according to the running characteristics of the application, 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 operating characteristics of the application include:
and at least one of the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor and the total starting number and the total running time of the application in a preset time period after the application is started.
In one possible implementation manner, the obtaining process of the number of clicks of the touch screen and the change frequency and the change amplitude of the output value of the target sensor includes:
after the application is started, recording the click operation detected in the preset time period and the output value of the target sensor;
counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen;
and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
In a possible implementation manner, the obtaining process of the total starting times and the total running time includes:
and counting the total starting times and the total running time of the application according to the running log of the application, wherein the running log is used for recording the time of starting running and finishing running of the application each time.
In one possible implementation, the first application type includes a game-type application and an input method application, and the second application type includes a reading-type application and a video-type application.
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, an operation characteristic of a currently running application is obtained, where the operation characteristic of the application is an operation characteristic reflecting a frequency with which the application is operated.
In one possible implementation, the operating characteristics of the application include: and at least one of the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor and the total starting number and the total running time of the application in a preset time period after the application is started. Of course, the operation feature of the application may also include other operation features capable of reflecting the frequency with which the application is operated, which is not limited by the embodiment of the present disclosure.
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. The number of clicks of the touch screen refers to the number of clicks of the touch screen by the user.
In one possible implementation manner, the obtaining process of the number of clicks of the touch screen and the change frequency and the change amplitude of the output value of the target sensor in the preset time period includes the following steps a to c:
a. and after the application is started, recording the click operation detected in the preset time period and the output value of the target sensor.
For example, after the application is started, the terminal may display an operation interface of the application, and a user may perform a click operation on the operation interface to implement a corresponding function. Of course, the terminal may also record other information such as the time of each click operation, which is not limited in this disclosure.
In addition, the terminal may move during the operation of the user, and the operation amplitude and frequency of the user may affect the motion amplitude and frequency of the terminal, which may be reflected by the output value of the object sensor. To this end, the terminal may record the output value of the target sensor for each application in real time or at a preset time interval (e.g., 5ms or 10ms) for a preset period of time during which the application is running since the start.
b. And counting the times of the detected click operations in the preset time period to obtain the times of the click operations of the touch screen.
For example, in a preset time period after the application is started, the terminal may detect a multi-click operation, and the terminal may perform a multi-record for the multi-click operation, so that the terminal may count the recorded number of times of the click operation to obtain the number of times of the user clicks the touch screen in the preset time period.
It should be noted that, the above steps a to b are only one possible implementation manner for the terminal to obtain the number of clicks, and in this manner, the terminal records a single click operation each time, so that the number of clicks of the touch screen needs to be obtained by counting the number of detected click operations in a preset time period.
In fact, the terminal may also obtain the number of clicks in other manners, for example, after the application is started, when the terminal detects a click operation for the first time, the number of clicks of the touch screen may be recorded as 1, and when the click operation is detected each time, the number of clicks that has been recorded may be added by 1, so that the terminal may obtain the number of clicks of the touch screen by reading the record.
c. And determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
In step c, the terminal may record all output values of the target sensor in the preset time period according to a time sequence, for the change frequency, the terminal may count time intervals between every two different output values adjacent to the time sequence in all the output values, determine a change frequency according to each time interval, indicate how often the output values change, and finally average all the calculated change frequencies to obtain the change frequency of the output value of the target sensor in the preset time period.
For the variation range, the terminal may obtain the maximum value and the minimum value of all the output values as the variation range of the output value of the target sensor in the preset time period, or the terminal may count the difference between every two different output values adjacent in time sequence among all the output values, and finally, average all the calculated differences to obtain the variation range of the output value of the target sensor in the preset time period.
Of course, the above is only one possible implementation manner for the terminal to determine the change frequency and the change amplitude of the output value, and the terminal may also determine the change frequency and the change amplitude of the output value in other manners, for example, the terminal may generate an output value change curve according to the output value of the target sensor in the preset time period; and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period according to the output value change curve.
Or, the terminal may count the number of output values greater than the preset value among all the output values, and determine the change frequency and the change amplitude of the output value of the target sensor according to the number. For example, in a preset time period after the application is started, the terminal may record the output value of the target sensor for multiple times to obtain multiple output values, and the terminal may count the number of output values greater than a preset value among the multiple output values.
The above steps a to c provide a possible implementation manner of acquiring the number of clicks of the touch screen in the operation characteristic and the change frequency and the change amplitude of the output value of the target sensor.
In one possible implementation manner, the obtaining process of the total starting times and the total running time of the application includes: and counting the total starting times and the total running time of the application according to the running log of the application, wherein the running log is used for recording the time of starting running and finishing running of the application each time. The total starting times may or may not include the current starting; the total operation duration of the application may include the current operation duration or may not include the current operation duration, and the current operation duration refers to a duration corresponding to a preset time period.
Aiming at the fact that the total starting times comprise the starting, the total running duration comprises the running, and the terminal can count the times of recording the application starting running time in the running log to obtain the total starting times; according to the time for starting and finishing the operation each time before the start, the historical operation time length of the application is calculated, the total operation time length is obtained by adding the historical operation time length to the time length corresponding to the preset time period, and a mode for obtaining the total starting times and the total operation time length in the operation characteristics is provided. The terminal may determine the time of the current starting operation from all the starting operation times recorded in the operation log, for example, the latest time is the time of the current starting operation.
Aiming at the condition that the total starting times do not comprise the starting, the total running time does not comprise the running, the terminal can count the times of the running finishing time of the application recorded in the running log to obtain the historical starting times of the application, and the historical starting times are taken as the total running times of the application; according to the time of starting operation and finishing operation each time before the current start, the historical operation time length of the application is calculated, the historical operation time length is used as the total operation time length of the application, and a mode of obtaining the total starting times and the total operation time length in the operation characteristics is provided.
In step 202, the type of the application is determined according to the operating characteristics of the application and a classification model, where the classification model is obtained by training based on a plurality of sample data, where the sample data includes operating characteristics corresponding to a first application type requiring a response speed greater than a preset threshold, and operating characteristics corresponding to a second application type requiring a response speed less than the preset threshold.
Wherein the types of applications include a first application type and a second application type. The first application type and the second application type have different requirements on timely response or response speed, the first application type is an application with frequent user operation, and the requirement on the timely response or response speed is high, for example, the required response speed is greater than a preset threshold; the second application type is an application with less user operations, and has a low requirement on timely response or response speed, for example, the required response speed is less than a preset threshold. 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 the embodiment of the present disclosure, the classification model has a capability of determining the type of the application according to the operation characteristics of the application, and the capability can be obtained by training the classification model through corresponding sample data in the process of actually establishing the classification model. For example, the classification model is trained based on the running features of a plurality of sample applications of a first application type and the running features of a plurality of sample applications of a second application type, so that the classification model established based on the running features corresponding to the plurality of first application types and the running features corresponding to the second application type and other sample data can determine the type of the application according to the running features of any application.
The classification model may be run on a terminal, and the terminal may input the running characteristics of the application into the classification model after obtaining the running characteristics of the application, and an output result of the classification model is used to indicate a type of the application, such as indicating whether the application is a first application type or a second application type. Of course, if the memory required by the classification model is large, the classification model may also be run on other devices, such as a server, and the terminal may establish a connection with the server through a wireless or wired network. The terminal may obtain the operation characteristics of the application, provide the operation characteristics to the server based on the connection between the two, and the server may input the operation characteristics of the application into the classification model and provide an output result of the classification model to the terminal, so that the terminal may determine whether the application is of the first application type or the second application type, which is not limited in the embodiment of the present disclosure.
After determining what type of application is currently running, the terminal may adopt a corresponding power consumption saving policy, specifically, when the application is of the first application type, perform the subsequent step 203, and when the application is of the second application type, perform the subsequent step 204.
The first application type includes, but is not limited to, game type applications and input method applications, for example, when a user plays a game, especially for a breakthrough type game, the user wants a terminal to quickly respond to any operation due to limited time or a scene of mutual fight, so that the breakthrough can be smoothly performed. When the user edits the information by using the input method, especially the instant messaging application, because the chat scene among friends is involved, the user hopes that the message which the user wants to reply can be quickly input in the terminal, so that the situation that the other party waits for too long time is avoided. Therefore, the game application and the input method application have high requirements on timely response or response speed.
The second application type includes, but is not limited to, a reading type application and a video type application, for example, when a user reads an electronic book, the user often needs to stay on a current page for a period of time to see the entire content of the current page, and during the period of time, the user does not operate the touch screen. When a user watches the video, the user generally only needs to open the playing interface of the video to watch the video, and before the video is played, the user does not need to operate the touch screen. It can be seen that reading-type applications and video-type applications do not have very high requirements for timely response or response speed.
In step 203, when it is determined that the application is the first application type and the touch operation is not detected within the first preset duration, the operating mode of the touch screen is switched to the first low power consumption mode, where the first preset duration is longer than the 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 present disclosure, if the application currently running in the terminal is the first application type, since the first application type has a high requirement for timely response, the terminal needs to provide a higher response speed for the first application type, 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), 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-consumption mode, but the scanning frequency is low, when the touch screen is clicked for the first time, the touch screen does not respond, and the response speed required by the first application type is high, therefore, compared with the fixed time length for entering the Doze mode in the prior art, the terminal can improve the time length for the touch screen to enter the first low-power-consumption mode, if the first preset time length is greater than the fixed time length, the time for the touch screen to enter the first low-power-consumption mode is prolonged, so that the touch screen is not easy to enter the first low-power-consumption mode, and the probability of no response when the touch screen is clicked for the first time is reduced.
In step 204, when it is determined that the application is of the second application type and no touch operation is 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 shorter than the fixed time period.
In the embodiment of the disclosure, if the application currently running in the terminal is the second application type, the terminal does not need to provide a higher response speed for the second application type because the requirement of the second application type on timely response is not high, and therefore, the touch screen does not need to keep a higher scanning frequency. Therefore, in the process of running the second application type, when the user does not operate the touch screen for a long time (for example, within a 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 touch screen by the second application type 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 second application type 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 can be achieved more quickly.
It should be noted that, after the terminal executes the steps 201 and 202, when it is determined that the currently running application is of the first application type, the terminal executes the step 203, and when it is determined that the currently running application is of the second application type, the terminal executes the step 203, that is, the method provided by the embodiment of the present disclosure may include the steps 201, 202, 203, and the subsequent step 205, or the steps 201, 202, 204, and the subsequent step 205.
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, the terminal acquires the running feature of the application each time the application is started, and determines whether the application is of the first application type or the second application type according to the running feature and the classification model, and actually, the terminal may also acquire the running feature of the application only when the application is started for the first time, or acquire the running feature of the application only when the application is started several times before the application, and after determining the type of the application according to the running feature of the application, store the application identifier and the type of the application correspondingly. Therefore, after the terminal starts the application next time, the type corresponding to the application identifier can be directly inquired according to the application identifier of the application, and the application is determined to be the first application type or the second application type.
In step 205, when a touch operation is detected, the operation mode of the touch screen is switched to a high power consumption mode.
Wherein the high power consumption mode may be the Active mode mentioned in step 203.
In the embodiment of the disclosure, when the user does not operate the touch screen for a long time, it indicates that the user may not need to perform any operation on the terminal currently, and for this, the touch screen may enter the first low power consumption mode or the second low power consumption mode to save power consumption. 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, after the application is started, the running characteristics of the application are acquired, and whether the application has a high requirement on the response speed or has a low requirement on the response speed is determined according to the running characteristics of the application and the classification model. When the application has a high requirement on response speed, 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 application has a low requirement on the response speed, 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 determined according to the running characteristics of the application, 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 an acquisition module 301, a determination module 302, and a switching module 303.
The obtaining module 301 is configured to obtain an operation characteristic of a currently running application, where the operation characteristic of the application is an operation characteristic reflecting a frequency with which the application is operated;
the determining module 302 is configured to determine the type of the application according to the operation features of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operation features corresponding to a first application type requiring response speed greater than a preset threshold value and operation features corresponding to a second application type requiring response speed less than the preset threshold value;
the switching module 303 is configured to switch the operating mode of the touch screen to a first low power consumption mode when it is determined that the application is the first application type and no touch operation is detected within a first preset duration, where the first preset duration is greater than a fixed duration;
the switching module 303 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 application is of a second application type 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 one possible implementation, the operating characteristics of the application include:
and at least one of the number of clicks of the touch screen, the change frequency and the change amplitude of the output value of the target sensor and the total starting number and the total running time of the application in a preset time period after the application is started.
In a possible implementation manner, the obtaining module 301 is configured to record the click operation detected within the preset time period and the output value of the target sensor after the application is started; counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen; and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
In a possible implementation manner, the obtaining module 301 is configured to count the total starting times and the total running time of the application according to a running log of the application, where the running log is configured to record the time of each starting running and ending running of the application.
In one possible implementation, the first application type includes a game-type application and an input method application, and the second application type includes a reading-type application and a video-type application.
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.
In the embodiment of the disclosure, after the application is started, the running characteristics of the application are acquired, and whether the application has a high requirement on the response speed or has a low requirement on the response speed is determined according to the running characteristics of the application and the classification model. When the application has a high requirement on response speed, 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 application has a low requirement on the response speed, 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 determined according to the running characteristics of the application, 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, a fitness device, a personal digital assistant, or the like terminal.
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 disclosure 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 (14)

1. A touch screen control method is applied to a terminal with a touch screen, and the method comprises the following steps:
acquiring the running characteristics of a currently running application, wherein the running characteristics of the application are running characteristics reflecting the frequency of the application being operated, and the running characteristics of the application comprise: the method comprises the following steps that change frequency and change amplitude of an output value of a target sensor are obtained, and the target sensor is an acceleration sensor;
determining the type of the application according to the operation characteristics of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operation characteristics corresponding to a first application type requiring response speed to be greater than a preset threshold value and operation characteristics corresponding to a second application type requiring response speed to be less than the preset threshold value;
when the application is determined to be a first application type and touch operation is not 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 longer than a fixed time length;
and when the application is determined to be a second application type 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 shorter than the fixed time.
2. The method of claim 1, wherein the running features of the application further comprise:
and at least one of the number of clicks of the touch screen in a preset time period after the application is started and the total starting number and the total running time of the application.
3. The method of claim 2, wherein the obtaining of the number of clicks of the touch screen and the frequency and amplitude of the change in the output value of the target sensor comprises:
after the application is started, recording the click operation detected in the preset time period and the output value of the target sensor;
counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen;
and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
4. The method according to claim 2, wherein the obtaining of the total number of starts and the total running time comprises:
and counting the total starting times and the total running time of the application according to the running log of the application, wherein the running log is used for recording the time of starting running and finishing running of the application each time.
5. The method of claim 1, wherein the first application type comprises a game-like application and an input method application, and wherein the second application type comprises a reading-like application and a video-like application.
6. 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.
7. A touch screen control device, applied to a terminal having a touch screen, the device comprising:
an obtaining module, configured to obtain an operation feature of a currently-running application, where the operation feature of the application is an operation feature that reflects a frequency with which the application is operated, and the operation feature of the application includes: the method comprises the following steps that change frequency and change amplitude of an output value of a target sensor are obtained, and the target sensor is an acceleration sensor;
the determining module is used for determining the type of the application according to the operating characteristics and the classification model of the application, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises the operating characteristics corresponding to a first application type requiring the response speed to be greater than a preset threshold value and the operating characteristics corresponding to a second application type requiring the response speed to be less than the preset threshold value;
the switching module is used for switching the working mode of the touch screen to a first low-power-consumption mode when the application is determined to be a first application type and touch operation is not detected within a first preset time length, wherein the first preset time length is longer 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 application is of a second application type and a touch operation is not detected within a second preset time period, where the second preset time period is shorter than the fixed time period.
8. The apparatus of claim 7, wherein the running features of the application further comprise:
and at least one of the number of clicks of the touch screen in a preset time period after the application is started and the total starting number and the total running time of the application.
9. The device according to claim 8, wherein the obtaining module is configured to record, after the application is started, the click operation detected within the preset time period and the output value of the target sensor; counting the number of times of the detected clicking operation in the preset time period to obtain the number of times of clicking of the touch screen; and determining the change frequency and the change amplitude of the output value of the target sensor in the preset time period.
10. The apparatus according to claim 8, wherein the obtaining module is configured to count a total starting time and a total running time of the application according to a running log of the application, where the running log is used to record a time when the application starts running and ends running each time.
11. The apparatus of claim 7, wherein the first application type comprises a game-like application and an input method application, and wherein the second application type comprises a reading-like application and a video-like application.
12. The apparatus of claim 7, 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.
13. A touch screen control apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the running characteristics of a currently running application, wherein the running characteristics of the application are running characteristics reflecting the frequency of the application being operated, and the running characteristics of the application comprise: the method comprises the following steps that change frequency and change amplitude of an output value of a target sensor are obtained, and the target sensor is an acceleration sensor;
determining the type of the application according to the operation characteristics of the application and a classification model, wherein the classification model is obtained by training based on a plurality of sample data, and the sample data comprises operation characteristics corresponding to a first application type requiring response speed to be greater than a preset threshold value and operation characteristics corresponding to a second application type requiring response speed to be less than the preset threshold value;
when the application is determined to be a first application type and touch operation is not 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 longer than a fixed time length;
and when the application is determined to be a second application type 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 shorter than the fixed time.
14. 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-6.
CN201711285269.9A 2017-12-07 2017-12-07 Touch screen control method and device Active CN107943409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711285269.9A CN107943409B (en) 2017-12-07 2017-12-07 Touch screen control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711285269.9A CN107943409B (en) 2017-12-07 2017-12-07 Touch screen control method and device

Publications (2)

Publication Number Publication Date
CN107943409A CN107943409A (en) 2018-04-20
CN107943409B true CN107943409B (en) 2020-12-11

Family

ID=61946060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711285269.9A Active CN107943409B (en) 2017-12-07 2017-12-07 Touch screen control method and device

Country Status (1)

Country Link
CN (1) CN107943409B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943347B (en) * 2017-12-12 2020-12-04 北京小米移动软件有限公司 Touch screen control method and device
CN109144359A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of screen parameter control method, terminal and computer readable storage medium
CN109126138B (en) * 2018-08-31 2022-02-22 腾讯科技(深圳)有限公司 Energy-saving operation method, device, equipment and storage medium of online application program
CN109445667B (en) * 2018-10-30 2021-01-08 维沃移动通信有限公司 Screen mode switching method and device
CN109462699B (en) * 2018-12-26 2020-10-23 惠州Tcl移动通信有限公司 Method for controlling Doze mode of mobile terminal
CN110045908B (en) * 2019-03-18 2021-02-09 华为技术有限公司 Control method and electronic equipment
CN111913553A (en) * 2019-05-07 2020-11-10 中兴通讯股份有限公司 Method and device for controlling power consumption of terminal, terminal and computer readable storage medium
CN112748817A (en) * 2019-10-31 2021-05-04 北京小米移动软件有限公司 Information control method and device, terminal and storage medium
CN111124173B (en) * 2019-11-22 2023-05-16 Oppo(重庆)智能科技有限公司 Working state switching method and device of touch screen, mobile terminal and storage medium
CN110891235B (en) * 2019-12-26 2021-05-04 惠州市锦好医疗科技股份有限公司 Finger-knocking body detection method for behind-the-ear hearing aid
CN114286431B (en) * 2021-12-02 2024-03-22 海尔优家智能科技(北京)有限公司 Method and device for starting low-power mode, storage medium and electronic device
CN114327714A (en) * 2021-12-24 2022-04-12 维沃移动通信有限公司 Application program control method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902349A (en) * 2012-11-08 2013-01-30 山东大学 Method for reducing power consumption of embedded system by contact dynamic sampling technique
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
CN105630493A (en) * 2015-12-22 2016-06-01 周奇 Method and device for regulating sleep time of mobile terminal
CN106814837A (en) * 2015-11-30 2017-06-09 北京壹人壹本信息科技有限公司 A kind of mobile terminal device and its dormancy method to set up
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107197103A (en) * 2017-07-06 2017-09-22 三星电子(中国)研发中心 The power saving progress control method and device of intelligent terminal
CN107402625A (en) * 2017-07-28 2017-11-28 广东欧珀移动通信有限公司 Touch screen scanning method, device, terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902349A (en) * 2012-11-08 2013-01-30 山东大学 Method for reducing power consumption of embedded system by contact dynamic sampling technique
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
CN106814837A (en) * 2015-11-30 2017-06-09 北京壹人壹本信息科技有限公司 A kind of mobile terminal device and its dormancy method to set up
CN105630493A (en) * 2015-12-22 2016-06-01 周奇 Method and device for regulating sleep time of mobile terminal
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107197103A (en) * 2017-07-06 2017-09-22 三星电子(中国)研发中心 The power saving progress control method and device of intelligent terminal
CN107402625A (en) * 2017-07-28 2017-11-28 广东欧珀移动通信有限公司 Touch screen scanning method, device, terminal and computer-readable recording medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107943409B (en) Touch screen control method and device
CN107608561B (en) Touch screen control method and device
CN107943347B (en) Touch screen control method and device
EP3188066B1 (en) A method and an apparatus for managing an application
CN106911961B (en) Multimedia data playing method and device
EP3125530B1 (en) Video recording method and device
JP6355735B2 (en) Method and apparatus for initiating an energy saving mode
CN110611829B (en) Video preloading method and device, electronic equipment and storage medium
CN105224349B (en) Application program deletion prompting method and device
US10409684B2 (en) Method, device and storage medium for cleaning memory
US10292004B2 (en) Method, device and medium for acquiring location information
CN106766022B (en) Sensor control method and device
CN105786507B (en) Display interface switching method and device
EP3264774B1 (en) Live broadcasting method and device for live broadcasting
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
CN107040591B (en) Method and device for controlling client
CN106231640B (en) Wireless access point switching method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN111031177A (en) Screen recording method, device and readable storage medium
CN107480785B (en) Convolutional neural network training method and device
CN113382270B (en) Virtual resource processing method and device, electronic equipment and storage medium
RU2615683C2 (en) Method and device for communication identification performance
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

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