A control method, apparatus and electronic device
By controlling the first component of the electronic device to a first state and controlling the second component to enter a second state, the problem of the electronic device being unable to enter a low-power power mode is solved, and effective power saving is achieved.
Patent Information
- Application Number
- CN202210111244.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-29
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-01-29
AI Technical Summary
In certain scenarios, electronic devices cannot enter a low-power power mode, resulting in ineffective power saving.
By controlling a first component of an electronic device that does not support a low-power power mode to a first state, and controlling a second component different from the first component to enter a second state, the electronic device can switch from a high-power second power mode to a low-power first power mode.
It enables electronic devices to switch from high-power mode to low-power mode without limiting component configuration, thereby reducing overall power consumption.
Smart Images

Figure CN114415821B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a control method and device and electronic equipment. BACKGROUND
[0002] With the development of computer technology, saving power consumption becomes an important design goal of electronic equipment. In order to save energy consumption, the electronic equipment can enter a power mode that can save the power consumption of the electronic equipment. However, the electronic equipment cannot enter a low-power power mode in some scenarios, so how to enter a power mode that can save the power consumption of the electronic equipment becomes a problem. SUMMARY
[0003] The present application provides the following technical solutions:
[0004] The present application provides a control method, comprising:
[0005] In response to obtaining a trigger instruction for entering a first power mode, a first component of the electronic equipment is controlled to be in a first state, and the first component is a component that does not support the electronic equipment to enter the first power mode;
[0006] At least based on the trigger instruction, a second component different from the first component is controlled to enter a second state to support the electronic equipment to enter the first power mode from a current second power mode;
[0007] Wherein, the power consumption of the electronic equipment in the second power mode is higher than that in the first power mode, and the power consumption of the second component in the second power mode is greater than that in the second state.
[0008] The first component of the electronic equipment is controlled to be in the first state, comprising:
[0009] The first control information is sent to the first component to control the first component to remain in the first state, or 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 that in the first state.
[0010] The first component of the electronic equipment is controlled to be in the first state, comprising:
[0011] The type information and state information of the first component are obtained, and the control instruction or electrical signal is sent to the first component through the target application program or the first control chip based on the type information and the state information, to control the first component to remain in the first state, or 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 that in the first state.
[0012] controlling, based at least on the trigger instruction, a second component different from the first component to enter a second state, wherein the second component is a component in an active state in the second power mode.
[0013] 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 power consumption of the second component in the second state is less than power consumption of the second component in the fourth state, and the second component is a component in an active state in the second power mode.
[0014] controlling, based at least on the trigger instruction, a second component different from the first component to enter a second state, wherein the second component is a component in an active state in the second power mode.
[0015] in response to the trigger instruction, obtaining type information of a second component;
[0016] based on the type information, sending a control instruction or an electrical signal to the second component by a target application program or a second control chip to control the second component to enter the second state.
[0017] wherein the method further comprises:
[0018] in response to the trigger instruction, changing configuration information of the first component by a basic input and output system of the electronic device to support the electronic device to enter the first power mode.
[0019] the method further comprises:
[0020] in response to obtaining a trigger instruction of switching from the first power mode to the second power mode, adjusting a current state of the first component and / or the second component.
[0021] the adjusting the current state of the first component and / or the second component comprises:
[0022] obtaining a user intention of a target user, and adjusting the current state of the first component and / or the second component based at least on the user intention; or
[0023] adjusting the current state of the first component and / or the second component based at least on an obtaining manner of the trigger instruction.
[0024] Another aspect of the present application provides a control device, comprising:
[0025] a first control module configured to, in response to obtaining a trigger instruction of entering a first power mode, control a first component of an electronic device to be in a first state, wherein the first component is a component that does not support the electronic device to enter the first power mode.
[0026] a second control module 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 supply mode from a current second power supply mode;
[0027] wherein the electronic device has a higher power consumption in the second power supply mode than in the first power supply mode, and the second component has a higher power consumption in the second power supply mode than in the second state.
[0028] The third aspect of the present application provides an electronic device, comprising:
[0029] a memory and a processor;
[0030] the memory is configured to store at least a set of instructions;
[0031] the processor is configured to invoke and execute the set of instructions in the memory, and execute the control method as described above by executing the set of instructions.
[0032] In the present application, in response to obtaining a trigger instruction to enter a first power supply mode, a first component of an electronic device is controlled to be in a first state, so as to eliminate the influence of the first component on the electronic device not meeting the condition for entering the first power supply mode, and on this basis, a second component different from the first component is controlled to enter a second state based on at least the trigger instruction, so that the electronic device can enter a first power supply mode with lower power consumption from a current second power supply mode without limiting the component configuration. BRIEF DESCRIPTION OF DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0034] Figure 1 is a flowchart of a control method provided by the first embodiment of the present application;
[0035] Figure 2 is a flowchart of a control method provided by the second embodiment of the present application;
[0036] Figure 3 is a schematic diagram of a scenario for sending an electrical signal to a first component provided by the present application;
[0037] Figure 4 is a flowchart of a control method provided by the third embodiment of the present application;
[0038] Figure 5is a flowchart of a control method provided in Embodiment 4 of the present application;
[0039] Figure 6 is a scenario diagram of sending an electrical signal to a second component provided in the present application;
[0040] Figure 7 is a flowchart of a control method provided in Embodiment 5 of the present application;
[0041] Figure 8 is a flowchart of a control method provided in Embodiment 6 of the present application;
[0042] Figure 9 is a structural diagram of a control device provided in the present application;
[0043] Figure 10 is a structural diagram of an electronic device provided in the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without any creative work fall within the scope of protection of the present application.
[0045] In order to make the above objectives, characteristics and advantages of the present application more apparent, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0046] Reference Figure 1 is a flowchart of a control method provided in Embodiment 1 of the present application. The control method provided in the present application can be applied to an electronic device, and the product type of the electronic device is not limited in the present application, such as Figure 1 as shown, the method can include but is not limited to the following steps:
[0047] Step S101, in response to obtaining a trigger instruction to enter a first power mode, controlling a first component of the electronic device to be in a first state, the first component being a component that does not support the electronic device to enter the first power mode.
[0048] In the present embodiment, obtaining a trigger instruction to enter a first power mode can include but is not limited to:
[0049] Clicking the "sleep" mode in the "start" menu to enter the "sleep" mode or clicking the "hibernate" mode to enter the "hibernate" mode, obtaining the trigger instruction of entering the first power mode; or, closing the upper cover part of the electronic device, obtaining the trigger instruction of entering the first power mode; or, touching the power button, obtaining the trigger instruction of entering the first power mode; or, the electronic device entering the idle state, obtaining the trigger instruction of entering the first power mode; or, reaching the target time set for entering the first power mode, obtaining the trigger instruction of entering the first power mode.
[0050] In response to obtaining the trigger instruction of entering the first power mode, the components of the electronic device (such as the components of the electronic device itself and / or the peripheral components connected to the electronic device) need to be prepared for the transition to running in the first power mode, for example, the software components of the electronic device (such as the application programs and the operating system) need to be prepared for the transition to running in the first power mode, stopping or reducing the software activities on the operating system of the electronic device, providing more opportunities for the hardware components to enter the low power mode. On the basis of the preparation of the software components for the transition to running in the first power mode, the hardware components of the electronic device and the software device drivers of the hardware components also need to be prepared for running in the first power mode.
[0051] On the basis of the preparation of the components of the electronic device for the transition to running in the first power mode, the electronic device can enter the first power mode. However, in the case that the first component of the electronic device does not support the first power mode, the first component of the electronic device does not support the electronic device to enter the first power mode, which will cause the electronic device to not meet the conditions for entering the first power mode.
[0052] In order to enable the electronic device to enter the first power mode, specifically, the first component of the electronic device can be controlled to be in the first state. The first state can be understood as one of the states in the power mode supported by the first component, and the first state can include but is not limited to the sleep state, the hibernate state, the off state, the pause state or the background running state. The first component of the electronic device in the first state can eliminate the influence of the first component on the electronic device not meeting the conditions for entering the first power mode.
[0053] The first component of the electronic device can include but is not limited to the software component of the electronic device, or the hardware component connected to the electronic device, or the hardware component of the electronic device itself.
[0054] The hardware component connected to the electronic device can include but is not limited to the connected PCIE (high-speed serial computer expansion bus standard) device; the hardware component of the electronic device itself can include but is not limited to the PCIE device of the electronic device itself.
[0055] In step S102, a second component different from the first component is controlled to enter a second state based at least on the trigger instruction, to support the electronic device to enter the first power mode from the current second power mode.
[0056] The second component different from the first component is controlled to enter the second state based at least on the trigger instruction, which can include but is not limited to:
[0057] The broadcast signal is generated and sent based at least on the trigger instruction, so that the second component different from the first component obtains the broadcast signal and enters the second state based on the broadcast signal.
[0058] The second component can include a software component and a hardware component, and the power consumption of the second component in the second state is less than that in the second power mode, to support the electronic device to enter a power mode with lower power consumption.
[0059] The second state can include but is not limited to a background running state, a hibernation state, a sleep state or a shutdown state. It can be understood that the power consumption of the second component in the background running state is greater than that in the hibernation state; the power consumption of the second component in the hibernation state is greater than that in the sleep state; and the power consumption of the second component in the sleep state is greater than that in the shutdown state.
[0060] It should be noted that the second state entered by the software component different from the first component is different from the second state entered by the hardware component different from the first component, and the first component and the second component are different in at least one of the following: different communication protocols, different component types, different component models, or different component version numbers.
[0061] Specifically, based on the first component of the electronic device being in the first state, the software component different from the first component of the electronic device can enter the second state, stop or reduce software activities on the operating system of the electronic device, and provide more opportunities for the hardware component different from the first component of the electronic device to enter a low-power mode. Based on the software component different from the first component of the electronic device entering the second state, the hardware component and the software device driver of the hardware component of the electronic device also enter the second state, to support the electronic device to enter the first power mode from the current second power mode.
[0062] The power consumption of the electronic device in the second power supply mode is higher than the power consumption of the electronic device in the first power supply mode. For example, the first power supply mode can be an S4 (STD, Suspend to Disk) power supply mode, and the second power supply mode can be an S3 (STR, Suspend to RAM) power supply mode; or the first power supply mode can be an MS (Modern Standby) power supply mode, and the second power supply mode can be an S3 power supply mode or an S4 power supply mode. In the S4 power supply mode, the hard disk of the electronic device can be in a powered-on state, and other components of the electronic device except the hard disk can be in a powered-off state; in the S3 power supply mode, the memory and the hard disk of the electronic device can be in a powered-on state, and other components of the electronic device except the hard disk and the memory can be in a powered-off state; in the MS power supply mode, the display of the electronic device can be in a powered-off state, and other components of the electronic device except the display can be in a powered-on state.
[0063] It can be understood that the time length from the MS power supply mode to the normal working state of the electronic device is shorter than the time length from the S3 power supply mode to the normal working state of the electronic device, and the time length from the S3 power supply mode to the normal working state of the electronic device is shorter than the time length from the S4 power supply mode to the normal working state of the electronic device.
[0064] The second state can be the same as the first state. Of course, the second state can 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 supply mode from the current second power supply mode.
[0065] In this embodiment, in response to obtaining a trigger instruction for entering the first power supply mode, the first component of the electronic device is controlled to be in the first state, and the influence of the first component on the condition that the electronic device does not meet the entering of the first power supply mode is eliminated. On this basis, the 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 can enter the first power supply mode with lower power consumption from the current second power supply mode without limiting the component configuration.
[0066] As another optional embodiment of the present application, referring to Figure 2 A flowchart of a control method provided in Embodiment 2 of the present application, the present embodiment mainly describes a detailed scheme of the control method described in Embodiment 1, as shown in the figure, the method can include but is not limited to the following steps: Figure 2
[0067] Step S201, in response to obtaining a trigger instruction for entering the first power supply mode, sending first control information to the first component to control the first component to remain in the first state, the first component being a component that does not support the electronic device to enter the first power supply mode.
[0068] In the embodiment, in response to obtaining the trigger instruction of entering the first power mode, the current state of the first component can be determined, and if the first component is in the first state, the first control information can be sent to the first component to control the first component to remain in the first state.
[0069] Corresponding to the embodiment that the first component is a software component, sending the first control information to the first component to control the first component to remain in the first state can include:
[0070] S2011, obtaining type information and state information of the first component, and sending a control instruction to the first component through a target application program based on the type information and the state information to control the first component to remain in the first state.
[0071] In the embodiment, based on obtaining the type information and the state information of the first component, the current state of the first component can be determined based on the state information, and if the current state of the first component is the first state, the target application program can be determined based on the type information, and a control instruction can be sent to the first component through the target application program to control the first component to remain in the first state.
[0072] Corresponding to the embodiment that the first component is a hardware component, sending the first control information to the first component to control the first component to remain in the first state can include:
[0073] S2012, obtaining type information and state information of the first component, and sending an electrical signal to the first component through a first control chip based on the type information and the state information to control the first component to remain in the first state.
[0074] In the embodiment, based on obtaining the type information and the state information of the first component, the current state of the first component can be determined based on the state information, and if the current state of the first component is the first state, the first control chip can be determined based on the type information, and an electrical signal can be sent to the first component through the first control chip to control the first component to remain in the first state.
[0075] The first control chip can include but is not limited to an EC (Embeded Controller) or an SIO (Super Input Output Chip).
[0076] Corresponding to the embodiment that the first control chip is an EC, as shown in Figure 3 sending an electrical signal to the first component through the first control chip can include sending an electrical signal to the EC through a PCH (South Bridge Chip) to make the EC send the electrical signal to the first component.
[0077] The EC sends an electrical signal to the first component, which can include but is not limited to: the EC sends an electrical signal containing a general-purpose programmable signal (GPIO) state to the first component based on the electrical signal, and the GPIO state is used to instruct the first component to enter the first state.
[0078] This step is a specific implementation of step S101 in Example 1.
[0079] Step S202: Based at least on the trigger instruction, a second component different from the first component is controlled to enter a second state to support the electronic device to enter the first power mode from the current second power mode.
[0080] The detailed process of step S202 can refer to the related description of step S102 in Example 1, which will not be repeated here.
[0081] In this embodiment, in response to obtaining the trigger instruction to enter the first power mode, the current state of the first component can be determined. If the first component is in the first state, the first control information can be sent to the first component to control the first component to remain in the first state, so as to eliminate the influence of the first component on the electronic device not meeting the condition for entering the first power mode. On this basis, at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state, so that the electronic device can enter the first power mode with lower power consumption from the current second power mode without limiting the component configuration.
[0082] As another optional embodiment of the present application, referring to Figure 4 A flowchart of a control method provided in Example 3 of the present application is shown in the figure. This embodiment mainly describes a detailed scheme of the control method described in Example 1 above. As shown in the figure, the method can include but is not limited to the following steps: Figure 4
[0083] Step S301: In response to obtaining a trigger instruction to enter the first power mode, the first component is controlled to switch from a third state to a first state, wherein the first component is a component that does not support the electronic device to enter the first power mode, and the power consumption of the first component in the third state is greater than that in the first state.
[0084] In this embodiment, the third state can be but is not limited to a normal working state, and the first state can be but is not limited to a background running state; or, the third state can be but is not limited to a background running state, and the first state can be but is not limited to a sleep state.
[0085] In this embodiment, in response to obtaining the trigger instruction to enter the first power mode, the current state of the first component can be determined. If the first component is in the non-first state and the non-first state is the third state, the first component can be controlled to switch from the third state to the first state.
[0086] This step is a specific implementation of step S101 in Example 1.
[0087] Step S302, at least based on the trigger instruction, controls a second component different from the first component to enter a second state to support the electronic device to enter the first power mode from the current second power mode.
[0088] The detailed process of step S302 can refer to the related description of step S102 in Example 1, which will not be repeated here.
[0089] In this embodiment, in response to obtaining the trigger instruction to enter the first power mode, the current state of the first component can be determined. If the first component is in a non-first state and the non-first state is a third state, the first component can be controlled to switch from the third state to the first state to eliminate the influence of the first component on the electronic device not meeting the condition to enter the first power mode. On this basis, at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state, so that the electronic device can enter the first power mode with lower power consumption from the current second power mode without limiting the component configuration.
[0090] As another optional embodiment of the present application, referring to Figure 5 , the flowchart of a control method provided in Example 4 of the present application, this embodiment mainly describes the detailed scheme of the control method described in Example 1 above, as shown in Figure 5 , the method can include but is not limited to the following steps:
[0091] Step S401, in response to obtaining a trigger instruction to enter a first power mode, a first component of an electronic device is controlled to be in a first state, and the first component is a component that does not support the electronic device to enter the first power mode.
[0092] The detailed process of this step can refer to the related description in Example 1 or Example 2 or Example 3, which will not be repeated here.
[0093] Step S402, in response to the trigger instruction, second control information is sent 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 less than that in the fourth state, and the second component is a component in an active state in the second power mode to support the electronic device to enter the first power mode from the current second power mode.
[0094] In this embodiment, in response to the trigger instruction, the second control information is sent to the second component, which can include:
[0095] S4021, in response to the trigger instruction, determining an active state of the software component of the electronic device, and sending second control information to the second component based on the active state of the software component.
[0096] Specifically, in response to the active state of the software component being a state in which the software component does not require a network connection, the second control information is sent to the network device to control the network device in the active state to enter a low-power active state, a protocol offloading state, a network wake-up state, or a power-off state. The active state is one of the implementation manners of the fourth state, and the low-power active state, the protocol offloading state, or the network wake-up state is one of the implementation manners of the second state. The network device is one of the implementation manners of the second component. The low-power active state can include but is not limited to a background running state.
[0097] The network device entering the low-power state, the protocol offloading state, or the network wake-up state can support providing network services in the first power mode, and when the software component needs to access the network, the network device can be restored to a normal working state in time to provide network connection services.
[0098] The network device entering the power-off state makes the electronic device not provide network services in the first power mode, and supports further reducing power consumption in the first power mode.
[0099] In the embodiment, when the second component is in the foreground running state in the second power mode for a duration greater than a set threshold, it can be determined that the second component is a component in the active state in the second power mode, but is not limited thereto. When the working state of the second component in the second power mode frequently switches, it can be determined that the second component is a component in the active state in the second power mode, but is not limited thereto.
[0100] In the embodiment, in response to the trigger instruction, the second control information is sent to the second component different from the first component to control the second component in the fourth state to enter the second state, which can include but is not limited to:
[0101] S4022, in response to the trigger instruction, obtaining type information of the second component.
[0102] Based on the type information of the second component, the type of the second component can be determined, and the type of the second component includes a software component or a hardware component.
[0103] S4023, based on the type information, sending a control instruction or an electrical signal to the second component through a target application program or a second control chip to control the second component in the fourth state to enter the second state.
[0104] In a case that the second component is determined as a software component based on the type information, the control signaling can be sent to the second component by the target application.
[0105] In a case that the second component is determined as a hardware component based on the type information, the electrical signal can be sent to the second component by the second control chip.
[0106] The second control chip can be the same as the first control chip, for example, the second control chip can be an EC. The second control chip can also be different from the first control chip, for example, the second control chip can be a PCH.
[0107] Corresponding to the embodiment that the second control chip is a PCH, as shown in Figure 6 Based on the type information, sending the electrical signal to the second component by the second control chip can include: based on the type information, sending the electrical signal to the EC by the PCH, so that the EC sends the electrical signal to the second component.
[0108] Corresponding to the embodiment that the second control chip is an EC, based on the type information, sending the electrical signal to the second component by the second control chip can include: based on the type information, sending the electrical signal to the second component by the EC.
[0109] This step is a specific implementation of the foregoing various embodiments, which controls the second component different from the first component to enter the second state based on at least the trigger instruction.
[0110] The power consumption of the electronic device in the second power supply mode is higher than that in the first power supply mode, and the power consumption of the second component in the second power supply mode is greater than that in the second state.
[0111] In this embodiment, in response to obtaining the trigger instruction to enter the first power supply mode, the first component of the electronic device is controlled to be in the first state, and the influence of the first component on the electronic device not satisfying the condition for entering the first power supply mode is eliminated. On this basis, in response to the trigger instruction, second control information is sent to the second component different from the first component to control the second component in the fourth state to enter the second state, so that the second component is switched from the fourth state to the second state, and it is ensured that the electronic device can enter the first power supply mode with lower power consumption from the current second power supply mode without limiting the component configuration.
[0112] As another optional embodiment of the present application, referring to Figure 7 A flowchart of a control method provided in Embodiment 5 of the present application is shown in the figure, and this embodiment mainly extends the control method described in Embodiment 1, as shown in Figure 7 The method can include but is not limited to the following steps:
[0113] In step S501, in response to obtaining the 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, the first component being a component that does not support the electronic device to enter the first power mode.
[0114] The basic input / output system of the electronic device changing the configuration information of the first component can include: the basic input / output system of the electronic device adding the configuration information of the first component in ACPI (Advanced Configuration and Power Interface), and the configuration information of the first component at least including state information of the first component. The state information of the first component indicates that the electronic device entering the first power mode requires the first component to be in the first state.
[0115] In this embodiment, the timing of the basic input / output system of the electronic device changing the configuration information of the first component is not limited to responding to the trigger instruction for entering the first power mode. The timing of the basic input / output system of the electronic device changing the configuration information of the first component can also be responding to a start instruction of the basic input / output system of the electronic device.
[0116] In step S502, in response to the trigger instruction, the first component of the electronic device is controlled to be in the first state.
[0117] In this embodiment, in response to the trigger instruction, the first component of the electronic device is controlled to be in the first state can include: in response to the trigger instruction, the operating system of the electronic device 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 device to be in the first state based on the state information of the first component.
[0118] In step S503, at least based on the trigger instruction, a second component different from the first component is controlled to enter a second state to support the electronic device to enter the first power mode from a current second power mode.
[0119] The power consumption of the electronic device in the second power mode is higher than that in the first power mode, and the power consumption of the second component in the second power mode is greater than that in the second state.
[0120] The detailed processes of steps S502-S503 can refer to the related descriptions of steps S101-S102 in Embodiment 1, which will not be repeated here.
[0121] In this embodiment, in response to obtaining a trigger instruction for entering the first power mode, the configuration information of the first component is changed by the basic input / output system of the electronic device to support the electronic device to enter the first power mode, and the effectiveness of changing the configuration information of the first component is ensured. Based on this, in response to obtaining the trigger instruction for entering the first power mode, the first component of the electronic device is controlled to be in the first state, and the influence of the first component on the electronic device not satisfying the condition for entering the first power mode is eliminated. On this basis, at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state, so that the electronic device can enter the first power mode with lower power consumption from the current second power mode without limiting the component configuration.
[0122] As another optional embodiment of the present application, referring to Figure 8 , the present embodiment mainly extends the control method described in Embodiment 1. As shown in Figure 8 , the method can include but is not limited to the following steps:
[0123] Step S601, in response to obtaining a trigger instruction for entering the first power mode, the first component of the electronic device is controlled to be in the first state, and the first component is a component that does not support the electronic device to enter the first power mode.
[0124] Step S602, at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state to support the electronic device to enter the first power mode from the current second power mode.
[0125] Wherein, the power consumption of the electronic device in the second power mode is higher than that in the first power mode, and the power consumption of the second component in the second power mode is greater than that in the second state.
[0126] The detailed process of steps S601-S602 can be referred to the related introduction of steps S101-S102 in Embodiment 1, which will not be repeated here.
[0127] Step S603, in response to obtaining a trigger instruction for switching from the first power mode to the second power mode, the current state of the first component and / or the second component is adjusted.
[0128] Adjusting the current state of the first component can include but is not limited to:
[0129] Adjusting the current state of the first component to its initial state in the second power mode.
[0130] Adjusting the current state of the second component can include but is not limited to:
[0131] adjusting the current state of the second component to its initial state in the second power mode.
[0132] Of course, adjusting the current state of the first component can include but is not limited to:
[0133] S6031, obtaining first historical state information, the first historical state information representing a historical state of the first component before the electronic device enters the first power mode. The historical state can be but is not limited to the third state described above.
[0134] S6032, determining the historical state represented by the first historical state information as the current state of the first component.
[0135] Adjusting the current state of the second component can also include but is not limited to:
[0136] S6033, obtaining second historical state information, the second historical state information representing a historical state of the second component before the electronic device enters the first power mode. The historical state can be but is not limited to the fourth state described above.
[0137] S6034, determining the historical state represented by the second historical state information as the current state of the second component.
[0138] In this embodiment, another embodiment of adjusting the current state of the first component and / or the second component is also provided, which can specifically include:
[0139] S6035, obtaining a user intention of a target user, and adjusting the current state of the first component and / or the second component based at least on the user intention.
[0140] The user intention of the target user can be determined according to behavior data of the target user and / or state data of the electronic device.
[0141] This step can include but is not limited to:
[0142] S60351, obtaining a first user intention of a target user, and adjusting the current state of the first component and / or the second component to its initial state in the second power mode based at least on the first user intention.
[0143] This step can also include but is not limited to:
[0144] S60352, obtaining a second user intention of a target user, obtaining historical state information of the first component and / or the second component based at least on the second user intention, and determining a historical state represented by the historical state information as the current state of the first component and / or the second component, the historical state information representing a historical state of the first component and / or the second component before the electronic device enters the first power mode.
[0145] In this embodiment, another implementation of adjusting the current state of the first component and / or the second component is also provided, which can specifically include:
[0146] S6036, adjusting the current state of the first component and / or the second component based at least on the obtaining manner of the trigger instruction for switching from the first power supply mode to the second power supply mode.
[0147] Specifically, based at least on the obtaining manner of the trigger instruction for switching from the first power supply mode to the second power supply mode, a target obtaining manner of the trigger instruction for entering the first power supply mode corresponding to the obtaining manner is determined, a historical state of the first component and / or the second component when entering the first power supply mode based on the target obtaining manner is determined as a target historical state, and the target historical state of the first component and / or the second component is determined as the current state of the first component and / or the second component.
[0148] The adjustment of the current state of the first component and / or the second component can also include but is not limited to:
[0149] S6037, obtaining the target historical state of the first component and / or the second component based at least on the obtaining manner of the trigger instruction for switching from the first power supply mode to the second power supply mode.
[0150] The obtaining manner of the target historical state can refer to the related description of step S6036, which will not be repeated here.
[0151] S6038, obtaining the user intention of the target user.
[0152] S6039, determining that the target historical state is the current state of the first component and / or the second component based at least on the user intention.
[0153] S60310, determining not to use the target historical state and adjusting the current state of the first component and / or the second component based at least on the user intention.
[0154] The detailed process of adjusting the current state of the first component and / or the second component based at least on the user intention in this step can refer to the related description in step S6035, which will not be repeated here.
[0155] In this embodiment, in response to obtaining the trigger instruction for entering the first power supply mode, the first component of the electronic device is controlled to be in the first state, so as to eliminate the influence of the first component on the electronic device not meeting the condition for entering the first power supply mode, and on this basis, the second component different from the first component is controlled to be in the second state based at least on the trigger instruction, so that the electronic device can enter the first power supply mode with lower power consumption from the current second power supply mode without limiting the component configuration.
[0156] And, the electronic device can adjust a state in which the first component and / or the second component currently is in, in response to obtaining the trigger instruction to switch from the first power mode to the second power mode, to support the electronic device to switch from the first power mode to the second power mode.
[0157] Next, the control device provided by the present application is introduced, and the control device introduced below can be correspondingly referred to with the control method introduced above.
[0158] Please refer to Figure 9 , the control device comprises: a first control module 100 and a second control module 200.
[0159] The first control module 100 is configured to control the first component of the electronic device to be in the first state in response to obtaining the trigger instruction to enter the first power mode, the first component being a component that does not support the electronic device to enter the first power mode.
[0160] The second control module 200 is configured to control the second component different from the first component to enter the second state based on at least the trigger instruction, to support the electronic device to enter the first power mode from the current second power mode.
[0161] Wherein, the power consumption of the electronic device in the second power mode is higher than that in the first power mode, and the power consumption of the second component in the second power mode is greater than that in the second state.
[0162] In this embodiment, the first control module 100 can be specifically used for:
[0163] 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 the third state to the first state, wherein the power consumption of the first component in the third state is greater than that in the first state.
[0164] In this embodiment, the first control module 100 can be specifically used for:
[0165] obtaining type information and state information of the first component, and sending control instructions or electrical signals to the first component through a target application program or a first control chip based on the type information and the state information, to control the first component to remain in the first state, or to control the first component to switch from the third state to the first state, wherein the power consumption of the first component in the third state is greater than that in the first state.
[0166] In this embodiment, the second control module 200 can be specifically used for:
[0167] In response to the trigger instruction, second control information is sent to a second component different from the first component to control the second component in the fourth state to enter a second state, wherein power consumption of the second component in the second state is less than power consumption 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.
[0168] In the embodiment, the second control module 200 can be specifically used for:
[0169] In response to the trigger instruction, type information of the second component is obtained.
[0170] Based on the type information, a control instruction or an electrical signal is sent to the second component by a target application program or a second control chip to control the second component to enter the second state.
[0171] In the embodiment, the control device can further include:
[0172] The changing module is configured to change, in response to the trigger instruction, configuration information of the first component by a basic input and output system of the electronic device to support the electronic device to enter the first power supply mode.
[0173] In the embodiment, the control device can further include:
[0174] The adjusting module is configured to adjust, in response to the trigger instruction of switching from the first power supply mode to the second power supply mode, a current state of the first component and / or the second component.
[0175] In the embodiment, the adjusting module can be specifically used for:
[0176] 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
[0177] adjusting the current state of the first component and / or the second component based on at least an obtaining manner of the trigger instruction.
[0178] Corresponding to the control method provided in the application, the application further provides an electronic device applying the control method.
[0179] As shown in FIG. 1, an electronic device provided in the application can include the following structure: Figure 10
[0180] The electronic device can include a memory 10 and a processor 20.
[0181] The memory 10 is configured to store at least a set of instruction sets.
[0182] Processor 20 is configured to invoke and execute the instruction set in the memory 10, and execute the control method as described in any one of embodiments 1-6 by executing the instruction set.
[0183] Corresponding to the control method embodiment provided by the present application, the present application also provides a storage medium embodiment.
[0184] In this embodiment, the storage medium stores a computer program for implementing the control method as described in any one of the preceding embodiments, and the computer program is executed by the processor to implement the control method as described in any one of the preceding embodiments.
[0185] It should be noted that each embodiment focuses on the difference from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the hardware component embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the related parts can be referred to the part of the method embodiment.
[0186] Finally, it should be noted that in this document, relationship terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or equipment including the element.
[0187] For the convenience of description, the above hardware components are described as various units in function respectively. Of course, in the implementation of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware components.
[0188] From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general hardware component platform. Based on such understanding, the technical solutions of the present application can be embodied in the form of software product, which can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including a plurality of instructions to make a computer device (which can be a personal computer, server, or network device, etc.) execute the method described in each embodiment or some parts of the embodiments of the present application.
[0189] The above describes in detail a control method, device and electronic equipment provided by the present application. The principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will be changed. In conclusion, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A control method comprising: In response to obtaining the trigger instruction for entering the first power mode, a first component of the electronic device is controlled to be in a first state to eliminate the influence of the electronic device not satisfying the condition for entering the first power mode, the first component being a component that does not support the electronic device entering the first power mode; At least based on the trigger instruction, a second component different from the first component is controlled to enter a second state to support the electronic device entering the first power mode from a current second power mode; Wherein, the at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state, comprising: Based on the trigger instruction, a software component of the electronic device different from the first component is controlled to enter the second state to stop or reduce software activities on an operating system of the electronic device; and, A hardware component and a software device driver of the electronic device are controlled to enter the second state to support the electronic device entering the first power mode; Wherein, the power consumption of the electronic device in the second power mode is higher than that in the first power mode, the first power mode is a modern standby MS mode, and the power consumption of the second component in the second power mode is greater than that in the second state; Further comprising: in response to the trigger instruction, configuration information of the first component is changed by a basic input and output system of the electronic device to control the first component to be in the first state to support the electronic device entering the first power mode.
2. The method of claim 1, wherein the first component of the electronic device is controlled to be in the 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 that in the first state.
3. The method of claim 1 or 2, wherein the first component of the electronic device is controlled to be in the first state, comprising: obtaining type information and state information of the first component, and sending control instructions or electrical signals to the first component through a target application program or a first control chip based on the type information and the state information 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 that in the first state.
4. The method of claim 1 or 2, wherein the at least based on the trigger instruction, the second component different from the first component is controlled to enter the second state, comprising: In response to the trigger instruction, second control information is sent to the 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 less than that in the fourth state, and the second component is a component in an active state in the second power mode.
5. The method of claim 4, wherein the controlling, based at least on the trigger instruction, a second component different from the first component to enter a second state comprises: obtaining type information of the second component in response to the trigger instruction; and sending, based on the type information, a control instruction or an electrical signal to the second component through a target application program or a second control chip to control the second component to enter the second state.
6. The method of claim 1, further comprising: adjusting a current state of the first component and / or the second component in response to obtaining the trigger instruction to switch from the first power mode to the second power mode.
7. The method of claim 6, wherein 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 at least on the user intention; or adjusting the current state of the first component and / or the second component based at least on a manner in which the trigger instruction is obtained.
8. A control apparatus, comprising: a first control module configured to control a first component of an electronic device to a first state in response to obtaining a trigger instruction to enter a first power mode, the first component being a component that does not support the electronic device to enter the first power mode, to eliminate an effect of the electronic device not satisfying a condition for entering the first power mode; and a second control module configured to control a second component different from the first component to enter a second state based at least on the trigger instruction to support the electronic device to enter the first power mode from a current second power mode; wherein the second control module is specifically configured to: control a software component of the electronic device different from the first component to enter the second state based on the trigger instruction to stop or reduce software activities on an operating system of the electronic device; and control a hardware component of the electronic device and a software device driver thereof to enter the second state to support the electronic device to enter the first power mode; wherein a power consumption of the electronic device in the second power mode is higher than a power consumption of the electronic device in the first power mode, the first power mode being a modern standby (MS) mode, and a power consumption of the second component in the second power mode is greater than a power consumption of the second component in the second state. The apparatus is further configured to change configuration information of the first component by a basic input / output system (BIOS) of the electronic device in response to the trigger instruction to control the first component to the first state to support the electronic device to enter the first power mode.
9. An electronic device, comprising: a memory and a processor; the memory configured to store at least a set of instructions; and the processor configured to invoke and execute the set of instructions in the memory to perform a control method as claimed in any one of claims 1-7 by executing the set of instructions.
Citation Information
Patent Citations
Multi-mode power source managing device and managing method
CN101866212A
Power saving setting method, power saving setting device and computer storage medium
CN111240456A