CN111415722B - Screen control method and electronic equipment - Google Patents

Screen control method and electronic equipment Download PDF

Info

Publication number
CN111415722B
CN111415722B CN202010203712.9A CN202010203712A CN111415722B CN 111415722 B CN111415722 B CN 111415722B CN 202010203712 A CN202010203712 A CN 202010203712A CN 111415722 B CN111415722 B CN 111415722B
Authority
CN
China
Prior art keywords
screen
duration
electronic equipment
user
time
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
CN202010203712.9A
Other languages
Chinese (zh)
Other versions
CN111415722A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010203712.9A priority Critical patent/CN111415722B/en
Publication of CN111415722A publication Critical patent/CN111415722A/en
Application granted granted Critical
Publication of CN111415722B publication Critical patent/CN111415722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a screen control method and electronic equipment. The screen control method comprises the following steps: controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action under the condition that the first screen-on time of the electronic equipment reaches a first time threshold; receiving a first input of a screen unlocking control by a user; and responding to the first input, and controlling the screen of the electronic equipment to be unlocked under the condition that the first screen-off time length of the electronic equipment reaches a second time length threshold value and/or the motion action of the user is matched with the preset action. The embodiment of the invention can solve the problem that a user cannot be effectively reminded to avoid using the electronic equipment for a long time.

Description

Screen control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to a screen control method and electronic equipment.
Background
With the development of electronic devices, many people use the electronic devices for a long time, and the physical health is easily affected due to the inactivity of the head for a long time, for example, cervical spondylosis and other diseases are suffered.
However, although many people know that the long-term use of the electronic device can affect health, the use time is often easy to ignore when the electronic device is used, and no effective way is provided for reminding the user at present.
Disclosure of Invention
The embodiment of the invention provides a screen control method and electronic equipment, which are used for solving the problem that a user cannot be effectively reminded to avoid using the electronic equipment for a long time.
In a first aspect, an embodiment of the present invention provides a screen control method, which is applied to an electronic device, including:
controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action under the condition that the first screen-on time of the electronic equipment reaches a first time threshold;
receiving a first input of a screen unlocking control by a user;
and responding to the first input, and controlling the screen of the electronic equipment to be unlocked under the condition that the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of the user is matched with the preset action.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the first screen-off module is used for controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action when the first screen-on duration of the electronic equipment reaches a first time threshold;
the first receiving module is used for receiving a first input of a screen unlocking control by a user;
The first unlocking module is used for responding to the first input, and controlling the screen of the electronic equipment to be unlocked when the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of the user is matched with the preset action.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the screen control method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the screen control method according to the first aspect.
In the embodiment of the invention, under the condition that the first screen-lighting time length of the electronic equipment reaches the first time length threshold, the user is indicated to use the electronic equipment for a long time, so that if the electronic equipment is in a screen-off state, after the first input of the screen unlocking control is received by the user, the screen of the electronic equipment cannot be directly unlocked, and only under the condition that the first screen-off time length of the electronic equipment reaches the second time length threshold and/or the movement action of the user is matched with the preset action, the screen of the electronic equipment can be controlled to be unlocked. Therefore, after the screen is turned off under the condition that the user uses the electronic equipment for a long time, the user cannot directly unlock the screen to continue to use the electronic equipment, but must ensure that the first screen-off duration reaches a certain duration and/or the user performs a preset action, so that the method can effectively remind the user of using the electronic equipment, and the health management is performed on the user by controlling the using time or the method requiring the user to move.
Drawings
The invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic flow chart of a screen control method according to an embodiment of the present invention;
fig. 2 is a flowchart of another screen control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As in the background art, people use electronic equipment for a long time, and the electronic equipment is easy to influence the health of the body due to the fact that the head is inactive for a long time, for example, the electronic equipment suffers from cervical spondylosis and other diseases. However, people often ignore the use time when using the electronic device, and at present, there is no very effective way to remind the user.
In order to solve the above-mentioned problems, the present invention provides a screen control method, referring to fig. 1, fig. 1 shows a flow chart of a screen control method provided by an embodiment of the present invention; the method is applied to the electronic equipment and comprises the following steps:
s101, controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action under the condition that the first screen-on time of the electronic equipment reaches a first time threshold;
and when the first screen-lighting duration reaches a first duration threshold, indicating that the time for using the electronic equipment by the user is longer at the moment, and stopping using the electronic equipment is needed.
According to the embodiment, the user can move down after using the electronic equipment for a long time by making the user perform the preset action, so that the problems of muscle stiffness and the like caused by using the electronic equipment for a long time are relieved, and the health hidden trouble caused by using the electronic equipment for a long time by the user is reduced. Because the user uses the electronic device for a long time, the neck and shoulder may be very stiff, and the preset motion based on the neck may be a neck motion, such as turning left 5 down, turning right 5 down, raising the head 5 down, nodding the head 5 down, and the like. After the camera of the electronic equipment collects the motion actions of the user, the motion actions are matched with the pre-recorded preset actions to confirm whether the user performs the preset actions. The preset motion may be a whole body motion, such as chest expansion motion.
S102, receiving a first input of a screen unlocking control by a user;
the screen unlocking control refers to a control for controlling the screen locking of the electronic equipment, the first input can be input by pressing an unlocking key on the side edge of the electronic equipment, can also be input by sliding unlocking of a touch screen, and the like, and the specific content of the first input is not limited.
And S103, responding to the first input, and controlling the screen of the electronic equipment to be unlocked under the condition that the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of the user is matched with the preset action.
In the case where the screen-off duration has satisfied the time for the user to rest, screen unlocking may be allowed. The motion action of the user is matched with the preset action, namely, the user completes the target action after the screen is extinguished and performs the activity, so that the aim of avoiding the user from being inactive for a long time in the embodiment of the invention is also fulfilled, and the screen can be unlocked at the moment.
And under the condition that the first screen-off duration of the electronic equipment does not reach the second duration threshold value or the motion action of the user is not matched with the preset action, the condition indicates that the time for stopping using the electronic equipment by the user is insufficient or the user does not complete the designated motion action, so that the electronic equipment cannot be unlocked without responding to the first input.
In the embodiment of the invention, under the condition that the first screen-lighting duration of the electronic equipment reaches the first time threshold, the condition that the time for using the electronic equipment by the user is longer is indicated, so that if the electronic equipment is out of screen, after the first input of the screen unlocking control by the user is received, the unlocking cannot be directly performed, but the screen unlocking of the electronic equipment can be controlled only under the condition that the first screen-lighting duration of the electronic equipment reaches the second time threshold and/or the motion action of the user meets the first preset condition, and under the condition that the condition is not met, the first input is not responded. Therefore, after the screen is turned off under the condition that the user uses the electronic equipment for a long time, the user cannot directly unlock the screen to continue to use the electronic equipment, but the first screen-off duration is required to meet specific conditions and/or the movement action of the user meets specific conditions.
In an embodiment of the present invention, optionally, the first screen lighting duration of the electronic device may include: the last time the electronic device was in the bright screen state. It should be noted that the first bright screen period herein refers to a period of time that is continuously in the bright screen state. Taking the first time length threshold value as 1h as an example, the electronic equipment takes a mobile phone as an example, and assuming that a user starts playing the mobile phone from 10:30 until the mobile phone is played to 11:30, if the screen is not actively turned off in the middle, the mobile phone is controlled to be turned off at 11:30.
After S102, the method further includes:
and when the first screen-off duration of the electronic equipment reaches the second duration threshold and/or the motion action of the user is matched with the preset action, the first screen-on duration is reckoned.
In the embodiment of the invention, when the first screen-off duration of the electronic equipment reaches the second duration threshold, or the motion action of the user is matched with the preset action, the first screen-on duration is reckoned.
Because the embodiment of the invention is to avoid the situation that the user uses the electronic equipment for a long time, when the continuous screen-lighting time of the electronic equipment reaches the first time threshold, the embodiment of the invention indicates that the user continuously uses the electronic equipment for a long time and needs to have rest and activity. The first time threshold may be 1h, or may also be set to other times, or in other embodiments, the user may be allowed to adjust the first time threshold by itself, for example, in a case where a display setting interface is displayed, an adjustment input of the user to a control corresponding to the first time threshold is received, and a value of the first time threshold is set in response to the adjustment input.
Based on the above embodiment, since the user may not know the specific content of the preset actions or forget the sequence of the actions, in some embodiments of the present invention, prompting the user to perform the preset actions in S101 may include:
Outputting at least one of the following prompt messages: voice, text images, animation, video, etc., to guide the user to complete the preset actions. After the user finishes one motion action, the camera can also acquire the motion action of the user, match the motion action with a preset action in the prompt information, and display the prompt information of the next action after the matching is successful; and if the user does not finish the current movement action, displaying the prompt information of the current preset action.
The method can guide the user to act, avoid the situation that the user cannot unlock the electronic equipment after forgetting the correct movement act, and improve the convenience of the user.
In addition, in other embodiments, whether the user belongs to the office sedentary type can be judged by the number of exercise steps in one day displayed by the pedometer in the electronic device, if yes, the user can unlock the screen only after the user finishes the preset action, so that health management of the user is further realized.
Because the user may temporarily have something in the process of using the electronic device, the screen is briefly controlled to be turned off, for example, for 1min, and then the screen is quickly controlled to be unlocked, in this case, the purpose of making the user rest or active cannot be achieved due to short off time. Therefore, in some embodiments of the present invention, as shown in fig. 2, fig. 2 shows a flowchart of another screen control method according to an embodiment of the present invention. Prior to S101, the method may further include:
Receiving a second input of a screen quenching control by a user under the condition that the first screen-on duration does not reach a first time threshold, responding to the second input, controlling the electronic equipment to enter a second screen quenching state, and suspending accumulated timing of the first screen-on duration;
and under the condition that the electronic equipment is in the second screen-off state, if the first input is received, responding to the first input, continuously counting the first screen-on duration, and controlling the screen of the electronic equipment to be unlocked. At this time, since the first screen-lighting duration has not reached the first time duration threshold, the screen unlocking can be directly controlled.
The first screen-off state refers to an automatic screen-off state caused by the fact that the first screen-on duration of the electronic device reaches a first time threshold, and the second screen-off state refers to a screen-off state caused by the fact that the first screen-on duration of the electronic device does not reach the first time threshold yet, but is controlled by manual operation of a user.
In this embodiment, under the condition that the user only briefly turns off the screen, the timing of the first screen-lighting duration is paused, but the first screen-lighting duration is not cleared after the screen is turned off, and then the numerical value of the first screen-lighting duration is continuously accumulated after the screen is unlocked until the first screen-lighting duration reaches the first time threshold. The method considers the actual use situation of the user, and avoids the condition that the user escapes from reminding through short screen extinction, so that a better reminding effect can be achieved, and the health problem caused by long-time use of the electronic equipment by the user is reduced.
In another embodiment, after the user turns off the screen of the electronic device halfway, there may be a situation that the electronic device is not unlocked for a long time, and the purpose of avoiding the user to use the electronic device for a long time is also achieved.
S201, under the condition that the first screen-on duration does not reach a first time threshold and a second input of a screen-off control by a user is received, responding to the second input, controlling the electronic equipment to enter a second screen-off state, timing the second screen-off duration of the electronic equipment, and controlling to pause the accumulated timing of the first screen-on duration;
s202, if the electronic equipment is in a second screen-off state and the second screen-off duration does not reach a third duration threshold, responding to the first input, controlling the second screen-off duration to clear, continuously performing accumulated timing on the first screen-on duration, and controlling the screen of the electronic equipment to be unlocked;
the first time period threshold is 1h, and the third time period threshold is 5 min. If the first screen-lighting duration does not reach 1h, the screen is turned off, the recording of the first screen-lighting duration is paused, and if the second screen-lighting duration does not reach 5min, the screen is controlled to be unlocked directly according to the received first input, and the first screen-lighting duration is continuously recorded.
For example, when a user starts playing a mobile phone from 10:30 and controls the mobile phone to turn off the screen for 3min at 10:50, the first screen-on duration does not reach 1h, the second screen-off duration does not reach 5min, and when the subsequent user unlocks the mobile phone again and does not turn off the screen all the time, the mobile phone is controlled to enter a first screen-off state at 11:33.
S203, receiving a first input when the first screen-on duration does not reach a first time threshold and the second screen-off duration reaches a third time threshold, controlling the second screen-off duration to clear, timing the first screen-on duration again and controlling the screen of the electronic equipment to be unlocked in response to the first input;
when the first screen-lighting time length is not accumulated for 1h, if the second screen-lighting time length reaches 5min, the first screen-lighting time length is cleared, and after the first input is received subsequently, the screen is directly controlled to be unlocked.
For example, when the user starts playing the mobile phone from 10:30 and controls the mobile phone to turn off the screen for 10min at 10:50, the first screen-lighting duration is recorded again after the mobile phone is subsequently unlocked because the 10min is greater than 5 min.
It should be noted that, no matter the specific value of the second screen-off duration, after each screen unlocking, the second screen-off duration is cleared, that is, in the process that the first screen-on duration is not accumulated for 1h, the second screen-off duration is re-recorded each time.
S204, under the condition that the second screen-off duration does not reach the third duration threshold and the first screen-on duration reaches the first duration threshold, controlling the first screen-on duration and the second screen-off duration to be cleared, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform preset actions.
When the first screen-on duration reaches 1h, if the screen is not turned off halfway for 5min, the electronic equipment is controlled to enter a first screen-off state, and the first screen-off duration is recorded.
S205, receiving a first input of a screen unlocking control by a user;
s206, responding to the first input, controlling the screen of the electronic equipment to be unlocked and timing the first screen-lighting time again under the condition that the first screen-lighting time of the electronic equipment reaches a second time threshold and/or the motion action of the user is matched with the preset action.
S207, if the first screen-off duration of the electronic device does not reach the second duration threshold and the motion action of the user is not matched with the preset action, the first input is not responded.
The conditions for controlling the unlocking of the electronic device in S206 are specifically: if the first screen-off duration of the electronic device reaches the second duration threshold and the motion action of the user is matched with the preset action, S207 is that the first input is not responded if the first screen-off duration of the electronic device does not reach the second duration threshold or the motion action of the user is not matched with the preset action.
The conditions for controlling the unlocking of the electronic device in S206 are specifically: if the first screen-off duration of the electronic device reaches the second duration threshold or the motion action of the user is matched with the preset action, S207 is not to respond to the first input if the first screen-off duration of the electronic device does not reach the second duration threshold and the motion action of the user is not matched with the preset action.
The conditions for controlling the unlocking of the electronic device in S206 are specifically: the first screen-off duration of the electronic equipment reaches a second duration threshold; s207 is: and when the first screen-off duration of the electronic equipment does not reach the second duration threshold value, the first input is not responded. The conditions for controlling the unlocking of the electronic device in S206 are specifically: the motion action of the user is matched with the preset action; s207 is: and if the motion action of the user is not matched with the preset action, the first input is not responded. Of these, fig. 2 is only one specific example.
S205 to S206 are similar to S102 to S103 in fig. 1, and are not described here again.
In this embodiment, under the condition that the user only briefly turns off the screen, the timing of the first screen-lighting duration is paused, but the first screen-lighting duration is not cleared after the screen is turned off, and as long as the user does not turn off the screen for a long time halfway, the numerical value of the first screen-lighting duration is accumulated until the first screen-lighting duration reaches the first time threshold. The method considers the actual use situation of the user, and avoids the condition that the user escapes from reminding through short screen extinction, so that a better reminding effect can be achieved, and the health problem caused by long-time use of the electronic equipment by the user is reduced.
In addition, in other embodiments, when the second screen-off duration does not reach the third duration threshold, under the condition that the first input is received, the second screen-off duration is not controlled to be cleared, but timing of the second screen-off duration is paused, as long as the first screen-on duration does not reach the first duration threshold, after the second screen-off state is next entered, the second screen-off duration is continuously recorded, that is, the second screen-off duration is the same as the first screen-on duration, and is counted up, when the first screen-on duration does not reach the first duration threshold and the second screen-off duration reaches the third duration threshold, it is indicated that the second screen-off duration is counted up to the preset threshold, after the first input is received, the second screen-off duration is controlled to be cleared, the first screen-on duration is controlled to be cleared, and screen unlocking of the electronic device is controlled. The third duration threshold in this embodiment may be greater than the third duration threshold in the foregoing embodiment, and may be, for example, 10min.
In a further embodiment, the method further comprises:
and under the condition that the first screen-lighting time length does not reach the first time length threshold value and the time difference between the first screen-lighting time length and the first time length threshold value reaches the preset time difference, outputting prompt information, wherein the prompt information is used for prompting a user to enter a first screen-off state after the time of the preset time difference.
The embodiment is used for prompting the user immediately before the control electronic equipment enters the first screen-off state, so that the situation that the user loses information due to the fact that the user does not store the information in time is avoided. Therefore, the preset time difference is not set too large, and may be 3 minutes, for example. The prompt information can comprise text contents such as 'about to enter a screen-off state in 3 min', or can prompt a user by dimming the screen brightness, and the invention is not limited to the output form of the prompt information.
In another embodiment, after S103 or S206, the method may further include:
after unlocking the screen from the first screen-off state, recording the screen-on time of the electronic equipment to obtain a second screen-on time;
and under the condition that the second screen-lighting time length reaches a fourth time length threshold value, the first screen-lighting time length is reckoned.
That is, after unlocking the screen from the first screen-off state, the first screen-on duration is not immediately recorded, but after waiting for the fourth time threshold, the first screen-on duration is recorded again. And under the condition that the second screen-lighting duration does not meet the fourth time duration threshold, if the electronic equipment enters the screen-off state, after the subsequent electronic equipment receives the first input, the first screen-off duration and/or whether the motion action of the user meets the corresponding conditions are not needed to be judged, and the electronic equipment can be directly unlocked. The fourth time length threshold is not set too long, and may be, for example, 2 minutes. By the method, under the condition that the user only briefly turns on the electronic equipment, the first screen-lighting duration does not need to be recorded, so that the number of forced screen-off times is reduced, and convenience of the user is improved, wherein the forced screen-off refers to entering a first screen-off state.
Based on the screen control method embodiment provided by the embodiment, the embodiment of the invention also provides an electronic device, as shown in fig. 3, and fig. 3 shows a schematic structural diagram of the electronic device provided by the embodiment of the invention. The electronic device includes:
the first screen-off module 301 is configured to control the electronic device to enter a first screen-off state and prompt a user to perform a preset action when a first screen-on duration of the electronic device reaches a first time threshold;
the first receiving module 302 is configured to receive a first input of a screen unlocking control by a user;
the first unlocking module 303 is configured to control, in response to the first input, unlocking a screen of the electronic device if the first screen-off duration of the electronic device reaches the second duration threshold and/or if the motion action of the user matches the preset action.
In the embodiment of the invention, under the condition that the first screen-lighting duration of the electronic equipment reaches the first time threshold, the condition that the time for using the electronic equipment by the user is longer is indicated, so that if the electronic equipment is out of screen, after the first input of the screen unlocking control by the user is received, the unlocking cannot be directly performed, but the screen unlocking of the electronic equipment can be controlled only under the condition that the first screen-lighting duration of the electronic equipment reaches the second time threshold and/or the motion action of the user meets the first preset condition, and under the condition that the condition is not met, the first input is not responded. Therefore, after the screen is turned off under the condition that the user uses the electronic equipment for a long time, the user cannot directly unlock the screen to continue to use the electronic equipment, but the first screen-off duration is required to meet specific conditions and/or the movement action of the user meets specific conditions.
In an embodiment of the present invention, optionally, the first screen lighting duration of the electronic device includes: the first unlocking module 303 is further configured to:
when the first receiving module receives first input of a screen unlocking control by a user, if the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of the user is matched with a preset action, the first screen-on duration is counted again.
Because the embodiment of the invention is to avoid the situation that the user uses the electronic equipment for a long time, when the continuous screen-lighting time of the electronic equipment reaches the first time threshold, the embodiment of the invention indicates that the user continuously uses the electronic equipment for a long time and needs to have rest and activity.
In some embodiments of the present invention, the prompting, by the first screen extinguishing module 301, the user to perform a preset action may include: outputting at least one of the following prompt messages: voice, text images, animation, video, etc., to guide the user to complete the preset actions. After the user finishes one motion action, the camera can also acquire the motion action of the user, match the motion action with a preset action in the prompt information, and display the prompt information of the next action after the matching is successful; and if the user does not finish the current movement action, displaying the prompt information of the current preset action. The method can guide the user to act, avoid the situation that the user cannot unlock the electronic equipment after forgetting the correct movement act, and improve the convenience of the user.
In addition, in other embodiments, the unlocking module may further determine whether the user belongs to the office sedentary type through the number of steps of movement in one day displayed by the pedometer in the electronic device, if yes, the user may have to complete a preset action to unlock the screen, so as to further implement health management of the user.
In some embodiments of the present invention, the electronic device may further include:
the second screen-off module is used for receiving second input of a screen-off control by a user under the condition that the first screen-on duration does not reach a first time threshold before the electronic equipment enters a first screen-off state, responding to the second input, controlling the electronic equipment to enter the second screen-off state, and suspending accumulated timing of the first screen-on duration;
and the second unlocking module is used for responding to the first input, continuously counting the first screen-on duration and controlling the screen unlocking of the electronic equipment if the first input is received under the condition that the electronic equipment is in the second screen-off state.
In this embodiment, under the condition that the user only briefly turns off the screen, the timing of the first screen-lighting duration is paused, but the first screen-lighting duration is not cleared after the screen is turned off, and then the numerical value of the first screen-lighting duration is continuously accumulated after the screen is unlocked until the first screen-lighting duration reaches the first time threshold. The method considers the actual use situation of the user, and avoids the condition that the user escapes from reminding through short screen extinction, so that a better reminding effect can be achieved, and the health problem caused by long-time use of the electronic equipment by the user is reduced.
In another embodiment, the second screen-off module is further configured to, in response to a second input, time a second screen-off duration of the electronic device;
the first unlocking module 303 is specifically configured to: when the second screen-off duration does not reach the third duration threshold and the first screen-on duration reaches the first duration threshold, controlling the first screen-on duration and the second screen-off duration to be cleared, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform preset actions;
the second unlocking module is specifically used for: if the electronic equipment is in a second screen-off state and the second screen-off duration does not reach a third duration threshold value, if a first input is received, controlling the second screen-off duration to clear, continuously performing accumulated timing on the first screen-on duration and controlling the screen of the electronic equipment to be unlocked in response to the first input;
the electronic device further includes:
the third unlocking module is used for receiving the first input when the first screen-lighting time length does not reach the first time length threshold value and the second screen-quenching time length reaches the third time length threshold value, responding to the first input, controlling the second screen-quenching time length to be cleared, timing the first screen-lighting time length again and controlling the screen unlocking of the electronic equipment.
In this embodiment, under the condition that the user only briefly turns off the screen, the timing of the first screen-lighting duration is paused, but the first screen-lighting duration is not cleared after the screen is turned off, and as long as the user does not turn off the screen for a long time halfway, the numerical value of the first screen-lighting duration is accumulated until the first screen-lighting duration reaches the first time threshold. The method considers the actual use situation of the user, and avoids the condition that the user escapes from reminding through short screen extinction, so that a better reminding effect can be achieved, and the health problem caused by long-time use of the electronic equipment by the user is reduced.
In addition, in other embodiments, when the second screen-off duration does not reach the third duration threshold, under the condition that the first input is received, the second screen-off duration is not controlled to be cleared, but timing of the second screen-off duration is paused, as long as the first screen-on duration does not reach the first duration threshold, after the second screen-off state is next entered, the second screen-off duration is continuously recorded, that is, the second screen-off duration is the same as the first screen-on duration, and is counted up, when the first screen-on duration does not reach the first duration threshold and the second screen-off duration reaches the third duration threshold, it is indicated that the second screen-off duration is counted up to the preset threshold, after the first input is received, the second screen-off duration is controlled to be cleared, the first screen-on duration is controlled to be cleared, and screen unlocking of the electronic device is controlled. The third duration threshold in this embodiment may be greater than the third duration threshold in the foregoing embodiment.
In a further embodiment, the electronic device further comprises:
the prompting module is used for outputting prompting information when the first screen-lighting duration does not reach the first time threshold value and the time difference between the first screen-lighting duration and the first time threshold value reaches the preset time difference, and the prompting information is used for prompting a user to enter a first screen-off state after the time of the preset time difference.
The embodiment is used for prompting the user immediately before the control electronic equipment enters the first screen-off state, so that the situation that the user loses information due to the fact that the user does not store the information in time is avoided.
In another embodiment, the electronic device may further include:
the recording module is used for recording the screen-lighting duration of the electronic equipment after the screen is unlocked from the first screen-off state, so as to obtain a second screen-lighting duration; and under the condition that the second screen-lighting time length reaches a fourth time length threshold value, the first screen-lighting time length is reckoned.
By the method, under the condition that the user only briefly turns on the electronic equipment, the first screen-lighting duration does not need to be recorded, so that the number of forced screen-off times is reduced, and convenience of the user is improved.
The electronic device provided in the embodiment of the present invention can implement each method step implemented in the method embodiments of fig. 1 to 2, and in order to avoid repetition, a description is omitted here.
Fig. 4 shows a schematic hardware structure of an electronic device according to an embodiment of the present invention.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power source 411. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
The processor 410 is configured to control the electronic device to enter a first screen-off state and prompt a user to perform a preset action when a first screen-on duration of the electronic device reaches a first time threshold; receiving a first input of a screen unlocking control by a user; and responding to the first input, and controlling the screen of the electronic equipment to be unlocked under the condition that the first screen-off time length of the electronic equipment reaches a second time length threshold value and/or the motion action of the user is matched with the preset action.
In the embodiment of the invention, under the condition that the first screen-lighting duration of the electronic equipment reaches the first time threshold, the condition that the time for using the electronic equipment by the user is longer is indicated, so that if the electronic equipment is out of screen, after the first input of the screen unlocking control by the user is received, the unlocking cannot be directly performed, but the screen unlocking of the electronic equipment can be controlled only under the condition that the first screen-lighting duration of the electronic equipment reaches the second time threshold and/or the motion action of the user meets the first preset condition, and under the condition that the condition is not met, the first input is not responded. Therefore, after the screen is turned off under the condition that the user uses the electronic equipment for a long time, the user cannot directly unlock the screen to continue to use the electronic equipment, but the first screen-off duration is required to meet specific conditions and/or the movement action of the user meets specific conditions.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the received downlink data by the processor 410; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 402, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 400. The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive an audio or video signal. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphics processor 4041 may be stored in memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 405 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 406 is used to display information input by a user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 4071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 410, and receives and executes commands sent from the processor 410. In addition, the touch panel 4071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 4072 in addition to the touch panel 4071. In particular, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 4071 may be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 410 to determine the type of touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 4071 may be integrated with the display panel 4061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface to which an external device is connected to the electronic apparatus 400. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 409 and invoking data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may also include a power supply 411 (e.g., a battery) for powering the various components, and preferably the power supply 411 may be logically connected to the processor 410 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 400 includes some functional modules, which are not shown, and are not described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of running on the processor 410, where the computer program when executed by the processor 410 implements each process of the above-mentioned embodiment of the screen control method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned screen control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (6)

1. A screen control method applied to an electronic device, comprising:
controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action under the condition that the first screen-on time of the electronic equipment reaches a first time threshold;
receiving a first input of a screen unlocking control by a user;
responding to the first input, and controlling the screen of the electronic equipment to be unlocked when the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of a user is matched with the preset action;
the method further comprises the steps of:
when the first screen-on duration does not reach the first time threshold and a second input of the screen-off control by the user is received, responding to the second input, controlling the electronic equipment to enter a second screen-off state, timing the second screen-off duration of the electronic equipment, and controlling to pause the accumulated timing of the first screen-on duration;
If the electronic equipment is in the second screen-off state and the second screen-off duration does not reach a third duration threshold value, if a first input is received, controlling the second screen-off duration to clear, continuously performing accumulated timing on the first screen-on duration and controlling the screen of the electronic equipment to be unlocked in response to the first input;
and if the first screen-lighting duration does not reach the first time duration threshold and the second screen-quenching duration reaches the third time duration threshold, responding to the first input, controlling the second screen-quenching duration to clear, timing the first screen-lighting duration again, and controlling the screen of the electronic equipment to be unlocked.
2. The method of claim 1, wherein the first duration of the bright screen of the electronic device comprises: the time length of the electronic equipment in the bright screen state last time;
after receiving the first input of the user to the screen unlocking control, the method further comprises:
and when the first screen-off duration of the electronic equipment reaches a second duration threshold and/or the motion action of the user is matched with the preset action, the first screen-on duration is reckoned.
3. The method according to claim 1, wherein the method further comprises:
and outputting prompt information when the first screen-lighting time length does not reach the first time length threshold value and the time difference between the first screen-lighting time length and the first time length threshold value reaches a preset time difference, wherein the prompt information is used for prompting a user to enter the first screen-off state after the time of the preset time difference.
4. An electronic device, comprising:
the first screen-off module is used for controlling the electronic equipment to enter a first screen-off state and prompting a user to perform a preset action when the first screen-on duration of the electronic equipment reaches a first time threshold;
the first receiving module is used for receiving a first input of a screen unlocking control by a user;
the first unlocking module is used for responding to the first input and controlling the screen unlocking of the electronic equipment under the condition that the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of a user is matched with the preset action;
the second screen-off module is used for responding to the second input, controlling the electronic equipment to enter a second screen-off state, timing the second screen-off duration of the electronic equipment and controlling to pause the accumulated timing of the first screen-on duration when the first screen-on duration does not reach the first time threshold and the second input of the screen-off control by the user is received;
The second unlocking module is used for controlling the second screen-off duration to be cleared, continuously carrying out accumulated timing on the first screen-on duration and controlling the screen unlocking of the electronic equipment if the first input is received under the condition that the electronic equipment is in the second screen-off state and the second screen-off duration does not reach a third duration threshold;
and the third unlocking module is used for controlling the second screen-quenching duration to be cleared and timing the first screen-brightening duration again and controlling the screen unlocking of the electronic equipment if the first input is received under the condition that the first screen-brightening duration does not reach the first time duration threshold and the second screen-quenching duration reaches the third time duration threshold.
5. The electronic device of claim 4, wherein the first duration of the bright screen of the electronic device comprises: the time length of the electronic equipment in the bright screen state last time;
the first unlocking module is further used for:
when the first receiving module receives first input of a screen unlocking control by a user, if the first screen-off duration of the electronic equipment reaches a second duration threshold value and/or the motion action of the user is matched with the preset action, the first screen-on duration is reckoned.
6. The electronic device of claim 4, wherein the electronic device further comprises:
the prompting module is used for outputting prompting information when the first screen-lighting duration does not reach the first time threshold and the time difference between the first screen-lighting duration and the first time threshold reaches a preset time difference, and the prompting information is used for prompting a user to enter the first screen-off state after the time of the preset time difference.
CN202010203712.9A 2020-03-20 2020-03-20 Screen control method and electronic equipment Active CN111415722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010203712.9A CN111415722B (en) 2020-03-20 2020-03-20 Screen control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010203712.9A CN111415722B (en) 2020-03-20 2020-03-20 Screen control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111415722A CN111415722A (en) 2020-07-14
CN111415722B true CN111415722B (en) 2023-09-22

Family

ID=71493123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010203712.9A Active CN111415722B (en) 2020-03-20 2020-03-20 Screen control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111415722B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2022019036A1 (en) * 2020-07-20 2022-01-27
CN112131543A (en) * 2020-09-23 2020-12-25 深兰科技(上海)有限公司 Terminal and unlocking method and unlocking device thereof
CN118626183A (en) * 2023-03-09 2024-09-10 华为技术有限公司 Screen state control method and electronic equipment
CN117154872B (en) * 2023-08-01 2023-12-29 南京汤峰机电有限公司 Lithium battery charging control method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873894A (en) * 2017-02-23 2017-06-20 上海与德信息技术有限公司 The eye care method and device of a kind of electronic equipment
CN107451529A (en) * 2017-07-07 2017-12-08 广东小天才科技有限公司 Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN109348044A (en) * 2018-09-18 2019-02-15 北京猎户星空科技有限公司 Control method, device, equipment and the storage medium of smart machine
CN109784014A (en) * 2018-12-12 2019-05-21 维沃移动通信有限公司 A kind of unlocking screen method and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873894A (en) * 2017-02-23 2017-06-20 上海与德信息技术有限公司 The eye care method and device of a kind of electronic equipment
CN107451529A (en) * 2017-07-07 2017-12-08 广东小天才科技有限公司 Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN109348044A (en) * 2018-09-18 2019-02-15 北京猎户星空科技有限公司 Control method, device, equipment and the storage medium of smart machine
CN109784014A (en) * 2018-12-12 2019-05-21 维沃移动通信有限公司 A kind of unlocking screen method and terminal device

Also Published As

Publication number Publication date
CN111415722A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN111415722B (en) Screen control method and electronic equipment
CN108135033B (en) Bluetooth connection method and mobile terminal
US11604567B2 (en) Information processing method and terminal
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN110825226A (en) Message viewing method and terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN110209275B (en) Terminal control method and terminal
CN107908705A (en) A kind of information-pushing method, information push-delivery apparatus and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN110865858A (en) Screen awakening method and electronic equipment
CN110933230A (en) Message processing method and electronic equipment
CN110602314B (en) Operation control method, electronic device and computer readable storage medium
CN109949809B (en) Voice control method and terminal equipment
CN108062195A (en) The reminding method and mobile terminal of a kind of notification event
CN109164908B (en) Interface control method and mobile terminal
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN107888780B (en) Illumination control method of mobile terminal and mobile terminal
CN110213439B (en) Message processing method and terminal
CN109614827B (en) Control method of mobile terminal and mobile terminal
CN108366166B (en) Mobile terminal and operation method thereof
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN108197893B (en) Reminding method and mobile terminal
CN110766396A (en) Graphic code display method and electronic equipment
CN115083330A (en) Screen parameter adjusting method, mobile terminal and computer readable 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