CN105573467A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105573467A
CN105573467A CN201510919157.9A CN201510919157A CN105573467A CN 105573467 A CN105573467 A CN 105573467A CN 201510919157 A CN201510919157 A CN 201510919157A CN 105573467 A CN105573467 A CN 105573467A
Authority
CN
China
Prior art keywords
state
application
electronic device
running
reaches
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.)
Pending
Application number
CN201510919157.9A
Other languages
Chinese (zh)
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 CN201510919157.9A priority Critical patent/CN105573467A/en
Publication of CN105573467A publication Critical patent/CN105573467A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses an information processing method and an electronic device. The method comprises the steps of when the electronic device is in a first state and runs at least one first application, obtaining a running state of the first application; judging whether the running state reaches a first predetermined state or not, and generating a first judgment result; and when the first judgment result represents that the running state reaches the first predetermined state, controlling the electronic device to be switched to a second state from the first state, wherein the power consumption of the electronic device in the second state is lower than that of the electronic device in the first state. Therefore, an application task can be ensured not to be interrupted and the power consumption can be reduced.

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
In practical applications, the following scenarios are encountered: during the data transmission process, such as uploading/downloading, of an electronic device, such as a notebook computer, through application software, a user needs to leave the computer. If the user forcibly closes the computer at the moment, the data uploading/downloading work is half-way wasted; if the user allows the continuous uploading/downloading of the data without shutting down, the computer is always in the non-shutdown state during the period from the completion of the data uploading/downloading to the time when the user returns to the computer, which is undoubted to waste the electric quantity. Therefore, a technical scheme capable of completing data transmission and reducing power consumption is needed.
Disclosure of Invention
In order to solve the existing technical problem, an embodiment of the present invention provides an information processing method and an electronic device, which can ensure that an application task is not interrupted and reduce power consumption.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to electronic equipment, wherein the electronic equipment has a first state and a second state; when the electronic device is in a first state and runs at least one first application, the method comprises:
acquiring the running state of the first application;
judging whether the running state reaches a first preset state or not, and generating a first judgment result;
and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state, wherein the power consumption of the electronic equipment in the second state is smaller than that in the first state.
In the foregoing solution, the determining whether the operating state reaches a first predetermined state includes:
monitoring the running state of the first application; when it is monitored that the first application generates a first predetermined event, determining that the running state reaches a first predetermined state; and/or the presence of a gas in the gas,
detecting the running time of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state.
In the foregoing aspect, when at least two first applications are running, the method further includes:
acquiring the running state of each first application;
judging whether the running state of each first application reaches a corresponding first preset state or not;
and when the running state of each first application reaches a corresponding first preset state, controlling the electronic equipment to be switched from the first state to the second state.
In the foregoing solution, the electronic device includes a first power supply configured to supply power to the electronic device, and the method further includes:
when the first judgment result represents that the running state does not reach the first preset state,
detecting a first attribute of a first power source of the electronic device;
and when the first attribute of the first power supply does not meet the preset attribute, controlling the electronic equipment to be switched from the first state to the second state.
In the foregoing solution, the electronic device includes a first power supply and a second power supply for supplying power to the electronic device, when the electronic device runs a first application by using the first power supply and the first determination result indicates that the running state of the first application does not reach the first predetermined state,
acquiring a first attribute of a first power supply;
starting a second power supply when the first attribute of the first power supply does not meet the predetermined attribute;
and supplying power to the electronic equipment by using a second power supply, and controlling the electronic equipment to be switched from the first state to the second state when the running state of the first application reaches a first preset state.
The embodiment of the invention provides electronic equipment, which has a first state and a second state; the electronic device includes:
the electronic equipment comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the running state of at least one first application when the electronic equipment is in a first state and the first application is run;
the first judgment unit is used for judging whether the running state reaches a first preset state or not and generating a first judgment result;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the first judgment result generated by the first judgment unit represents that the running state reaches the first preset state, and the power consumption of the electronic equipment in the second state is smaller than that in the first state.
In the foregoing solution, the first determining unit is further configured to:
monitoring the running state of the first application; when it is monitored that the first application generates a first predetermined event, determining that the running state reaches a first predetermined state; and/or the presence of a gas in the gas,
detecting the running time of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state.
In the above-mentioned scheme, the first step,
the first acquisition unit is used for acquiring the running state of each first application;
the first judging unit is used for judging whether the running state of each first application reaches a corresponding first preset state or not;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the first judging unit judges that the running state of each first application reaches the corresponding first preset state.
In the foregoing solution, the electronic device includes a first power supply for supplying power to the electronic device,
the electronic device further includes:
the first detection unit is used for detecting a first attribute of a first power supply of the electronic equipment when the first judgment result generated by the first judgment unit represents that the running state does not reach the first preset state;
the first control unit is further used for controlling the electronic equipment to be switched from the first state to the second state when the first detection unit detects that the first attribute of the first power supply does not meet the preset attribute.
In the foregoing solution, the electronic device includes a first power supply and a second power supply for supplying power to the electronic device,
the first detection unit is used for acquiring a first attribute of a first power supply when the electronic equipment runs a first application by using the first power supply and the running state of the first application is not reached to the first preset state represented by the first judgment result generated by the first judgment unit;
the first starting unit is used for starting the second power supply to supply power to the electronic equipment by using the second power supply when the first detection unit detects that the first attribute of the first power supply does not meet the preset attribute;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the running state of the first application reaches a first preset state.
The information processing method and the electronic device of the embodiment of the invention comprise the following steps: when the electronic equipment is in a first state and runs at least one first application, obtaining the running state of the first application; judging whether the running state reaches a first preset state or not, and generating a first judgment result; and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state, wherein the power consumption of the electronic equipment in the second state is smaller than that in the first state. The uninterrupted application task can be ensured, and the consumption of electric quantity is reduced.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a first embodiment of an information processing method according to the present invention;
FIG. 2 is a schematic flow chart illustrating an implementation of a second embodiment of the information processing method according to the present invention;
fig. 3 is a schematic structural diagram of a first embodiment of an electronic device provided in the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
In the following embodiments of the information processing method and the electronic device provided by the present invention, the electronic device includes, but is not limited to: industrial control computers, personal computers, and the like, all types of computers, all-in-one computers, tablet computers, mobile phones, electronic readers, and the like. The electronic equipment preferably provided by the embodiment of the invention is an all-in-one computer or a tablet computer.
The first embodiment of the information processing method provided by the invention is applied to an electronic device, the electronic device has a first state and a second state, and the power consumption of the electronic device in the second state is smaller than that in the first state. The first state is a power-on state of the electronic device, and the second state is a power-off state or a dormant state. The electronic device can run at least one first application when being in the first state, the first application may be an application carried by the electronic device, such as a short message application and a telephone application, or an installed application, such as a WeChat application, a thunderbolt application, and a File Transfer Protocol (FTP) download/upload tool, and the first application is any application that can be installed on the electronic device, and the first application is not specifically limited herein.
FIG. 1 is a schematic flow chart illustrating a first embodiment of an information processing method according to the present invention; as shown in fig. 1, the method includes:
step 101: when the electronic equipment is in a first state and runs at least one first application, obtaining the running state of the first application;
here, when the electronic device is in a power-on state and at least one first application is running, it is determined whether the running state of the running first application is in a running state or a running-completed state.
Step 102: judging whether the running state reaches a first preset state or not, and generating a first judgment result;
here, the first predetermined state is a first application running completion state, and it is determined whether the first application reaches the running completion state.
Step 103: and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state.
Here, when the first application running in the electronic device reaches the running-completed state, the electronic device is switched from the power-on state to the power-off state or from the power-on state to the hibernation state, so as to save the power of the electronic device.
Considering that in practical application, an electronic device in a starting state may run two or more first applications at the same time, and in this application scenario, the running state of each first application is obtained; judging whether the running state of each first application reaches a corresponding first preset state or not, namely whether each first application reaches a running finished state or not; and when the running state of each first application reaches a corresponding first preset state, controlling the electronic equipment to be switched from the first state to the second state.
In the foregoing solution, whether the electronic device runs only one first application or runs two or more first applications in the power-on state, the following first manner or second manner is also adopted for determining whether the running state of each first application reaches the first predetermined state.
The first mode is as follows: monitoring the running state of the first application; and when the first application is monitored to generate a first predetermined event, determining that the running state reaches a first predetermined state. Taking the first application as a thunder application and downloading the data a from the network as an example, when the thunder application is running, the running state of the thunder application is monitored in real time or at intervals of time, such as 10s, and a task completion event (a first predetermined event) is usually generated when the thunder application is downloaded, so as to inform the electronic device that the system data downloading task is completed. The electronic equipment monitors whether the event is generated by the thunder application, if the event is monitored to be generated, the thunder application is determined to reach the running completion state, and the electronic equipment can be switched from the starting state to the shutdown state or the dormant state. Normal downloading of data is guaranteed, and electric quantity of the electronic equipment is saved.
The second mode is as follows: detecting the running time of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state. Taking the first application as the thunder application to download the data A from the network as an example, in the process of starting the thunder application to download the data A, the thunder application can estimate the download completion time of the data A, the download completion time is taken as the operation duration of the thunder application, and when the thunder application operates, the operation duration of the thunder application is monitored in real time or at intervals of time, such as 3 s. When the running time of the electronic equipment monitoring thunder application is timed out, namely the downloading completion time of the data A is reached, the fact that the thunder application reaches a running completion state is determined, and the electronic equipment can be switched from a starting state to a shutdown state or a dormant state. Normal downloading of data is guaranteed, and electric quantity of the electronic equipment is saved.
In addition, in the embodiment of the present invention, how to determine whether the operating state reaches the first predetermined state may also adopt the two manners described above, which are not described in detail.
It should be noted that, when the electronic device in the power-on state runs more than one first application, it is necessary to switch the power-on state to the power-off state or to switch the electronic device to the hibernation state when each first application reaches the completed state. It should be understood by those skilled in the art that the first application involved in the present solution for pre-monitoring whether it reaches the completed state may be all applications run by the electronic device or part of applications run by the electronic device. For example, a first application that is to be monitored whether to reach a completed state may be added to a preset software list, and when it is monitored that all the first applications in the software list reach the completed state, even if an application that is not added to the software list is still running, the electronic device needs to be switched from a power-on state to a power-off state or to a hibernation state. The power saving is also ensured while ensuring that the uploading/downloading of important data (data obtained by uploading/downloading the first application added to the preset software list) is normally completed.
In the embodiment of the invention, when the electronic equipment is in a first state and runs at least one first application, the running state of the first application is acquired; judging whether the running state reaches a first preset state or not, and generating a first judgment result; and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state. That is to say, when the electronic device is in the power-on state, the electronic device is controlled to switch from the power-on state to the power-off state or the dormant state by judging whether the running of the application running on the electronic device is completed, so that the normal running of the application and the normal completion of the application task are ensured, and meanwhile, the electric quantity is saved.
A second embodiment of the information processing method provided by the present invention is applied to an electronic device, where the electronic device has a first state and a second state, and power consumption of the electronic device in the second state is smaller than that in the first state. The first state is a power-on state of the electronic device, and the second state is a power-off state or a dormant state. The electronic device can run at least one first application when being in the first state, the first application may be an application carried by the electronic device, such as a short message application and a telephone application, or an installed application, such as a WeChat application, a thunderbolt application, and a File Transfer Protocol (FTP) download/upload tool, and the first application is any application that can be installed on the electronic device, and the first application is not specifically limited herein.
FIG. 2 is a flowchart illustrating an implementation of a second embodiment of the information processing method according to the present invention; as shown in fig. 2, the method includes:
step 201: when the electronic equipment is in a first state and at least one first application is operated by utilizing a first power supply, acquiring the operation state of the first application;
here, when the electronic device is in a power-on state and at least one first application is running, it is determined whether the running state of the running first application is running or running is completed.
Step 202: judging whether the running state reaches a first preset state or not, and generating a first judgment result;
here, the first predetermined state is a first application running completion state, and it is determined whether the first application reaches the running completion state.
Step 203: when the first judgment result represents that the running state does not reach the first preset state, detecting a first attribute of a first power supply of the electronic equipment;
here, the first power source is a main power source of the electronic device, and the first attribute is used for representing remaining capacity information of the main power source. When the electronic equipment utilizes the main power supply to supply power, when the running first application does not reach the running completion state, the residual power information of the main power supply is detected.
Step 204: starting a second power supply when the first attribute of the first power supply does not meet the predetermined attribute;
here, when it is detected that the remaining capacity of the main power supply is insufficient, for example, 20% or 10% below a predetermined value, the second power supply, i.e., the backup power supply, is activated. Wherein the predetermined value can be set by itself.
Step 205: supplying power to the electronic equipment by using a second power supply;
here, the electronic device continues to be powered by the backup power supply.
Step 206: and when the running state of the first application reaches a first preset state, controlling the electronic equipment to be switched from the first state to a second state.
The method comprises the steps of judging whether a first application reaches a first preset state or not under the condition that the electronic equipment is powered by a standby power supply, and controlling the electronic equipment to be switched from a power-on state to a power-off state or to be switched to a dormant state if the first application reaches the first preset state, so that normal operation of the application is guaranteed, and unnecessary waste of electric quantity is avoided.
For example, taking the first application as a thunder application and downloading data a from the network as an example, the main power supply is firstly used for supplying power to the electronic equipment, when the electronic equipment in the starting state runs the first application, whether the running thunder application is in a downloading completed state or a downloading uncompleted state is determined, and when the thunder application is judged not to reach the downloading completed state, the residual electric quantity information of the main power supply is detected. And when the residual capacity of the main power supply is detected to be less than 20% of the preset value, starting a second power supply, namely a standby power supply, and continuously supplying power to the electronic equipment by using the standby power supply. And under the condition that the standby power supply is used for supplying power to the electronic equipment, whether the thunder application reaches a downloading completed state is continuously judged, and if the thunder application reaches the downloading completed state, the electronic equipment is controlled to be switched from a starting state to a shutdown state or to be switched to a dormant state, so that the normal completion of the data downloading of the thunder application is ensured, and the unnecessary waste of electric quantity is avoided.
The scheme relates to electronic equipment with two power supplies, and when the electronic equipment only has one power supply, namely a main power supply, and the running state of the first application is not represented by the first judgment result, the first attribute of the first power supply of the electronic equipment is detected; and when the first attribute of the first power supply does not meet the preset attribute, controlling the electronic equipment to be switched from the first state to the second state. Still taking the first application as the thunder application and downloading the data a from the network as an example, when it is detected that the thunder application does not reach the downloading completion state, detecting the remaining power of the main power supply, and if the remaining power is not enough to support the thunder application to download all the parts of the data a, switching the starting state of the electronic equipment to the shutdown state or switching the starting state of the electronic equipment to the dormant state, so as to avoid unnecessary waste of power as much as possible.
In the embodiment of the invention, when the electronic equipment only has one power supply and the residual electric quantity of the power supply cannot support the continuous operation of the first application, the first state of the electronic equipment is switched to the second state. When the electronic equipment is provided with two power supply sources, when the residual electric quantity of the main power supply is insufficient and the running state of the first application does not reach the first preset state, starting the standby power supply to continuously supply power to the electronic equipment so as to enable the running state of the first application to reach the first preset state; and controlling to switch from the first state to the second state when the running state of the first application reaches a first predetermined state. Normal completion of the running task of the first application is ensured and unnecessary waste of electric quantity is avoided.
In a first embodiment of the electronic device provided by the present invention, the electronic device has a first state and a second state, and the power consumption of the electronic device in the second state is smaller than that in the first state. The first state is a power-on state of the electronic device, and the second state is a power-off state or a dormant state. The electronic device can run at least one first application when being in the first state, the first application may be an application carried by the electronic device, such as a short message application and a telephone application, or an installed application, such as a WeChat application, a thunderbolt application, and a File Transfer Protocol (FTP) download/upload tool, and the first application is any application that can be installed on the electronic device, and the first application is not specifically limited herein.
FIG. 3 is a schematic diagram of a first embodiment of an electronic device according to the present invention; as shown in fig. 3, the electronic device includes: a first acquiring unit 301, a first judging unit 302 and a first controlling unit 303; wherein
A first obtaining unit 301, configured to obtain an operating state of at least one first application when the electronic device is in a first state and the first application is operated;
here, when the electronic device is in the power-on state and at least one first application is running, the first obtaining unit 301 determines whether the running state of the running first application is a running state or a running-completed state.
A first judging unit 302, configured to judge whether the operating state reaches a first predetermined state, and generate a first judgment result;
here, the first predetermined state is a first application running completed state, and the first determination unit 302 determines whether the first application reaches the running completed state.
The first control unit 303 is configured to control the electronic device to switch from a first state to a second state when the first determination result generated by the first determination unit indicates that the operation state reaches the first predetermined state, where power consumption of the electronic device in the second state is smaller than that in the first state.
Here, when the first determination result generated by the first determination unit 302 indicates that the first application running in the electronic device reaches the running-completed state, the first control unit 303 switches the electronic device from the power-on state to the power-off state or from the power-on state to the hibernation state, so as to save the power of the electronic device.
In consideration of the fact that in practical applications, the electronic device in the power-on state may run two or more first applications at the same time, in this application scenario,
a first obtaining unit 301, configured to obtain an operating state of each first application;
a first determining unit 302, configured to determine whether an operating state of each first application reaches a corresponding first predetermined state;
a first control unit 303, configured to control the electronic device to switch from the first state to the second state when the first determining unit 302 determines that the running state of each first application reaches the corresponding first predetermined state.
In the foregoing solution, whether the electronic device runs only one first application or runs two or more first applications in the power-on state, the following first manner or second manner is also adopted for determining whether the running state of each first application reaches the first predetermined state.
The first mode is as follows: the first judging unit 302 monitors the running state of the first application; and when the first application is monitored to generate a first predetermined event, determining that the running state reaches a first predetermined state. Taking the first application as a thunder application and downloading the data a from the network as an example, when the thunder application is running, the first determining unit 302 monitors the running status of the thunder application in real time or at intervals of time, such as 10s, and usually generates a task completion event (a first predetermined event) when the thunder application is completely downloaded, so as to inform the electronic device that the system data downloading task is completed. The first determining unit 302 monitors whether the event is generated by the thunder application, and if it is monitored that the event is generated, it is determined that the thunder application reaches a running completion state, the first controlling unit 303 is triggered, and the first controlling unit 303 may switch the electronic device from a power-on state to a power-off state or a sleep state. Normal downloading of data is guaranteed, and electric quantity of the electronic equipment is saved.
The second mode is as follows: the first determining unit 302 detects an operation duration of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state. Taking the first application as the thunder application to download the data a from the network as an example, in the process of starting the thunder application to download the data a, the thunder application can estimate the download completion time of the data a, the download completion time is regarded as the operation duration of the thunder application, and when the thunder application operates, the first judging unit 302 monitors the operation duration in real time or at intervals of time, such as 3 s. When the first determining unit 302 monitors that the running time of the thunder application is timed out, that is, the downloading completion time of the data a is reached, it is determined that the thunder application reaches a running completion state, the first controlling unit 303 is triggered, and the first controlling unit 303 can switch the electronic device from a power-on state to a power-off state or a dormant state. Normal downloading of data is guaranteed, and electric quantity of the electronic equipment is saved.
In addition, in the embodiment of the present invention, how to determine whether the operating state reaches the first predetermined state may also adopt the two manners described above, which are not described in detail.
It should be noted that, when the electronic device in the power-on state runs more than one first application, it is necessary to switch the power-on state to the power-off state or to switch the electronic device to the hibernation state when each first application reaches the completed state. It should be understood by those skilled in the art that the first application involved in the present solution for pre-monitoring whether it reaches the completed state may be all applications run by the electronic device or part of applications run by the electronic device. For example, a first application that is to be monitored whether to reach a completed state may be added to a preset software list, and when it is monitored that all the first applications in the software list reach the completed state, even if an application that is not added to the software list is still running, the electronic device needs to be switched from a power-on state to a power-off state or to a hibernation state. The power saving is also ensured while ensuring that the uploading/downloading of important data (data obtained by uploading/downloading the first application added to the preset software list) is normally completed.
In the embodiment of the invention, when the electronic equipment is in a first state and runs at least one first application, the running state of the first application is acquired; judging whether the running state reaches a first preset state or not, and generating a first judgment result; and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state. That is to say, when the electronic device is in the power-on state, the electronic device is controlled to switch from the power-on state to the power-off state or the dormant state by judging whether the running of the application running on the electronic device is completed, so that the normal running of the application and the normal completion of the application task are ensured, and meanwhile, the electric quantity is saved.
A second embodiment of the electronic device according to the invention is provided, the electronic device having a first state and a second state, the power consumption of the electronic device in the second state being smaller than in the first state. The first state is a power-on state of the electronic device, and the second state is a power-off state or a dormant state. The electronic device can run at least one first application when being in the first state, the first application may be an application carried by the electronic device, such as a short message application and a telephone application, or an installed application, such as a WeChat application, a thunderbolt application, and a File Transfer Protocol (FTP) download/upload tool, and the first application is any application that can be installed on the electronic device, and the first application is not specifically limited herein.
FIG. 4 is a schematic diagram of a second embodiment of the electronic device of the present invention; as shown in fig. 4, the electronic apparatus includes: a first obtaining unit 401, a first judging unit 402, a first control unit 403, a first detecting unit 404 and a first starting unit 405; wherein,
a first obtaining unit 401, configured to obtain an operating state of at least one first application when the electronic device is in a first state and the first power supply is used to operate the first application;
here, when the electronic device is in the power-on state and at least one first application is running, the first obtaining unit 401 determines whether the running state of the running first application is running or running is completed.
A first judging unit 402, configured to judge whether the operating state reaches a first predetermined state, and generate a first judgment result;
here, the first predetermined state is a first application running completed state, and the first determination unit 402 determines whether the first application reaches the running completed state.
A first detecting unit 404, configured to detect a first attribute of a first power supply of the electronic device when the first determination result generated by the first determining unit 402 indicates that the operating state does not reach the first predetermined state;
a first starting unit 405, which starts a second power supply to supply power to the electronic device by using the second power supply when the first detection unit 404 detects that the first attribute of the first power supply does not meet the predetermined attribute;
a first control unit 403, configured to control the electronic device to switch from a first state to a second state when the running state of the first application reaches a first predetermined state.
Here, the first determining unit 402 continues to determine whether the first application reaches the first predetermined state while the electronic device is powered by the standby power supply, and if so, the first control unit 403 is triggered, and the first control unit 403 controls the electronic device to switch from the power-on state to the power-off state or to the hibernation state, thereby ensuring normal operation of the application and avoiding unnecessary waste of power.
For example, taking the first application as a thunder application and downloading data a from the network as an example, the main power supply is first used to supply power to the electronic device, when the electronic device in the power-on state runs the first application, the first obtaining unit 401 determines whether the running thunder application is in a downloading completed state or a downloading uncompleted state, when the first judging unit 402 judges that the thunder application does not reach the downloading completed state, the first detecting unit 404 is triggered, and the first detecting unit 404 detects the remaining power information of the main power supply. When it is detected that the remaining power of the main power supply is less than 20% of the predetermined value, the first starting unit 405 is triggered to start the second power supply, i.e. the standby power supply, and the electronic device is continuously powered by the standby power supply. Under the condition that the electronic equipment is powered by the standby power supply, the first judging unit 402 continues to judge whether the thunder application reaches the downloading completed state, and if so, the first control unit 403 is triggered to control the electronic equipment to be switched from the starting state to the shutdown state or to the dormant state, so that the normal completion of the thunder application data downloading is ensured, and unnecessary waste of electric quantity is avoided.
The foregoing solution relates to an electronic device having two power sources, and when the electronic device has only one power supply source, namely a main power source, and the first determination result generated by the first determining unit 402 indicates that the running state of the first application does not reach the first predetermined state, the first detecting unit 404 detects a first attribute of the first power source of the electronic device; when the first attribute of the first power supply does not satisfy the predetermined attribute, the first control unit 405 is triggered, and the first control unit 405 controls the electronic device to switch from the first state to the second state. Still taking the first application as the thunder application and downloading the data a from the network as an example, when the first determining unit 402 detects that the thunder application does not reach the downloading completion state, the first detecting unit 404 detects the remaining power of the main power source, if the remaining power is not enough to support the thunder application to download all the parts of the data a, the first controlling unit 405 is triggered, and the first controlling unit 405 switches the power-on state of the electronic device to the power-off state or switches the power-on state of the electronic device to the hibernation state, so as to avoid unnecessary waste of power as much as possible.
In the embodiment of the invention, when the electronic equipment only has one power supply and the residual electric quantity of the power supply cannot support the continuous operation of the first application, the first state of the electronic equipment is switched to the second state. When the electronic equipment is provided with two power supply sources, when the residual electric quantity of the main power supply is insufficient and the running state of the first application does not reach the first preset state, starting the standby power supply to continuously supply power to the electronic equipment so as to enable the running state of the first application to reach the first preset state; and controlling to switch from the first state to the second state when the running state of the first application reaches a first predetermined state. Normal completion of the running task of the first application is ensured and unnecessary waste of electric quantity is avoided.
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: various media that can store program codes, such as a removable storage device, a Read-only memory (ROM), a magnetic disk, or an optical disk.
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 (10)

1. An information processing method is applied to an electronic device, wherein the electronic device has a first state and a second state; when the electronic device is in a first state and runs at least one first application, the method comprises:
acquiring the running state of the first application;
judging whether the running state reaches a first preset state or not, and generating a first judgment result;
and when the first judgment result represents that the running state reaches the first preset state, controlling the electronic equipment to be switched from the first state to the second state, wherein the power consumption of the electronic equipment in the second state is smaller than that in the first state.
2. The method of claim 1, wherein said determining whether the operating condition reaches a first predetermined condition comprises:
monitoring the running state of the first application; when it is monitored that the first application generates a first predetermined event, determining that the running state reaches a first predetermined state; and/or the presence of a gas in the gas,
detecting the running time of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state.
3. The method according to claim 1 or 2, wherein when at least two first applications are running, the method further comprises:
acquiring the running state of each first application;
judging whether the running state of each first application reaches a corresponding first preset state or not;
and when the running state of each first application reaches a corresponding first preset state, controlling the electronic equipment to be switched from the first state to the second state.
4. The method of claim 1, wherein the electronic device includes a first power source for powering the electronic device, the method further comprising:
when the first judgment result represents that the running state does not reach the first preset state,
detecting a first attribute of a first power source of the electronic device;
and when the first attribute of the first power supply does not meet the preset attribute, controlling the electronic equipment to be switched from the first state to the second state.
5. The method of claim 1, wherein the electronic device comprises a first power source and a second power source for supplying power to the electronic device, and when the electronic device runs a first application by using the first power source and the first determination result indicates that the running status of the first application does not reach the first predetermined status,
acquiring a first attribute of a first power supply;
starting a second power supply when the first attribute of the first power supply does not meet the predetermined attribute;
and supplying power to the electronic equipment by using a second power supply, and controlling the electronic equipment to be switched from the first state to the second state when the running state of the first application reaches a first preset state.
6. An electronic device having a first state and a second state; the electronic device includes:
the electronic equipment comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring the running state of at least one first application when the electronic equipment is in a first state and the first application is run;
the first judgment unit is used for judging whether the running state reaches a first preset state or not and generating a first judgment result;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the first judgment result generated by the first judgment unit represents that the running state reaches the first preset state, and the power consumption of the electronic equipment in the second state is smaller than that in the first state.
7. The electronic device of claim 6, wherein the first determining unit is further configured to:
monitoring the running state of the first application; when it is monitored that the first application generates a first predetermined event, determining that the running state reaches a first predetermined state; and/or the presence of a gas in the gas,
detecting the running time of the first application; and when the running time length is timed out, determining that the running state reaches the first preset state.
8. The electronic device of claim 6 or 7,
the first acquisition unit is used for acquiring the running state of each first application;
the first judging unit is used for judging whether the running state of each first application reaches a corresponding first preset state or not;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the first judging unit judges that the running state of each first application reaches the corresponding first preset state.
9. The electronic device of claim 6, wherein the electronic device includes a first power source for powering the electronic device,
the electronic device further includes:
the first detection unit is used for detecting a first attribute of a first power supply of the electronic equipment when the first judgment result generated by the first judgment unit represents that the running state does not reach the first preset state;
the first control unit is further used for controlling the electronic equipment to be switched from the first state to the second state when the first detection unit detects that the first attribute of the first power supply does not meet the preset attribute.
10. The electronic device of claim 6, wherein the electronic device includes a first power source and a second power source for powering the electronic device,
the first detection unit is used for acquiring a first attribute of a first power supply when the electronic equipment runs a first application by using the first power supply and the running state of the first application is not reached to the first preset state represented by the first judgment result generated by the first judgment unit;
the first starting unit is used for starting the second power supply to supply power to the electronic equipment by using the second power supply when the first detection unit detects that the first attribute of the first power supply does not meet the preset attribute;
the first control unit is used for controlling the electronic equipment to be switched from the first state to the second state when the running state of the first application reaches a first preset state.
CN201510919157.9A 2015-12-11 2015-12-11 Information processing method and electronic device Pending CN105573467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510919157.9A CN105573467A (en) 2015-12-11 2015-12-11 Information processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510919157.9A CN105573467A (en) 2015-12-11 2015-12-11 Information processing method and electronic device

Publications (1)

Publication Number Publication Date
CN105573467A true CN105573467A (en) 2016-05-11

Family

ID=55883704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510919157.9A Pending CN105573467A (en) 2015-12-11 2015-12-11 Information processing method and electronic device

Country Status (1)

Country Link
CN (1) CN105573467A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device
CN108170248A (en) * 2017-12-28 2018-06-15 国网山东省电力公司蒙阴县供电公司 The compensation method of Vehicular solar communication energy and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103502946A (en) * 2011-04-05 2014-01-08 高通股份有限公司 Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
US20140089702A1 (en) * 2012-09-26 2014-03-27 Ajay G. Gupta Energy-efficient content update
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN103902011A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic device controlling method and electronic device
CN104076903A (en) * 2011-05-26 2014-10-01 谷歌公司 Postponing suspend

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103502946A (en) * 2011-04-05 2014-01-08 高通股份有限公司 Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
CN104076903A (en) * 2011-05-26 2014-10-01 谷歌公司 Postponing suspend
US20140089702A1 (en) * 2012-09-26 2014-03-27 Ajay G. Gupta Energy-efficient content update
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN103902011A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic device controlling method and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device
CN108170248A (en) * 2017-12-28 2018-06-15 国网山东省电力公司蒙阴县供电公司 The compensation method of Vehicular solar communication energy and device

Similar Documents

Publication Publication Date Title
CN102622079B (en) Sleep method, wakening method and mobile terminal device
JP5340335B2 (en) Information processing device
US20120297217A1 (en) Power controller, power controlling device and power-saving method for power controlling device
CN103186225B (en) state switching method and device for electronic equipment
CN104156050A (en) Task monitoring method and electronic device
KR102125507B1 (en) Method for charging battery and an electronic device thereof
CN107515668B (en) Control method and device
CN106292989A (en) A kind of information processing method and electronic equipment
CN105573467A (en) Information processing method and electronic device
CN108227900B (en) Electronic device, energy-saving control method, energy-saving device, and readable storage medium
TWI775109B (en) Electronic apparatus and power management method thereof
CN113961060B (en) Electronic device and electric quantity management method thereof
CN107357654B (en) Method and device for controlling over-frequency working state of CPU
CN110389643B (en) Server and remote control method thereof
CN107436854B (en) Method for supplying power to main board of terminal based on CPCI power supply and terminal
CN102566727A (en) Starting control device and method
US20180004542A1 (en) Electronic device and half-suspend controlling method applied therein
CN113947827A (en) Method and device for adjusting running power consumption of door lock, electronic equipment and storage medium
CN106325461B (en) Information processing method and electronic equipment
JP5954816B2 (en) Power supply control apparatus, information processing apparatus, and power supply control method
KR101218095B1 (en) System and method for power-saving mouse operation
CN105653992B (en) On-off control method, device and the mobile terminal of mobile terminal
JP6197476B2 (en) Power control device
CN109445566B (en) OTG (on-the-go) power-saving processing method and system, storage medium and mobile terminal
JP6970914B2 (en) Lighting controller and lighting control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication