[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111415722A - Screen control method and electronic equipment - Google Patents

Screen control method and electronic equipment Download PDF

Info

Publication number
CN111415722A
CN111415722A CN202010203712.9A CN202010203712A CN111415722A CN 111415722 A CN111415722 A CN 111415722A CN 202010203712 A CN202010203712 A CN 202010203712A CN 111415722 A CN111415722 A CN 111415722A
Authority
CN
China
Prior art keywords
screen
duration
user
electronic equipment
input
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.)
Granted
Application number
CN202010203712.9A
Other languages
Chinese (zh)
Other versions
CN111415722B (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

Images

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: under the condition that the first screen-on duration of the electronic equipment reaches a first time threshold, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform a preset action; receiving a first input of a user to a screen unlocking control; 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 the second duration threshold and/or the motion action of the user is matched with the preset action. The embodiment of the invention can solve the problem that the 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 electronic devices for a long time, and are prone to affecting physical health due to long-time head lowering and inactivity, for example, diseases such as cervical spondylosis are suffered.
However, although many people know that the health of people is affected by long-time use of the electronic equipment, the use time is often easily ignored when using the electronic equipment, and currently, a very effective way for reminding a user is not provided.
Disclosure of Invention
The embodiment of the invention provides a screen control method and electronic equipment, and aims to solve 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 applied to an electronic device, including:
under the condition that the first screen-on duration of the electronic equipment reaches a first time threshold, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform a preset action;
receiving a first input of a user to a screen unlocking control;
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 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 turn-off module is used for controlling the electronic equipment to enter a first screen turn-off state and prompting a user to perform a preset action under the condition that the first screen-on duration of the electronic equipment reaches a first time duration threshold;
the first receiving module is used for receiving a first input of a user to the screen unlocking control;
and the first unlocking module is used for 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 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 operable on the processor, where the computer program, when executed by the processor, implements the steps of the screen control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the screen control method according to the first aspect.
In the embodiment of the invention, when the first screen-on duration of the electronic device reaches the first time threshold, it indicates that the time for the user to use the electronic device is long, so that in this case, after the electronic device turns off the screen, after receiving the first input of the user to the screen unlocking control, the electronic device cannot be directly unlocked, and only when the first screen-off duration of the electronic device reaches the second time threshold and/or the motion action of the user is matched with the preset action, the screen of the electronic device can be controlled to be unlocked. Therefore, after the screen is turned off when the user uses the electronic equipment for a long time, the user cannot directly unlock the screen to continue using the electronic equipment, but the first screen turning-off duration is ensured to reach a certain duration and/or the user performs a preset action, the way can effectively remind the user of the time for using the electronic equipment, and the user is subjected to health management by controlling the use time or requiring the user to move.
Drawings
The present 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 flowchart of a screen control method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating 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 diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As the background art, people use electronic equipment for a long time, and the health of people is easily affected due to long-time head lowering and inactivity, for example, diseases such as cervical spondylosis and the like are caused. However, people often easily ignore the use time when using the electronic device, and currently, there is no very effective way to remind the user.
In order to solve the above problem, the present invention provides a screen control method, and referring to fig. 1, fig. 1 shows a flow diagram 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, under the condition that the first screen-on duration of the electronic equipment reaches a first duration threshold, 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 reaches the first duration threshold, the user uses the electronic device for a longer time, and the use of the electronic device needs to be suspended.
This embodiment makes the user can move about after using electronic equipment for a long time through making the user predetermine the action, alleviates muscle rigidity scheduling problem that long-time use electronic equipment brought to reduce the long-time health hidden danger that uses electronic equipment to bring of user. Wherein, because the user can be very stiff after using the electronic device for a long time, the preset actions based on this can be neck actions, such as turning left 5 down, turning right 5 down, raising head 5 down, nodding head 5 down, etc. After the camera of the electronic equipment collects the motion action of the user, the motion action is matched with the pre-recorded preset action to confirm whether the user carries out the preset action. The preset action may be a whole body action, such as chest expanding exercise.
S102, receiving a first input of a user to a screen unlocking control;
the screen unlocking control refers to a control for controlling the screen locking of the electronic device, the first input may be an input of pressing an unlocking button on the side of the electronic device, or a sliding unlocking input on the touch screen, and the like.
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 the second duration threshold 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 take a rest, the screen unlocking may be allowed. The motion action of the user is matched with the preset action, which means that the user finishes the target action after turning off the screen 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 fulfilled, and the screen can be unlocked.
And under the condition that the first screen-off duration of the electronic equipment does not reach the second duration threshold or the motion action of the user is not matched with the preset action, the fact that the time for the user to stop using the electronic equipment is insufficient at the moment is indicated, or the user does not complete the specified activity action, so that the first input is not responded, and the unlocking cannot be performed.
In the embodiment of the invention, when the first screen-on duration of the electronic device reaches the first time threshold, it indicates that the time for the user to use the electronic device is long, so in this case, after the electronic device turns off the screen, after receiving the first input of the user to the screen unlocking control, the electronic device cannot be directly unlocked, but only when the first screen-off duration of the electronic device reaches the second time threshold and/or the motion action of the user meets the first preset condition, the screen of the electronic device can be controlled to be unlocked, and when 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 using the electronic equipment, but the first screen turning-off duration time meets a specific condition and/or the movement action of the user meets the specific condition, the mode can effectively remind the user of the time for using the electronic equipment, and the health management is carried out on the user by controlling the use time or the mode of requiring the movement of the user.
In this embodiment of the present invention, optionally, the first screen-on duration of the electronic device may include: the time length that the electronic device was last in the bright screen state. It should be noted that the first bright screen duration here refers to a duration of being in the bright screen state continuously. Taking the first time threshold value as 1h and the electronic device as a mobile phone as an example, assuming that the user starts playing the mobile phone from 10:30 until the user plays the mobile phone to 11:30, and does not actively turn off the screen in the middle, the mobile phone is controlled to turn off the screen 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, timing the first screen-on duration again.
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 counted again.
Because the embodiment of the invention is intended to avoid the situation that the user uses the electronic equipment for a long time, when the continuous screen-on duration of the electronic equipment reaches the first time threshold, the user indicates that the time for continuously using the electronic equipment is too long, and the user needs to take a rest and an activity. The first duration threshold may be 1h, or may also be set to other times, or in other embodiments, the user may also be allowed to adjust the first duration threshold by himself, for example, in a case that a display setting interface is displayed, an adjustment input of the user to a control corresponding to the first duration threshold is received, and in response to the adjustment input, a numerical value of the first duration threshold is set.
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, the prompting the user to perform the preset actions in S101 may include:
outputting at least one of the following prompt messages: voice, text image, animation, video, etc., to guide the user to complete the preset action. After the user finishes each movement, the movement of the user can be collected through the camera, the movement is matched with the preset movement in the prompt message, and the prompt message of the next movement is displayed after the matching is successful; and if the user does not finish the current movement action all the time, always displaying the prompt message of the current preset action.
The method can guide the user to act, avoids the situation that the user cannot unlock the electronic equipment after forgetting the correct movement action, and improves the convenience of the user.
In addition, in other embodiments, whether the user belongs to the office sedentary type or not can be judged through the moving steps in one day displayed by the pedometer in the electronic equipment, and if so, the user can unlock the screen only by completing a preset action, so that the health management of the user is further realized.
Due to the fact that a user may have something in the process of using the electronic device temporarily, the screen can be controlled to be turned off for a short time, for example, the screen is turned off for 1min, and then the screen can be controlled to be unlocked very soon, and under the condition, due to the fact that the screen is turned off for a short time, the purpose of enabling the user to have a rest or move cannot be achieved. Therefore, in some embodiments of the present invention, as shown in fig. 2, fig. 2 is a schematic flow chart of another screen control method provided by an embodiment of the present invention. Before S101, the method may further include:
under the condition that the first screen-on duration does not reach the first duration threshold, receiving a second input of the screen-off control by the user, responding to the second input, controlling the electronic equipment to enter a second screen-off state, and suspending the 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 performing accumulated timing on the first screen-on duration, and controlling the screen of the electronic equipment to be unlocked. At this time, the first screen-on duration does not reach the first duration threshold, so that the screen can be directly controlled to be unlocked.
The first screen-off state refers to an automatic screen-off state caused by that the first screen-on duration of the electronic device reaches a first duration threshold, and the second screen-off state refers to a screen-off state caused by that the first screen-on duration of the electronic device does not reach the first duration threshold, but is controlled by a manual operation of a user.
In this embodiment, when the user only briefly turns off the screen, the timing of the first screen-on duration may be suspended, but the first screen-on duration may not be cleared after turning off the screen, and then the numerical value of the first screen-on duration may continue to be accumulated after unlocking until the first screen-on duration reaches the first duration threshold. The mode considers the actual use scene of the user, and avoids the condition that the user evades reminding by temporarily turning off the screen, thereby playing a better reminding effect and reducing the health problem caused by long-time use of the electronic equipment by the user.
In another embodiment, after the user turns off the electronic device halfway, there may be a case where the user does not unlock the electronic device any more for a long time, and at this time, the purpose of avoiding the user from using the electronic device for a long time is also achieved, based on this case, an embodiment of the present invention further provides another method, where the method includes:
s201, under the condition that the first screen-on duration does not reach a first time threshold and second input of a user to a screen-off control 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 suspend cumulative timing of the first screen-on duration;
s202, under the condition that 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 if the first input is received, controlling the second screen-off duration to be cleared, continuously performing accumulated timing on the first screen-on duration, and controlling the screen of the electronic equipment to be unlocked;
the first duration threshold is 1h, and the third duration threshold is 5 min. If the first screen-on duration does not reach 1h and the second input is received, the screen is turned off, the first screen-on duration is recorded temporarily, and if the second screen-off duration does not reach 5min, the screen is controlled to be unlocked directly according to the received first input, and the first screen-on duration is recorded continuously.
For example, a user starts playing a mobile phone from 10:30, the mobile phone is controlled to be turned off for 3min at 10:50, the first screen-on duration does not reach 1h, the second screen-off duration does not reach 5min, and if the mobile phone is not turned off after a subsequent user unlocks the mobile phone again, the mobile phone is controlled to enter the first screen-off state at 11: 33.
S203, receiving a first input under the condition that the first screen-on duration does not reach a first time threshold and the second screen-off duration reaches a third time threshold, responding to the first input, controlling the second screen-off duration to be cleared, timing the first screen-on duration again, and controlling the screen of the electronic equipment to be unlocked;
namely, when the first screen-on duration is not accumulated to 1h, if the second screen-off duration reaches 5min, the first screen-on duration is cleared, and after a first input is subsequently received, the screen is directly controlled to be unlocked.
For example, a user starts playing a mobile phone from 10:30, controls the mobile phone to turn off the screen for 10min at 10:50, and records the first screen-on duration again after unlocking the mobile phone subsequently because 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 is unlocked, the second screen-off duration is cleared, that is, in the process that the first screen-on duration is not accumulated to 1h, the second screen-off duration is recorded again each time the screen is turned off.
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 a preset action.
And when the first screen-on duration reaches 1h, if the screen is extinguished halfway each time for not more than 5min, controlling the electronic equipment to enter a first screen-off state, and starting to record the first screen-off duration.
S205, receiving a first input of a user to the screen unlocking control;
s206, responding to the first input, controlling the screen of the electronic equipment to be unlocked under the condition that 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, and timing the first screen-on duration again.
And S207, under the condition that the first screen-off duration of the electronic equipment does not reach the second duration threshold value and the motion action of the user is not matched with the preset action, not responding to the first input.
When the condition for controlling the electronic device to unlock in S206 is specifically: if the first screen-off duration of the electronic device reaches the second duration threshold and the motion action of the user matches the preset action, S207 does not respond to the first input if the first screen-off duration of the electronic device does not reach the second duration threshold or the motion action of the user does not match the preset action.
When the condition for controlling the electronic device to unlock in S206 is specifically: if the first screen-off duration of the electronic device reaches the second duration threshold or the motion action of the user matches the preset action, S207 does not 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 does not match the preset action.
When the condition for controlling the electronic device to unlock in S206 is specifically: the first screen-off duration of the electronic equipment reaches a second duration threshold; then 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. When the condition for controlling the electronic device to unlock in S206 is specifically: the motion action of the user is matched with the preset action; then S207 is: and under the condition that 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-S206 are similar to S102-S103 in FIG. 1 and are not described herein again.
In this embodiment, when the user only briefly turns off the screen, the timing of the first screen-lighting duration may be suspended, but the first screen-lighting duration may not be cleared after turning off the screen, 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 may be accumulated until the first screen-lighting duration reaches the first duration threshold. The mode considers the actual use scene of the user, and avoids the condition that the user evades reminding by temporarily turning off the screen, thereby playing a better reminding effect and reducing the health problem caused by long-time use of the electronic equipment by the user.
In addition, in other embodiments, when the first input is received when the second screen-off duration does not reach the third duration threshold, the second screen-off duration is not controlled to be cleared, but the timing of the second screen-off duration is suspended, as long as the first screen-on duration does not reach the first duration threshold, the second screen-off duration is continuously recorded after the second screen-off state is entered next time, that is, the second screen-off duration is the same as the first screen-on duration and is counted cumulatively, 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 accumulated to the preset threshold, after the first input is received, the second screen-off duration is controlled to be cleared in response to the first input, the first screen-on duration is controlled to be cleared, the first screen-on duration is controlled to be retimed, and the screen of the electronic device is controlled to be unlocked. The third duration threshold in this embodiment may be greater than the third duration threshold in the foregoing embodiment, and may be 10min, for example.
In a further embodiment, the method further comprises:
and outputting prompt information under the condition that the first screen-on duration does not reach the first time threshold and the time difference between the first screen-on duration and the first time threshold reaches a preset time difference, wherein the prompt information is used for prompting a user to enter a first screen-off state after the preset time difference elapses.
The embodiment is used for prompting the user before the electronic equipment is about to be controlled to enter the first screen-off state, so that the condition that the information is lost due to the fact that the information is not stored in time by the user is avoided. Therefore, the preset time difference is not set to be too large, and may be 3min, for example. The prompt message may include text such as "enter a screen-off state in 3 min" or may prompt the user by dimming the screen brightness, and the output form of the prompt message is not limited in the present invention.
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 duration of the electronic equipment to obtain second screen-on duration;
and when the second screen-on duration reaches the fourth time threshold, timing the first screen-on duration again.
That is, after unlocking the screen from the first screen-off state, the recording of the first screen-on duration is not started immediately, but is started after waiting for the fourth duration threshold. And under the condition that the second screen-on duration does not meet the fourth duration threshold, if the electronic device enters the screen-off state, the subsequent electronic device can be unlocked directly without judging whether the first screen-off duration and/or the motion action of the user meet the corresponding conditions after receiving the first input. The fourth time threshold is not set too long, and may be, for example, 2 min. In this way, under the condition that the user only briefly turns on the electronic device, the duration of the first screen-on is not required to be recorded, so that the times of forced screen-off are reduced, and the convenience of the user is improved, wherein the forced screen-off refers to entering the first screen-off state.
Based on the screen control method embodiment provided by the above embodiment, an embodiment of the present invention further provides an electronic device, as shown in fig. 3, and fig. 3 shows a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device includes:
the first screen turning-off module 301 is configured to, when a first screen-on duration of the electronic device reaches a first time threshold, control the electronic device to enter a first screen turning-off state, and prompt a user to perform a preset action;
a first receiving module 302, configured to receive a first input of a screen unlocking control from a user;
the first unlocking module 303 is configured to, in response to the first input, control the screen of the electronic device to be unlocked when the first screen-off duration of the electronic device reaches the second duration threshold and/or the motion action of the user matches the preset action.
In the embodiment of the invention, when the first screen-on duration of the electronic device reaches the first time threshold, it indicates that the time for the user to use the electronic device is long, so in this case, after the electronic device turns off the screen, after receiving the first input of the user to the screen unlocking control, the electronic device cannot be directly unlocked, but only when the first screen-off duration of the electronic device reaches the second time threshold and/or the motion action of the user meets the first preset condition, the screen of the electronic device can be controlled to be unlocked, and when 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 using the electronic equipment, but the first screen turning-off duration time meets a specific condition and/or the movement action of the user meets the specific condition, the mode can effectively remind the user of the time for using the electronic equipment, and the health management is carried out on the user by controlling the use time or the mode of requiring the movement of the user.
In this embodiment of the present invention, optionally, the first screen-lighting duration of the electronic device includes: the last time the electronic device is in the bright screen state, the first unlocking module 303 is further configured to:
when the first receiving module receives a first input of a user to the screen unlocking control, if 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, timing the first screen-on duration again.
Because the embodiment of the invention is intended to avoid the situation that the user uses the electronic equipment for a long time, when the continuous screen-on duration of the electronic equipment reaches the first time threshold, the user indicates that the time for continuously using the electronic equipment is too long, and the user needs to take a rest and an activity.
In some embodiments of the present invention, the prompting, by the first screen-off module 301, the user to perform a preset action may include: outputting at least one of the following prompt messages: voice, text image, animation, video, etc., to guide the user to complete the preset action. After the user finishes each movement, the movement of the user can be collected through the camera, the movement is matched with the preset movement in the prompt message, and the prompt message of the next movement is displayed after the matching is successful; and if the user does not finish the current movement action all the time, always displaying the prompt message of the current preset action. The method can guide the user to act, avoids the situation that the user cannot unlock the electronic equipment after forgetting the correct movement action, and improves the convenience of the user.
In addition, in other embodiments, the unlocking module can also judge whether the user belongs to the office sedentary type or not through the number of movement steps in one day displayed by the pedometer in the electronic device, and if so, the user can unlock the screen only by completing a preset action, so that the health management of the user is further realized.
In some embodiments of the invention, the electronic device may further comprise:
the second screen-off module is used for receiving a second input of the screen-off control by the user before controlling the electronic equipment to enter the first screen-off state and under the condition that the first screen-on duration does not reach the first time-length threshold value, responding to the second input, controlling the electronic equipment to enter the second screen-off state, and suspending the accumulated timing of the first screen-on duration;
and the second unlocking module is used for responding to the first input and continuously counting the first screen-on duration in an accumulated manner and controlling the screen of the electronic equipment to be unlocked if the first input is received under the condition that the electronic equipment is in the second screen-off state.
In this embodiment, when the user only briefly turns off the screen, the timing of the first screen-on duration may be suspended, but the first screen-on duration may not be cleared after turning off the screen, and then the numerical value of the first screen-on duration may continue to be accumulated after unlocking until the first screen-on duration reaches the first duration threshold. The mode considers the actual use scene of the user, and avoids the condition that the user evades reminding by temporarily turning off the screen, thereby playing a better reminding effect and reducing the health problem caused by long-time use of the electronic equipment by the user.
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: 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 reset, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform a preset action;
the second unlocking module is specifically configured to: under the condition that 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 if the first input is received, controlling the second screen-off duration to be cleared, continuously counting the first screen-on duration in an accumulated manner, and controlling the screen of the electronic equipment to be unlocked;
the electronic device further includes:
and the third unlocking module is used for receiving the first input under the condition that the first screen-on duration does not reach the first time threshold and the second screen-off duration reaches the third time threshold, responding to the first input, controlling the second screen-off duration to be reset, timing the first screen-on duration again and controlling the screen of the electronic equipment to be unlocked.
In this embodiment, when the user only briefly turns off the screen, the timing of the first screen-lighting duration may be suspended, but the first screen-lighting duration may not be cleared after turning off the screen, 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 may be accumulated until the first screen-lighting duration reaches the first duration threshold. The mode considers the actual use scene of the user, and avoids the condition that the user evades reminding by temporarily turning off the screen, thereby playing a better reminding effect and reducing the health problem caused by long-time use of the electronic equipment by the user.
In addition, in other embodiments, when the first input is received when the second screen-off duration does not reach the third duration threshold, the second screen-off duration is not controlled to be cleared, but the timing of the second screen-off duration is suspended, as long as the first screen-on duration does not reach the first duration threshold, the second screen-off duration is continuously recorded after the second screen-off state is entered next time, that is, the second screen-off duration is the same as the first screen-on duration and is counted cumulatively, 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 accumulated to the preset threshold, after the first input is received, the second screen-off duration is controlled to be cleared in response to the first input, the first screen-on duration is controlled to be cleared, the first screen-on duration is controlled to be retimed, and the screen of the electronic device is controlled to be unlocked. The third duration threshold in this embodiment may be greater than the third duration threshold in the foregoing embodiments.
In a further embodiment, the electronic device further comprises:
and the prompting module is used for outputting prompting information under the condition that the first screen-on duration does not reach the first time threshold and the time difference between the first screen-on duration and the first time threshold reaches the preset time difference, wherein the prompting information is used for prompting a user to enter a first screen-off state after the preset time difference elapses.
The embodiment is used for prompting the user before the electronic equipment is about to be controlled to enter the first screen-off state, so that the condition that the information is lost due to the fact that the information is not stored in time by the user is avoided.
In another embodiment, the electronic device may further include:
the recording module is used for recording the screen-on duration of the electronic equipment after unlocking the screen from the first screen-off state to obtain second screen-on duration; and when the second screen-on duration reaches the fourth time threshold, timing the first screen-on duration again.
By the mode, under the condition that the user only briefly starts the electronic equipment, the duration of the first screen-on time does not need to be recorded, so that the forced screen-off times are reduced, and the 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 fig. 2, and is not described herein again to avoid repetition.
Fig. 4 shows a hardware structure diagram 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 supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, 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 user to a screen unlocking control; 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 the second duration threshold and/or the motion action of the user is matched with the preset action.
In the embodiment of the invention, when the first screen-on duration of the electronic device reaches the first time threshold, it indicates that the time for the user to use the electronic device is long, so in this case, after the electronic device turns off the screen, after receiving the first input of the user to the screen unlocking control, the electronic device cannot be directly unlocked, but only when the first screen-off duration of the electronic device reaches the second time threshold and/or the motion action of the user meets the first preset condition, the screen of the electronic device can be controlled to be unlocked, and when 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 using the electronic equipment, but the first screen turning-off duration time meets a specific condition and/or the movement action of the user meets the specific condition, the mode can effectively remind the user of the time for using the electronic equipment, and the health management is carried out on the user by controlling the use time or the mode of requiring the movement of the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
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 related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as 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 graphic processor 4041 may be stored in the 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 transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also 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 will not be described in detail herein.
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 (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 407 may be used to receive input numeric or character information and 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. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (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.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling 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, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly 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 further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned screen control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the screen control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A screen control method is applied to electronic equipment and is characterized by comprising the following steps:
under the condition that the first screen-on duration of the electronic equipment reaches a first time threshold, controlling the electronic equipment to enter a first screen-off state, and prompting a user to perform a preset action;
receiving a first input of a user to a screen unlocking control;
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 and/or the motion action of the user is matched with the preset action.
2. The method of claim 1, wherein the first on-screen duration of the electronic device comprises: the time length when the electronic equipment is in a bright screen state for the last time;
after the receiving of the first input of the screen unlocking control by the user, 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, timing the first screen-on duration again.
3. The method of claim 1, wherein before controlling the electronic device to enter the first screen-off state, further comprising:
receiving a second input of the screen turn-off control by a user under the condition that the first screen-on duration does not reach the first time threshold, responding to the second input, controlling the electronic equipment to enter a second screen turn-off state, and suspending the 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 performing accumulated timing on the first screen-on duration, and controlling the screen of the electronic equipment to be unlocked.
4. The method of claim 3, wherein after said responding to said second input, further comprising:
timing a second screen-off duration of the electronic equipment;
the method further comprises the following steps:
and under the condition that the first screen-on duration does not reach the first time threshold and the second screen-off duration reaches the third time threshold, receiving the first input, responding to the first input, controlling the second screen-off duration to be reset, timing the first screen-on duration again, and controlling the screen of the electronic equipment to be unlocked.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
when the first screen-on duration does not reach the first time threshold, outputting prompt information under the condition that the time difference between the first screen-on duration and the first time threshold 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.
6. An electronic device, comprising:
the first screen turn-off module is used for controlling the electronic equipment to enter a first screen turn-off state and prompting a user to perform a preset action under the condition that the first screen-on duration of the electronic equipment reaches a first time duration threshold;
the first receiving module is used for receiving a first input of a user to the screen unlocking control;
and the first unlocking module is used for 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 and/or the motion action of the user is matched with the preset action.
7. The electronic device of claim 6, wherein the first on-screen duration of the electronic device comprises: the time length when the electronic equipment is in a bright screen state for the last time;
the first unlocking module is further configured to:
when the first receiving module receives a first input of a user to the screen unlocking control, if 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, timing the first screen-on duration again.
8. The electronic device of claim 6, further comprising:
the second screen-off module is used for receiving a second input of a user to the screen-off control under the condition that the first screen-on duration does not reach the first duration threshold before the electronic equipment is controlled to enter the first screen-off state, responding to the second input, controlling the electronic equipment to enter the second screen-off state, and suspending the accumulated timing of the first screen-on duration;
and the second unlocking module is used for responding to the first input if the first input is received under the condition that the electronic equipment is in the second screen-off state, continuously performing accumulated timing on the first screen-on duration and controlling the screen of the electronic equipment to be unlocked.
9. The electronic device of claim 8, wherein the second screen-out module is further configured to, in response to the second input, time a second screen-out duration of the electronic device;
the electronic device further includes:
and the third unlocking module is used for receiving the first input under the condition that the first screen-on duration does not reach the first time threshold and the second screen-off duration reaches the third time threshold, responding to the first input, controlling the second screen-off duration to be reset, timing the first screen-on duration again and controlling the screen of the electronic equipment to be unlocked.
10. The electronic device according to claim 8 or 9, characterized in that the electronic device further comprises:
and the prompt module is used for outputting prompt information under the condition that the first screen-on duration does not reach the first time threshold and the time difference of the first screen-on duration and the first time threshold reaches the 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 passes.
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 true CN111415722A (en) 2020-07-14
CN111415722B 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)

Cited By (4)

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

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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2022019036A1 (en) * 2020-07-20 2022-01-27
WO2022019036A1 (en) * 2020-07-20 2022-01-27 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Information processing device, information processing method, and information processing program
CN112131543A (en) * 2020-09-23 2020-12-25 深兰科技(上海)有限公司 Terminal and unlocking method and unlocking device thereof
WO2024183503A1 (en) * 2023-03-09 2024-09-12 华为技术有限公司 Screen state control method and electronic device
CN117154872A (en) * 2023-08-01 2023-12-01 南京汤峰机电有限公司 Lithium battery charging control method and system
CN117154872B (en) * 2023-08-01 2023-12-29 南京汤峰机电有限公司 Lithium battery charging control method and system

Also Published As

Publication number Publication date
CN111415722B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN109712621B (en) Voice interaction control method and terminal
CN111415722B (en) Screen control method and electronic equipment
CN108089891B (en) Application program starting method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN109065060B (en) Voice awakening method and terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN108600557B (en) Screen on-off control method and mobile terminal
CN110209275B (en) Terminal control method and terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN110865858A (en) Screen awakening method and electronic equipment
CN110933230A (en) Message processing method and electronic equipment
CN109246312B (en) Information prompting method and mobile terminal
CN109040431B (en) Mode control method, terminal and storage medium
CN109164908B (en) Interface control method and mobile terminal
CN108366166B (en) Mobile terminal and operation method thereof
CN110638437A (en) Control method based on heart rate monitoring, terminal, wearable device and storage medium
CN110312035A (en) A kind of control method of terminal, mobile terminal and computer readable storage medium
CN110213439B (en) Message processing method and terminal
CN110113486B (en) Application icon moving method and terminal
CN109614827B (en) Control method of mobile terminal and mobile terminal
CN108089799B (en) Control method of screen edge control and mobile terminal
CN111402157A (en) Image processing method and electronic equipment
CN110928616A (en) Shortcut icon management method and electronic equipment

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