CN114415821A - Control method and device and electronic equipment - Google Patents

Control method and device and electronic equipment Download PDF

Info

Publication number
CN114415821A
CN114415821A CN202210111244.1A CN202210111244A CN114415821A CN 114415821 A CN114415821 A CN 114415821A CN 202210111244 A CN202210111244 A CN 202210111244A CN 114415821 A CN114415821 A CN 114415821A
Authority
CN
China
Prior art keywords
component
state
power mode
electronic device
control
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
CN202210111244.1A
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 CN202210111244.1A priority Critical patent/CN114415821A/en
Publication of CN114415821A publication Critical patent/CN114415821A/en
Pending legal-status Critical Current

Links

Images

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/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU

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 application provides a control method, a control device and electronic equipment, wherein the control method comprises the steps of responding to a trigger instruction for entering a first power supply mode, controlling a first component of the electronic equipment to be in a first state, wherein the first component is a component which does not support the electronic equipment to enter the first power supply mode; controlling a second component different from the first component to enter a second state at least based on the triggering instruction so as to support the electronic equipment to enter the first power supply mode from the current second power supply mode; wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is larger than the power consumption of the second component in the second state.

Description

Control method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a control method and apparatus, and an electronic device.
Background
With the development of computer technology, saving power consumption becomes an important design goal of electronic devices. Wherein, in order to save power consumption, the electronic device may enter a power mode capable of saving power consumption of the electronic device. However, the electronic device cannot enter a power mode with low power consumption in some scenarios, and therefore, how to enter the power mode capable of saving the power consumption of the electronic device becomes a problem.
Disclosure of Invention
The application provides the following technical scheme:
one aspect of the present application provides a control method, including:
in response to obtaining a trigger instruction for entering a first power mode, controlling a first component of an electronic device to be in a first state, wherein the first component is a component which does not support the electronic device to enter the first power mode;
controlling a second component different from the first component to enter a second state based on at least the trigger instruction to support the electronic device to enter the first power mode from a current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is greater than the power consumption of the second component in the second state.
The first component of the control electronics is in a first state comprising:
sending first control information to the first component to control the first component to remain in the first state or to control the first component to switch from a third state to the first state, wherein the power consumption of the first component in the third state is greater than the power consumption of the first component in the first state.
The first component of the control electronics is in a first state comprising:
the method comprises the steps of obtaining type information and state information of a first component, and sending a control instruction or an electric signal to the first component through a target application program or a first control chip based on the type information and the state information so as to control the first component to be kept in the first state, or controlling the first component to be switched from a third state to the first state, wherein the power consumption of the first component in the third state is larger than the power consumption of the first component in the first state.
The controlling a second component, different from the first component, to enter a second state based at least on the triggering instruction includes:
and in response to the trigger instruction, sending second control information to a second component different from the first component to control the second component in a fourth state to enter a second state, wherein the power consumption of the second component in the second state is smaller than that of the second component in the fourth state, and the second component is a component in an active state in the second power supply mode.
The controlling a second component, different from the first component, to enter a second state based at least on the triggering instruction includes:
obtaining type information of a second component in response to the trigger instruction;
and sending a control instruction or an electric signal to the second component through a target application program or a second control chip based on the type information so as to control the second component to enter the second state.
Wherein, still include:
in response to the triggering instruction, changing configuration information of the first component by a basic input output system of the electronic device to support the electronic device to enter the first power mode.
Further comprising:
in response to obtaining a triggering instruction to switch from the first power mode to the second power mode, adjusting a state in which the first component and/or the second component is currently located.
The adjusting the current state of the first component and/or the second component comprises:
obtaining a user intention of a target user, and adjusting the current state of the first component and/or the second component based on at least the user intention; or the like, or, alternatively,
and adjusting the current state of the first component and/or the second component at least based on the obtaining mode of the trigger instruction.
Another aspect of the present application provides a control apparatus, including:
the first control module is used for responding to a trigger instruction for entering a first power supply mode, and controlling a first component of the electronic equipment to be in a first state, wherein the first component is a component which does not support the electronic equipment to enter the first power supply mode;
the second control module is used for controlling a second component different from the first component to enter a second state at least based on the trigger instruction so as to support the electronic equipment to enter the first power mode from a current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is greater than the power consumption of the second component in the second state.
A third aspect of the present application provides an electronic device comprising:
a memory and a processor;
the memory for storing at least one set of instructions;
the processor is used for calling and executing the instruction set in the memory, and executing the control method by executing the instruction set.
In the method, in response to obtaining a trigger instruction for entering a first power mode, a first component of the electronic device is controlled to be in a first state, the influence of the first component on the condition that the electronic device does not meet the condition for entering the first power mode is eliminated, and on the basis, a second component different from the first component is controlled to enter a second state at least based on the trigger instruction, so that the electronic device can enter the first power mode with lower power consumption from a current second power mode on the basis of not limiting component configuration.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flow chart of a control method provided in embodiment 1 of the present application;
fig. 2 is a schematic flowchart of a control method provided in embodiment 2 of the present application;
FIG. 3 is a schematic view of a scenario in which the present application provides for sending an electrical signal to a first component;
fig. 4 is a schematic flowchart of a control method provided in embodiment 3 of the present application;
fig. 5 is a schematic flowchart of a control method provided in embodiment 4 of the present application;
FIG. 6 is a schematic view of a scenario provided herein for sending an electrical signal to a second component;
fig. 7 is a schematic flowchart of a control method provided in embodiment 5 of the present application;
fig. 8 is a schematic flowchart of a control method provided in embodiment 6 of the present application;
FIG. 9 is a schematic structural diagram of a control device provided herein;
fig. 10 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart of a control method provided in embodiment 1 of the present application is illustrated, where the control method provided in the present application may be applied to an electronic device, and the present application does not limit a product type of the electronic device, and as shown in fig. 1, the method may include, but is not limited to, the following steps:
step S101, responding to a trigger instruction for entering the first power mode, and controlling a first component of the electronic device to be in a first state, wherein the first component is a component which does not support the electronic device to enter the first power mode.
In this embodiment, obtaining the trigger instruction to enter the first power mode may include, but is not limited to:
clicking a sleep mode in a start menu to enter the sleep mode or clicking a sleep mode to enter the sleep mode to obtain a trigger instruction for entering a first power mode; or, the upper cover part of the electronic equipment is closed, and a trigger instruction for entering the first power mode is obtained; or, touching a power button to obtain a trigger instruction for entering a first power mode; or, the electronic equipment enters an idle running state to obtain a trigger instruction for entering a first power mode; or, when the target time set for entering the first power mode is reached, a trigger instruction for entering the first power mode is obtained.
In response to obtaining a trigger instruction to enter the first power mode, components of the electronic device (e.g., components of the electronic device itself, and/or peripheral components external to the electronic device) need to be prepared for transitioning to operation in the first power mode, e.g., software components (e.g., applications and operating systems) of the electronic device need to be prepared for transitioning to operation in the first power mode, stopping or reducing software activity on the operating system of the electronic device, providing more opportunities for hardware components to enter the low power mode. The hardware components of the electronic device and the software device drivers of the hardware components also need to be prepared for operation in the first power mode, based on the software components being prepared for transition to operation in the first power mode.
The electronic device may enter the first power mode based on the components of the electronic device being prepared for transitioning to operation in the first power mode. However, in a case where the first component of the electronic device does not support at least the first power mode, the first component of the electronic device does not support the electronic device to enter the first power mode, which may cause the electronic device not to satisfy the condition for entering the first power mode.
In order to enable the electronic device to enter the first power mode, in particular, the first component of the electronic device may be controlled to a first state. The first state may be understood as one of the states in the power mode supported by the first component, and may include, but is not limited to: a sleep state, a hibernate state, an off state, a suspended state, or a background run state. When the first component of the electronic equipment is in the first state, the influence of the first component on the condition that the electronic equipment does not meet the condition for entering the first power supply mode can be eliminated.
The first component of the electronic device may be, but is not limited to: a software component of the electronic device, or a hardware component externally connected to the electronic device, or a hardware component of the electronic device itself.
Hardware components external to the electronic device may include, but are not limited to: an external PCIE (peripheral component interface express) device; the hardware components of the electronic device itself may include, but are not limited to: a PCIE device of the electronic device itself.
And step S102, controlling a second component different from the first component to enter a second state at least based on the trigger instruction so as to support the electronic equipment to enter the first power mode from the current second power mode.
Controlling a second component, different from the first component, to enter a second state based at least on the triggering instruction may include, but is not limited to:
based on at least the trigger instruction, a broadcast signal is generated and transmitted so that a second component different from the first component obtains the broadcast signal and enters a second state based on the broadcast signal.
The second component may comprise a software component and a hardware component, the power consumption of the second component in the second state being less than its power consumption in the second power mode, the supporting electronic device may enter a power mode with lower power consumption.
The second state may include, but is not limited to: a background run state, a sleep state, or an off state. It will be appreciated that the power consumption of the second component in the background running state is greater than its power consumption in the sleep state; the power consumption of the second component in the sleep state is greater than the power consumption of the second component in the sleep state; the second component consumes more power in the sleep state than in the off state.
Note that the second state entered by the software component different from the first component and the second state entered by the hardware component different from the first component are different from each other, and the difference between the first component and the second component includes at least one of a difference in communication protocol for performing communication, a difference in component type, a difference in component model, a difference in component version number, or the like.
In particular, based on a first component of the electronic device being in a first state, a software component of the electronic device different from the first component may enter a second state, halting or reducing software activity on an operating system of the electronic device, providing more opportunities for hardware components of the electronic device different from the first component to enter a low power mode. And on the basis that the software component of the electronic device, which is different from the first component, enters the second state, the hardware component of the electronic device and the software device driver of the hardware component also enter the second state so as to support the electronic device to enter the first power mode from the current second power mode.
Wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode. For example, the first power mode may be an S4 (STD) power mode, and the second power mode may be an S3 (STR) power mode; alternatively, the first power mode may be a ms (mode standby) power mode, and the second power mode may be an S3 power mode or an S4 power mode. In the S4 power mode, the hard disk of the electronic device may be in a power-on state, and other components of the electronic device except the hard disk may be in a power-off state; in the S3 power mode, both the memory and the hard disk of the electronic device may be in a powered-on state, and other components of the electronic device except the hard disk and the memory may be in a powered-off state; in the MS power mode, the display of the electronic device may be in a powered off state and other components of the electronic device other than the display may be in a powered on state.
It is understood that the time period from the recovery of the MS power mode to the entry of the electronic apparatus into the normal operation state is shorter than the time period from the recovery of the S3 power mode to the entry of the electronic apparatus into the normal operation state, and the time period from the recovery of the S3 power mode to the entry of the electronic apparatus into the normal operation state is shorter than the time period from the recovery of the S4 power mode to the entry of the electronic apparatus into the normal operation state.
The second state may be the same as the first state. Of course, the second state may also be different from the first state. It should be noted that whether the second state is the same as the first state or the second state is different from the first state, the electronic device is supported to enter the first power mode from the current second power mode.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a first component of the electronic device is controlled to be in a first state, and an influence of the first component on the condition that the electronic device does not satisfy the condition for entering the first power mode is eliminated.
As another alternative embodiment of the present application, referring to fig. 2, a flowchart of a control method provided in embodiment 2 of the present application is shown, and this embodiment mainly relates to a refinement of the control method described in embodiment 1 above, as shown in fig. 2, the method may include, but is not limited to, the following steps:
step S201, in response to obtaining a trigger instruction for entering the first power mode, sending first control information to the first component to control the first component to remain in the first state, where the first component is a component that does not support the electronic device to enter the first power mode.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a current state of the first component may be determined, and if the first component is in the first state, first control information may be sent to the first component to control the first component to remain in the first state.
For embodiments in which the first component is a software component, sending first control information to the first component to control the first component to remain in the first state may include:
and S2011, obtaining the type information and the state information of the first component, and sending a control instruction to the first component through the target application program based on the type information and the state information so as to control the first component to be kept in the first state.
In this embodiment, on the basis of obtaining the type information and the state information of the first component, the current state of the first component may be determined based on the state information, and if the current state of the first component is the first state, the target application may be determined based on the type information, and a control instruction may be sent to the first component by the target application to control the first component to be maintained in the first state.
For embodiments in which the first component is a hardware component, sending first control information to the first component to control the first component to remain in the first state may include:
s2012, obtaining the type information and the state information of the first component, and sending an electric signal to the first component through the first control chip based on the type information and the state information so as to control the first component to be kept in the first state.
In this embodiment, on the basis of obtaining the type information and the state information of the first component, the current state of the first component may be determined based on the state information, and if the current state of the first component is the first state, the first control chip may be determined based on the type information, and an electrical signal may be sent to the first component through the first control chip to control the first component to be maintained in the first state.
The first control chip may include, but is not limited to: EC (embedded Controller) or SIO (super input output chip).
In an embodiment where the first control chip is EC, as shown in fig. 3, the sending the electrical signal to the first component by the first control chip may include: an electrical signal is sent to the EC through the PCH (south bridge chip) to cause the EC to send the electrical signal to the first component.
The EC sends the electrical signal to the first component, which may include, but is not limited to: the EC sets a general purpose interpretable signal (GPIO) state based on the electrical signal, sends the electrical signal to the first component including the GPIO state, the GPIO state to instruct the first component to enter the first state.
This step is a specific implementation manner of step S101 in example 1.
Step S202, controlling a second component different from the first component to enter a second state at least based on the trigger instruction so as to support the electronic device to enter the first power mode from the current second power mode.
The detailed process of step S202 can be referred to the related description of step S102 in embodiment 1, and is not described herein again.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a current state of the first component may be determined, and if the first component is in the first state, first control information may be sent to the first component to control the first component to remain in the first state, so as to eliminate an influence of the first component on the fact that the electronic device does not satisfy a condition for entering the first power mode, on the basis, a second component different from the first component is controlled to enter the second state based on at least the trigger instruction, so that the electronic device may enter the first power mode with lower power consumption from the current second power mode without limiting a configuration of the components.
As another alternative embodiment of the present application, referring to fig. 4, a flowchart of a control method provided in embodiment 3 of the present application is shown, and this embodiment mainly relates to a refinement of the control method described in embodiment 1 above, as shown in fig. 4, the method may include, but is not limited to, the following steps:
step S301, in response to obtaining a trigger instruction for entering the first power mode, controlling the first component to switch from a third state to the first state, wherein the first component is a component that does not support the electronic device to enter the first power mode, and power consumption of the first component in the third state is greater than that in the first state.
In this embodiment, the third state may be, but is not limited to, a normal operating state, and the first state may be, but is not limited to, a background operating state; alternatively, the third state may be, but is not limited to, a background running state and the first state may be, but is not limited to, a sleep state.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a current state of the first component may be determined, and if the first component is in the non-first state and the non-first state is the third state, the first component may be controlled to switch from the third state to the first state.
This step is a specific implementation manner of step S101 in example 1.
Step S302, controlling a second component different from the first component to enter a second state at least based on the trigger instruction so as to support the electronic device to enter the first power mode from the current second power mode.
The detailed process of step S302 can refer to the related description of step S102 in embodiment 1, and is not described herein again.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a current state of the first component may be determined, and if the first component is in a non-first state, and the non-first state is a third state, the first component may be controlled to switch from the third state to the first state, so as to eliminate an influence of the first component on the fact that the electronic device does not satisfy a condition for entering the first power mode.
As another alternative embodiment of the present application, referring to fig. 5, a flowchart of a control method provided in embodiment 4 of the present application is shown, and this embodiment mainly relates to a refinement of the control method described in embodiment 1 above, as shown in fig. 5, the method may include, but is not limited to, the following steps:
step S401, in response to obtaining a trigger instruction for entering the first power mode, controlling a first component of the electronic device to be in a first state, where the first component is a component that does not support the electronic device to enter the first power mode.
The detailed process of this step can be referred to the related descriptions in embodiment 1, embodiment 2, or embodiment 3, and is not described herein again.
Step S402, responding to a trigger instruction, sending second control information to a second component different from the first component so as to control the second component in a fourth state to enter the second state, wherein the power consumption of the second component in the second state is smaller than that of the second component in the fourth state, and the second component is in an active state in the second power mode so as to support the electronic device to enter the first power mode from the current second power mode.
In this embodiment, sending the second control information to the second component in response to the trigger instruction may include:
s4021, determining the activity state of the software component of the electronic device in response to the trigger instruction, and sending second control information to the second component based on the activity state of the software component.
Specifically, if the active state of the software component is a state in which the software component does not need network connection, second control information is sent to the network device to control the network device in the active state to enter a low power consumption active state, a protocol uninstall state, a network wakeup state, or a power off state. Wherein the active state is one of the fourth states, the low power active state, the protocol offload state, or the wake-on-network state is one of the second states, and the network device is one of the second components. The low power consumption active state may include, but is not limited to: a background run state.
The network equipment enters a low power consumption state or a protocol unloading state or a network awakening state, can support to still provide network service in the first power supply mode, and can be timely restored to a normal working state to provide network connection service when the software component needs to access the network.
The network device enters a power-off state, so that the electronic device does not provide network services in the first power mode, and further power consumption reduction in the first power mode is supported.
In this embodiment, in the case that the duration that the second component is in the foreground operation state in the second power mode is greater than the set threshold, it may be determined, but not limited to, that the second component is in the active state in the second power mode; alternatively, in the case where the operation state of the second component in the second power mode is frequently switched, it may be determined, but not limited to, that the second component is a component in an active state in the second power mode.
In this embodiment, in response to the trigger instruction, sending second control information to a second component different from the first component to control the second component in the fourth state to enter the second state, which may include but is not limited to:
s4022, obtaining type information of the second component in response to the trigger instruction.
Based on the type information of the second component, a type of the second component may be determined, the type of the second component including a software component or a hardware component.
Step S4023, sending a control instruction or an electric signal to the second component through the target application or the second control chip based on the type information to control the second component in the fourth state to enter the second state.
In the event that the second component is determined to be a software component based on the type information, control signaling may be sent to the second component by the target application.
In the case where it is determined that the second component is a hardware component based on the type information, an electrical signal may be transmitted to the second component through the second control chip.
The second control chip may be the same as the first control chip, e.g., the second control chip may be an EC. The second control chip may also be different from the first control chip, e.g., the second control chip may be a PCH.
In an embodiment where the second control chip is a PCH, as shown in fig. 6, sending an electrical signal to the second component through the second control chip based on the type information may include: an electrical signal is sent to the EC through the PCH based on the type information, causing the EC to send the electrical signal to the second component.
For the embodiment where the second control chip is EC, sending the electrical signal to the second component through the second control chip based on the type information may include: an electrical signal is sent to the second component by the EC based on the type information.
This step is a specific implementation manner of controlling a second component different from the first component to enter a second state at least based on the triggering instruction in the foregoing embodiments.
Wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is larger than the power consumption of the second component in the second state.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a first component of the electronic device is controlled to be in a first state, and an influence of the first component on the condition that the electronic device does not satisfy the condition for entering the first power mode is eliminated, on this basis, in response to the trigger instruction, second control information is sent to a second component different from the first component, so as to control the second component in a fourth state to enter the second state, so that the second component is switched from the fourth state to enter the second state, and it is ensured that the electronic device can enter the first power mode with lower power consumption from the current second power mode on the basis of not limiting the configuration of the components.
As another alternative embodiment of the present application, referring to fig. 7, a flowchart of a control method provided in embodiment 5 of the present application is shown, and this embodiment is mainly an extension of the control method described in embodiment 1 above, and as shown in fig. 7, the method may include, but is not limited to, the following steps:
step S501, in response to obtaining a trigger instruction for entering the first power mode, changing, by a basic input output system of the electronic device, configuration information of a first component to support the electronic device to enter the first power mode, where the first component is a component that does not support the electronic device to enter the first power mode.
The method for changing the configuration information of the first component by the basic input output system of the electronic equipment comprises the following steps: the basic input/output system of the electronic device adds Configuration information of a first component in an ACPI (Advanced Configuration and Power Interface), where the Configuration information of the first component may include at least: status information of the first component. The state information of the first component characterizes that the first component is required to be in a first state for the electronic device to enter a first power mode.
In this embodiment, the timing at which the bios of the electronic device changes the configuration information of the first component is not limited to the timing in response to obtaining the trigger instruction to enter the first power mode, and the timing at which the bios of the electronic device changes the configuration information of the first component may be a start instruction in response to the bios of the electronic device.
Step S502, responding to a trigger instruction, and controlling a first component of the electronic equipment to be in a first state.
In this embodiment, in response to the trigger instruction, controlling the first component of the electronic device to be in the first state may include: in response to the trigger instruction, the operating system of the electronic equipment obtains the state information of the first component from the configuration information of the first component recorded by the basic input output system, and controls the first component of the electronic equipment to be in the first state based on the state information of the first component.
Step S503, controlling a second component different from the first component to enter a second state at least based on the trigger instruction, so as to support the electronic device to enter the first power mode from a current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is greater than the power consumption of the second component in the second state.
The detailed processes of steps S502-S503 can refer to the related descriptions of steps S101-S102 in embodiment 1, and are not described herein again.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, the basic input/output system of the electronic device changes the configuration information of the first component to support the electronic device to enter the first power mode, so as to ensure validity of changing the configuration information of the first component.
As another alternative embodiment of the present application, referring to fig. 8, a flowchart of a control method provided in embodiment 6 of the present application is shown, and this embodiment is mainly an extension of the control method described in embodiment 1 above, and as shown in fig. 8, the method may include, but is not limited to, the following steps:
step S601, in response to obtaining a trigger instruction for entering the first power mode, controlling a first component of the electronic device to be in a first state, where the first component is a component that does not support the electronic device to enter the first power mode.
Step S602, controlling a second component different from the first component to enter a second state based on at least the trigger instruction, so as to support the electronic device to enter the first power mode from the current second power mode.
Wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is larger than the power consumption of the second component in the second state.
The detailed processes of steps S601-S602 can refer to the related descriptions of steps S101-S102 in embodiment 1, and are not described herein again.
Step S603, in response to obtaining a trigger instruction for switching from the first power mode to the second power mode, adjusting a current state of the first component and/or the second component.
Adjusting the current state of the first component may include, but is not limited to:
and adjusting the current state of the first component to the initial state of the first component in the second power mode.
Adjusting the current state of the second component may include, but is not limited to:
and adjusting the current state of the second component to the initial state of the second component in the second power mode.
Of course, adjusting the current state of the first component may also include, but is not limited to:
s6031, first historical state information is obtained, where the first historical state information represents a historical state of the first component before the electronic device enters the first power mode. The historical state may be, but is not limited to: the third state described above.
And S6032, determining the historical state represented by the first historical state information as the current state of the first component.
Adjusting the current state of the second component may also include, but is not limited to:
and S6033, obtaining second historical state information, wherein the second historical state information represents the historical state of the second component before the electronic equipment enters the first power supply mode. The historical state may be, but is not limited to: the fourth state described above.
And S6034, determining the historical state represented by the second historical state information as the current state of the second component.
In this embodiment, another implementation manner of adjusting the current state of the first component and/or the second component is further provided, which may specifically include:
and S6035, obtaining the user intention of the target user, and adjusting the current state of the first component and/or the second component based on at least the user intention.
The user intention of the target user can be determined according to the behavior data of the target user and/or the state data of the electronic equipment.
This step may include, but is not limited to:
s60351, obtaining the first user intention of the target user, and adjusting the current state of the first component and/or the second component to be the initial state of the first component and/or the second component in the second power mode at least based on the first user intention.
This step may also include, but is not limited to:
s60352, obtaining a second user intention of the target user, obtaining historical state information of the first component and/or the second component based on at least the second user intention, determining a historical state represented by the historical state information as a current state of the first component and/or the second component, and representing the historical state of the first component and/or the second component before the electronic equipment enters the first power mode.
In this embodiment, another implementation manner of adjusting the current state of the first component and/or the second component is further provided, which may specifically include:
and S6036, adjusting the current state of the first component and/or the second component at least based on the obtaining mode of the trigger instruction for switching from the first power supply mode to the second power supply mode.
Specifically, a target obtaining mode of a trigger instruction entering the first power supply mode corresponding to an obtaining mode is determined at least based on the obtaining mode of the trigger instruction switching from the first power supply mode to the second power supply mode, a historical state of the first component and/or the second component when the first power supply mode is obtained based on the target obtaining mode is determined as a target historical state, and the target historical state of the first component and/or the second component is determined as a state where the first component and/or the second component is currently located.
Adjusting the current state of the first component and/or the second component may also include, but is not limited to:
and S6037, acquiring a target historical state of the first component and/or the second component based on at least an acquisition mode of a trigger instruction for switching from the first power supply mode to the second power supply mode.
The manner of obtaining the target history state may refer to the related description of step S6036, and is not described herein again.
And S6038, acquiring the user intention of the target user.
And S6039, determining the target historical state as the current state of the first component and/or the second component based on at least the user intention.
And S60310, determining not to use the target historical state at least based on the user intention, and adjusting the current state of the first component and/or the second component at least based on the user intention.
The detailed process of adjusting the current state of the first component and/or the second component based on at least the user' S intention in this step may refer to the related description in step S6035, and is not described herein again.
In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, a first component of the electronic device is controlled to be in a first state, and an influence of the first component on the condition that the electronic device does not satisfy the condition for entering the first power mode is eliminated.
And the electronic equipment can adjust the current state of the first component and/or the second component in response to obtaining a trigger instruction for switching from the first power supply mode to the second power supply mode, so as to support the electronic equipment to switch from the first power supply mode to the second power supply mode.
Next, a control device provided in the present application will be described, and the control device described below and the control method described above may be referred to in correspondence with each other.
Referring to fig. 9, the control device includes: a first control module 100 and a second control module 200.
The first control module 100 is configured to, in response to obtaining a trigger instruction to enter a first power mode, control a first component of the electronic device to be in a first state, where the first component is a component that does not support the electronic device to enter the first power mode;
a second control module 200, configured to control a second component different from the first component to enter a second state based on at least the trigger instruction, so as to support the electronic device to enter the first power mode from the current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is larger than the power consumption of the second component in the second state.
In this embodiment, the first control module 100 may specifically be configured to:
and sending first control information to the first component to control the first component to be kept in the first state or control the first component to be switched from a third state to the first state, wherein the power consumption of the first component in the third state is larger than the power consumption of the first component in the first state.
In this embodiment, the first control module 100 may specifically be configured to:
the method comprises the steps of obtaining type information and state information of a first component, and sending a control instruction or an electric signal to the first component through a target application program or a first control chip based on the type information and the state information so as to control the first component to be kept in a first state or control the first component to be switched from a third state to the first state, wherein the power consumption of the first component in the third state is larger than that in the first state.
In this embodiment, the second control module 200 may be specifically configured to:
and in response to the triggering instruction, sending second control information to a second component different from the first component to control the second component in a fourth state to enter the second state, wherein the power consumption of the second component in the second state is smaller than that in the fourth state, and the second component is a component in an active state in the second power mode.
In this embodiment, the second control module 200 may be specifically configured to:
obtaining type information of a second component in response to the trigger instruction;
and sending a control instruction or an electric signal to the second component through the target application program or the second control chip based on the type information so as to control the second component to enter the second state.
In this embodiment, the control device may further include:
and the changing module is used for responding to the triggering instruction, changing the configuration information of the first component by a basic input and output system of the electronic equipment so as to support the electronic equipment to enter the first power supply mode.
In this embodiment, the control device may further include:
and the adjusting module is used for responding to a trigger instruction for switching from the first power supply mode to the second power supply mode, and adjusting the current state of the first component and/or the second component.
In this embodiment, the adjusting module may be specifically configured to:
obtaining a user intention of a target user, and adjusting the current state of the first component and/or the second component at least based on the user intention; or the like, or, alternatively,
and adjusting the current state of the first component and/or the second component at least based on the obtaining mode of the trigger instruction.
Corresponding to the embodiment of the control method provided by the application, the application also provides an embodiment of the electronic equipment applying the control method.
As shown in fig. 10, which is a schematic structural diagram of an embodiment 1 of an electronic device provided in the present application, the electronic device may include the following structures:
a memory 10 and a processor 20.
A memory 10 for storing at least one set of instructions;
a processor 20, configured to call and execute the instruction set in the memory 10, and execute the control method as described in any one of embodiments 1 to 6 by executing the instruction set.
Corresponding to the embodiment of the control method provided by the application, the application also provides an embodiment of a storage medium.
In this embodiment, the storage medium stores a computer program for implementing the control method described in any one of the foregoing embodiments, and the computer program is executed by the processor for implementing the control method described in any one of the foregoing embodiments.
It should be noted that each embodiment is mainly described as a difference from the other embodiments, and the same and similar parts between the embodiments may be referred to each other. For the hardware component class embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above hardware components are described as being divided into various units by functions, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware components when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus a necessary general hardware component platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The foregoing detailed description is directed to a control method, a control device, and an electronic device provided by the present application, and specific examples are applied in the present application to explain the principles and embodiments of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A control method, comprising:
in response to obtaining a trigger instruction for entering a first power mode, controlling a first component of an electronic device to be in a first state, wherein the first component is a component which does not support the electronic device to enter the first power mode;
controlling a second component different from the first component to enter a second state based on at least the trigger instruction to support the electronic device to enter the first power mode from a current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is greater than the power consumption of the second component in the second state.
2. The method of claim 1, the first component of the control electronics being in a first state comprising:
sending first control information to the first component to control the first component to remain in the first state or to control the first component to switch from a third state to the first state, wherein the power consumption of the first component in the third state is greater than the power consumption of the first component in the first state.
3. The method of claim 1 or 2, the first component of the control electronics being in a first state comprising:
the method comprises the steps of obtaining type information and state information of a first component, and sending a control instruction or an electric signal to the first component through a target application program or a first control chip based on the type information and the state information so as to control the first component to be kept in the first state, or controlling the first component to be switched from a third state to the first state, wherein the power consumption of the first component in the third state is larger than the power consumption of the first component in the first state.
4. The method of claim 1 or 2, the controlling a second component, different from the first component, into a second state based at least on the triggering instruction, comprising:
and in response to the trigger instruction, sending second control information to a second component different from the first component to control the second component in a fourth state to enter a second state, wherein the power consumption of the second component in the second state is smaller than that of the second component in the fourth state, and the second component is a component in an active state in the second power supply mode.
5. The method of claim 4, the controlling a second component, different from the first component, into a second state based at least on the triggering instruction, comprising:
obtaining type information of a second component in response to the trigger instruction;
and sending a control instruction or an electric signal to the second component through a target application program or a second control chip based on the type information so as to control the second component to enter the second state.
6. The method of claim 1, further comprising:
in response to the triggering instruction, changing configuration information of the first component by a basic input output system of the electronic device to support the electronic device to enter the first power mode.
7. The method of claim 1, further comprising:
in response to obtaining a triggering instruction to switch from the first power mode to the second power mode, adjusting a state in which the first component and/or the second component is currently located.
8. The method of claim 7, the adjusting the state in which the first component and/or the second component is currently located, comprising:
obtaining a user intention of a target user, and adjusting the current state of the first component and/or the second component based on at least the user intention; or the like, or, alternatively,
and adjusting the current state of the first component and/or the second component at least based on the obtaining mode of the trigger instruction.
9. A control device, comprising:
the first control module is used for responding to a trigger instruction for entering a first power supply mode, and controlling a first component of the electronic equipment to be in a first state, wherein the first component is a component which does not support the electronic equipment to enter the first power supply mode;
the second control module is used for controlling a second component different from the first component to enter a second state at least based on the trigger instruction so as to support the electronic equipment to enter the first power mode from a current second power mode;
wherein the power consumption of the electronic device in the second power mode is higher than the power consumption of the electronic device in the first power mode, and the power consumption of the second component in the second power mode is greater than the power consumption of the second component in the second state.
10. An electronic device, comprising:
a memory and a processor;
the memory for storing at least one set of instructions;
the processor, configured to call and execute the instruction set in the memory, and execute the control method according to any one of claims 1 to 8 by executing the instruction set.
CN202210111244.1A 2022-01-29 2022-01-29 Control method and device and electronic equipment Pending CN114415821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111244.1A CN114415821A (en) 2022-01-29 2022-01-29 Control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111244.1A CN114415821A (en) 2022-01-29 2022-01-29 Control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114415821A true CN114415821A (en) 2022-04-29

Family

ID=81280057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111244.1A Pending CN114415821A (en) 2022-01-29 2022-01-29 Control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114415821A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866212A (en) * 2010-06-01 2010-10-20 熊文龙 Multi-mode power source managing device and managing method
CN104460935A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN111240456A (en) * 2020-01-10 2020-06-05 北京小米移动软件有限公司 Power saving setting method, power saving setting device and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866212A (en) * 2010-06-01 2010-10-20 熊文龙 Multi-mode power source managing device and managing method
CN104460935A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN111240456A (en) * 2020-01-10 2020-06-05 北京小米移动软件有限公司 Power saving setting method, power saving setting device and computer storage medium

Similar Documents

Publication Publication Date Title
JP5994157B2 (en) Zero power hibernate mode that turns on immediately
CN104298336B (en) Mobile terminal and control method and device of application program of mobile terminal
KR101562448B1 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
CN105824393B (en) System on chip, method for managing power thereof, and electronic device
KR101519082B1 (en) Sleep processor
KR101409055B1 (en) System and method for controlling central processing unit power based on inferred workload parallelism
US8826052B1 (en) Methods and apparatus for power mode control for PDA with separate communications and applications processors
CN109151961B (en) Operation method of mobile terminal, terminal and computer readable storage medium
KR101450381B1 (en) Power management in a system having a processor and a voltage converter that provides a power voltage to the processor
US11467650B2 (en) Selecting a low power state in an electronic device
CN103645793A (en) Platform power management based on latency guidance
JP2002517032A (en) Software emulation of power management inactivity monitoring
US10338936B2 (en) Method for controlling schedule of executing application in terminal device and terminal device implementing the method
US7716504B2 (en) System for retaining power management settings across sleep states
CN107515668B (en) Control method and device
US8453002B2 (en) Apparatus and method for controlling power state transitions based on timer events
CN107231386B (en) Application state conversion method and device and mobile terminal
CN108227900B (en) Electronic device, energy-saving control method, energy-saving device, and readable storage medium
JP2008262370A (en) Information processing apparatus and method for controlling monitoring of information processing apparatus
KR20070112660A (en) Power management apparatus and method
KR20050065394A (en) Method and apparatus for reducing memory current leakage in a mobile device
CN114415821A (en) Control method and device and electronic equipment
US20060200684A1 (en) Power mode change voltage control in computerized system
CN103257894A (en) Program management method and electronic terminal
US20160124485A1 (en) Computer system having an absence 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