Power consumption control method and circuit, electronic equipment and readable storage medium
By introducing power consumption control methods into desktop computers, dynamically adjusting the energy-saving and power-saving functions of BIOS and the motherboard power supply timing, the problem of difficult power consumption of desktop computers being optimized when shut down is solved, and the effect of taking into account low power consumption and normal functions is achieved.
Patent Information
- Application Number
- CN202510020709.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-05-06
AI Technical Summary
It is difficult for existing desktop computers to achieve low power consumption when shut down, especially after turning on the EUP function, it is impossible to ensure the normal use of the charging USB port and shortcut key ALT+P, and it is difficult to optimize power consumption through hardware.
By introducing a power consumption control method into electronic devices, it is determined whether the BIOS is power-saving and power-saving function is enabled. If it is turned on, adjust the motherboard power supply timing, and control the GPIO to lower the power-down interface through the power management chip to ensure the normal operation of the first type of interface (such as the charging interface and shortcut key power-on interface). When the BIOS does not turn on the energy-saving and power-saving function, the power monitor detects the power consumption data and transmits it to the power management chip, and dynamically turns on or off the energy-saving and power-saving function according to the relationship between the average power consumption and the threshold.
It realizes the normal use of the charging interface and quick boot interface when the desktop computer is turned off, and at the same time meets the power consumption indicators in the energy-saving mode to ensure that the energy consumption of electronic devices in the standby state is as low as possible.
Smart Images

Figure CN119937764A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power consumption control, and in particular to a power consumption control method, circuit, electronic device and computer-readable storage medium. Background Art
[0002] Currently, the energy efficiency of desktop computers has received widespread attention. 1W shutdown is a universal energy efficiency rating standard. Under S5, many power supplies and functional IC devices of the CPU need to work. In addition, the promotion of localization has introduced many domestic ICs. The standby power consumption optimization of domestic ICs is not as good as that of mature foreign ICs, which makes it difficult for some projects to optimize power consumption through hardware. EUP (Energy Using Product) is a mandatory environmental standard formulated by the European Union, which aims to reduce the energy consumption of devices in standby mode. The EUP standard requires that the energy consumption of devices in standby mode should be as low as possible to reduce energy consumption and environmental pollution.
[0003] If the EUP function is turned on in the shutdown state, all S5 power supplies will be cut off, and the normal use of the charging USB port and the power-on shortcut key ALT+P USB port cannot be guaranteed. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a power consumption control method, circuit, electronic device and computer-readable storage medium.
[0005] A first aspect of the present application provides a power consumption control method, which is used in an electronic device, and includes:
[0006] Turn off electronic devices;
[0007] Determine whether the energy saving function is enabled in BIOS;
[0008] If the BIOS turns on the energy saving function, the power management chip pulls down the pin voltages of the first voltage and the second voltage respectively through the enable control signal, and the power management chip controls the GPIO to be pulled down, so as to adjust the mainboard power timing to the timing after the electronic device is turned on;
[0009] The first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the first type of interface;
[0010] Among them, the first type of interface includes at least one of a charging interface and a shortcut key power-on interface.
[0011] In some embodiments, the method further comprises:
[0012] If the BIOS does not enable the energy saving function, the power monitor detects the power consumption data of the electronic device when the electronic device is in the shutdown state and transmits it to the power management chip;
[0013] The power management chip counts the average power consumption per unit time;
[0014] Whether to enable the energy saving function is determined according to the relationship between the average power consumption and the first power consumption threshold.
[0015] In some embodiments, determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value includes:
[0016] If the average power consumption is greater than the first power consumption threshold, the energy-saving function is turned on, and the power consumption of the electronic device after the energy-saving function is turned on reaches the preset energy-saving standard.
[0017] In some embodiments, determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value further includes:
[0018] If the average power consumption is less than or equal to the first power consumption threshold, the power management chip respectively pulls up the pin voltages of the first voltage and the second voltage through an enable control signal, and the power management chip controls the GPIO circuit to pull up, so that the energy saving function is turned off;
[0019] Before powering on, keep the voltage in the circuit in the high state and the power sequence unchanged.
[0020] In some embodiments, the method further comprises:
[0021] The power monitor counts the average power consumption per unit time at every preset time interval and determines whether it exceeds a first power consumption threshold;
[0022] Based on the relationship between the average power consumption and the first power consumption threshold, the energy-saving and power-saving function is dynamically turned on and off cyclically.
[0023] In some embodiments, the method further comprises:
[0024] Connect the first switch to the mainboard power supply to connect to the first voltage signal transferred from the mainboard power supply, and at the same time, connect the first switch to the second type interface;
[0025] When the first switch is turned on, the first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the second type interface;
[0026] The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
[0027] A second aspect of the present application provides a circuit, the circuit comprising:
[0028] Mainboard power supply, connected to the power monitor to power the electronic equipment;
[0029] a power monitor, connected to the power management chip, for obtaining power from the circuit and transmitting the power to the power management chip;
[0030] A power management chip, which calculates average power consumption based on the received power consumption, and pulls up or down the pin voltages of the first voltage and the second voltage respectively through an enabling control signal based on a comparison result of the average power consumption and a threshold value, thereby determining whether to turn on the energy saving function;
[0031] Among them, the mainboard power supply is at least used to convert out a first voltage to supply power to a first type of interface, and the first type of interface includes at least one of a charging interface and a shortcut key power-on interface.
[0032] In some embodiments, the circuit further comprises:
[0033] A first switch, wherein the first switch is connected to a mainboard power supply to connect to a first voltage signal transferred from the mainboard power supply, and the first switch is also connected to a second type of interface;
[0034] When the first switch is turned on, the first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the second type interface;
[0035] The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
[0036] A third aspect of the present application provides an electronic device, which includes a processor and a memory, and the processor is used to execute any one of the power consumption control methods by calling a program or instruction stored in the memory; or the electronic device includes any one of the circuits.
[0037] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute any one of the power consumption control methods described.
[0038] The power consumption control method provided in the present application, after the power saving function of the mainboard BIOS is turned on, powers the first type of interface with the first voltage transferred from the mainboard power supply, so that when the electronic device is turned off, the charging interface and the quick power-on interface functions can still be used normally, and at the same time, the power consumption indicators in the energy-saving mode are met. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a power consumption control method according to an embodiment of the present application;
[0040] Figure 2 A schematic diagram of the circuit structure of an embodiment of the present application;
[0041] Figure 3This is a flowchart of a power consumption control method according to another embodiment of the present application. DETAILED DESCRIPTION
[0042] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0043] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0044] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0045] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0046] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0047] First, the technical terms involved in this application are explained. Generally, there are five power saving levels for electronic devices, namely S1-S5, which have the following meanings respectively.
[0048] S1, also known as POS (Power on Suspend), in this case, except for shutting down the CPU through the CPU clock controller, other components still work normally, and the power consumption is generally below 30W.
[0049] S2: The CPU is in a stopped state and the bus clock is turned off, but the rest of the devices are still running.
[0050] S3, this is the familiar STR (Suspend to RAM), the power consumption at this time does not exceed 10W.
[0051] S4, also known as STD (Suspend to Disk), is a state where the system's main power is turned off and the hard disk stores data information before S4, so S4 is a more power-saving state than S3.
[0052] S5: In this state, all devices including the power supply are turned off, i.e. shutdown, with the lowest power consumption.
[0053] The power consumption control method provided in the embodiment of the present application can be implemented in an electronic device.
[0054] It can be understood that the electronic device can specifically be a mobile phone, a tablet computer, a television (also known as a smart screen, a large-screen device, etc.), a laptop computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a vehicle-mounted device (also known as a car computer), a virtual reality device, etc., and the embodiments of the present application do not impose any restrictions on this.
[0055] Figure 1 A schematic diagram of a power consumption control method according to an embodiment of the present application is shown. Figure 1 As shown, the method is used in an electronic device, and the method may include:
[0056] S101, turning off the electronic device;
[0057] S102, determining whether the energy saving function of BIOS is enabled;
[0058] S103: If the BIOS has enabled the energy saving function, the power management chip respectively lowers the pin voltages of the first voltage and the second voltage through an enable control signal, and the power management chip controls the GPIO to be pulled low, so as to adjust the mainboard power timing to the timing after the electronic device is turned on;
[0059] S104, supplying power to the first type of interface through a first voltage transferred from a mainboard power supply of the electronic device;
[0060] Among them, the first type of interface includes at least one of a charging interface and a shortcut key power-on interface.
[0061] For ease of understanding, each of the above steps is explained below using a computer as an example.
[0062] In the above step S101, the computer is shut down by software operation or hardware operation.
[0063] In the above step S102, since the computer can be set to enable the energy-saving function through the BIOS, after the computer is shut down, it is determined whether the BIOS has enabled the energy-saving function. Taking the computer as an example, the energy-saving function may be, for example, the EUP function, and different electronic devices may have different energy-saving standards. This application does not limit the specific energy-saving form of the electronic device.
[0064] In the above step S103, pulling up the pin voltage refers to the process of converting the signal line or control line in the circuit from a high level (the high level can be, for example, 3.3V or 5V) to a low level (the low level can be, for example, 0V). The enable control signal enables or disables the specified voltage. The enable signal can be, for example, 3V3_S5_EN or 5V_S5_EN. The function of the 3V3_S5_EN signal is to enable or disable the 3.3V voltage in the S5 state, and the function of the 5V_S5_EN signal is to enable or disable the 5V voltage in the S5 state, thereby controlling the basic power supply of the system. In the power management system of a computer, different power states correspond to different voltages and signals. The S5 state is the lowest power consumption state, at which time the system is completely shut down and only maintains the most basic power supply. If the BIOS turns on the energy saving function, the power management chip pulls down the pin voltages of the first voltage 5V and the second voltage 3.3V respectively by enabling the control signals 5V_S5_EN and 3V3_S5_EN, the power management chip controls the GPIO to pull down, all S5 power of the motherboard is turned off, and the motherboard power timing is adjusted to the timing after the electronic device is turned on. Among them, the second voltage 3V3_S5 is used to power TCM / LEN / M.2 and other devices.
[0065] In the above step S104, the first voltage may be, for example, +5v_always. When the power cord is plugged in but the POWER button is not pressed, part of the voltage inside the machine is also working. This part of the voltage is called the Always voltage. The power supply on the motherboard first transfers out +5v_always to supply power to the first type of interface. The first type of interface may, for example, supply power to the charger port or the power-on shortcut key function port. The shortcut power-on key varies depending on the electronic device. For example, the shortcut power-on key of Lenovo computers is ALT+P.
[0066] The power consumption control method provided by the present application, after the power saving function of the mainboard BIOS is turned on, supplies power to the first type of interface through the first voltage transferred from the mainboard power supply, so that the charging interface and the quick start interface functions can still be used normally when the electronic device is turned off. At the same time, after turning off the S5 power supply, there is basically no power consumption part, only the static current of the power switch of ALT+P and the fast charging port, so the mainboard can meet the power consumption requirement within 1W in any state and meet the power consumption index in the energy-saving mode.
[0067] In some embodiments, the method further comprises:
[0068] If the BIOS does not enable the energy saving function, the power monitor detects the power consumption data of the electronic device when the electronic device is in the shutdown state and transmits it to the power management chip;
[0069] The power management chip counts the average power consumption per unit time;
[0070] Whether to enable the energy saving function is determined according to the relationship between the average power consumption and the first power consumption threshold.
[0071] For ease of understanding, the following is an example. The first power consumption threshold can be set according to the preset standard of the energy-saving and power-saving function. For example, under the EUP standard, the first power consumption threshold can be, for example, 1W. The unit time can be determined according to the actual situation, and the unit time can be determined as 5 minutes, for example. If the energy-saving and power-saving function is not enabled in the BIOS, the power monitor detects the power consumption data of the electronic device in the shutdown state and transmits it to the power management chip. The power management chip counts the power consumption data according to the preset unit time, such as counting the average power consumption within 5 minutes, and determines whether to turn on the energy-saving and power-saving function based on the relationship between the average power consumption and the first power consumption threshold.
[0072] In some embodiments, determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value includes:
[0073] If the average power consumption is greater than the first power consumption threshold, the energy-saving function is turned on, and the power consumption of the electronic device after the energy-saving function is turned on reaches the preset energy-saving standard.
[0074] Continuing with the description of the above embodiment, the power monitor detects the power consumption data of the electronic device when the electronic device is in the shutdown state and transmits it to the power management chip. The power management chip counts the power consumption data according to a preset unit time, such as counting the average power consumption within 5 minutes. If the average power consumption within 5 minutes is greater than the first power consumption threshold of 1W, the energy-saving function is turned on. After the energy-saving function is turned on, the power consumption of the electronic device reaches the preset energy-saving standard.
[0075] In some embodiments, determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value further includes:
[0076] If the average power consumption is less than or equal to the first power consumption threshold, the power management chip respectively pulls up the pin voltages of the first voltage and the second voltage through an enable control signal, and the power management chip controls the GPIO circuit to pull up, so that the energy saving function is turned off;
[0077] Keep the voltage in the circuit high and the power sequence unchanged before turning on the power.
[0078] Pin voltage pull-up refers to the process of converting a signal line or control line in a circuit from a low level (low level may be, for example, 0V) to a high level (high level may be, for example, 3.3V or 5V). If the average power consumption is less than or equal to the first power consumption threshold, the power management chip pulls up the pin voltages of the first voltage and the second voltage respectively by enabling control signals 5V_S5_EN and 3V3_S5_EN, and the power management chip controls the GPIO to pull up, so that the energy-saving function is turned off.
[0079] In some embodiments, the method further comprises:
[0080] The power monitor counts the average power consumption per unit time at every preset time interval and determines whether it exceeds a first power consumption threshold;
[0081] Based on the relationship between the average power consumption and the first power consumption threshold, the energy-saving and power-saving function is dynamically turned on and off cyclically.
[0082] In order to enable the electronic device to dynamically turn on or off the energy-saving function in a cycle, the power monitor can collect statistics at intervals of a preset time period, for example, every half an hour. After the power monitor and the power management chip determine the S5 power consumption once, they will re-monitor the average power consumption every half an hour to determine whether it exceeds the first power consumption threshold of 1W, and cyclically determine to dynamically turn on and off the energy-saving function.
[0083] This application not only ensures the normal use of the charger USB interface and the power-on shortcut key Alt+p function interface under the premise of ensuring the S5 power consumption requirements, but also ensures that the motherboard that has met the power consumption requirements can intelligently turn on or off the EUP function, ensuring the optimal boot time.
[0084] In some embodiments, the method further comprises:
[0085] Connect the first switch to the mainboard power supply to connect to the first voltage signal transferred from the mainboard power supply, and at the same time, connect the first switch to the second type interface;
[0086] When the first switch is turned on, the first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the second type interface;
[0087] The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
[0088] Figure 3 This is a flowchart of a power consumption control method according to another embodiment of the present application.
[0089] The energy saving function is, for example, the EUP function. The EUP function can be enabled or disabled through the BIOS settings, such as Figure 3 The power consumption control method shown includes the following processing steps.
[0090] When the EUP function is turned on in BIOS, after shutdown, 3V3_S5_EN is pulled low, 5V_S5_EN is pulled low, and other S5 power EC control GPIOs are pulled low. The S5 power timing is adjusted to after startup, only the voltage +5V_always supplies power to the charging interface charger and the power-on shortcut key ALT+P function interface.
[0091] When the EUP function is not enabled in BIOS, the power monitor will detect the instantaneous power consumption of the motherboard power supply (12V total power supply) after shutdown and transmit the data to EC in real time.
[0092] The EC records the power consumption every 10 seconds and determines whether the average power consumption exceeds the set upper limit (such as 1W) by counting the average power consumption within 5 minutes.
[0093] If it exceeds, the EUP function will be intelligently turned on, that is, the power management chip will pull down the pin voltages of the first voltage 5V and the second voltage 3.3V respectively by enabling the control signals 5V_S5_EN and 3V3_S5_EN, the power management chip controls the GPIO to pull down, all S5 power of the motherboard is turned off, and the motherboard power timing is adjusted to the timing after the electronic device is turned on. In this case, since devices such as the CPU / bridge chip need to have several groups of charged power under S5 to meet normal work, once EUP is turned on, the overall timing needs to be extended backward to the normal S5→S0 power after powering on. Compared with not turning on EUP, it will increase the boot time. If the electronic device is turned on, the boot time will be delayed.
[0094] If the power consumption does not exceed the set upper limit (such as 1W), the EUP function will be turned off, that is, the power management chip will respectively pull up the pin voltages of the first voltage 5V and the second voltage 3.3V through the enable control signals 5V_S5_EN and 3V3_S5_EN, and the power management chip controls the GPIO to pull up, and the S5 power timing remains unchanged and is maintained before powering on. In this case, if the electronic device is turned on, the power-on time will not be affected.
[0095] The power monitor and EC work together to determine the S5 power consumption once, and then re-monitor the average power consumption every half an hour to determine whether it exceeds the set power consumption, and cyclically determine to dynamically turn the EUP on and off.
[0096] This application not only ensures the normal use of the charger port and the Alt+p function port under the premise of ensuring the S5 power consumption requirements, but also ensures that the motherboard that has met the power consumption requirements can intelligently turn on or off the EUP function to ensure the optimal boot time.
[0097] Figure 2 A circuit structure schematic diagram of the present application is shown.
[0098] According to a circuit of at least one embodiment of the present application, Figure 2 As shown, the circuit includes at least the following components. It should be noted that the red line is the enable control signal sent by the power management chip, which is used to control the voltage level of the relevant circuit pin to be pulled up or down.
[0099] Motherboard power supply ( Figure 2 PSU-12V in the motherboard), connect the power monitor (power monitor), and the motherboard power supply is used to power electronic devices.
[0100] The power monitor is connected to the power management chip (EC) to obtain the power of the circuit and transmit the power to the power management chip (EC). The power monitor is set at the source port of the motherboard and communicates with the power management chip through I2C.
[0101] The power management chip (EC) calculates the average power consumption based on the power consumption received from the power monitor, and based on the comparison result between the average power consumption and the threshold, respectively raises or lowers the pin voltage of the first voltage and the second voltage through an enable control signal, thereby determining whether to turn on the energy-saving function.
[0102] If the average power consumption is less than or equal to the first power consumption threshold, the power management chip pulls up the pin voltages of the first voltage +5v_always and the second voltage 3V3_S5 respectively by enabling control signals 5V_S5_EN and 3V3_S5_EN, and the power management chip controls the GPIO to pull up, so that the energy-saving function is turned off. If the average power consumption is greater than the first power consumption threshold, the power management chip pulls down the pin voltages of the first voltage +5v_always and the second voltage 3V3_S5 respectively by enabling control signals 5V_S5_EN and 3V3_S5_EN, and the power management chip controls the GPIO to pull down, so that the energy-saving function is turned on.
[0103] The power monitor can also count the average power consumption per unit time at preset time intervals and determine whether it exceeds a first power consumption threshold; based on the relationship between the average power consumption and the first power consumption threshold, dynamically turn on and off the energy-saving function in a cycle.
[0104] The motherboard power supply (PSU-12V) is at least used to convert a first voltage to supply power to a first type of interface, and the first type of interface includes at least one of a charging interface and a shortcut key power-on interface. The first voltage may be, for example, +5v_always, and the +5v_always converted from the motherboard power supply is supplied to the first type of interface.
[0105] The circuit provided in the present application supplies power to the first type of interface through the first voltage converted from the mainboard power supply, so that when the electronic device is in the off state, the charging interface and the quick power-on interface can still be used normally. At the same time, through the cooperation of the power management chip and the power monitor, the energy-saving function can be dynamically turned on or off, so that the electronic device meets the power consumption indicators in the energy-saving mode.
[0106] Regarding the circuit provided by this application, Figure 2 As shown, the circuit may also include the following structure.
[0107] The first switch (such as Figure 2 The first switch is connected to the mainboard power supply (PSU-12V) to connect the first voltage signal +5v_always transferred from the mainboard power supply, and the first switch is also connected to the second type of interface. The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
[0108] When the first switch is on, the first voltage +5v_always transferred out through the motherboard power supply of the electronic device is used to power the second type of interface; when the first switch is disconnected, the first voltage +5v_always transferred out through the motherboard power supply of the electronic device is used to power the first type of interface, the charging interface and the ALT+P shortcut key power-on interface; in order to facilitate marking the first voltage in the two situations, the first voltage when the first switch is disconnected is recorded as +5v_always, and the first voltage when the first switch is on is recorded as +5v_S5.
[0109] The circuit provided by the present application enables the charging interface and quick power-on interface of the electronic device to be used normally when the electronic device is turned off, and at the same time, it can meet the power consumption requirement within 1W and the power consumption index in the energy-saving mode. To implement the circuit provided by the present application, only one switch and a voltage monitor need to be added, and the implementation cost is relatively low.
[0110] According to at least one embodiment of the present application, the electronic device includes a processor and a memory, and the processor is used to execute any power consumption control method by calling a program or instruction stored in the memory; or the electronic device includes any circuit provided by the present application.
[0111] According to a computer-readable storage medium of at least one embodiment of the present application, the computer-readable storage medium stores a program or an instruction, and the program or the instruction enables a computer to execute any one of the power consumption control methods.
[0112] In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0113] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0114] As an example, executable instructions may, but need not, correspond to a file in a file system and may be stored as part of a file that stores other programs or data, e.g., in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0115] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0116] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for the convenience of description and are not intended to limit the scope of the present application.
[0117] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0118] In the implementation process, each step of the above-mentioned process can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above-mentioned process in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0119] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0120] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed circuit protection device and electronic device can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0122] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0125] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present application, and are not intended to limit the scope of the present application. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present application.
Claims
1. A power consumption control method, the method being used in an electronic device, characterized in that: The method comprises: Turn off electronic devices; Determine whether the energy saving function is enabled in BIOS; If the BIOS turns on the energy saving function, the power management chip pulls down the pin voltages of the first voltage and the second voltage respectively through the enable control signal, and the power management chip controls the GPIO to be pulled down, so as to adjust the mainboard power timing to the timing after the electronic device is turned on; The first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the first type of interface; Among them, the first type of interface includes at least one of a charging interface and a shortcut key power-on interface.
2. The power consumption control method according to claim 1, characterized in that: The method further comprises: If the BIOS does not enable the energy saving function, the power monitor detects the power consumption data of the electronic device when the electronic device is in the shutdown state and transmits it to the power management chip; The power management chip counts the average power consumption per unit time; Whether to enable the energy saving function is determined according to the relationship between the average power consumption and the first power consumption threshold.
3. The power consumption control method according to claim 2, characterized in that: The determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value includes: If the average power consumption is greater than the first power consumption threshold, the energy-saving function is turned on, and the power consumption of the electronic device after the energy-saving function is turned on reaches the preset energy-saving standard.
4. The power consumption control method according to claim 2, characterized in that: The determining whether to enable the energy saving function according to the relationship between the average power consumption and the threshold value also includes: If the average power consumption is less than or equal to the first power consumption threshold, the power management chip respectively pulls up the pin voltages of the first voltage and the second voltage through an enable control signal, and the power management chip controls the GPIO circuit to pull up, so that the energy saving function is turned off; Before powering on, keep the voltage in the circuit in the high state and the power sequence unchanged.
5. The power consumption control method according to claim 3 or 4, characterized in that: The method further comprises: The power monitor counts the average power consumption per unit time at every preset time interval and determines whether it exceeds a first power consumption threshold; Based on the relationship between the average power consumption and the first power consumption threshold, the energy-saving and power-saving function is dynamically turned on and off cyclically.
6. The power consumption control method according to claim 1, characterized in that: The method further comprises: Connect the first switch to the mainboard power supply to connect to the first voltage signal transferred from the mainboard power supply, and at the same time, connect the first switch to the second type interface; When the first switch is turned on, the first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the second type interface; The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
7. A circuit, characterized in that: The circuit comprises: Mainboard power supply, connected to the power monitor to power the electronic equipment; a power monitor, connected to the power management chip, for obtaining power from the circuit and transmitting the power to the power management chip; A power management chip, which calculates average power consumption based on the received power consumption, and pulls up or down the pin voltages of the first voltage and the second voltage respectively through an enabling control signal based on a comparison result of the average power consumption and a threshold value, thereby determining whether to turn on the energy saving function; Among them, the mainboard power supply is at least used to convert out a first voltage to supply power to a first type of interface, and the first type of interface includes at least one of a charging interface and a shortcut key power-on interface.
8. The circuit according to claim 7, characterized in that The circuit further comprises: A first switch, wherein the first switch is connected to a mainboard power supply to connect to a first voltage signal transferred from the mainboard power supply, and the first switch is also connected to a second type of interface; When the first switch is turned on, the first voltage transferred from the mainboard power supply of the electronic device is used to supply power to the second type interface; The second type of interface includes at least one of a USB interface, a HUB interface, and an AUDIO interface.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to execute the power consumption control method as described in any one of claims 1 to 6 by calling the program or instructions stored in the memory; or the electronic device includes any one of the circuits described in claims 7-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or an instruction, wherein the program or the instruction enables a computer to execute the power consumption control method according to any one of claims 1 to 6.