CN108132806B - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN108132806B
CN108132806B CN201711400154.XA CN201711400154A CN108132806B CN 108132806 B CN108132806 B CN 108132806B CN 201711400154 A CN201711400154 A CN 201711400154A CN 108132806 B CN108132806 B CN 108132806B
Authority
CN
China
Prior art keywords
state
electronic equipment
sleep state
electronic device
wake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711400154.XA
Other languages
Chinese (zh)
Other versions
CN108132806A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201711400154.XA priority Critical patent/CN108132806B/en
Publication of CN108132806A publication Critical patent/CN108132806A/en
Application granted granted Critical
Publication of CN108132806B publication Critical patent/CN108132806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention discloses an information processing method and electronic equipment, wherein the method comprises the following steps: detecting a rotation angle generated when the first body rotates based on the second body; judging whether the rotation angle is within a first preset range or not, and generating a judgment result; and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state and processes system tasks based on the networking state.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
At present, electronic devices such as notebook computers and tablet computers include several states including power-on, standby, hibernation, and power-off. When the electronic device is in the sleep state, the electronic device needs to be disconnected from the network, and cannot process system tasks such as message receiving, system updating, network downloading, music playing and the like. Although the electronic device can save the electric quantity and avoid the waste of electric quantity resources when entering the sleep state, an emergency system task waiting process such as an emergency mail waiting for receiving exists in the sleep state. In addition, the current electronic device needs more user operations to enter the sleep state, for example, the user enters the start interface first and selects sleep in the start interface, and the user experience is poor. The notebook computer itself has two bodies (one body includes a display screen, and the other body includes a keyboard), and for such electronic devices with at least two body structures, how to quickly enter a sleep state and still be able to execute a system task in the sleep state becomes an urgent technical problem to be solved.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an information processing method and an electronic device.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a signal processing method, which is applied to electronic equipment, wherein the electronic equipment at least comprises a first body and a second body, the first body can rotate around the second body, and the method further comprises the following steps:
detecting a rotation angle generated when the first body rotates based on the second body;
judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state, and processing a system task based on the networking state.
In the above scheme, the method further comprises:
when the electronic device is in the sleep state,
judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
In the above scheme, the method further comprises:
and when the judgment result represents that the rotation angle is within a first preset range, triggering the starting of a wake-up source, wherein the wake-up source is a component which can wake up the electronic equipment from a sleep state.
In the above scheme, the method further comprises:
judging whether the rotation angle is in a second preset range or not;
and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
In the above scheme, the method further comprises:
when the electronic equipment is in the sleep state, the power of a Central Processing Unit (CPU) of the electronic equipment is within a threshold range, and the electronic equipment processes the system task through the CPU with the power within the threshold range; and when the electronic equipment is in the sleep state, the power of the CPU is smaller than that of the CPU when the electronic equipment is in the working state.
The embodiment of the invention provides electronic equipment, which at least comprises a first body and a second body, wherein the first body can rotate around the second body; the electronic device includes:
a memory for storing executable instructions;
a processor configured to, when executing the executable instructions, perform the following:
detecting a rotation angle generated when the first body rotates based on the second body;
judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state, and processing a system task based on the networking state.
In the above solution, the processor is configured to, when executing the executable instruction, further implement the following operations:
when the electronic device is in the sleep state,
judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
In the above solution, the processor is configured to, when executing the executable instruction, further implement the following operations:
and when the judgment result represents that the rotation angle is within a first preset range, triggering the starting of a wake-up source, wherein the wake-up source is a component which can wake up the electronic equipment from a sleep state.
In the above solution, the processor is configured to, when executing the executable instruction, further implement the following operations:
judging whether the rotation angle is in a second preset range or not;
and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
In the above solution, the processor is configured to, when executing the executable instruction, further implement the following operations:
when the electronic equipment is in the sleep state, controlling the power of the electronic equipment to be within a threshold range, and processing the system task by the electronic equipment through the processor with the power within the threshold range; the power of the processor when the electronic device is in the sleep state is less than the power of the processor when the electronic device is in the working state.
The embodiment of the invention provides an information processing method and electronic equipment, wherein the method comprises the following steps: detecting a rotation angle generated when the first body rotates based on the second body; judging whether the rotation angle is within a first preset range or not, and generating a judgment result; and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state and processes system tasks based on the networking state.
The scheme realizes the networking state of the notebook computer in the sleep state, and can process system tasks based on the networking state. The characteristic that two bodies are provided, one body can rotate around the other body, such as a notebook computer, is considered, and based on the characteristic, the access control of the MS state/function is realized, the realization is simpler, and the user experience is better.
Drawings
Fig. 1 is a first schematic view of an electronic device according to the present invention;
FIG. 2 is a schematic view of an electronic device according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating an information processing method according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating an information processing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating an information processing method according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating an information processing method according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device, such as a notebook computer, according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The technical scheme of the embodiment of the invention is mainly applied to electronic equipment such as a notebook computer at least provided with a first body and a second body, wherein the first body is the surface where a display screen of the electronic equipment is positioned; the second body is a surface where an input device of the electronic equipment, such as a keyboard, is located. Of course, the opposite is also possible. Of course, the technical solution of the embodiment of the present invention may also be applied to other conceivable electronic devices that can be configured by at least two bodies.
The first embodiment of the information processing method provided by the invention is applied to electronic equipment, wherein the electronic equipment at least comprises a first body and a second body, and the first body can rotate around the second body. The electronic equipment is specifically a notebook computer. As shown in fig. 3, the method includes:
step 101: detecting a rotation angle generated when the first body rotates based on the second body;
here, the first body is a surface where a display screen of the electronic device is located; the second body is a surface where an input device of the electronic equipment, such as a keyboard, is located. The first body may be rotated relative to the second body as shown in fig. 1 or as shown in fig. 2. In fig. 1, the maximum angle of rotation of the first body relative to the second body is 360 °, and the minimum angle is 0 °. In fig. 2, the maximum angle of rotation of the first body relative to the second body is 180 °, and the minimum angle is 0 °.
Step 102: judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
here, it is determined whether a rotation angle generated when the first body rotates based on the second body is within a first predetermined range. The first predetermined range is an empirical value, and may take any value between [0 °, 50 ° ], or [0 °, M ° ], or may take any value between [ N °, M ° ], and N, M, where N is smaller than M. For example, the first predetermined range is [20 °, 45 ° ] or [0 °, 45 ° ], as the case may be. In the rotation mode shown in fig. 1, the first predetermined range is preferably [0 °, 45 ° ]. In the rotation mode as shown in fig. 2, it is preferable that the first predetermined range is [0 °, 50 ° ].
Step 103: and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state, and processing a system task based on the networking state.
And when the rotation angle is judged to be within the first preset range, controlling the electronic equipment to enter a preset sleep state. The preset sleep state in the scheme is not used for the existing states of the electronic equipment, such as starting up, standby, shutdown, dormancy and the like, and is a newly added state-MS state.
Considering that the notebook computer comprises a hardware part and a software part, a hardware structure matched with the newly added MS state, such as an embedded ARM structure, can be adopted on the hardware part; the software part is mainly an operating system, and the operating system can adopt operating systems such as Windows, linux, Unix and the like which are matched with the MS state. Of course, the notebook computer may also support android and apple operating systems and implement the MS state based on these operating systems.
Unlike the existing sleep state, in the sleep state preset in the present solution, the electronic device can still be in the networking state, and perform processing of system tasks such as message reception, system update, network download, music playing, and the like in the networking state. Wherein the message reception is such as short message reception, incoming call reception, etc. Meanwhile, in the sleep state of the scheme, the power consumption value of a main core device of the electronic equipment, such as a Central Processing Unit (CPU), is not 0, but is smaller than the power consumption of the electronic equipment in a working state (starting and/or standby), and a system task is required to be processed mainly in a networking state. If the system task is finished, the power of the CPU can be changed to 0, namely the CPU is shut down. That is, in the sleep state of the present solution, the consumed power of the electronic device, mainly a core device such as a CPU, is set to be smaller than that in the normal operating state. For example, the power consumption of the CPU is 15-25 w (watts) in a normal operating state, and the power consumption of the CPU is any value of 15w or less in a sleep state of the scheme, and the specific value is flexibly determined according to the use condition.
For convenience of description, the function of the electronic device in this embodiment that is capable of performing system task processing in a networked state even though the electronic device is asleep is referred to as an ms (modem standby) function/state. Therefore, the networking state of the notebook computer in the sleep state is realized, and the system task can be processed based on the networking state. And the electronic equipment is controlled to enter a preset sleep state through a judgment result of whether the rotation angle of the first body relative to the second body is within a first preset range. Taking into account the characteristic of having two bodies, one of which is rotatable about the other, such as a notebook computer, and based on this characteristic, entry into the MS state/function is achieved. The mode of entering the MS state/function considers the inherent characteristics of the notebook computer, is simpler to realize, can not realize the entering of the MS state/function through excessive user intervention, and has better user experience.
The second embodiment of the information processing method provided by the invention is applied to electronic equipment, wherein the electronic equipment at least comprises a first body and a second body, and the first body can rotate around the second body. The electronic equipment is specifically a notebook computer. As shown in fig. 4, the method includes:
step 201: detecting a rotation angle generated when the first body rotates based on the second body;
here, the first body is a surface where a display screen of the electronic device is located; the second body is a surface where an input device of the electronic equipment, such as a keyboard, is located. The first body may be rotated relative to the second body as shown in fig. 1 or as shown in fig. 2. In fig. 1, the maximum angle of rotation of the first body relative to the second body is 360 °, and the minimum angle is 0 °. In fig. 2, the maximum angle of rotation of the first body relative to the second body is 180 °, and the minimum angle is 0 °.
Step 202: judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
here, it is determined whether a rotation angle generated when the first body rotates based on the second body is within a first predetermined range. The first predetermined range is an empirical value, and may take any value between [0 °, 50 ° ], or [0 °, M ° ], or may take any value between [ N °, M ° ], and N, M, where N is smaller than M. For example, the first predetermined range is [20 °, 45 ° ] or [0 °, 45 ° ], as the case may be. In the rotation mode shown in fig. 1, the first predetermined range is preferably [0 °, 45 ° ]. In the rotation mode as shown in fig. 2, it is preferable that the first predetermined range is [0 °, 50 ° ].
Step 203: when the judgment result represents that the rotation angle is located in a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state, and processing a system task based on the networking state;
and when the rotation angle is judged to be within the first preset range, controlling the electronic equipment to enter a preset sleep state. The preset sleep state in the scheme is not used for the existing states of the electronic equipment, such as starting up, standby, shutdown, dormancy and the like, and is a newly added state.
Unlike the existing sleep state, in the sleep state preset in the present solution, the electronic device can still be in the networking state, and perform processing of system tasks such as message reception, system update, network download, music playing, and the like in the networking state. Wherein the message reception is such as short message reception, incoming call reception, etc.
Step 204: judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
here, when the notebook computer is in the MS state, an operation of a wake-up source for waking up the notebook computer from the MS state is detected, and the wake-up source may be a keyboard of the notebook computer, a power key, a LID switch (LID), a fingerprint recognition system, or the like. The LID is a magnet used for sensing the closing of the notebook computer when the notebook computer is closed when the first body of the notebook computer approaches to the second body.
Here, the operation on the wake-up source may be operations such as touch control on a keyboard, touch control on a power button, opening a closed notebook computer (two bodies of the notebook computer present a certain angle), and recognizing a fingerprint of a user. Any other conceivable operation is also possible, and the present embodiment is not particularly limited.
In order to wake up the notebook computer in the sleep state from the preset sleep mode, whether the user has an operation aiming at the at least one wake-up source is judged.
Step 205: and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
Here, if it is determined that there is an operation of the at least one wake-up source by the user, a trigger instruction is generated, and the electronic device is controlled to switch from the MS state to an operating state, such as a power-on or standby state, in response to the trigger instruction.
In summary, the scheme realizes the entry of the MS state based on the judgment whether the rotation angle is within the first predetermined range, and can realize networking to process the system task in the MS state. The mode of entering the MS state/function considers the inherent characteristics of the notebook computer, is simpler to realize, can realize the entering of the MS state/function without excessive intervention of a user, and has better user experience. Upon entering the MS state, the electronic device is switched from the MS state to an active state based on the detection of the operation of the wake-up source. Therefore, the notebook computer can be quickly switched from the MS state to the normal working state, the normal use is not influenced, and the user experience is better.
As an implementation of the embodiment of the present invention, the method further includes: and when the judgment result represents that the rotation angle is within a first preset range, triggering the starting of a wake-up source, wherein the wake-up source is a component which can wake up the electronic equipment from a sleep state.
In this embodiment, the wake-up source is usually set to be in an off state, and after the MS state is entered and before the wake-up source is operated, the notebook computer triggers the wake-up source in the off state to turn on, so as to detect the operation on the wake-up source subsequently.
As an implementation of the embodiment of the present invention, the method further includes:
when the electronic equipment is in the sleep state, the power of a Central Processing Unit (CPU) of the electronic equipment is within a threshold range, and the electronic equipment processes the system task through the CPU with the power within the threshold range; and when the electronic equipment is in the sleep state, the power of the CPU is smaller than that of the CPU when the electronic equipment is in the working state.
In the sleep state of the scheme, the power consumption value of a main core device of the electronic equipment, such as a Central Processing Unit (CPU), is not 0, but is smaller than the power consumption of the electronic equipment in a working state (starting and/or standby), and the system task is mainly considered to be required to be processed in a networking state. If the system task is finished, the power of the CPU can be changed to 0, namely the CPU is shut down. That is, in the sleep state of the present solution, the consumed power of the electronic device, mainly a core device such as a CPU, is set to be smaller than that in the normal operating state. For example, the power consumption of the CPU is 15 to 25w (watts) in a normal operating state, the power consumption (threshold range) of the CPU is any value of 15w or less in a sleep state in the scheme, and the specific value is flexibly determined according to the use condition.
Therefore, the MS state/function of the scheme can process the system task based on smaller power consumption, the electric quantity of the electronic equipment is saved under the condition that the system task processing is not influenced, and the cruising ability of the battery is greatly improved.
As an implementation of the embodiment of the present invention, as shown in fig. 5, the method further includes:
step 204': judging whether a trigger instruction is detected and whether the rotation angle is in a second preset range;
step 205': and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
In the present embodiment, it is mainly considered that there are cases: in the MS state, the user operates the wake-up source such as the keyboard, the power button, the LID switch (LID), the fingerprint recognition system, etc. of the notebook computer as an unintended operation by the user, i.e., an error operation, and the user does not need to switch the notebook computer from the MS state back to the working state. If the user desires to switch back to the working state, the user opens the notebook computer, usually in the form of a vertical angle between the first body and the second body. Based on such consideration, in the embodiment, when it is determined whether a trigger instruction generated for the user to operate the wake-up source is detected, it is further required to detect a rotation angle generated when the first body rotates relative to the second body, and when it is detected that the user operates the wake-up source and a certain usable angle is present between the first body and the second body, such as an angle higher than 50 °, it is determined that the user operates the wake-up source as an operation for realizing state switching, and the operation is not an erroneous operation, and at this time, the electronic device is controlled to switch from the MS state back to the working state. When the notebook computer is in the MS state, the operation of the awakening source and the mode of simultaneously detecting the rotating angle can quickly switch the notebook computer from the MS state to the normal working state, the normal use is not influenced, the detection accuracy is higher, the error operation of a user does not exist, and the user experience is better.
The present solution is further explained with reference to the flow chart shown in fig. 6.
The process of the notebook computer entering the MS state from the working state comprises the following steps:
s601: when a notebook computer, in particular a computer system is in a power-on S0 state, an angle between two bodies is detected in real time through a sensor arranged in the notebook computer;
here, the preset sensor may be any sensor capable of detecting an angle between the first body and the second body, for example, an angle sensor, but is not particularly limited thereto.
As shown in fig. 1, the notebook computer detects an angle between two bodies by using an angle sensor.
S602: judging whether the angle between the two bodies is less than or equal to 45 degrees (whether the angle is in a first preset range);
if yes, the notebook computer is considered to have a requirement for entering the MS state, and step 603 is executed;
if not, the notebook computer is considered to have no requirement for entering the MS state, and the S0 state of the system is maintained;
for example, when the notebook computer is closed, the angle between the two bodies is 0 °, and at this time, the display screen is a black screen, so that the user cannot operate the notebook computer.
S603: the control system enters the MS state from the S0 state;
the system is still in the networking state in the MS state and can still process system tasks when there are system tasks to be processed based on the networking state.
S604: the notebook computer, specifically a basic input output unit BIOS or an embedded system E opens the wake-up source in the closed state;
here, the step of turning on the wake-up source occurs during the system entering the MS state; that is, S603 and S604 have no strict sequence, and may be performed simultaneously.
S605: when the system is in the MS state, if the system task to be processed exists, processing the system task;
for example, if the system task to be processed is to receive an email, a reminder is sent to the user; if the system task to be processed is the update of the entertainment software, the system background downloads and updates the entertainment software; and if the system task to be processed is the playing of music, the system plays the music to the user.
Here, considering that a system task is also required to process in the networking state, the consumed power of the notebook computer, mainly the core device such as the CPU, is set to be smaller than that in the normal operating state, for example, the power consumption of the CPU in the normal operating state is 15 to 25w (watts), and the power consumption (threshold range) of the CPU in the sleep state of the present solution is 2w or 2.5 w. When the system task processing is completed, the power of the CPU can be changed to 0, namely the CPU is turned off.
Therefore, the MS state/function of the scheme can process the system task based on smaller power consumption, the electric quantity of the electronic equipment is saved under the condition that the system task processing is not influenced, and the cruising ability of the battery is greatly improved.
The notebook computer is switched back to the working state from the MS state:
s606: when the system enters an MS state, judging whether the operation of a user on any awakening source is detected;
or, the opening angle between the two bodies is also detected when judging whether the operation of the user on any awakening source is detected;
if yes, go to step 607;
if not, keeping the state of MS;
s607: controlling the notebook computer to switch back to the S0 state from the MS state, and returning to the step 601;
in the S0 state, the user may open the screen again to reach the normal use angle (the angle at which the first body is perpendicular to the second body), and the user uses the notebook computer considering the use requirement.
In summary, the scheme controls the notebook computer to switch between the MS state and the operating state by detecting the angle between the two bodies, and is implemented based on the characteristics of the two bodies of the notebook computer, so that the implementation is simple and fast.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device, such as a notebook computer, according to an embodiment of the present invention, where the electronic device 700 may be any form of server. The electronic device 700 shown in fig. 7 includes: at least one processor 701, a memory 702, at least one network interface 704, and a user interface 703. The various components in the electronic device 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 702 in embodiments of the present invention is used to store various types of data in support of the operation of the electronic device 700. Examples of such data include: any computer programs for operating on the electronic device 700, such as an operating system 7021 and application programs 7022; contact data; telephone book data; a message; a picture; video, etc. The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 may include various applications such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
An embodiment of the present invention further provides a computer storage medium, such as the aforementioned memory 702, in which executable instructions, such as a computer program, are stored, where the executable instructions are used to implement the message display method provided in the embodiment of the present invention.
The embodiment of the invention also provides electronic equipment, which at least comprises a first body and a second body, wherein the first body can rotate around the second body. The electronic device includes:
a memory 702 for storing executable instructions;
a processor 701 configured to, when executing the executable instructions, perform the following:
detecting a rotation angle generated when the first body rotates based on the second body;
judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
and when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, wherein the electronic equipment is in a networking state when in the sleep state, and processing a system task based on the networking state.
In one embodiment, the processor 701 is configured to, when executing the executable instructions, further implement the following:
when the electronic device is in the sleep state,
judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
In one embodiment, the processor 701 is configured to, when executing the executable instructions, further implement the following:
and when the judgment result represents that the rotation angle is within a first preset range, triggering the starting of a wake-up source, wherein the wake-up source is a component which can wake up the electronic equipment from a sleep state.
In one embodiment, the processor 701 is configured to, when executing the executable instructions, further implement the following:
judging whether the rotation angle is in a second preset range or not;
and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
In one embodiment, the processor 701 is configured to, when executing the executable instructions, further implement the following:
when the electronic equipment is in the sleep state, controlling the power of the electronic equipment to be within a threshold range, and processing the system task by the electronic equipment through the processor with the power within the threshold range; the power of the processor when the electronic device is in the sleep state is less than the power of the processor when the electronic device is in the working state.
The electronic device and the information processing method according to the embodiments of the present invention are proposed based on the same inventive concept, the description of the electronic device is similar to the description of the information processing method, and for understanding of the electronic device, reference is specifically made to the related description of the foregoing description of the information processing method, which is not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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, that is, 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes 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 methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A signal processing method applied to an electronic device, wherein the electronic device includes at least a first body and a second body, the first body being rotatable around the second body, the method further comprising:
detecting a rotation angle generated when the first body rotates based on the second body;
judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
when the judgment result represents that the rotation angle is within a first preset range, controlling the electronic equipment to enter a preset sleep state, triggering a wake-up source in a closed state to be started, wherein the started wake-up source is used for waking up the electronic equipment from the sleep state, and the electronic equipment is in a networking state when in the sleep state and the wake-up state and processes system tasks based on the networking state; wherein the sleep state is a modern standby MS state;
the method further comprises the following steps:
when the electronic equipment is in the MS state, the power of a Central Processing Unit (CPU) of the electronic equipment is within a threshold range, and the electronic equipment processes the system task through the CPU of which the power is within the threshold range; shutting down the CPU under the condition that the system task is processed; and when the electronic equipment is in the MS state, the power of the CPU is smaller than that of the CPU when the electronic equipment is in the working state.
2. The method of claim 1, further comprising:
when the electronic device is in the sleep state,
judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
3. The method of claim 2, further comprising:
judging whether the rotation angle is in a second preset range or not;
and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
4. An electronic device, characterized in that the electronic device comprises at least a first body and a second body, the first body being rotatable around the second body; the electronic device includes:
a memory for storing executable instructions;
a processor configured to, when executing the executable instructions, perform the following:
detecting a rotation angle generated when the first body rotates based on the second body;
judging whether the rotation angle is within a first preset range or not, and generating a judgment result;
when the judgment result represents that the rotation angle is located in a first preset range, triggering a wake-up source in a closed state to be started, wherein the started wake-up source is used for waking up the electronic equipment from a sleep state and controlling the electronic equipment to enter a preset sleep state, and the electronic equipment is in a networking state when in the sleep state and the wake-up state and processes system tasks based on the networking state; wherein the sleep state is a modern standby MS state;
when the MS state is in, controlling the power of the electronic device to be within a threshold range, and processing the system task by the electronic device through the processor with the power within the threshold range; the power of the processor when the electronic device is in the MS state is less than the power of the processor when the electronic device is in the working state.
5. The electronic device of claim 4, wherein the processor, when executing the executable instructions, is further configured to:
when the electronic device is in the sleep state,
judging whether a trigger instruction is detected, wherein the trigger instruction is generated based on the operation of a wake-up source, and the wake-up source is a component for waking up the electronic equipment from a sleep state;
and when the trigger instruction is judged to be detected, responding to the trigger instruction, and controlling the electronic equipment to be switched from the sleep state to the working state.
6. The electronic device of claim 5, wherein the processor, when executing the executable instructions, is further configured to:
judging whether the rotation angle is in a second preset range or not;
and when the triggering instruction is detected and the rotating angle is within a second preset range, controlling the electronic equipment to be switched from the sleep state to the working state.
CN201711400154.XA 2017-12-22 2017-12-22 Information processing method and electronic equipment Active CN108132806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711400154.XA CN108132806B (en) 2017-12-22 2017-12-22 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711400154.XA CN108132806B (en) 2017-12-22 2017-12-22 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN108132806A CN108132806A (en) 2018-06-08
CN108132806B true CN108132806B (en) 2021-07-16

Family

ID=62391399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711400154.XA Active CN108132806B (en) 2017-12-22 2017-12-22 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108132806B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783147A (en) * 2019-01-08 2019-05-21 合肥联宝信息技术有限公司 A kind of method and device of switching sleep mode

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095429B (en) * 2016-06-07 2020-06-23 联想(北京)有限公司 Information processing method and electronic equipment
CN106547335A (en) * 2016-11-01 2017-03-29 上海传英信息技术有限公司 Energy consumption reduces method and mobile terminal

Also Published As

Publication number Publication date
CN108132806A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
US11698792B2 (en) Method for starting up device and device
CN102103406B (en) The network event process that operating system is irrelevant
JP5753908B2 (en) Computing object context history
US8255725B2 (en) Information processing apparatus and power-saving control method
US7941403B2 (en) Embedded file system recovery techniques
US6760850B1 (en) Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source
WO2018010596A1 (en) Mode switching method and device
US11467650B2 (en) Selecting a low power state in an electronic device
WO2012016393A1 (en) Method and device for cold starting android mobile terminal
WO2010139169A1 (en) Electricity-saving method and device for terminal
CN104572186A (en) Method for executing operation instruction
JP2009516244A5 (en)
US20130097444A1 (en) Using latched events to manage sleep/wake sequences on computer systems
CN104572187A (en) Terminal
US7107487B2 (en) Fault tolerant sleep mode of operation
CN113703799A (en) Computing device and BIOS updating method and medium thereof
US10908919B2 (en) Booting and power management by coordinating operations between processors
CN108132806B (en) Information processing method and electronic equipment
US11544412B2 (en) Protection against unintended content change in DRAM during standby mode
WO2014176893A1 (en) Method and device for powering off mobile terminal
US9710286B2 (en) Enhanced wakeup mode
US10437310B2 (en) Technologies for secure hybrid standby power management
JP2007109078A (en) Information processor and method for controlling operation
US7272731B2 (en) Information handling system having reduced power consumption
US11663106B2 (en) Systems and methods for mitigating failure to enter standby mode

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