CN112235458A - Device sleep control method, device and computer readable medium - Google Patents

Device sleep control method, device and computer readable medium Download PDF

Info

Publication number
CN112235458A
CN112235458A CN202011098935.XA CN202011098935A CN112235458A CN 112235458 A CN112235458 A CN 112235458A CN 202011098935 A CN202011098935 A CN 202011098935A CN 112235458 A CN112235458 A CN 112235458A
Authority
CN
China
Prior art keywords
target
touch screen
screen operation
countdown
timer
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
CN202011098935.XA
Other languages
Chinese (zh)
Other versions
CN112235458B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011098935.XA priority Critical patent/CN112235458B/en
Publication of CN112235458A publication Critical patent/CN112235458A/en
Application granted granted Critical
Publication of CN112235458B publication Critical patent/CN112235458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The application relates to a device dormancy control method, a device dormancy control device, a device and a computer readable medium. The method comprises the following steps: under the condition that a first touch screen operation is detected, identifying a target digital identifier triggered by the first touch screen operation, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identifier is used for representing the sleep parameters; after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target dormancy countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering dormancy control; and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down. The technical problem that the step of setting up the equipment dormancy is loaded down with trivial details is solved in this application, can laminate user's actual demand more, greatly simplifies the operation step of setting up the equipment dormancy, improves user experience.

Description

Device sleep control method, device and computer readable medium
Technical Field
The present application relates to the field of device control technologies, and in particular, to a device sleep control method, apparatus, device, and computer readable medium.
Background
With the smart phone playing an important role in the life of people, people can not leave the smart phone more and more, when a user sees an interested content on the smart phone, the user needs to read and think for a long time, in this case, the user reading experience is seriously affected when the mobile phone screen is turned off, and if the user opens the setting interface to reset the operation of the screen dormancy time, the operation is very troublesome, and the user experience is poor.
At present, in the related art, a mobile phone user generally performs screen sleep setting in a sleep option in a setting menu, a display and brightness option, for example, the mobile phone does not operate for 30 seconds when being checked, a system layer acquires 30 seconds checked by the user after pressing a power key to light a screen, and then calls a function k _ timer _ start (& tmr,30,0) to start timing how long the user does not operate the mobile phone, a second parameter 30 of the function represents 30 seconds, so that the setting is required under the condition that the user needs to be adjusted every time, the steps are complicated, and the user experience is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a device dormancy control method, a device dormancy control device, a device and a computer readable medium, which are used for solving the technical problem that the device dormancy step is complicated.
According to an aspect of an embodiment of the present application, there is provided a device sleep control method, including: under the condition that a first touch screen operation is detected, identifying a target digital identifier triggered by the first touch screen operation, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identifier is used for representing the sleep parameters; after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target dormancy countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering dormancy control; and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down.
Optionally, the identifying the target digital identifier triggered by the first touch screen operation includes: under the condition that the first digital identifier is identified, storing the first digital identifier in a first target bit, wherein the first target bit is a digit and is used for determining the digit indicated by the first digital identifier; and taking the first digital identifier as a target digital identifier.
Optionally, in case the first digital identification is recognized, the method further comprises: under the condition that a second digital identifier is recognized in a second time range, replacing the digital identifier of the first target bit with the second digital identifier, storing the first digital identifier in a second target bit, wherein the second target bit is a digit and is used for being combined with the first target bit to determine a digit formed by the first digital identifier and the second digital identifier, and the second target bit is arranged in front of the first target bit from left to right; and taking the first digital identifier and the second digital identifier as target digital identifiers according to the arrangement sequence of the first target bit and the second target bit.
Optionally, determining the target sleep countdown according to the number indicated by the target number indicator comprises: determining a first target digit indicated by the first digit identification, and determining a first product coefficient corresponding to the first target bit; the product of the first target number and the first product coefficient is counted down as a target sleep count.
Optionally, determining the target sleep countdown according to the number indicated by the target number indicator comprises: determining a first target number indicated by the first number identification, determining a second target number indicated by the second number identification, determining a first product coefficient corresponding to the first target bit, and determining a second product coefficient corresponding to the second target bit; taking the product of the first target number and the second multiplication coefficient as a first result, and taking the product of the second target number and the first multiplication coefficient as a second result; the sum of the first result and the second result is counted down as the target sleep.
Optionally, in a case that the touch screen operation is not detected, controlling the timer to count down the hibernation according to the target hibernation count-down includes: replacing a preset dormancy countdown in the timer with a target dormancy countdown; starting a timer to count down according to a target dormancy count down under the condition that the touch screen operation is not detected; in the event that a touch screen operation is detected during the timer countdown, the timer is reset so that the timer restarts the countdown.
Optionally, the method further comprises cancelling the sleep countdown by the target sleep countdown control timer in at least one of the following ways: under the condition that a third touch screen operation of the target object is detected in the countdown process of the timer, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer; and under the condition that a power key on the terminal equipment where the target display screen is located is pressed in the countdown process of the timer, controlling the target display screen to be turned off, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer.
According to another aspect of the embodiments of the present application, there is provided an apparatus sleep control device, including: the identification recognition module is used for recognizing a target digital identification triggered by a first touch screen operation under the condition that the first touch screen operation is detected, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identification is used for representing the sleep parameters; the countdown updating module is used for determining target dormancy countdown according to the number indicated by the target number identifier under the condition that a second touch screen operation is detected within a first time range after the first touch screen operation is finished, wherein the second touch screen operation is used for triggering dormancy control; and the dormancy control module is used for controlling the timer to count down according to the target dormancy count-down under the condition that the touch screen operation is not detected.
According to another aspect of the embodiments of the present application, there is provided an electronic device, including a memory, a processor, a communication interface, and a communication bus, where the memory stores a computer program executable on the processor, and the memory and the processor communicate with each other through the communication bus and the communication interface, and the processor implements the steps of the method when executing the computer program.
According to another aspect of embodiments of the present application, there is also provided a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the above-mentioned method.
Compared with the related art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the technical scheme, under the condition that a first touch screen operation is detected, a target digital identifier triggered by the first touch screen operation is identified, the first touch screen operation is used for setting equipment dormancy parameters, and the target digital identifier is used for representing the dormancy parameters; after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target dormancy countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering dormancy control; and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down. The technical problem that the step of setting up the equipment dormancy is loaded down with trivial details is solved in this application, can laminate user's actual demand more, greatly simplifies the operation step of setting up the equipment dormancy, improves user experience.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without any creative effort.
Fig. 1 is a hardware environment diagram of an alternative device sleep control method according to an embodiment of the present application;
fig. 2 is a flowchart of an alternative device sleep control method according to an embodiment of the present application;
fig. 3 is a block diagram of an alternative apparatus sleep control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
In the related art, a mobile phone user generally performs screen sleep setting in a sleep option in a setting menu, a display option and a brightness option, for example, the mobile phone does not operate for 30 seconds to sleep, a system layer acquires 30 seconds hooked by the user after pressing a power key to light a screen, and then calls a function k _ timer _ start (& tmr,30,0) to start timing how long the user does not operate the mobile phone, a second parameter 30 of the function represents 30 seconds, so that the setting is required under the condition that the user needs to be adjusted every time, the steps are complicated, and the user experience is poor.
To solve the problems mentioned in the background, according to an aspect of embodiments of the present application, an embodiment of a device sleep control method is provided.
Alternatively, in the embodiment of the present application, the device sleep control method described above may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or separately from the server, and is used to provide data storage services for the server 103, and the network includes but is not limited to: wide area network, metropolitan area network, or local area network, and the terminal 101 includes but is not limited to a PC, a cell phone, a tablet computer, and the like.
A device dormancy control method in the embodiment of the present application may be executed by the server 103, or may be executed by both the server 103 and the terminal 101, as shown in fig. 2, the method may include the following steps:
step S202, under the condition that a first touch screen operation is detected, a target digital identifier triggered by the first touch screen operation is recognized, the first touch screen operation is used for setting equipment dormancy parameters, and the target digital identifier is used for representing the dormancy parameters.
In the embodiment of the application, when a mobile phone user sees a piece of content which is interesting and needs to be thought for a long time on a mobile phone, the mobile phone user needs to see the content on the mobile phone and think at the same time, so that the screen of the mobile phone is not expected to be turned off in a short time, and therefore numbers, namely the first touch screen operation, can be written on the display screen to quickly set the sleep parameters of the device. For example, if the user writes 5 on the display screen of the mobile phone, the device sleep parameter set by the user may be 5 minutes, where the device sleep parameter may be a screen-off countdown of the display screen after no new touch screen operation is received. After the user inputs the number, the system needs to identify the number input by the user.
Step S204, after the first touch screen operation is finished, under the condition that a second touch screen operation is detected in a first time range, determining a target sleep countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering sleep control.
In the embodiment of the application, in order to avoid the user misoperation, a control identifier for triggering the device sleep control may be set, and after the user inputs a number (first touch screen operation), the user may input the control identifier on the display screen to trigger the device sleep control. For the convenience of memory and convenience of use, the control identifier may be a "═ number, and may be set according to the actual needs of the user. The operation of inputting the control identifier by the user is the second touch screen operation. The time for inputting the second touch screen operation by the user can be within the first time range, and the first touch screen operation needs to be performed again when the time exceeds the first time range. Preferably, the first time range may be set to two seconds. And under the condition that the system detects that the user inputs a control identifier (second touch screen operation), triggering the equipment dormancy control, so that the number input by the user is updated to the countdown of the timer, and the original countdown setting of the timer is covered.
And step S206, under the condition that the touch screen operation is not detected, performing sleep countdown according to the target sleep countdown control timer.
In the embodiment of the application, when the user does not perform the touch screen operation, the timer starts to count down according to the time set by the user, and once the user performs the touch screen operation during the count down period, the timer is reset. And when the countdown is finished, controlling the screen of the mobile phone display screen to be turned off so as to enter the equipment dormant state.
In the embodiment of the present application, the sleep parameter (screen-off countdown) set by the user may be a single digit or a multiple digit, and the method for recognizing the single digit and updating the countdown with the single digit is described in detail below.
Optionally, identifying the target digital identifier triggered by the first touch screen operation may include the following steps:
step 1, under the condition that a first digital identifier is identified, storing the first digital identifier in a first target bit, wherein the first target bit is a digit and is used for determining the digit indicated by the first digital identifier;
and 2, taking the first digital identifier as a target digital identifier.
Optionally, determining the target sleep countdown according to the number indicated by the target number indicator may include the steps of:
step 1, determining a first target digit indicated by a first digit identification, and determining a first product coefficient corresponding to a first target bit;
and step 2, taking the product of the first target number and the first product coefficient as a target dormancy countdown.
In the embodiment of the present application, the one-digit number is only one-digit, so that the first target bit is one-digit, the one-digit number input by the user can be stored in one-digit, the first product coefficient is 1, and the digit on one-digit can be directly used as a new countdown set by the user when the countdown is updated.
The following describes the method of identifying a multi-bit number and performing countdown update using the multi-bit number in detail by taking a two-bit number as an example.
Optionally, in case the first digital identification is recognized, the method further comprises:
step 1, under the condition that a second digital identifier is identified in a second time range, replacing the digital identifier of a first target bit with the second digital identifier, storing the first digital identifier in a second target bit, wherein the second target bit is a digital bit and is used for being combined with the first target bit to determine a number formed by the first digital identifier and the second digital identifier, and the second target bit is arranged in front of the first target bit from left to right;
and 2, taking the first digital identifier and the second digital identifier as target digital identifiers according to the arrangement sequence of the first target bit and the second target bit.
Optionally, determining the target sleep countdown according to the number indicated by the target number identifier may further include the steps of:
step 1, determining a first target digit indicated by a first digit identification, determining a second target digit indicated by a second digit identification, determining a first product coefficient corresponding to a first target bit, and determining a second product coefficient corresponding to a second target bit;
step 2, taking the product of the first target number and the second product coefficient as a first result, and taking the product of the second target number and the first product coefficient as a second result;
and 3, taking the sum of the first result and the second result as a target dormancy countdown.
In the embodiment of the application, when a plurality of digits are input, the fingers of the user may leave the display screen for a short time, so that whether the user continues to input the digits can be continuously detected in a second time range, wherein the second time range can be 1 second, and the setting can be performed according to actual needs. In the countdown updating process, taking two digits as an example, the digit input by the user for the first time is taken as ten digits (namely, the second target digit), the digit input by the user for the second time is taken as one digit, the first product coefficient is 1, and the second product coefficient is 10, so that the calculated two digits are taken as a new countdown set by the user.
Optionally, in the case that no touch screen operation is detected, controlling the timer to count down the hibernation according to the target hibernation count-down time may include the following steps:
step 1, replacing a preset dormancy countdown in a timer with a target dormancy countdown;
step 2, under the condition that the touch screen operation is not detected, starting a timer to count down according to the target dormancy count down; in the event that a touch screen operation is detected during the timer countdown, the timer is reset so that the timer restarts the countdown.
In the embodiment of the application, the mobile phone is provided with the timer on the system layer to control the screen of the display screen of the mobile phone to be turned off, the countdown (namely, the target dormancy countdown) set by the user can be covered by the preset dormancy countdown of the timer, and therefore the timer starts to be started according to the target dormancy countdown under the condition that the display screen does not receive the touch screen operation. For example, the countdown preset by the timer of the mobile phone system layer is generally 30 seconds, if the foregoing steps have determined that the target sleep countdown is 5 minutes, the setting of 30 seconds is covered by 5 minutes, and the countdown of 5 minutes is started when the touch screen operation is not received by the display screen of the mobile phone.
Optionally, if the system successfully uses the target sleep countdown to override the preset sleep countdown, the system may control the mobile phone to flash twice to inform the user that the countdown is successfully updated, or may control the display screen to flash twice in the backlight, or may directly pop up a countdown update success prompt message on the display screen.
Optionally, the method further comprises canceling the control of the target display screen to be turned off according to the target hibernation countdown in at least one of the following ways:
under the condition that a third touch screen operation of the target object is received in the countdown process of the timer, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer;
and under the condition that a power key on the terminal equipment where the target display screen is located is pressed in the countdown process of the timer, controlling the target display screen to be turned off, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer.
In this embodiment of the application, when the user wants to cancel the countdown control device according to the target hibernation, a cancel identifier may be input on the display screen, that is, the third touch screen operation is performed. The cancellation identifier may be a symbol, or a combination of numbers and symbols to avoid a user misoperation, for example, a user inputs 0 on a screen of a mobile phone first and then continues to input "═ to trigger a cancellation control operation. After triggering the cancel control operation, the system overrides the target sleep countdown previously set by the user with a preset sleep countdown and resets the timer.
The user can also press the power key to turn off the screen, and then trigger the cancel control operation, and the system uses the preset dormancy countdown to cover the target dormancy countdown set before the user, and resets the timer.
According to the technical scheme, under the condition that a first touch screen operation is detected, a target digital identifier triggered by the first touch screen operation is identified, the first touch screen operation is used for setting equipment dormancy parameters, and the target digital identifier is used for representing the dormancy parameters; after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target dormancy countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering dormancy control; and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down. The technical problem that the step of setting up the equipment dormancy is loaded down with trivial details is solved in this application, can laminate user's actual demand more, greatly simplifies the operation step of setting up the equipment dormancy, improves user experience.
According to still another aspect of the embodiments of the present application, as shown in fig. 3, there is provided an apparatus sleep control device including: the identifier identification module 301 is configured to identify a target digital identifier triggered by a first touch screen operation when the first touch screen operation is detected, where the first touch screen operation is used to set a device hibernation parameter, and the target digital identifier is used to indicate the hibernation parameter; a countdown updating module 303, configured to determine a target dormancy countdown according to the number indicated by the target number identifier when a second touch screen operation is detected within a first time range after the first touch screen operation is ended, where the second touch screen operation is used to trigger dormancy control; and a sleep control module 305, configured to control a timer to count down according to the target sleep count-down when the touch screen operation is not detected.
It should be noted that the identifier identifying module 301 in this embodiment may be configured to execute step S202 in this embodiment, the countdown updating module 303 in this embodiment may be configured to execute step S204 in this embodiment, and the sleep control module 305 in this embodiment may be configured to execute step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Optionally, the identifier recognizing module is specifically configured to: under the condition that the first digital identifier is identified, storing the first digital identifier in a first target bit, wherein the first target bit is a digit and is used for determining the digit indicated by the first digital identifier; and taking the first digital identifier as a target digital identifier.
Optionally, the identification module is further configured to: under the condition that a second digital identifier is recognized in a second time range, replacing the digital identifier of the first target bit with the second digital identifier, storing the first digital identifier in a second target bit, wherein the second target bit is a digit and is used for being combined with the first target bit to determine a digit formed by the first digital identifier and the second digital identifier, and the second target bit is arranged in front of the first target bit from left to right; and taking the first digital identifier and the second digital identifier as target digital identifiers according to the arrangement sequence of the first target bit and the second target bit.
Optionally, the countdown updating module is specifically configured to: determining a first target digit indicated by the first digit identification, and determining a first product coefficient corresponding to the first target bit; the product of the first target number and the first product coefficient is counted down as a target sleep count.
Optionally, the countdown updating module is further configured to: determining a first target number indicated by the first number identification, determining a second target number indicated by the second number identification, determining a first product coefficient corresponding to the first target bit, and determining a second product coefficient corresponding to the second target bit; taking the product of the first target number and the second multiplication coefficient as a first result, and taking the product of the second target number and the first multiplication coefficient as a second result; the sum of the first result and the second result is counted down as the target sleep.
Optionally, the sleep control module is specifically configured to: replacing a preset dormancy countdown in the timer with a target dormancy countdown; starting a timer to count down according to a target dormancy count down under the condition that the touch screen operation is not detected; in the event that a touch screen operation is detected during the timer countdown, the timer is reset so that the timer restarts the countdown.
Optionally, the device sleep control apparatus further includes a resume preset module, configured to: under the condition that a third touch screen operation of the target object is detected in the countdown process of the timer, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer; and under the condition that a power key on the terminal equipment where the target display screen is located is pressed in the countdown process of the timer, controlling the target display screen to be turned off, replacing the target dormancy countdown in the timer with a preset dormancy countdown, and resetting the timer.
According to another aspect of the embodiments of the present application, there is provided an electronic device, as shown in fig. 4, including a memory 401, a processor 403, a communication interface 405, and a communication bus 407, where the memory 401 stores a computer program that is executable on the processor 403, the memory 401 and the processor 403 communicate with each other through the communication interface 405 and the communication bus 407, and the processor 403 implements the steps of the method when executing the computer program.
The memory and the processor in the electronic equipment are communicated with the communication interface through a communication bus. The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer-readable medium having non-volatile program code executable by a processor.
Optionally, in an embodiment of the present application, a computer readable medium is configured to store program code for the processor to perform the following steps:
under the condition that a first touch screen operation is detected, identifying a target digital identifier triggered by the first touch screen operation, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identifier is used for representing the sleep parameters;
after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target dormancy countdown according to the number indicated by the target number identification, wherein the second touch screen operation is used for triggering dormancy control;
and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk. It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for controlling device dormancy, comprising:
under the condition that a first touch screen operation is detected, identifying a target digital identifier triggered by the first touch screen operation, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identifier is used for representing the sleep parameters;
after the first touch screen operation is finished, under the condition that a second touch screen operation is detected within a first time range, determining a target sleep countdown according to the number indicated by the target number identifier, wherein the second touch screen operation is used for triggering sleep control;
and under the condition that the touch screen operation is not detected, controlling a timer to count down according to the target sleep count down.
2. The method of claim 1, wherein identifying the target digital identification triggered by the first touch screen operation comprises:
under the condition that a first digital identifier is recognized, storing the first digital identifier in a first target bit, wherein the first target bit is a digit and is used for determining a number indicated by the first digital identifier;
and taking the first digital identifier as the target digital identifier.
3. The method of claim 2, wherein upon recognition of the first digital identifier, the method further comprises:
under the condition that a second digital identifier is recognized in a second time range, replacing the digital identifier of the first target bit with the second digital identifier, and storing the first digital identifier in a second target bit, wherein the second target bit is a digit and is used for being combined with the first target bit to determine a digit formed by the first digital identifier and the second digital identifier, and the second target bit is arranged in front of the first target bit from left to right;
and taking the first digital identifier and the second digital identifier as the target digital identifier according to the arrangement sequence of the first target bit and the second target bit.
4. The method of claim 2, wherein determining a target sleep countdown according to the number indicated by the target numeric identifier comprises:
determining a first target digit indicated by the first digit identification, and determining a first product coefficient corresponding to the first target bit;
taking a product of the first target number and the first multiplication coefficient as the target sleep countdown.
5. The method of claim 3, wherein determining a target sleep countdown according to the number indicated by the target numeric identifier comprises:
determining a first target number indicated by the first number identification, determining a second target number indicated by the second number identification, determining a first product coefficient corresponding to the first target bit, and determining a second product coefficient corresponding to the second target bit;
taking as a first result the product of said first target number and said second product coefficient and as a second result the product of said second target number and said first product coefficient;
counting down a sum of the first result and the second result as the target sleep.
6. The method of any of claims 1 to 5, wherein controlling the timer to count down for hibernation in accordance with the target hibernation countdown timer in the event that no touch screen operation is detected comprises:
replacing a preset sleep countdown in the timer with the target sleep countdown;
starting a timer to count down according to the target dormancy count down under the condition that the touch screen operation is not detected;
and resetting the timer to restart the countdown of the timer when the touch screen operation is detected in the countdown process of the timer.
7. The method of claim 6, further comprising canceling sleep countdown according to the target sleep countdown control timer in at least one of the following ways:
replacing the target dormancy countdown in the timer with the preset dormancy countdown and resetting the timer when a third touch screen operation is detected in the countdown process of the timer;
and under the condition that a power key on the terminal equipment where the target display screen is located is pressed in the countdown process of the timer, controlling the target display screen to be turned off, replacing the target dormancy countdown in the timer with the preset dormancy countdown, and resetting the timer.
8. An apparatus sleep control device, comprising:
the identification module is used for identifying a target digital identification triggered by a first touch screen operation under the condition that the first touch screen operation is detected, wherein the first touch screen operation is used for setting equipment sleep parameters, and the target digital identification is used for representing the sleep parameters;
the countdown updating module is used for determining a target dormancy countdown according to the number indicated by the target number identifier when a second touch screen operation is detected within a first time range after the first touch screen operation is finished, wherein the second touch screen operation is used for triggering dormancy control;
and the dormancy control module is used for controlling a timer to count down according to the target dormancy count-down under the condition that the touch screen operation is not detected.
9. An electronic device comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program operable on the processor, and the memory and the processor communicate via the communication bus and the communication interface, wherein the processor implements the steps of the method according to any of the claims 1 to 7 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1 to 7.
CN202011098935.XA 2020-10-14 2020-10-14 Device sleep control method, device and computer readable medium Active CN112235458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011098935.XA CN112235458B (en) 2020-10-14 2020-10-14 Device sleep control method, device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011098935.XA CN112235458B (en) 2020-10-14 2020-10-14 Device sleep control method, device and computer readable medium

Publications (2)

Publication Number Publication Date
CN112235458A true CN112235458A (en) 2021-01-15
CN112235458B CN112235458B (en) 2021-06-18

Family

ID=74112830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011098935.XA Active CN112235458B (en) 2020-10-14 2020-10-14 Device sleep control method, device and computer readable medium

Country Status (1)

Country Link
CN (1) CN112235458B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826731A (en) * 2022-10-19 2023-03-21 科东(广州)软件科技有限公司 Dormancy control method and device, operating system and computing equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211212A (en) * 2006-12-28 2008-07-02 索尼株式会社 Apparatus, method and computer program for processing information
CN102306079A (en) * 2011-08-15 2012-01-04 深圳创维数字技术股份有限公司 Screen display method, digital television receiving terminal and digital television system
CN103309479A (en) * 2012-03-07 2013-09-18 深圳富泰宏精密工业有限公司 Touch screen operating system and method
CN103558943A (en) * 2013-11-08 2014-02-05 安徽科大讯飞信息科技股份有限公司 Method and system for realizing multi-mode synchronous input
US20150242585A1 (en) * 2014-02-21 2015-08-27 Judy SPIEGEL Method and Apparatus for Monitoring a User and Providing a Schedule for a User
CN105893883A (en) * 2016-03-29 2016-08-24 上海斐讯数据通信技术有限公司 Screen locking and unlocking method and device of mobile terminal
JP2018138346A (en) * 2017-02-24 2018-09-06 京セラドキュメントソリューションズ株式会社 Touch operation device and image forming device
US20200192544A1 (en) * 2018-12-13 2020-06-18 Lg Display Co., Ltd. Touch Sensor Display Device and Interface Method Thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211212A (en) * 2006-12-28 2008-07-02 索尼株式会社 Apparatus, method and computer program for processing information
CN102306079A (en) * 2011-08-15 2012-01-04 深圳创维数字技术股份有限公司 Screen display method, digital television receiving terminal and digital television system
CN103309479A (en) * 2012-03-07 2013-09-18 深圳富泰宏精密工业有限公司 Touch screen operating system and method
CN103558943A (en) * 2013-11-08 2014-02-05 安徽科大讯飞信息科技股份有限公司 Method and system for realizing multi-mode synchronous input
US20150242585A1 (en) * 2014-02-21 2015-08-27 Judy SPIEGEL Method and Apparatus for Monitoring a User and Providing a Schedule for a User
CN105893883A (en) * 2016-03-29 2016-08-24 上海斐讯数据通信技术有限公司 Screen locking and unlocking method and device of mobile terminal
JP2018138346A (en) * 2017-02-24 2018-09-06 京セラドキュメントソリューションズ株式会社 Touch operation device and image forming device
US20200192544A1 (en) * 2018-12-13 2020-06-18 Lg Display Co., Ltd. Touch Sensor Display Device and Interface Method Thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826731A (en) * 2022-10-19 2023-03-21 科东(广州)软件科技有限公司 Dormancy control method and device, operating system and computing equipment
CN115826731B (en) * 2022-10-19 2023-07-11 科东(广州)软件科技有限公司 Sleep control method and device, storage medium and computing equipment

Also Published As

Publication number Publication date
CN112235458B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN106951335B (en) Process daemon method and mobile terminal
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
CN105895979B (en) Terminal charging method and terminal
CN106354494B (en) Method and system for quickly starting application program
CN108520177B (en) Application software management method and device, mobile terminal and readable storage medium
WO2016197461A1 (en) Application software permission recommendation method, apparatus and system, and storage medium
US20150026648A1 (en) Method for triggering applications with a smart device
CN112235458B (en) Device sleep control method, device and computer readable medium
WO2020103017A1 (en) Power-on process control method, power-on process control apparatus and terminal device
US20140380292A1 (en) Method, device, and storage medium for upgrading operating system
CN106293813B (en) Application recommendation method and mobile terminal
CN114415530A (en) Control method, control device, electronic equipment and storage medium
CN108427530B (en) Information processing method and terminal
CN108920214B (en) Application program running method, application program running device and mobile terminal
CN110795012A (en) Control method of electronic device, and computer-readable storage medium
TWI820007B (en) Method and device for displaying contact information and method and device for displaying information
CN113076529B (en) Access control method, device, computer readable storage medium and equipment
CN110825396B (en) Exception handling method and related equipment
CN111600994B (en) Shortcut operation method and device and computer readable storage medium
CN111638917A (en) Application start limiting method, device and storage medium
CN115879090A (en) Account login method and device, electronic equipment and storage medium
CN113157301A (en) Terminal version upgrading method, system, storage medium and terminal
CN108989792B (en) Development and debugging processing method and system
CN117672113A (en) Screen display effect processing method and related device
CN112912832A (en) Application pushing method and device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant