








本发明要求2015年08月27日递交的发明名称为“一种屏幕控制方法及用户终端”的申请号201510535635.6的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application of the application No. 201510535635.6, entitled "A Screen Control Method and User Terminal", filed on Aug. 27, 2015, the contents of which are incorporated herein by reference. .
本发明涉及智能终端技术领域,尤其涉及一种屏幕控制方法及用户终端。The present invention relates to the field of intelligent terminal technologies, and in particular, to a screen control method and a user terminal.
随着智能手机、平板电脑等用户终端的广泛应用,用户越来越喜欢使用用户终端来进行各种娱乐,比如:在用户终端上阅读小说、查看新闻、浏览微博、玩游戏等。通常,用户在进行各种娱乐前,需要按压用户终端上的电源实体按键以点亮屏幕。With the wide application of user terminals such as smart phones and tablet computers, users are more and more fond of using user terminals for various entertainments, such as reading novels on the user terminal, viewing news, browsing microblogs, playing games, and the like. Usually, the user needs to press the power entity button on the user terminal to illuminate the screen before performing various entertainments.
然而实践中发现,用户终端上的电源实体按键一般设置的比较小且位于用户终端一侧的边缘位置,用户需要花较多的时间去查找该电源实体按键所在的位置,并进行按压操作后,才能点亮屏幕,如果电源实体按键的灵敏度下降,用户还需要多次按压。可见,这种方式比较繁琐,操作复杂,点亮屏幕的效率较低。However, in practice, it is found that the power entity button on the user terminal is generally set to be smaller and located at the edge position of the user terminal side, and the user needs to spend more time to find the location of the power entity button, and after pressing, In order to light up the screen, if the sensitivity of the power entity button is reduced, the user also needs to press multiple times. It can be seen that this method is cumbersome, complicated in operation, and low in efficiency in lighting the screen.
发明内容Summary of the invention
本发明实施例提供了一种屏幕控制方法及用户终端,可以提高控制屏幕点亮的效率。The embodiment of the invention provides a screen control method and a user terminal, which can improve the efficiency of controlling the lighting of the screen.
本发明实施例第一方面公开了一种屏幕控制方法,包括:A first aspect of the embodiments of the present invention discloses a screen control method, including:
在黑屏状态下,检测针对屏幕的敲击操作;In the black screen state, detecting a tap operation for the screen;
判断所述敲击操作的敲击力度与预设敲击力度是否匹配;Determining whether the tapping strength of the tapping operation matches the preset tapping strength;
若匹配,则判断所述敲击操作的敲击频率是否属于预设频率范围之内;If it matches, determining whether the tapping frequency of the tapping operation belongs to a preset frequency range;
若属于,则控制所述屏幕由黑屏状态切换为亮屏状态。If it belongs, the screen is controlled to switch from a black screen state to a bright screen state.
在一个可能的实施方式中,在判断所述敲击操作的敲击频率属于预设频率范围之内之后,所述方法还包括:In a possible implementation, after determining that the tapping frequency of the tapping operation is within a preset frequency range, the method further includes:
获取任意两次敲击的敲击点所在的敲击位置;Get the tap position where the tapping point of any two taps is located;
判断任意两个所述敲击位置是否匹配;Determining whether any two of the tap positions match;
若是,则执行所述控制所述屏幕由黑屏状态切换为亮屏状态的步骤。If yes, performing the step of controlling the screen to switch from a black screen state to a bright screen state.
在一个可能的实施方式中,在判断所述敲击操作的敲击频率属于预设频率范围之内之后,所述方法还包括:In a possible implementation, after determining that the tapping frequency of the tapping operation is within a preset frequency range, the method further includes:
判断用户终端当前是否处于待机状态;Determining whether the user terminal is currently in a standby state;
若否,则执行所述控制所述屏幕由黑屏状态切换为亮屏状态的步骤。If not, performing the step of controlling the screen to switch from a black screen state to a bright screen state.
在一个可能的实施方式中,所述判断所述敲击操作的敲击力度与预设敲击力度是否匹配的方式具体为:In a possible implementation manner, the manner of determining whether the tapping strength of the tapping operation matches the preset tapping strength is specifically:
判断多次敲击操作的平均敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配;或,Determining whether the absolute value of the difference between the average tapping strength of the multiple tapping operation and the preset tapping strength is less than or equal to the preset threshold, and if so, determining that the tapping force of the tapping operation matches the preset tapping strength; or ,
判断多次敲击操作的最大敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配;或,Determining whether the absolute value of the difference between the maximum tapping strength of the multiple tapping operation and the preset tapping strength is less than or equal to the preset threshold, and if so, determining that the tapping strength of the tapping operation matches the preset tapping strength; or ,
判断多次敲击操作的最小敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。It is determined whether the absolute value of the difference between the minimum tap strength and the preset tap strength of the multiple tap operation is less than or equal to the preset threshold, and if so, it is determined that the tap strength of the tap operation matches the preset tap strength.
在一个可能的实施方式中,所述控制所述屏幕由黑屏状态切换为亮屏状态,包括:In a possible implementation manner, the controlling the screen to switch from a black screen state to a bright screen state includes:
获取用户终端当前所处的环境亮度,并确定与所述环境亮度匹配的目标亮度值;Obtaining an ambient brightness of the current location of the user terminal, and determining a target brightness value that matches the brightness of the environment;
控制所述屏幕由黑屏状态切换为以所述目标亮度值为屏幕亮度的亮屏状态。The screen is controlled to be switched from a black screen state to a bright screen state in which the target brightness value is the screen brightness.
在一个可能的实施方式中,所述控制所述屏幕由黑屏状态切换为亮屏状态,包括:In a possible implementation manner, the controlling the screen to switch from a black screen state to a bright screen state includes:
根据预存储的电池电量与亮度的对应关系,查询用户终端的当前电池电量对应的目标亮度值;Querying a target brightness value corresponding to a current battery power of the user terminal according to a pre-stored correspondence between battery power and brightness;
控制所述屏幕由黑屏状态切换为以所述目标亮度值为屏幕亮度的亮屏状态。The screen is controlled to be switched from a black screen state to a bright screen state in which the target brightness value is the screen brightness.
本发明实施例第二方面公开了一种用户终端,所述用户终端包括用于执行本发明实施例第一方面任一方法的部分或全部步骤的功能单元。其中,该用户终端执行第一方面任一方法的部分或全部步骤时可以提高控制屏幕点亮的效率。A second aspect of the embodiments of the present invention discloses a user terminal, where the user terminal includes a functional unit for performing some or all of the steps of any of the methods of the first aspect of the embodiments of the present invention. Wherein, the user terminal can improve the efficiency of controlling the lighting of the screen when performing some or all of the steps of any of the methods.
本发明实施例第三方面公开了一种用户终端,所述用户终端包括:处理器、存储器以及压力传感器,所述存储器被配置用于存储指令,所述处理器被配置用于运行所述指令,所述处理器运行所述指令以执行本发明实施例第一方面任一方法的部分或全部步骤。其中,该用户终端执行第一方面任一方法的部分或全部步骤时可以提高控制屏幕点亮的效率。A third aspect of an embodiment of the present invention discloses a user terminal, the user terminal comprising: a processor, a memory, and a pressure sensor, the memory being configured to store an instruction, the processor being configured to run the instruction The processor runs the instructions to perform some or all of the steps of any of the methods of the first aspect of the embodiments of the present invention. Wherein, the user terminal can improve the efficiency of controlling the lighting of the screen when performing some or all of the steps of any of the methods.
本发明实施例第四方面公开了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序具体包括用于执行本发明实施例第一方面任一方法的部分或全部步骤的指令。A fourth aspect of the embodiments of the present invention discloses a computer storage medium storing a program, the program specifically comprising instructions for performing some or all of the steps of any of the first aspects of the embodiments of the present invention.
本发明实施例中,在黑屏状态下,用户终端检测针对屏幕的敲击操作,并判断敲击操作的敲击力度与预设敲击力度是否匹配,当敲击操作的敲击力度与预设敲击力度匹配时,用户终端可以进一步判断敲击操作的敲击频率是否属于预设频率范围之内,当敲击操作的敲击频率属于预设频率范围之内时,控制屏幕由黑屏状态切换为亮屏状态。可见,通过本发明实施例,用户终端可以根据用户的敲击操作的敲击力度以及敲击频率来确定是否需要控制屏幕由黑屏状态切换为亮屏状态,而无需用户花较多时间查找电源按键以及多次按压电源按键,从而可以提高控制屏幕点亮的效率。In the embodiment of the present invention, in a black screen state, the user terminal detects a tapping operation for the screen, and determines whether the tapping strength of the tapping operation matches the preset tapping strength, and the tapping force and preset of the tapping operation. When the tapping force is matched, the user terminal may further determine whether the tapping frequency of the tapping operation belongs to the preset frequency range. When the tapping frequency of the tapping operation belongs to the preset frequency range, the control screen is switched by the black screen state. It is in bright state. It can be seen that, according to the embodiment of the present invention, the user terminal can determine whether the control screen needs to be switched from the black screen state to the bright screen state according to the tapping strength of the tap operation of the user and the tapping frequency, without the user spending more time searching for the power button. And pressing the power button multiple times can improve the efficiency of controlling the lighting of the screen.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例公开的一种屏幕控制方法的流程示意图;1 is a schematic flow chart of a screen control method according to an embodiment of the present invention;
图2是本发明实施例公开的另一种屏幕控制方法的流程示意图;2 is a schematic flow chart of another screen control method according to an embodiment of the present invention;
图3是本发明实施例公开的另一种屏幕控制方法的流程示意图;3 is a schematic flow chart of another screen control method according to an embodiment of the present invention;
图4是本发明实施例公开的一种用户终端的结构示意图;4 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
图5是本发明实施例公开的另一种用户终端的结构示意图;FIG. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图6是本发明实施例公开的另一种用户终端的结构示意图;FIG. 6 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图7是本发明实施例公开的另一种用户终端的结构示意图;FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图8是本发明实施例公开的另一种用户终端的结构示意图;FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present disclosure;
图9是本发明实施例公开的另一种用户终端的结构示意图。FIG. 9 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例公开了一种屏幕控制方法及用户终端,可以提高控制屏幕点亮的效率。以下分别进行详细说明。The embodiment of the invention discloses a screen control method and a user terminal, which can improve the efficiency of controlling the lighting of the screen. The details are described below separately.
本发明实施例中,用户终端可以包括但不限于智能手机、笔记本电脑、个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(Mobile Internet Device,MID)、智能穿戴设备(如智能手表、智能手环)等各类用户终端。其中,该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。In the embodiment of the present invention, the user terminal may include, but is not limited to, a smart phone, a notebook computer, a personal computer (PC), a personal digital assistant (PDA), a mobile internet device (MID), Various types of user terminals such as smart wearable devices (such as smart watches and smart bracelets). The operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like. limited.
请参见图1,图1是本发明实施例公开的一种屏幕控制方法的流程示意图。如图1所示,该方法可以包括以下步骤。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a screen control method according to an embodiment of the present invention. As shown in FIG. 1, the method can include the following steps.
S101、在黑屏状态下,检测针对屏幕的敲击操作。S101. In a black screen state, detecting a tap operation for the screen.
本发明实施例中,针对屏幕的敲击操作可以为多次的敲击操作。用户可以使用同一个手指在用户终端的屏幕上进行多次敲击,每次敲击的位置可以相同也可以不同,或者,用户可以使用不同的手指先后在用户终端的屏幕上进行多次敲击,敲击的位置可以相同也可以不同,本发明实施例不作限定。In the embodiment of the present invention, the tapping operation for the screen may be multiple tapping operations. The user can use the same finger to perform multiple taps on the screen of the user terminal, and the location of each tap can be the same or different, or the user can use multiple fingers to perform multiple taps on the screen of the user terminal. The position of the tapping may be the same or different, and is not limited by the embodiment of the present invention.
本发明实施例中,当用户敲击屏幕时,用户终端可以检测针对屏幕的敲击操作,其中,该敲击操作的持续时间可以为任意时间,每次敲击操作的持续时间可以相同也可以不相同。In the embodiment of the present invention, when the user taps the screen, the user terminal may detect a tapping operation for the screen, wherein the duration of the tapping operation may be any time, and the duration of each tapping operation may be the same. Not the same.
S102、判断敲击操作的敲击力度与预设敲击力度是否匹配,若匹配,执行步骤S103,若否,结束本流程。S102. Determine whether the tapping strength of the tapping operation matches the preset tapping strength. If yes, go to step S103. If no, end the process.
本发明实施例中,用户终端上安装有压力传感器,可以实时检测敲击操作的敲击力度。In the embodiment of the present invention, a pressure sensor is installed on the user terminal, and the tapping force of the tapping operation can be detected in real time.
压力传感器检测到敲击力度之后,用户终端可以判断敲击操作的敲击力度与预设敲击力度是否匹配。After the pressure sensor detects the tapping force, the user terminal can determine whether the tapping strength of the tapping operation matches the preset tapping strength.
可选的,用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the specific implementation manner that the user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength may be:
用户终端判断多次敲击操作的平均敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The user terminal determines whether the absolute value of the difference between the average tapping strength of the multiple tapping operation and the preset tapping strength is less than or equal to a preset threshold, and if so, determining that the tapping strength of the tapping operation matches the preset tapping strength .
可选的,用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the specific implementation manner that the user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength may be:
用户终端判断多次敲击操作的最大敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The user terminal determines whether the absolute value of the difference between the maximum tapping strength and the preset tapping strength of the multiple tapping operation is less than or equal to the preset threshold, and if so, determining that the tapping strength of the tapping operation matches the preset tapping strength .
可选的,用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the specific implementation manner that the user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength may be:
用户终端判断多次敲击操作的最小敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The user terminal determines whether the absolute value of the difference between the minimum tapping strength and the preset tapping strength of the multiple tapping operation is less than or equal to a preset threshold, and if yes, determining that the tapping strength of the tapping operation matches the preset tapping strength .
可选的,用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the specific implementation manner that the user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength may be:
用户终端判断多次敲击操作的最大敲击力度是否小于或等于预设敲击力度若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The user terminal determines whether the maximum tapping strength of the multiple tapping operation is less than or equal to the preset tapping strength. If yes, it determines that the tapping strength of the tapping operation matches the preset tapping strength.
可选的,用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength.The physical implementation can be:
用户终端判断多次敲击操作的最小敲击力度是否大于或等于预设敲击力度若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The user terminal determines whether the minimum tapping strength of the multiple tapping operation is greater than or equal to the preset tapping strength. If yes, it determines that the tapping strength of the tapping operation matches the preset tapping strength.
作为一种可选的实施方式,当敲击操作的敲击力度与预设敲击力度匹配时,用户终端可以进一步获取多次敲击的启动时间,并确定每相邻两次敲击的启动时间的间隔,判断每相邻两次敲击的启动时间的间隔是否均小于预设时间阈值,若是,则执行步骤S103。As an optional implementation manner, when the tapping strength of the tapping operation matches the preset tapping strength, the user terminal may further acquire the starting time of multiple tappings, and determine the startup of each adjacent two tappings. The interval of time is determined whether the interval of the start time of each adjacent two taps is less than a preset time threshold, and if yes, step S103 is performed.
S103、判断敲击操作的敲击频率是否属于预设频率范围之内,若属于,执行步骤S104,若否,结束本流程。S103. Determine whether the tap frequency of the tap operation belongs to the preset frequency range. If yes, execute step S104. If no, end the process.
本发明实施例中,当敲击操作的敲击力度与预设敲击力度匹配时,用户终端可以判断敲击操作的敲击频率是否属于预设频率范围之内,其中,该敲击频率可以理解为单位时间内的敲击次数,比如:用户在5S内敲击了10次,则敲击频率为2次/S。该预设频率范围可以为系统设置的频率范围,或者用户自定义的频率范围,本发明实施例不作限定。In the embodiment of the present invention, when the tapping force of the tapping operation matches the preset tapping strength, the user terminal may determine whether the tapping frequency of the tapping operation belongs to the preset frequency range, wherein the tapping frequency may be It is understood as the number of strokes per unit time. For example, if the user taps 10 times within 5 seconds, the tap frequency is 2 times/S. The preset frequency range may be a frequency range set by the system, or a user-defined frequency range, which is not limited in the embodiment of the present invention.
需要说明的是,步骤S102和步骤S103可以同时执行,也可以步骤S103先执行,步骤S102后执行,本发明实施例不作限定。It should be noted that step S102 and step S103 may be performed at the same time, or may be performed in step S103 first, and then executed in step S102, which is not limited in the embodiment of the present invention.
S104、控制屏幕由黑屏状态切换为亮屏状态。S104. The control screen is switched from a black screen state to a bright screen state.
本发明实施例中,用户终端控制屏幕由黑屏状态切换为亮屏状态。In the embodiment of the present invention, the user terminal control screen is switched from a black screen state to a bright screen state.
可选的,用户终端控制屏幕由黑屏状态切换为亮屏状态的具体实现方式可以包括以下步骤:Optionally, the specific implementation manner that the user terminal control screen is switched from the black screen state to the bright screen state may include the following steps:
11)获取用户终端当前所处的环境亮度,并确定与环境亮度匹配的目标亮度值;11) obtaining the ambient brightness of the user terminal currently located, and determining a target brightness value that matches the ambient brightness;
12)控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。12) The control screen is switched from the black screen state to the bright screen state where the target brightness value is the screen brightness.
通常,用户终端的屏幕亮度与环境亮度不匹配时,屏幕亮度要么太亮,要么太暗,用户观看用户终端的屏幕时会觉得刺眼或者看不清屏幕显示的内容。Generally, when the screen brightness of the user terminal does not match the ambient brightness, the screen brightness is either too bright or too dark, and the user may feel glare or not see the content displayed on the screen when viewing the screen of the user terminal.
本发明实施例中,可以预先设定一个亮度阈值。用户终端可以通过亮度传感器获取用户终端当前所处的环境亮度,并通过预设公式来计算与环境亮度匹配的目标亮度值。举例来说,假设预设公式为|A-A0|=S,其中,A为目标亮度值,A0为环境亮度值,S为亮度阈值,则用户终端获取到用户终端当前所处的环境亮度值之后,就可以根据该公式计算出与环境亮度匹配的目标亮度值A了。In the embodiment of the present invention, a brightness threshold may be preset. The user terminal can obtain the ambient brightness of the user terminal currently through the brightness sensor, and calculate a target brightness value that matches the ambient brightness by using a preset formula. For example, suppose the preset formula is |A-A0|=S, where A is the target brightness value, A0 is the ambient brightness value, and S is the brightness threshold, then the user terminal obtains the current location of the user terminal.After the ambient brightness value, the target brightness value A matching the ambient brightness can be calculated according to the formula.
可选的,用户终端也可以预先存储环境亮度与屏幕亮度的对应关系,该对应关系中,每一个环境亮度都有与之匹配的屏幕亮度,用户终端获取到用户终端当前所处的环境亮度值之后,就可以查询用户终端当前所处的环境亮度值对应的屏幕亮度,并将该查询到的屏幕亮度作为目标亮度值。Optionally, the user terminal may also pre-store the correspondence between the ambient brightness and the screen brightness. In the corresponding relationship, each ambient brightness has a matching screen brightness, and the user terminal obtains the current ambient brightness value of the user terminal. After that, the screen brightness corresponding to the ambient brightness value currently located by the user terminal can be queried, and the screen brightness obtained by the query is used as the target brightness value.
可选的,用户终端控制屏幕由黑屏状态切换为亮屏状态的具体实现方式可以包括以下步骤:Optionally, the specific implementation manner that the user terminal control screen is switched from the black screen state to the bright screen state may include the following steps:
21)根据预存储的电池电量与亮度的对应关系,查询用户终端的当前电池电量对应的目标亮度值;21) querying a target brightness value corresponding to a current battery power of the user terminal according to a pre-stored correspondence between the battery power and the brightness;
22)控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。22) The control screen is switched from the black screen state to the bright screen state where the target brightness value is the screen brightness.
通常,用户终端的屏幕亮度越高,电池电量的消耗速度就越快,待机时间就越短。用户可以预先通过多次实验获取电池电量与亮度的对应关系,并将该对应关系存储在用户终端中。Generally, the higher the screen brightness of the user terminal, the faster the battery power consumption and the shorter the standby time. The user can obtain the correspondence between the battery power and the brightness through multiple experiments in advance, and store the corresponding relationship in the user terminal.
在该实施例中,用户终端可以在黑屏状态下,通过内置的电池检测模块来获取用户终端的当前电池电量。当用户终端获取到用户终端的当前电池电量之后,用户终端可以根据预存储的电池电量与亮度的对应关系,查询当前电池电量对应的目标亮度值。其中,在该对应关系中,电池电量与亮度一一对应,每一个亮度能确保在与之对应的电池电量下既不影响用户观看也能维持较长的待机时间。比如:电池电量A1与亮度B1对应,则当用户终端的电池电量为A1时,将用户终端的屏幕亮度调节为B1时,既不影响用户观看用户终端屏幕,且能维持在该B1亮度下维持较长的待机时间。In this embodiment, the user terminal can acquire the current battery power of the user terminal through the built-in battery detection module in a black screen state. After the user terminal obtains the current battery power of the user terminal, the user terminal may query the target brightness value corresponding to the current battery power according to the pre-stored correspondence between the battery power and the brightness. Among them, in the corresponding relationship, the battery power and the brightness are in one-to-one correspondence, and each brightness can ensure that the standby time can be maintained without affecting the user's viewing under the corresponding battery power. For example, if the battery power A1 corresponds to the brightness B1, when the battery level of the user terminal is A1, when the screen brightness of the user terminal is adjusted to B1, the user does not affect the user's viewing of the user terminal screen, and can maintain the brightness under the B1 brightness. Long standby time.
在图1所描述的方法流程中,在黑屏状态下,用户终端检测针对屏幕的敲击操作,并判断敲击操作的敲击力度与预设敲击力度是否匹配,当敲击操作的敲击力度与预设敲击力度匹配时,用户终端可以进一步判断敲击操作的敲击频率是否属于预设频率范围之内,当敲击操作的敲击频率属于预设频率范围之内时,控制屏幕由黑屏状态切换为亮屏状态。可见,通过本发明实施例,用户终端可以根据用户的敲击操作的敲击力度以及敲击频率来确定是否需要控制屏幕由黑屏状态切换为亮屏状态,而无需用户花较多时间查找电源按键以及多次按压电源按键,从而可以提高控制屏幕点亮的效率。In the method flow described in FIG. 1, in a black screen state, the user terminal detects a tapping operation for the screen, and determines whether the tapping strength of the tapping operation matches the preset tapping strength, and when the tapping operation is tapped When the strength matches the preset tapping strength, the user terminal may further determine whether the tapping frequency of the tapping operation belongs to the preset frequency range, and when the tapping frequency of the tapping operation belongs to the preset frequency range, the control screen Switch from black screen status to bright screen status. It can be seen that, according to the embodiment of the present invention, the user terminal can determine whether the control screen needs to be switched from the black screen state to the bright screen state according to the tapping strength of the tap operation of the user and the tapping frequency, without the user spending more time searching for the power button. And many timesPressing the power button will increase the efficiency of controlling the lighting of the screen.
请参见图2,图2是本发明实施例公开的另一种屏幕控制方法的流程示意图。如图2所示,该方法可以包括以下步骤。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of another screen control method according to an embodiment of the present invention. As shown in FIG. 2, the method can include the following steps.
S201、在黑屏状态下,用户终端检测针对屏幕的敲击操作。S201. In a black screen state, the user terminal detects a tap operation for the screen.
S202、用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配,若是,执行步骤S203,若否,结束本流程。S202. The user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength. If yes, step S203 is performed, and if not, the process ends.
S203、用户终端判断敲击操作的敲击频率是否属于预设频率范围之内,若是,执行步骤S204,若否,结束本流程。S203. The user terminal determines whether the tap frequency of the tap operation belongs to the preset frequency range. If yes, step S204 is performed, and if not, the process ends.
S204、用户终端获取任意两次敲击的敲击点所在的敲击位置。S204. The user terminal acquires a tap position where the tapping point of any two taps is located.
本发明实施例中,用户终端可以预先建立一个坐标系,当用户终端检测到针对屏幕的敲击操作时,用户终端可以根据该坐标系,确定每一个敲击点的位置坐标。In the embodiment of the present invention, the user terminal may establish a coordinate system in advance. When the user terminal detects a tap operation for the screen, the user terminal may determine the position coordinates of each tap point according to the coordinate system.
当用户终端判断敲击操作的敲击频率属于预设频率范围之内时,用户终端可以获取任意两次敲击的敲击点所在的敲击位置。举例来说,假设有三个敲击点,即敲击点A、敲击点B以及敲击点C,用户终端可以获取任意两次敲击的敲击点所在的敲击位置,比如敲击点A所在的敲击位置和敲击点B所在的敲击位置,或者,敲击点A所在的敲击位置和敲击点C所在的敲击位置,或者,敲击点B所在的敲击位置和敲击点C所在的敲击位置。When the user terminal determines that the tapping frequency of the tapping operation belongs to the preset frequency range, the user terminal may acquire the tapping position where the tapping point of any two taps is located. For example, suppose there are three tapping points, namely, tapping point A, tapping point B, and tapping point C, and the user terminal can obtain the tapping position where the tapping point of any two taps is located, such as a tapping point. The tap position where A is located and the tap position where the hit point B is located, or the tap position where the hit point A is located and the tap position where the hit point C is located, or the tap position where the hit point B is located And tap the location where the point C is located.
S205、用户终端判断任意两个敲击位置是否匹配,若是,执行步骤S206,若否,结束本流程。S205. The user terminal determines whether any two tap positions match, and if yes, executes step S206, and if not, ends the process.
本发明实施例中,用户终端判断任意两个敲击位置是否匹配的具体实现方式可以为:In the embodiment of the present invention, the specific implementation manner of the user terminal determining whether any two tap positions match is:
用户终端判断任意两个敲击位置之间的距离是否小于或等于预设距离,若是,则确定该任意两个敲击位置匹配,否则,不匹配。The user terminal determines whether the distance between any two tap positions is less than or equal to the preset distance, and if so, determines that any two tap positions match, otherwise, does not match.
需要说明的是,本发明实施例中,步骤S202、步骤S203、步骤S204和步骤S205可以同时执行,也可以以任意的先后顺序来执行,但是,不管哪种执行方式,必须先执行步骤S204再执行步骤S205。It should be noted that, in the embodiment of the present invention, step S202, step S203, step S204, and step S205 may be performed simultaneously, or may be performed in any sequential order. However, regardless of the execution mode, step S204 must be performed first. Step S205 is performed.
作为一种可选的实施方式,当任意两个敲击位置匹配时,所述方法还可以包括:As an optional implementation manner, when any two tap positions match, the method may alsoinclude:
判断用户终端当前是否处于待机状态,若否,执行步骤S206。It is determined whether the user terminal is currently in the standby state, and if no, step S206 is performed.
S206、用户终端控制屏幕由黑屏状态切换为亮屏状态。S206. The user terminal control screen is switched from a black screen state to a bright screen state.
在图2所描述的方法流程中,用户终端在判断敲击操作的敲击频率属于预设频率范围之内之后,进一步地,用户终端还可以获取任意两次敲击的敲击点所在的敲击位置,并判断任意两个敲击位置是否匹配,若匹配,则用户终端可以控制屏幕由黑屏状态切换为亮屏状态。可见,通过本发明实施例,用户终端可以根据用户的敲击操作的敲击力度、敲击频率以及敲击位置来确定是否需要控制屏幕由黑屏状态切换为亮屏状态,而无需用户花较多时间查找电源按键以及多次按压电源按键,从而可以提高控制屏幕点亮的效率。In the method flow described in FIG. 2, after the user terminal determines that the tapping frequency of the tapping operation belongs to the preset frequency range, the user terminal may further acquire the tapping of the tapping point of any two taps. Hit the position and judge whether any two tap positions match. If they match, the user terminal can control the screen to switch from the black screen state to the bright screen state. It can be seen that, in the embodiment of the present invention, the user terminal can determine whether the control screen needs to be switched from the black screen state to the bright screen state according to the tapping strength, the tapping frequency, and the tapping position of the user's tapping operation, without the user spending more Time to find the power button and press the power button multiple times, which can improve the efficiency of the control screen lighting.
请参见图3,图3是本发明实施例公开的另一种屏幕控制方法的流程示意图。如图3所示,该方法可以包括以下步骤。Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of another screen control method according to an embodiment of the present invention. As shown in FIG. 3, the method can include the following steps.
S301、在黑屏状态下,用户终端检测针对屏幕的敲击操作。S301. In a black screen state, the user terminal detects a tap operation for the screen.
S302、用户终端判断敲击操作的敲击力度与预设敲击力度是否匹配,若是,执行步骤S303,若否,结束本流程。S302. The user terminal determines whether the tapping strength of the tapping operation matches the preset tapping strength. If yes, step S303 is performed, and if not, the process ends.
S303、用户终端判断敲击操作的敲击频率是否属于预设频率范围之内,若是,执行步骤S304,若否,结束本流程。S303. The user terminal determines whether the tap frequency of the tap operation belongs to the preset frequency range. If yes, step S304 is performed, and if not, the process ends.
S304、用户终端判断用户终端当前是否处于待机状态,若否,执行步骤S305,若是,结束本流程。S304. The user terminal determines whether the user terminal is currently in the standby state. If not, step S305 is performed, and if so, the process ends.
本发明实施例中,待机状态可以理解为用户终端(如手机或电脑)等电子设备的开机,但是不进行任何实质性工作的状态,即没有对文件或应用程序做任何操作。In the embodiment of the present invention, the standby state can be understood as the state in which the electronic device such as the user terminal (such as a mobile phone or a computer) is powered on, but does not perform any substantive work, that is, does not perform any operation on the file or the application.
本发明实施例中,当用户终端判断用户终端当前没有处于待机状态,即用户终端当前正在运行某个应用程序或者打开某个文件时,表明用户可能需要点亮屏幕来继续操作该应用程序或文件,因此,用户终端可以控制屏幕由黑屏状态切换为亮屏状态。In the embodiment of the present invention, when the user terminal determines that the user terminal is not currently in the standby state, that is, the user terminal is currently running an application or opening a file, it indicates that the user may need to light the screen to continue operating the application or file. Therefore, the user terminal can control the screen to switch from the black screen state to the bright screen state.
作为一种可选的实施方式,当用户终端当前没有处于待机状态时,所述方法还可以包括:As an optional implementation manner, when the user terminal is not currently in the standby state, the method may further include:
用户终端判断任意两个敲击操作的敲击位置是否匹配,若匹配,执行步骤S305。The user terminal determines whether the tap positions of any two tap operations match, and if yes, step S305 is performed.
S305、用户终端控制屏幕由黑屏状态切换为亮屏状态。S305. The user terminal control screen is switched from a black screen state to a bright screen state.
需要说明的是,步骤S302、步骤S303以及步骤S304可以同时执行,也可以以任意顺序先后执行,本发明实施例不作限定。It should be noted that the step S302, the step S303, and the step S304 may be performed at the same time, or may be performed in any order, which is not limited in the embodiment of the present invention.
在图3所描述的方法流程中,用户终端在判断敲击操作的敲击频率属于预设频率范围之内之后,进一步地,用户终端还可以判断用户终端当前是否处于待机状态,若属于,则用户终端可以控制屏幕由黑屏状态切换为亮屏状态。可见,通过本发明实施例,用户终端可以根据用户的敲击操作的敲击力度、敲击频率以及用户终端的当前状态来确定是否需要控制屏幕由黑屏状态切换为亮屏状态,而无需用户花较多时间查找电源按键以及多次按压电源按键,从而可以提高控制屏幕点亮的效率。In the method flow described in FIG. 3, after the user terminal determines that the tapping frequency of the tapping operation belongs to the preset frequency range, the user terminal may further determine whether the user terminal is currently in the standby state, and if so, The user terminal can control the screen to switch from a black screen state to a bright screen state. It can be seen that, by using the embodiment of the present invention, the user terminal can determine whether the control screen needs to be switched from the black screen state to the bright screen state according to the tapping strength of the user's tapping operation, the tapping frequency, and the current state of the user terminal, without the user spending More time to find the power button and press the power button multiple times, which can improve the efficiency of the control screen lighting.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例中的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明上述方法实施例。The following is an embodiment of the device of the present invention. The device embodiment of the present invention is used to perform the method in the method embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Reference is made to the above method embodiments of the present invention.
请参见图4,图4是本发明实施例公开的一种用户终端的结构示意图,如图4所示,该用户终端400可以包括:检测单元401、第一判断单元402、第二判断单元403以及控制单元404,其中:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a user terminal according to an embodiment of the present invention. As shown in FIG. 4, the
检测单元401,用于在黑屏状态下,检测针对屏幕的敲击操作。The detecting
本发明实施例中,针对屏幕的敲击操作可以为多次的敲击操作。用户可以使用同一个手指在用户终端的屏幕上进行多次敲击,每次敲击的位置可以相同也可以不同,或者,用户可以使用不同的手指先后在用户终端的屏幕上进行多次敲击,敲击的位置可以相同也可以不同,本发明实施例不作限定。In the embodiment of the present invention, the tapping operation for the screen may be multiple tapping operations. The user can use the same finger to perform multiple taps on the screen of the user terminal, and the location of each tap can be the same or different, or the user can use multiple fingers to perform multiple taps on the screen of the user terminal. The position of the tapping may be the same or different, and is not limited by the embodiment of the present invention.
本发明实施例中,当用户敲击屏幕时,检测单元401可以检测针对屏幕的敲击操作,其中,该敲击操作的持续时间可以为任意时间,每次敲击操作的持续时间可以相同也可以不相同。In the embodiment of the present invention, when the user taps the screen, the detecting
第一判断单元402,用于判断敲击操作的敲击力度与预设敲击力度是否匹配。The first determining
本发明实施例中,用户终端上安装有压力传感器,可以实时检测敲击操作的敲击力度。In the embodiment of the present invention, a pressure sensor is installed on the user terminal, and the tapping force of the tapping operation can be detected in real time.
压力传感器检测到敲击力度之后,第一判断单元402可以判断敲击操作的敲击力度与预设敲击力度是否匹配。After the pressure sensor detects the tapping force, the first determining
可选的,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the first determining
第一判断单元402判断多次敲击操作的平均敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The first determining
可选的,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the first determining
第一判断单元402判断多次敲击操作的最大敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The first determining
可选的,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the first determining
第一判断单元402判断多次敲击操作的最小敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The first determining
可选的,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the first determining
第一判断单元402判断多次敲击操作的最大敲击力度是否小于或等于预设敲击力度若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The first determining
可选的,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配的具体实施方式可以为:Optionally, the first determining
第一判断单元402判断多次敲击操作的最小敲击力度是否大于或等于预设敲击力度若是,则确定敲击操作的敲击力度与预设敲击力度匹配。The first determining
第二判断单元403,用于当第一判断单元402判断敲击操作的敲击力度与预设敲击力度匹配时,判断敲击操作的敲击频率是否属于预设频率范围之内。The second determining
本发明实施例中,当敲击操作的敲击力度与预设敲击力度匹配时,第二判断单元403可以判断敲击操作的敲击频率是否属于预设频率范围之内,其中,该敲击频率可以理解为单位时间内的敲击次数,比如:用户在5S内敲击了10次,则敲击频率为2次/S。该预设频率范围可以为系统设置的频率范围,或者用户自定义的频率范围,本发明实施例不作限定。In the embodiment of the present invention, when the tapping force of the tapping operation matches the preset tapping force, the second determining
控制单元404,用于当第二判断单元403判断敲击操作的敲击频率属于预设频率范围之内时,控制屏幕由黑屏状态切换为亮屏状态。The
请参见图5,图5是本发明实施例公开的另一种用户终端的结构示意图,其中,图5所示的用户终端是在图4所示的用户终端的基础上进一步优化得到的,与图4所示的用户终端相比,图5所示的用户终端除了包括图4所示的用户终端的所有单元外,还可以包括:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 5 is further optimized based on the user terminal shown in FIG. The user terminal shown in FIG. 4 may include: in addition to all the units of the user terminal shown in FIG. 4, the user terminal shown in FIG.
获取单元405,用于在第二判断单元403判断敲击操作的敲击频率属于预设频率范围之内之后,获取任意两次敲击的敲击点所在的敲击位置。The obtaining
本发明实施例中,用户终端可以预先建立一个坐标系,当用户终端检测到针对屏幕的敲击操作时,用户终端可以根据该坐标系,确定每一个敲击点的位置坐标。In the embodiment of the present invention, the user terminal may establish a coordinate system in advance. When the user terminal detects a tap operation for the screen, the user terminal may determine the position coordinates of each tap point according to the coordinate system.
当第二判断单元403判断敲击操作的敲击频率属于预设频率范围之内时,获取单元405可以获取任意两次敲击的敲击点所在的敲击位置。举例来说,假设有三个敲击点,即敲击点A、敲击点B以及敲击点C,获取单元405可以获取任意两次敲击的敲击点所在的敲击位置,比如敲击点A所在的敲击位置和敲击点B所在的敲击位置,或者,敲击点A所在的敲击位置和敲击点C所在的敲击位置,或者,敲击点B所在的敲击位置和敲击点C所在的敲击位置。When the second determining
第一判断单元402,还用于判断任意两个敲击位置是否匹配。The first determining
本发明实施例中,第一判断单元402判断任意两个敲击位置是否匹配的具体实现方式可以为:In the embodiment of the present invention, the specific implementation manner of the first determining
第一判断单元402判断任意两个敲击位置之间的距离是否小于或等于预设距离,若是,则确定该任意两个敲击位置匹配,否则,不匹配。The first determining
控制单元404,具体用于当第一判断单元402判断任意两个敲击位置匹配时,控制屏幕由黑屏状态切换为亮屏状态。The
请参见图6,图6是本发明实施例公开的另一种用户终端的结构示意图,其中,图6所示的用户终端是在图4所示的用户终端的基础上进一步优化得到的,与图4所示的用户终端相比,图6所示的用户终端除了包括图4所示的用户终端的所有单元外,还可以包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, wherein the user terminal shown in FIG. 6 is further optimized based on the user terminal shown in FIG. The user terminal shown in FIG. 4 may include: in addition to all the units of the user terminal shown in FIG. 4, the user terminal shown in FIG.
第三判断单元406,用于在第二判断单元403判断敲击操作的敲击频率属于预设频率范围之内之后,判断用户终端当前是否处于待机状态。The third determining
本发明实施例中,待机状态可以理解为用户终端(如手机或电脑)等电子设备的开机,但是不进行任何实质性工作的状态,即没有对文件或应用程序做任何操作。In the embodiment of the present invention, the standby state can be understood as the state in which the electronic device such as the user terminal (such as a mobile phone or a computer) is powered on, but does not perform any substantive work, that is, does not perform any operation on the file or the application.
本发明实施例中,当第三判断单元406判断用户终端当前没有处于待机状态,即用户终端当前正在运行某个应用程序或者打开某个文件时,表明用户可能需要点亮屏幕来继续操作该应用程序或文件,因此,控制单元404可以控制屏幕由黑屏状态切换为亮屏状态。In the embodiment of the present invention, when the third determining
控制单元404,具体用于当第三判断单元406判断用户终端当前未处于待机状态时,控制屏幕由黑屏状态切换为亮屏状态。The
请参见图7,图7是本发明实施例公开的另一种用户终端的结构示意图,其中,图7所示的用户终端是在图4所示的用户终端的基础上进一步优化得到的,与图4所示的用户终端相比,图7所示的用户终端除了包括图4所示的用户终端的所有单元外,控制单元404可以包括:Referring to FIG. 7, FIG. 7 is a schematic structural diagram of another user terminal according to an embodiment of the present invention, wherein the user terminal shown in FIG. 7 is further optimized based on the user terminal shown in FIG. The user terminal shown in FIG. 4, in addition to all the units of the user terminal shown in FIG. 4, the
获取子单元4041,用于获取用户终端当前所处的环境亮度。The obtaining sub-unit 4041 is configured to obtain an ambient brightness of the user terminal currently located.
确定子单元4042,用于确定与环境亮度匹配的目标亮度值。A
第一控制子单元4043,用于控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。The
通常,用户终端的屏幕亮度与环境亮度不匹配时,屏幕亮度要么太亮,要么太暗,用户观看用户终端的屏幕时会觉得刺眼或者看不清屏幕显示的内容。Generally, when the screen brightness of the user terminal does not match the ambient brightness, the screen brightness is either too bright or too dark, and the user may feel glare or not see the content displayed on the screen when viewing the screen of the user terminal.
本发明实施例中,可以预先设定一个亮度阈值。获取子单元4041可以通过亮度传感器获取用户终端当前所处的环境亮度,确定子单元4042通过预设公式来计算与环境亮度匹配的目标亮度值。举例来说,假设预设公式为|A-A0|=S,其中,A为目标亮度值,A0为环境亮度值,S为亮度阈值,则用户终端获取到用户终端当前所处的环境亮度值之后,就可以根据该公式计算出与环境亮度匹配的目标亮度值A了,第一控制子单元4043控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。In the embodiment of the present invention, a brightness threshold may be preset. The obtaining
可选的,用户终端也可以预先存储环境亮度与屏幕亮度的对应关系,该对应关系中,每一个环境亮度都有与之匹配的屏幕亮度,获取子单元4041获取到用户终端当前所处的环境亮度值之后,确定子单元4042就可以查询用户终端当前所处的环境亮度值对应的屏幕亮度,并将该查询到的屏幕亮度作为目标亮度值。第一控制子单元4043控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。Optionally, the user terminal may also pre-store the corresponding relationship between the ambient brightness and the screen brightness. In the corresponding relationship, each environment brightness has a matching screen brightness, and the obtaining sub-unit 4041 obtains the current environment of the user terminal. After the brightness value, the determining
请参见图8,图8是本发明实施例公开的另一种用户终端的结构示意图,其中,图8所示的用户终端是在图4所示的用户终端的基础上进一步优化得到的,与图4所示的用户终端相比,图8所示的用户终端除了包括图4所示的用户终端的所有单元外,控制单元404可以包括:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present invention. The user terminal shown in FIG. 8 is further optimized based on the user terminal shown in FIG. The user terminal shown in FIG. 4, in addition to all the units of the user terminal shown in FIG. 4, the
查询子单元4044,用于根据预存储的电池电量与亮度的对应关系,查询用户终端的当前电池电量对应的目标亮度值。The
第二控制子单元4045,用于控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。The
通常,用户终端的屏幕亮度越高,电池电量的消耗速度就越快,待机时间就越短。用户可以预先通过多次实验获取电池电量与亮度的对应关系,并将该对应关系存储在用户终端中。Generally, the higher the screen brightness of the user terminal, the faster the battery power consumption and the shorter the standby time. The user can obtain the correspondence between the battery power and the brightness through multiple experiments in advance, and store the corresponding relationship in the user terminal.
在该实施例中,用户终端可以在黑屏状态下,通过内置的电池检测模块来获取用户终端的当前电池电量。当用户终端获取到用户终端的当前电池电量之后,查询子单元4044可以根据预存储的电池电量与亮度的对应关系,查询当前电池电量对应的目标亮度值,第二控制子单元4045控制屏幕由黑屏状态切换为以目标亮度值为屏幕亮度的亮屏状态。In this embodiment, the user terminal can acquire the current battery power of the user terminal through the built-in battery detection module in a black screen state. After the user terminal obtains the current battery power of the user terminal, the
其中,在该对应关系中,电池电量与亮度一一对应,每一个亮度能确保在与之对应的电池电量下既不影响用户观看也能维持较长的待机时间。比如:电池电量A1与亮度B1对应,则当用户终端的电池电量为A1时,将用户终端的屏幕亮度调节为B1时,既不影响用户观看用户终端屏幕,且能维持在该B1亮度下维持较长的待机时间。Among them, in the corresponding relationship, the battery power and the brightness are in one-to-one correspondence, and each brightness can ensure that the standby time can be maintained without affecting the user's viewing under the corresponding battery power. For example, if the battery power A1 corresponds to the brightness B1, when the battery level of the user terminal is A1, when the screen brightness of the user terminal is adjusted to B1, the user does not affect the user's viewing of the user terminal screen, and can maintain the brightness under the B1 brightness. Long standby time.
在图4~图8所描述的用户终端400中,在黑屏状态下,检测单元401检测针对屏幕的敲击操作,第一判断单元402判断敲击操作的敲击力度与预设敲击力度是否匹配,当敲击操作的敲击力度与预设敲击力度匹配时,第二判断单元403可以进一步判断敲击操作的敲击频率是否属于预设频率范围之内,当敲击操作的敲击频率属于预设频率范围之内时,控制单元404控制屏幕由黑屏状态切换为亮屏状态。可见,通过本发明实施例,控制单元404可以根据用户的敲击操作的敲击力度以及敲击频率来确定是否需要控制屏幕由黑屏状态切换为亮屏状态,而无需用户花较多时间查找电源按键以及多次按压电源按键,从而可以提高控制屏幕点亮的效率。In the
请参见图9,图9是本发明实施例公开的另一种终端的结构示意图。在图9所描述的用户终端中,该用户终端可以包括处理器901、存储器902以及压力传感器903,其中,处理器901分别通过总线连接存储器902以及压力传感器903,其中,存储器902可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器902可选的还可以是至少一个位于远离前述处理器901的存储装置。而处理器901用于读取存储器902存储的应用程序执行下述操作:Referring to FIG. 9, FIG. 9 is a schematic structural diagram of another terminal according to an embodiment of the present invention. In the user terminal depicted in FIG. 9, the user terminal may include a
在黑屏状态下,检测针对屏幕的敲击操作;In the black screen state, detecting a tap operation for the screen;
判断压力传感器903检测的所述敲击操作的敲击力度与预设敲击力度是否匹配;Determining whether the tapping force of the tapping operation detected by the pressure sensor 903 matches the preset tapping strength;
若匹配,则判断所述敲击操作的敲击频率是否属于预设频率范围之内;If it matches, determining whether the tapping frequency of the tapping operation belongs to a preset frequency range;
若属于,则控制所述屏幕由黑屏状态切换为亮屏状态。If it belongs, the screen is controlled to switch from a black screen state to a bright screen state.
可选的,处理器901控制所述屏幕由黑屏状态切换为亮屏状态,包括:Optionally, the
获取用户终端当前所处的环境亮度,并确定与所述环境亮度匹配的目标亮度值;Obtaining the brightness of the environment in which the user terminal is currently located, and determining the target brightness that matches the brightness of the environmentDegree value
控制所述屏幕由黑屏状态切换为以所述目标亮度值为屏幕亮度的亮屏状态。The screen is controlled to be switched from a black screen state to a bright screen state in which the target brightness value is the screen brightness.
可选的,处理器901控制所述屏幕由黑屏状态切换为亮屏状态,包括:Optionally, the
根据预存储的电池电量与亮度的对应关系,查询用户终端的当前电池电量对应的目标亮度值;Querying a target brightness value corresponding to a current battery power of the user terminal according to a pre-stored correspondence between battery power and brightness;
控制所述屏幕由黑屏状态切换为以所述目标亮度值为屏幕亮度的亮屏状态。The screen is controlled to be switched from a black screen state to a bright screen state in which the target brightness value is the screen brightness.
在一个实施例中,处理器901判断所述敲击操作的敲击频率属于预设频率范围之内之后,还可以执行以下步骤:In an embodiment, after the
获取任意两次敲击的敲击点所在的敲击位置;Get the tap position where the tapping point of any two taps is located;
判断任意两个所述敲击位置是否匹配;Determining whether any two of the tap positions match;
若是,则执行所述控制所述屏幕由黑屏状态切换为亮屏状态的步骤。If yes, performing the step of controlling the screen to switch from a black screen state to a bright screen state.
在一个实施例中,处理器901判断所述敲击操作的敲击频率属于预设频率范围之内之后,还可以执行以下步骤:In an embodiment, after the
判断用户终端当前是否处于待机状态;Determining whether the user terminal is currently in a standby state;
若否,则执行所述控制所述屏幕由黑屏状态切换为亮屏状态的步骤。If not, performing the step of controlling the screen to switch from a black screen state to a bright screen state.
可选的,所述判断所述敲击操作的敲击力度与预设敲击力度是否匹配的方式具体为:Optionally, the manner of determining whether the tapping strength of the tapping operation matches the preset tapping strength is specifically:
判断多次敲击操作的平均敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配;或,Determining whether the absolute value of the difference between the average tapping strength of the multiple tapping operation and the preset tapping strength is less than or equal to the preset threshold, and if so, determining that the tapping force of the tapping operation matches the preset tapping strength; or ,
判断多次敲击操作的最大敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配;或,Determining whether the absolute value of the difference between the maximum tapping strength of the multiple tapping operation and the preset tapping strength is less than or equal to the preset threshold, and if so, determining that the tapping strength of the tapping operation matches the preset tapping strength; or ,
判断多次敲击操作的最小敲击力度与预设敲击力度之差的绝对值是否小于或等于预设阈值,若是,则确定敲击操作的敲击力度与预设敲击力度匹配。It is determined whether the absolute value of the difference between the minimum tap strength and the preset tap strength of the multiple tap operation is less than or equal to the preset threshold, and if so, it is determined that the tap strength of the tap operation matches the preset tap strength.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和单元并不一定是本申请所必须的。It should be noted that, for the foregoing various method embodiments, for the sake of simple description,It is described as a series of combinations of actions, but those skilled in the art will appreciate that the present application is not limited by the sequence of actions described, as some steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and units involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510535635.6 | 2015-08-27 | ||
| CN201510535635.6ACN105204730B (en) | 2015-08-27 | 2015-08-27 | A kind of screen control method and user terminal |
| Publication Number | Publication Date |
|---|---|
| WO2017032013A1true WO2017032013A1 (en) | 2017-03-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/080424CeasedWO2017032013A1 (en) | 2015-08-27 | 2016-04-27 | Screen control method and user terminal |
| Country | Link |
|---|---|
| CN (1) | CN105204730B (en) |
| WO (1) | WO2017032013A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111258659A (en)* | 2018-11-30 | 2020-06-09 | 北京小米移动软件有限公司 | Screen off control method, device and storage medium |
| CN111273815A (en)* | 2020-01-16 | 2020-06-12 | 业成科技(成都)有限公司 | Gesture touch control method and gesture touch control system |
| CN111352604A (en)* | 2020-02-13 | 2020-06-30 | 支付宝(杭州)信息技术有限公司 | Screen brightness adjusting method and device and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105204730B (en)* | 2015-08-27 | 2018-06-29 | 广东欧珀移动通信有限公司 | A kind of screen control method and user terminal |
| CN105718557B (en)* | 2016-01-20 | 2019-05-24 | Oppo广东移动通信有限公司 | A kind of information search method and device |
| CN105549744B (en)* | 2016-01-20 | 2019-03-26 | Oppo广东移动通信有限公司 | A kind of screen luminance of terminal adjusting method and device |
| CN106095290B (en)* | 2016-05-31 | 2018-09-21 | 广东欧珀移动通信有限公司 | The method for closing and device of sensor call function |
| CN106168881B (en)* | 2016-07-12 | 2019-01-01 | 硕诺科技(深圳)有限公司 | The method for promoting blank screen gesture response speed |
| CN106502467B (en)* | 2016-11-08 | 2019-01-11 | 广东小天才科技有限公司 | Screen awakening method and device of user terminal and user terminal |
| CN106843451B (en)* | 2017-02-04 | 2019-06-28 | 广东小天才科技有限公司 | Screen awakening method based on solid conduction microphone and user terminal |
| CN107037718A (en)* | 2017-05-25 | 2017-08-11 | 珠海市魅族科技有限公司 | Control method and wrist-watch that a kind of watch function is shown |
| WO2019023992A1 (en)* | 2017-08-02 | 2019-02-07 | 深圳传音通讯有限公司 | Method and system for screen turn-on control of intelligent terminal |
| CN108228257A (en)* | 2017-12-04 | 2018-06-29 | 珠海市魅族科技有限公司 | A kind of terminal control method, device, terminal and readable storage medium storing program for executing |
| CN109445673A (en)* | 2018-09-19 | 2019-03-08 | 上海迪歆品牌设计股份有限公司 | Touch screen display systems |
| CN111979719A (en)* | 2019-05-06 | 2020-11-24 | 青岛海尔洗衣机有限公司 | Clothes processing equipment and control method thereof |
| CN112135294A (en)* | 2020-09-21 | 2020-12-25 | Oppo广东移动通信有限公司 | Wireless encryption method and client terminal device thereof |
| CN113159911B (en)* | 2021-02-25 | 2024-07-23 | 华夏方圆信用评估有限公司 | Intelligent bidding subject performance monitoring and system based on big data platform |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110080367A1 (en)* | 2009-10-02 | 2011-04-07 | Research In Motion Limited | Low power wakeup detection circuit and a portable electronic device having a low power wakeup detection circuit |
| CN102968256A (en)* | 2012-10-09 | 2013-03-13 | 广东步步高电子工业有限公司 | Awakening method and system for touch screen hand-holding device after entering dormancy mode |
| CN102999291A (en)* | 2012-09-25 | 2013-03-27 | 广东欧珀移动通信有限公司 | Method for waking up mobile terminal by touch in standby state |
| CN103218136A (en)* | 2013-04-25 | 2013-07-24 | 广东欧珀移动通信有限公司 | A method and device for waking up the screen of a mobile terminal |
| CN103870181A (en)* | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Handheld device control method, handheld device control device and handheld device |
| CN105204735A (en)* | 2015-09-15 | 2015-12-30 | 广东欧珀移动通信有限公司 | Method for waking up screen and mobile terminal |
| CN105204730A (en)* | 2015-08-27 | 2015-12-30 | 广东欧珀移动通信有限公司 | Screen control method and user terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103870190B (en)* | 2012-12-17 | 2018-03-27 | 联想(北京)有限公司 | The method and electronic equipment of a kind of control electronics |
| KR101474467B1 (en)* | 2013-07-09 | 2014-12-19 | 엘지전자 주식회사 | Mobile terminal and control method for the mobile terminal |
| KR20150057863A (en)* | 2013-11-20 | 2015-05-28 | 삼성전자주식회사 | Portable apparatus and method for controlling a screen brightness |
| KR20150061336A (en)* | 2013-11-27 | 2015-06-04 | 엘지전자 주식회사 | Mobile terminal and method for controlling the same |
| CN104503691B (en)* | 2014-11-27 | 2018-11-30 | 小米科技有限责任公司 | Apparatus control method, device and intelligent terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110080367A1 (en)* | 2009-10-02 | 2011-04-07 | Research In Motion Limited | Low power wakeup detection circuit and a portable electronic device having a low power wakeup detection circuit |
| CN102999291A (en)* | 2012-09-25 | 2013-03-27 | 广东欧珀移动通信有限公司 | Method for waking up mobile terminal by touch in standby state |
| CN102968256A (en)* | 2012-10-09 | 2013-03-13 | 广东步步高电子工业有限公司 | Awakening method and system for touch screen hand-holding device after entering dormancy mode |
| CN103870181A (en)* | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Handheld device control method, handheld device control device and handheld device |
| CN103218136A (en)* | 2013-04-25 | 2013-07-24 | 广东欧珀移动通信有限公司 | A method and device for waking up the screen of a mobile terminal |
| CN105204730A (en)* | 2015-08-27 | 2015-12-30 | 广东欧珀移动通信有限公司 | Screen control method and user terminal |
| CN105204735A (en)* | 2015-09-15 | 2015-12-30 | 广东欧珀移动通信有限公司 | Method for waking up screen and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111258659A (en)* | 2018-11-30 | 2020-06-09 | 北京小米移动软件有限公司 | Screen off control method, device and storage medium |
| CN111258659B (en)* | 2018-11-30 | 2024-05-07 | 北京小米移动软件有限公司 | Screen-off control method, device and storage medium |
| CN111273815A (en)* | 2020-01-16 | 2020-06-12 | 业成科技(成都)有限公司 | Gesture touch control method and gesture touch control system |
| CN111273815B (en)* | 2020-01-16 | 2022-12-02 | 业成科技(成都)有限公司 | Gesture touch method and gesture touch system |
| CN111352604A (en)* | 2020-02-13 | 2020-06-30 | 支付宝(杭州)信息技术有限公司 | Screen brightness adjusting method and device and computer readable storage medium |
| CN111352604B (en)* | 2020-02-13 | 2022-11-15 | 支付宝(杭州)信息技术有限公司 | Screen brightness adjusting method and device and computer readable storage medium |
| Publication number | Publication date |
|---|---|
| CN105204730B (en) | 2018-06-29 |
| CN105204730A (en) | 2015-12-30 |
| Publication | Publication Date | Title |
|---|---|---|
| WO2017032013A1 (en) | Screen control method and user terminal | |
| US10133476B2 (en) | Method for controlling screen of user terminal and user terminal | |
| US20180341360A1 (en) | Method For Launching Application And Terminal Device | |
| EP3316123B1 (en) | Electronic device and controlling method thereof | |
| CN108510963A (en) | Screen brightness adjusting method and device, storage medium and intelligent terminal | |
| US20160110332A1 (en) | Character string input control method and apparatus | |
| WO2017032019A1 (en) | Screen brightness adjusting method and user terminal | |
| US9823779B2 (en) | Method and device for controlling a head-mounted display by a terminal device | |
| CN114237485A (en) | Touch operation method and device | |
| KR20120075885A (en) | Terminal and brightness control method thereof | |
| WO2017032123A1 (en) | Video playback control method and device | |
| AU2015297122A1 (en) | Electronic device operating in idle mode and method thereof | |
| CN106020670A (en) | Screen lightening control method, device and electronic equipment | |
| CN104732167B (en) | A kind of detection control method and mobile terminal applied to mobile terminal | |
| CN104750421A (en) | Touch screen operation method and device for mobile terminal | |
| CN106055097A (en) | Screen lighting control method and apparatus, and electronic device | |
| CN107426802B (en) | Terminal management method and device | |
| CN102929408A (en) | Method and device for quickly opening application | |
| WO2017032018A1 (en) | Screen brightness adjustment method and user terminal | |
| TW201510772A (en) | Gesture determination method and electronic device | |
| CN110231963A (en) | application control method and related device | |
| CN106961516B (en) | Flash lamp control method and device | |
| WO2017096962A1 (en) | Human-computer interaction method, apparatus, and mobile device | |
| CN103955327B (en) | Information processing method and electronic equipment | |
| US20170220131A1 (en) | Method for controlling operations of an electronic device through ambient light detection, and associated apparatus |
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application | Ref document number:16838275 Country of ref document:EP Kind code of ref document:A1 | |
| NENP | Non-entry into the national phase | Ref country code:DE | |
| 122 | Ep: pct application non-entry in european phase | Ref document number:16838275 Country of ref document:EP Kind code of ref document:A1 |