Disclosure of Invention
In view of this, the present invention provides a control method, which solves the problem of large noise after the electronic device enters the MS state.
In order to achieve the purpose, the invention provides the following technical scheme:
a control method is applied to an electronic device, wherein the electronic device comprises an operating system, a Basic Input Output System (BIOS), an Embedded Controller (EC) and a Central Processing Unit (CPU), and the method comprises the following steps:
Receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
based on the screen of the electronic equipment is closed, the BIOS is controlled to send a first instruction to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls the fan to be closed, and the second value is smaller than the first value, so that the electronic equipment is controlled to enter a first state.
Preferably, the method further includes, after controlling the electronic device to enter the first state, the step of:
judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application;
the control BIOS notifies the EC of the operating system entering a second state to cause the EC to enter a sleep mode from an operating mode.
In the above method, preferably, the controlling the BIOS to send the first instruction to the EC includes:
and controlling the BIOS to generate an input/output command IO CMD and sending the IO CMD to the EC.
Preferably, the determining whether the preset application has network information transmission includes:
Monitoring transmission data of a preset application in the electronic equipment, wherein the preset application has a network connection function;
judging whether the transmission data of the preset application in a preset time length contains network information or not to obtain a first judgment result;
representing that the transmission data of the preset application in the preset time length does not contain network information based on the first judgment result, and judging that the preset application does not have network information transmission;
and representing that the transmission data of the preset application in the preset time length contains network information based on the first judgment result, and judging that the preset application has network information transmission.
In the above method, preferably, the controlling BIOS notifies the EC that the operating system enters the second state, including:
controlling the BIOS to switch a general purpose input output GPIO signal from a high level to a low level such that the EC determines that the operating system enters a second state based on the low level.
Preferably, the method further includes, after the EC enters the sleep mode from the operating mode, the step of:
receiving a second system signal sent by an operating system of the electronic equipment, wherein the second system signal is used for controlling the screen of the electronic equipment to be lightened;
Controlling the BIOS to notify the EC of the operating system to return to the first state from the second state, such that the EC enters the operating mode from the sleep mode, and such that the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan.
Preferably, the method further includes, after the EC enters the operating mode from the sleep mode, the step of:
and controlling the BIOS to send a second instruction to the EC to inform the EC that the screen of the electronic device is lightened, so that the EC confirms again that the maximum power consumption value of the CPU is set to the first value from the second value based on the second instruction and turns on the fan.
A control apparatus, the apparatus being applied to an electronic device, the electronic device including an operating system, a BIOS, an EC, and a CPU, the apparatus comprising:
the receiving module is used for receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling the screen of the electronic equipment to be closed;
the control module is used for controlling the BIOS to send a first instruction to the EC based on the screen closing of the electronic equipment, so that the EC sets the maximum power consumption value of the CPU from a first numerical value to a second numerical value according to the first instruction and controls the fan to be closed, wherein the second numerical value is smaller than the first numerical value, and the electronic equipment is controlled to enter a first state.
The above apparatus preferably further comprises:
the judging module is used for judging that the operating system enters a second state based on the fact that no network information is transmitted in the preset application;
the control module is further configured to control the BIOS to notify the EC that the operating system enters the second state, so that the EC enters the sleep mode from the working mode.
In the above apparatus, preferably, the receiving module is further configured to receive a second system signal sent by an operating system of an electronic device, where the second system signal is used to control a screen of the electronic device to be lit;
the control module is further used for controlling the BIOS to inform the EC that the operating system returns to the first state from the second state, so that the EC enters the working mode from the sleep mode, and the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan.
As can be seen from the above technical solutions, compared with the prior art, the present invention provides a control method applied to an electronic device, where the electronic device includes an operating system, a BIOS, an EC, and a CPU, and the method includes: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed; based on the screen of the electronic equipment is closed, the BIOS is controlled to send a first instruction to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls the fan to be closed, and the second value is smaller than the first value, so that the electronic equipment is controlled to enter a first state. In the scheme, when the screen of the electronic equipment is closed, the electronic equipment enters a dormant state relative to a user, the maximum power consumption value of the CPU is controlled to be reduced, so that the power consumption of the CPU is reduced, the temperature of the CPU is reduced, the fan is turned off, the noise of the fan is reduced, namely after the equipment enters the dormant state, the noise of the electronic equipment is reduced on the whole, and the user experience is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Referring to fig. 1, a flowchart of an embodiment 1 of a control method according to the present invention is shown, where the method is applied to an Electronic device, and the Electronic device includes an operating system, a BIOS (Basic input/output system), an EC (Electronic Computer), and a CPU. The operating system may specifically adopt a windows operating system and the like.
Wherein, the method comprises the following steps:
step S101: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
when the electronic equipment is in a normal working state, the screen of the electronic equipment is in an open state, namely the screen is lightened, and the content is displayed in the screen.
In specific implementation, after receiving a first system signal sent by an operating system, the screen of the electronic device is controlled to be closed according to the first system signal.
Specifically, the first system signal may be triggered by a user of the electronic device performing a specific operation, such as pressing a button with a "sleep" function by the user, or closing a cover of a screen of the electronic device (for example, when the electronic device is a notebook computer, an operation of closing the notebook computer is performed), or triggered when the operation of the electronic device meets a specific condition, such as no operation by the user in a preset time period, and the electronic device is automatically switched to a "sleep" mode in which the screen is closed.
Step S102: based on the screen of the electronic equipment is closed, the BIOS is controlled to send a first instruction to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls the fan to be closed, and the second value is smaller than the first value, so that the electronic equipment is controlled to enter a first state.
After the screen of the electronic device is turned off, the electronic device needs to enter a sleep mode, and at this time, the noise of the fan needs to be reduced, so as to realize the sensory experience of low noise of the electronic device for the user.
Specifically, after the screen of the electronic device is closed, the operating system can control the BIOS to generate and send a first instruction to the EC, so as to notify the EC of knowing that the screen of the electronic device is closed.
Then, the EC adjusts the maximum power consumption value of the CPU according to the first instruction, and sets the maximum power consumption value of the CPU from a larger first value to a smaller second value, so that the power consumption of the CPU is reduced, and the temperature of the CPU is reduced.
In a specific implementation, the first value of the maximum power consumption value of the CPU may be a larger value, such as 25W, so as to provide power consumption for multiple applications; the second value of the maximum power consumption value may be a small value, such as 2W, and may provide power consumption for only a specific number of applications.
In a specific implementation, the maximum Power consumption value of the CPU is also referred to as PL1(Power limit 1, first order Power limit).
And the EC controls the fan to be turned off according to the first instruction, so that the noise of the fan is reduced.
It should be noted that, because the power consumption of the CPU is reduced and the temperature thereof is correspondingly reduced, the fan is not required to cool the CPU, and therefore, the fan is turned off on the premise of ensuring that the temperature of the CPU is low, and the operation of the CPU is not affected.
It should be noted that the first instruction may specifically adopt an I/O (input/output) instruction mode.
In a specific implementation, the EC controls the rotation speed of the fan through a pulse width modulation signal, and the fan can be turned off specifically by turning off the power supply of the fan.
In summary, the present embodiment provides a control method, including: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed; based on the screen of the electronic equipment is closed, the BIOS is controlled to send a first instruction to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls the fan to be closed, and the second value is smaller than the first value, so that the electronic equipment is controlled to enter a first state. In the scheme, when the screen of the electronic equipment is closed, the electronic equipment enters a dormant state relative to a user, the maximum power consumption value of the CPU is controlled to be reduced, so that the power consumption of the CPU is reduced, the temperature of the CPU is reduced, the fan is turned off, the noise of the fan is reduced, namely after the equipment enters the dormant state, the noise of the electronic equipment is reduced on the whole, and the user experience is improved.
Referring to fig. 2, a flowchart of an embodiment 2 of a control method according to the present invention is shown, where the method includes:
step S201: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
step S202: based on the screen of the electronic equipment is closed, controlling a BIOS (basic input output System) to send a first instruction to an EC (electronic control Unit), so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close a fan, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state;
steps S201 to S202 are the same as steps S101 to S102 in embodiment 1, and are not described in detail in this embodiment.
Step S203: judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application;
it should be noted that, when the maximum power consumption value of the CPU is the second value, it can support a specific preset application in the electronic device to run, that is, when the specific application runs, the maximum power consumption value of the electronic device may not be greater than the second value.
In specific implementation, the specific preset application may be an application capable of performing network information transmission, and certainly, in the running process of the application, network information transmission may be performed or may not be performed; alternatively, the default application may not have network information to transmit if it stops running.
When the preset application does not transmit network information, it may be determined that the preset application does not perform an operation with higher power consumption, and at this time, it may be determined that the power consumption required by the CPU is lower, and it is determined that the operating system of the electronic device enters the second state.
It should be noted that the electronic device (or the operating system of the electronic device) has two states: the system comprises a first state that the screen is black, the maximum power consumption value is a second numerical value, the fan is closed, and the second state that the application has no network information transmission is preset.
In a specific implementation, the first state may be named MS active (state of activating software sleep state in the new sleep mode), and the second state may be named MS SW drivers (software sleep state in the new sleep mode).
Step S204: the control BIOS notifies the EC of the operating system entering a second state to cause the EC to enter a sleep mode from an operating mode.
After the operating system enters the second state, the operating system continues to control the BIOS to notify the EC that it entered the second state.
The contents of the EC notification are then put from an active mode into a sleep mode to cause certain applications (or functions) of the EC to cease functioning, resulting in a reduction in power consumption of the EC to achieve a reduction in the temperature of the electronic device.
In a specific implementation, the sleep mode may be a Doze mode (system Doze mode).
In summary, the control method provided in this embodiment further includes: judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application; the control BIOS notifies the EC of the operating system entering a second state to cause the EC to enter a sleep mode from an operating mode. In the scheme, on the premise of reducing the maximum power consumption value of the CPU and turning off the fan, the state of the EC is further switched from the working mode to the sleep mode, so that the power consumption of the EC is reduced, and the temperature of the electronic equipment is further reduced.
Referring to fig. 3, a flowchart of an embodiment 3 of a control method according to the present invention is shown, where the method includes:
step S301: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
Step S301 is the same as step S101 in embodiment 1, and details are not described in this embodiment.
Step S302: and controlling a BIOS to generate an IO CMD based on the screen closing of the electronic equipment, and sending the IO CMD to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the IO CMD and controls the fan to be closed, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state.
In a specific implementation, the first instruction generated by the BIOS may adopt an IO command, and specifically may be an input output command (IO CMD).
In a specific implementation, a specific pin (e.g., a GPIO pin) of the BIOS is connected to a specific pin of the EC, and a signal can be transmitted between the two pins, so that the IO CMD is transmitted through the pin to realize command transmission.
In summary, in a control method provided in this embodiment, the controlling the BIOS to send the first instruction to the EC specifically includes: and controlling the BIOS to generate an IO CMD and sending the IO CMD to the EC. In the scheme, the BIOS transmits the first instruction to the EC through the pin to control the EC, and the existing pin connection mode is utilized, so that the hardware of the electronic equipment is not required to be changed, and the realization is convenient.
Referring to fig. 4, a flowchart of an embodiment 4 of a control method according to the present invention is shown, where the method includes:
step S401: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
step S402: based on the screen of the electronic equipment is closed, controlling a BIOS (basic input output System) to send a first instruction to an EC (electronic control Unit), so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close a fan, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state;
steps S401 to 402 are the same as steps S201 to 202 in embodiment 2, and are not described in detail in this embodiment.
Step S403: monitoring transmission data of a preset application in the electronic equipment, wherein the preset application has a network connection function;
the electronic device can be set with a preset application list, and the applications in the list can be monitored.
Specifically, the preset application has a network connection function, and can perform network information transmission, for example, a social application commonly used by the user, such as QQ, wechat, and the like, and may also be another application commonly used by the user.
It should be noted that, after the electronic device enters the first state, the default application can retain the network connection but has no network information transmission.
In a specific implementation, the preset application may be set by a user, and may be set by a manufacturer of the electronic device.
Then, after the electronic device enters the first state, the monitoring of the transmission data of the preset application is started.
Step S404: judging whether the transmission data of the preset application in a preset time length contains network information or not to obtain a first judgment result;
in a specific implementation, the timing may be started at the start of the monitoring, and the result of the monitoring may include the timing time.
Specifically, whether the preset application has network information transmission is determined by judging whether the transmission data of the preset application contains the network information.
Specifically, the transmission data of the preset application in the preset time length does not contain network information based on the first judgment result, and the preset application is judged to have no network information transmission; and representing that the transmission data of the preset application in the preset time length contains network information based on the first judgment result, and judging that the preset application has network information transmission.
Step S405: representing that no network information is transmitted in the preset application based on the first judgment result, and judging that the operating system enters a second state;
step S406: the control BIOS notifies the EC of the operating system entering a second state to cause the EC to enter a sleep mode from an operating mode.
Steps S405 to 406 are the same as steps S203 to 204 in embodiment 2, and are not described in detail in this embodiment.
In summary, in a control method provided in this embodiment, the determining whether the preset application has network information transmission includes: monitoring transmission data of a preset application in the electronic equipment, wherein the preset application has a network connection function; judging whether the transmission data of the preset application in a preset time length contains network information or not to obtain a first judgment result; representing that the transmission data of the preset application in the preset time length does not contain network information based on the first judgment result, and judging that the preset application does not have network information transmission; and representing that the transmission data of the preset application in the preset time length contains network information based on the first judgment result, and judging that the preset application has network information transmission. In the scheme, whether the preset application has network information transmission or not is determined by monitoring whether the transmission data of the preset application in the electronic equipment contains the network information, and the method is simple and easy to implement.
Referring to fig. 5, a flowchart of an embodiment 5 of a control method according to the present invention is shown, where the method includes:
step S501: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
step S502: based on the screen of the electronic equipment is closed, controlling a BIOS (basic input output System) to send a first instruction to an EC (electronic control Unit), so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close a fan, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state;
step S503: judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application;
steps S501 to 503 are the same as steps S201 to 203 in embodiment 2, and are not described in detail in this embodiment.
Step S504: controlling the BIOS to switch a GPIO signal from a high level to a low level, such that the EC determines that the operating system enters a second state based on the low level, such that the EC enters a sleep mode from an operating mode.
After the operating system enters the second state, the operating system continues to control the BIOS to notify the EC that it entered the second state.
Specifically, in this embodiment, the BIOS notifies the EC through a GPIO (General Purpose Input/Output) signal.
In a specific implementation, a specific pin (for example, a GPIO pin) of the BIOS is connected to a corresponding pin of the EC, and a GPIO signal can be transmitted between the pins of the BIOS and the EC.
Specifically, when the signal of the GPIO pin is at a high level, the EC may determine that the CPU is in a first state or a working state based on the high level, and accordingly, the EC is in a working mode, and when the signal of the GPIO pin is switched to a low level, the EC may determine that the CPU is in a second state based on the low level, and accordingly, the EC is switched to a sleep mode.
In summary, in a control method provided in this embodiment, the controlling BIOS notifies the EC that the operating system enters the second state, including: controlling the BIOS to switch a GPIO signal from a high level to a low level such that the EC determines that the operating system enters a second state based on the low level. In the scheme, the GPIO signal of the BIOS is controlled to be switched from high level to low level, so that the EC is informed that the operating system enters the second state, and the informing can be realized by utilizing the existing pin connection to transmit high and low levels, thus being simple and easy to implement.
Referring to fig. 6, a flowchart of an embodiment 6 of a control method according to the present invention is shown, where the method includes:
step S601: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
step S602: based on the screen of the electronic equipment is closed, controlling a BIOS (basic input output System) to send a first instruction to an EC (electronic control Unit), so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close a fan, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state;
step S603: judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application;
controlling the BIOS to notify the EC of the operating system entering a second state to cause the EC to enter a sleep mode from a working mode;
steps S601 to 604 are the same as steps S201 to 204 in embodiment 2, and are not described in detail in this embodiment.
Step S605: receiving a second system signal sent by an operating system of the electronic equipment, wherein the second system signal is used for controlling the screen of the electronic equipment to be lightened;
When the electronic device is currently in the second state (i.e., the sleep state), the screen of the electronic device is in an open state (i.e., the screen is bright), and the content is displayed in the screen.
In specific implementation, after receiving a second system signal sent by an operating system, the screen of the electronic device is controlled to be opened according to the second system signal.
Specifically, the second system signal may be a trigger for a user of the electronic device to perform a specific operation, such as the user pressing a key of the electronic device, or opening a cover of a screen of the electronic device (e.g., when the electronic device is a notebook computer, an operation of opening the notebook computer is performed).
Step S606: controlling the BIOS to notify the EC of the operating system to return to the first state from the second state, such that the EC enters the operating mode from the sleep mode, and such that the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan.
When the screen of the electronic device is lighted, the electronic device returns to a normal working state, and at this time, in order to ensure the normal operation of the electronic device, the maximum power consumption value of the CPU needs to be increased to ensure that the power consumption of the CPU can ensure the operation of more applications after the screen is lighted in the electronic device.
Accordingly, the BIOS notifies the EC to cause the EC to return to the operating mode from the sleep mode.
Further, the EC is enabled to set the maximum power consumption value of the CPU from the second value to the first value, and the EC also controls to start the fan to cool the CPU with larger power consumption.
In a specific implementation, when the EC turns on the fan, the rotation speed of the fan may be returned to the rotation speed before turning off.
In summary, the control method provided in this embodiment further includes: receiving a second system signal sent by an operating system of the electronic equipment, wherein the second system signal is used for controlling the screen of the electronic equipment to be lightened; controlling the BIOS to notify the EC of the operating system to return to the first state from the second state, such that the EC enters the operating mode from the sleep mode, and such that the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan. In the scheme, after the screen of the electronic equipment is lightened, the EC is controlled to return to the working mode, the EC resets the maximum power consumption value of the CPU to a first value, and the fan is started, so that the electronic equipment is switched back to the normal working state.
Referring to fig. 7, a flowchart of an embodiment 7 of a control method according to the present invention is shown, where the method includes:
Step S701: receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling a screen of the electronic equipment to be closed;
step S702: based on the screen of the electronic equipment is closed, controlling a BIOS (basic input output System) to send a first instruction to an EC (electronic control Unit), so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close a fan, wherein the second value is smaller than the first value, and the electronic equipment is controlled to enter a first state;
step S703: judging that the operating system enters a second state based on the fact that no network information is transmitted by a preset application;
controlling the BIOS to notify the EC of the operating system entering a second state to cause the EC to enter a sleep mode from a working mode;
step S705: receiving a second system signal sent by an operating system of the electronic equipment, wherein the second system signal is used for controlling the screen of the electronic equipment to be lightened;
step S706: controlling the BIOS to notify the EC of the operating system to return to the first state from the second state, so that the EC enters the working mode from the sleep mode, and the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan;
Steps S701 to 706 are the same as steps S601 to 606 in embodiment 6, and are not described in detail in this embodiment.
Step S707: and controlling the BIOS to send a second instruction to the EC to inform the EC that the screen of the electronic device is lightened, so that the EC confirms again that the maximum power consumption value of the CPU is set to the first value from the second value based on the second instruction and turns on the fan.
And controlling the BIOS to send a second instruction to the EC to inform the EC that the screen of the electronic equipment is lightened currently, and at the moment, confirming the maximum power consumption value of the CPU from the second numerical value to the first numerical value again and turning on the fan by the EC according to the second instruction, namely, the CPU returns to a normal working state, the fan works normally, and the normal working of the electronic equipment is ensured by confirming again.
It should be noted that the second instruction may specifically adopt an I/O instruction mode.
In summary, the control method provided in this embodiment further includes: and controlling the BIOS to send a second instruction to the EC to inform the EC that the screen of the electronic device is lightened, so that the EC confirms again that the maximum power consumption value of the CPU is set to the first value from the second value based on the second instruction and turns on the fan. In the scheme, normal work of the electronic equipment is ensured through secondary confirmation.
The above embodiments provided by the present invention describe a control method in detail, and the control method of the present invention can be implemented by various types of devices, so the present invention also provides a control device, and the following detailed description is given of specific embodiments.
Referring to fig. 8, a schematic structural diagram of an embodiment of a control device according to the present invention is shown, where the control device is applied to an electronic device, and the electronic device includes an operating system, a BIOS, an EC, and a CPU. The operating system may specifically adopt a windows operating system and the like.
Wherein, the device includes: a receiving module 801 and a control module 802.
The receiving module 801 is configured to receive a first system signal sent by an operating system of the electronic device based on that the electronic device is in a normal working state, where the first system signal is used to control a screen of the electronic device to be closed;
the control module 802 is configured to control, based on the screen of the electronic device being closed, the BIOS to send a first instruction to the EC, so that the EC sets the maximum power consumption value of the CPU from a first value to a second value according to the first instruction and controls to close the fan, where the second value is smaller than the first value, to control the electronic device to enter the first state.
Preferably, the apparatus further comprises:
the judging module is used for judging that the operating system enters a second state based on the fact that no network information is transmitted in the preset application;
the control module is further configured to control the BIOS to notify the EC that the operating system enters the second state, so that the EC enters the sleep mode from the working mode.
Preferably, the receiving module is further configured to receive a second system signal sent by an operating system of the electronic device, where the second system signal is used to control a screen of the electronic device to be lit;
the control module is further configured to control the BIOS to notify the EC that the operating system returns to the first state from the second state, so that the EC sets the maximum power consumption value of the CPU from the second value to the first value and turns on the fan, so that the EC enters the operating mode from the sleep mode.
In summary, the present embodiment provides a control device, including: the receiving module is used for receiving a first system signal sent by an operating system of the electronic equipment based on the fact that the electronic equipment is in a normal working state, wherein the first system signal is used for controlling the screen of the electronic equipment to be closed; the control module is used for controlling the BIOS to send a first instruction to the EC based on the screen closing of the electronic equipment, so that the EC sets the maximum power consumption value of the CPU from a first numerical value to a second numerical value according to the first instruction and controls the fan to be closed, wherein the second numerical value is smaller than the first numerical value, and the electronic equipment is controlled to enter a first state. In the scheme, when the screen of the electronic equipment is closed, the electronic equipment enters a dormant state relative to a user, the maximum power consumption value of the CPU is controlled to be reduced, so that the power consumption of the CPU is reduced, the temperature of the CPU is reduced, the fan is turned off, the noise of the fan is reduced, namely after the equipment enters the dormant state, the noise of the electronic equipment is reduced on the whole, and the user experience is improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.