CN112631413B - Power adjusting method and device - Google Patents

Power adjusting method and device Download PDF

Info

Publication number
CN112631413B
CN112631413B CN202011437661.2A CN202011437661A CN112631413B CN 112631413 B CN112631413 B CN 112631413B CN 202011437661 A CN202011437661 A CN 202011437661A CN 112631413 B CN112631413 B CN 112631413B
Authority
CN
China
Prior art keywords
power
limit value
rui
power limit
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011437661.2A
Other languages
Chinese (zh)
Other versions
CN112631413A (en
Inventor
王再跃
董兆龙
桂志明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202011437661.2A priority Critical patent/CN112631413B/en
Publication of CN112631413A publication Critical patent/CN112631413A/en
Application granted granted Critical
Publication of CN112631413B publication Critical patent/CN112631413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency

Landscapes

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

Abstract

The invention discloses a power adjusting method and device. The method comprises the following steps: acquiring a first output power limit value of the power adapter; the method comprises the steps that when the electronic equipment is in a full-load working state, first power of the electronic equipment in a Rui-frequency acceleration mode is obtained; comparing the first power to the first output power limit; adjusting the first power to a second power and adjusting an initial short-term Rui frequency power limit to a target short-term Rui frequency power limit if it is determined that the first power is greater than or equal to the first output power limit; and adjusting the second power of the electronic equipment based on the target short-time Rui frequency power limit value to obtain a third power. The invention can prevent the problem that when the electronic equipment is restored to the Rui frequency accelerating working mode again, the power is overhigh and still larger than the first output power limit value, and the power is protected again to repeatedly regulate the power by regulating the Rui frequency power limit value.

Description

Power adjusting method and device
Technical Field
The present invention relates to the field of terminal device technologies, and in particular, to a power adjustment method and apparatus.
Background
Because terminal equipment such as notebook computer is portable, consequently the application is more and more extensive.
In terminal devices such as computers, processors have turbo boost function, that is, function of raising the operating frequency of the computer instantaneously to raise the performance of the computer. The normal power of a general processor is greatly different from the power in the turbo mode and can reach several times, the power selection of a power adapter matched with a computer needs to consider the economy and the portability, the power adapter is designed according to the maximum power requirements of all hardware of the computer to be overlarge and high in price, and a slightly low-power supply is generally selected in a balanced mode, so that the power requirement in the turbo mode cannot be completely met. Therefore, the power of the computer needs to be adjusted in the turbo mode to be less than the maximum output power of the power adapter, so that the power adapter with lower power can be used in cooperation with the computer.
The existing power regulation method is as follows: when the output current of the power adapter is detected to exceed the rated current of the power adapter, the power protection is triggered to send a frequency reduction signal to the processor, and the frequency of the processor is reduced to the lowest frequency, so that the reduction of the power of the computer system is realized. However, when the computer is in a fully loaded state, the operating power of the computer system is reduced and then the computer system is restored to the turbo operating mode, and then the power protection is triggered to reduce the frequency, which affects the service life of the computer and the user experience.
Disclosure of Invention
An embodiment of the present invention provides a power adjustment method and device, for solving the problem in the prior art that after the power is reduced in a fully loaded state, the power adjustment method and device still return to a turbo mode, thereby repeatedly triggering power protection and further repeatedly adjusting the power.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a method of power regulation, comprising the steps of:
acquiring a first output power limit value of the power adapter;
the method comprises the steps that when the electronic equipment is in a full-load working state, first power of the electronic equipment in a Rui-frequency acceleration mode is obtained;
comparing the first power to the first output power limit;
adjusting the first power to a second power and adjusting an initial short-term Rui frequency power limit to a target short-term Rui frequency power limit if it is determined that the first power is greater than or equal to the first output power limit;
and adjusting the second power of the electronic equipment based on the target short-time Rui frequency power limit value to obtain a third power.
Optionally, the acquiring the first power of the electronic device in the turbo mode specifically includes:
obtaining an input current of the electronic device based on current detection resistance detection;
the first power is obtained based on the input current.
Optionally, the adjusting the initial short-term threshold power limit to the target short-term threshold power limit specifically includes:
and adjusting the initial short-term Rui frequency power limit value in a step-by-step adjusting mode based on a preset power value to obtain the target short-term Rui frequency limit value until the third power is smaller than the first output power limit value.
Optionally, the adjusting the initial short-term threshold power limit to the target short-term threshold power limit specifically includes:
determining a power difference value based on the first power and the first output power limit value;
and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
Optionally, the method further includes:
detecting the working state of the electronic equipment in real time;
comparing the third power with a second output power limit value when the electronic equipment is determined to be switched from a full-load state to a non-full-load state;
and when the third power is determined to be smaller than the second output power limiting value, adjusting the third power based on the initial short-term Rui frequency power limiting value to obtain fourth power.
Optionally, the method further includes:
determining the second output power limit based on the first output power limit.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a power regulating device, comprising:
the detection module is configured to acquire a first output power limit value of the power adapter;
the acquisition module is configured to acquire first power of the electronic equipment in a turbo mode when the electronic equipment is in a full-load working state;
a comparison module configured to compare the first power to the first output power limit;
the adjusting module is used for adjusting the first power to a second power and adjusting the initial short-time Rui frequency power limit value to a target short-time Rui frequency power limit value under the condition that the first power is determined to be greater than or equal to the first output power limit value;
an adjusting module configured to adjust a second power of the electronic device based on the target short-term Rui-frequency power limit value to obtain a third power.
Optionally, the obtaining module is specifically configured to:
obtaining an input current of the electronic device based on current detection resistance detection;
the first power is obtained based on the input current.
Optionally, the adjusting module is specifically configured to:
and adjusting the initial short-term Rui frequency power limit value in a step-by-step adjusting mode based on a preset power value to obtain the target short-term Rui frequency limit value until the third power is smaller than the first output power limit value.
Optionally, the adjusting module is specifically configured to:
determining a power difference value based on the first power and the first output power limit value;
and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
The embodiment of the invention has the beneficial effects that: when the first power of the electronic device in the full-load state is greater than the maximum output power of the power adapter, namely, the first output power is greater than the first output power limit value, the Rui frequency power limit value is adjusted, so that the problem that when the electronic device is restored to the Rui frequency acceleration working mode again, the power is too high and still greater than the first output power limit value, and the power is protected again, so that the power is adjusted repeatedly can be solved.
Drawings
FIG. 1 is a flow chart of a power regulation method according to an embodiment of the present invention;
FIG. 2 is a circuit diagram of a power conditioning method according to another embodiment of the present invention;
FIG. 3 is a circuit diagram of a power conditioning method according to another embodiment of the present invention;
FIG. 4 is a circuit diagram of a power conditioning method according to another embodiment of the present invention;
fig. 5 is a block diagram of a power conditioning device according to another embodiment of the invention.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the invention provides a power adjusting method which is mainly applied to an Rui frequent acceleration mode of electronic equipment in a full-load working state. The conventional central processing unit of an electronic device, such as an intel processor, defines PL (power limit level), i.e. defines PL of 4 levels, which respectively correspond to different operable time, PL1 is the maximum power limit of continuous and stable operation, PL 2-PL 4 are the maximum power limits of instantaneous operation, PL3 and PL4 are short time, which generally will not cause over-power protection of the power adapter, and therefore the over-power protection of the power adapter is mainly the instantaneous power of PL2, which can last for several seconds and far exceeds the delay time of the over-power protection of the power adapter.
Therefore, when the electronic device is fully loaded, the CPU will switch to turbo mode to boost the CPU power based on PL2 value, thereby increasing the performance of the processor. However, since PL2 is usually set to be higher, which causes the boosted cpu power to be higher than the power over-protection point of the power adapter, the boosted cpu power needs to be adjusted again to match the output power of the power adapter, so as to prevent the power adapter from being damaged. Therefore, an embodiment of the present application provides a power adjustment method, as shown in fig. 1: the method comprises the following steps:
step S101, acquiring a first output power limit value of a power adapter;
in this step, the embedded controller may be specifically used to detect a power adapter connected to the electronic device, so as to obtain the first output power limit value.
Step S102, when the electronic equipment is in a full-load working state, acquiring first power of the electronic equipment in a Rui-frequency acceleration mode;
in the specific implementation process of this step, the full-load state refers to that the peripheral interfaces of the electronic device are fully inserted, or more than half of the peripheral interfaces are fully inserted, and a complex program, such as a 3D game program, a CAD software program, and the like, is run, and at this time, the electronic device can be considered to be in the full-load state.
In this embodiment, when the electronic device is in a full-load state, the input current of the electronic device may be obtained based on the current detection resistance detection; processing is then performed with a first amplifier based on the input current to obtain the first power.
Step S103, comparing the first power with the first output power limit value;
step S104, under the condition that the first power is determined to be larger than or equal to the first output power limit value, adjusting the first power to a second power, and adjusting the initial short-time Rui frequency power limit value to a target short-time Rui frequency power limit value;
step S105, adjusting the second power of the electronic equipment based on the target short-term Rui-frequency power limit value to obtain a third power.
In this embodiment, when the first power of the electronic device in the fully loaded state is greater than the maximum output power of the power adapter, that is, greater than the first output power limit value, the power limit value is adjusted to prevent the power from being too high and still greater than the first output power limit value when the electronic device is restored to the turbo operating mode again, and the power is protected again, thereby performing power adjustment again.
Another embodiment of the present invention provides a power adjustment method, including the steps of:
in step S201, a first output power limit value of the power adapter is obtained.
Step S202, obtaining the input current of the electronic equipment based on the current detection resistance detection; the first power is obtained based on the input current.
Step S203, comparing the first power with the first output power limit value;
step S204, under the condition that the first power is determined to be larger than or equal to the first output power limit value, adjusting the first power to a second power;
step S205, adjusting the initial short-term Rui frequency power limit value in a step-by-step adjustment manner based on a preset power value to obtain the target short-term Rui frequency limit value;
in this step, the power reduction value can be determined according to actual needs, and then the short-term frequency power limit value PL2 is adjusted based on the fixed power reduction value, for example, the power reduction value is set to 20W, and when each pair of PL2 is adjusted, the power reduction value is reduced by 20W.
Step S206, adjusting the second power of the electronic device based on the target short-term Rui-frequency power limit value to obtain a third power.
Step S207, comparing the third power with the first output power limit value, and if it is determined that the third power is greater than or equal to the first output power limit value, repeatedly executing step S205 until the third power is less than the first output power.
That is, in this embodiment, when the system device is fully loaded and runs the reloading program, the CPU frequency-accelerates the turbo boost until the total system power exceeds the power protection point of the power adapter, so that the CPU will send a down-converted signal to down-convert the CPU, and at the same time the embedded controller EC will modify the PL2 value of the CPU of the processor to lower the PL2 value by one step, and specifically, the power value corresponding to one step can be defined according to the actual requirement, and then the system power down-conversion is released, and the CPU resumes the normal frequency operation, at this time, because the system is still in the full-loaded state, the CPU will restart the turbo boost, because the power limit value of the turbo boost has been adjusted and reduced, therefore, if the power reached by the processor frequency-accelerated based on the adjusted PL2 is still higher than the maximum output power of the power adapter, the CPU will first down-convert the turbo boost, then continue to lower the PL2 by one step, and so on this, until the PL2 is adjusted to the power protection point no longer triggered, this PL2 is then maintained in operation and no downconversion of the system occurs.
Specifically, the circuit shown in fig. 2 may be used to adjust the power in this embodiment. In this embodiment, a current detection resistor Rsense is connected in series between the power adapter and the system of the electronic device, and the total input current of the system is detected by using the current detection resistor Rsense. The current detection resistor sends the detected current to an error amplifier U1, the voltage containing the current signal is amplified through the error amplifier U1 to obtain Vc, namely first power, and the Vc is sent to a second comparator U2. On the other hand, the embedded controller EC detects the maximum output power inserted into the power adapter through the power adapter ID, i.e., the adaptor ID, thereby setting the maximum power protection point VREF1, i.e., setting the first output power limit value VREF1, and sending the first output power limit value VREF1 to the second comparator U2. The comparator U2 compares Vc with VREF1, if Vc is greater than VREF1, the comparator U2 outputs a high-level Alert signal to the EC, the EC sends a down-conversion signal with a short signal to the CPU, so that the CPU completes the down-conversion operation to reduce the first power to the second power, the EC modifies the PL2 value of the CPU of the processor to reduce the PL2 value to one step, and when the CPU starts the turbo boost again because the system is still in a full-load state, the CPU performs the turbo-acceleration based on the adjusted PL2, namely, adjusts the second power based on the PL2 and boosts the second power to the third power. Meanwhile, the current detection resistor Rsense can continuously detect the input current of the system and send the input current to the error amplifier U1, then the error amplifier can obtain the current third power and send the current third power to the comparator U2, if the comparator U2 determines that the third power is still larger than the first output power limit value VREF1, the EC can send a down-conversion signal throttle signal to the CPU again, so that the CPU completes down-conversion to adjust the third power, and the EC can modify the PL2 value of the processor CPU again and reduce the PL2 value by one step. This is repeated until the CPU starts turbo boost, adjusting based on the modified PL2 value that the resulting power is no longer greater than VREF 1.
Another embodiment of the present invention provides a power adjustment method, including the steps of:
in step S301, a first output power limit value of the power adapter is obtained.
Step S302, when the electronic equipment is in a full-load working state, the input current of the electronic equipment is obtained based on the current detection resistance detection; a first power of the electronic device in a turbo mode is obtained based on the input current.
Step S303, comparing the first power with the first output power limit value;
step S304, under the condition that the first power is determined to be larger than or equal to the first output power limit value, adjusting the first power to a second power;
step S305, determining a power difference value based on the first power and the first output power limit value; and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
In this embodiment, by determining the difference between the first power and the first output power limit, the initial short-time Rui-frequency power limit can be directly adjusted to the target short-time Rui-frequency power limit according to the difference, and the power after the turbo boost is started in a full-load state of the electronic device can be lower than the first output power limit of the power adapter only by adjusting once without adjusting step by step.
Specifically, the circuit shown in fig. 3 may be used to adjust the power in this embodiment. In this embodiment, a current detection resistor Rsense is connected in series between the power adapter and the system of the electronic device, and the total input current of the system is detected by using the current detection resistor Rsense. The current detection resistor sends the detected current to an error amplifier U1, the voltage containing the current signal is amplified through the error amplifier U1 to obtain Vc, namely first power, and the Vc is sent to a second comparator U2. On the other hand, the embedded controller EC detects the maximum output power inserted into the power adapter through the power adapter ID, i.e., the adaptor ID, to set a maximum power protection point VREF1, i.e., to obtain a first output power limit value VREF1, and sends the first output power limit value VREF1 to the second comparator U2. Comparator U2 compares Vc with VREF1, if Vc is greater than VREF1, comparator U2 is reversed, an Alert signal is sent to EC, EC sends a down-converted signal threttle signal to pull CPU to fundamental frequency, even if the frequency of CPU is controlled to be reduced to the lowest frequency, synchronously, first error amplifier U1 sends first power to subtracter U3, EC sends a detected first output power limit value VREF1 to subtracter U3, power difference can be obtained through subtracter U3, and then power difference is sent to EC, so that EC can correct the amplitude of PL2 value according to the power difference, and it is ensured that the best adaptive value can be obtained by correcting PL2 value once.
Another embodiment of the present invention provides a power adjustment method, including the steps of:
step S401, acquiring a first output power limit value of the power adapter;
in this step, the embedded controller may be specifically used to detect a power adapter connected to the electronic device, so as to obtain the first output power limit value.
Step S402, when the electronic device is in a full-load working state, acquiring first power of the electronic device in a Rui-frequency acceleration mode;
in this step, the input current of the electronic device may be obtained specifically based on the current detection resistance detection; the first power is then obtained based on the input current.
Step S403, comparing the first power with the first output power limit value;
step S404, under the condition that the first power is determined to be greater than or equal to the first output power limit value, adjusting the first power to a second power, and adjusting the initial short-time Rui-Fi power limit value to a target short-time Rui-Fi power limit value;
in this step, when the initial short-term Rui-Fi limited value is adjusted to the target short-term Rui-Fi limited value, the initial short-term Rui-Fi limited value can be adjusted by a step-by-step adjustment method based on a preset power value, so as to obtain the target short-term Rui-Fi limited value until the third power is smaller than the first output power limited value.
Or, determining a power difference value based on the first power and the first output power limit value; and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
Step S405, adjusting the second power of the electronic device based on the target short-term Rui-frequency power limit value to obtain a third power.
Step S406, detecting the working state of the electronic equipment in real time;
step S407, when it is determined that the electronic device is switched from a full-load state to a non-full-load state, comparing the third power with a second output power limit value;
in this step, the second output power limit is determined based on the first output power limit.
Step S408, when it is determined that the third power is smaller than the second output power limit value, adjusting the third power based on the initial short-term Rui-frequency power limit value to obtain a fourth power.
In this implementation, when the system is in a fully loaded state, the CPU adjusts the initial PL2 to the target PL2 after starting the turbo boost to meet the adapter output power requirement. However, when the system is switched from the full state to the non-full state, for example, the system stops running a complex program such as a 3D game, CAD software, or a device accessed by a peripheral interface is removed, the power of the whole system is reduced, so that the PL2 of the CPU can be restored to the initial value, thereby increasing the reserved turbo boot space of the CPU. The PL2 of the CPU can be restored to the initial value without restarting, making the restoration of PL2 more convenient and faster.
Specifically, the circuit shown in fig. 4 may be used to adjust the power in this embodiment. In this embodiment, a current detection resistor Rsense is connected in series between the power adapter and the system of the electronic device, and the total input current of the system is detected by using the current detection resistor Rsense. The current detection resistor sends the detected current to an error amplifier U1, the voltage containing the current signal is amplified through the error amplifier U1 to obtain Vc, namely first power, and the Vc is sent to a second comparator U2. On the other hand, the embedded controller EC detects the maximum output power inserted into the power adapter through the power adapter ID, i.e., the adaptor ID, thereby setting the maximum power protection point VREF1, i.e., setting the first output power limit value VREF1, and sending the first output power limit value VREF1 to the second comparator U2. The comparator U2 compares Vc with VREF1, if Vc is greater than VREF1, the comparator U2 outputs a high-level Alert signal to the EC, the EC sends a down-conversion signal with a short signal to the CPU, so that the CPU completes the down-conversion operation to reduce the first power to the second power, the EC modifies the PL2 value of the CPU of the processor to reduce the PL2 value to one step, and when the CPU starts the turbo boost again because the system is still in a full-load state, the CPU performs the turbo-acceleration based on the adjusted PL2, namely, adjusts the second power based on the PL2 and boosts the second power to the third power. Meanwhile, the current detection resistor Rsense can continuously detect the input current of the system and send the input current to the error amplifier U1, then the error amplifier can obtain the current third power and send the current third power to the comparator U2, if the comparator U2 determines that the third power is still larger than the first output power limit value VREF1, the EC can send a down-conversion signal throttle signal to the CPU again, so that the CPU completes down-conversion to adjust the third power, and the EC can modify the PL2 value of the processor CPU again and reduce the PL2 value by one step. This is repeated until the CPU starts turbo boost, adjusting based on the modified PL2 value that the resulting power is no longer greater than VREF 1.
When the electronic device is switched from a fully loaded state to a non-fully loaded state, for example, when the external device is removed, the error amplifier U1 sends the system power value Vc detected in real time to a filter, the filter obtains an average power value Vcm according to the real-time power value Vc, and then sends the Vcm to the comparator U3, and the embedded controller outputs VREF1 to the comparator U3, specifically, outputs VREF2 to the comparator U3 through a voltage dividing resistor, wherein the specific size of VREF2 may be set according to actual needs, for example, VREF1 × 0.6 is set as VREF 2. Comparator U3 compares Vcm to VREF 2. When Vcm is less than VREF2, U3 outputs a signal to EC, which controls the CPU to restore PL2 to the initial set value, i.e., to the initial short-term power limit.
In this embodiment, when the system initially maintains the default PL2 setting value, the system is fully operating, the system current may touch the power point set by VREF1, at this time, the U2 comparator outputs a high level, EC decreases by one step for GPU PL2, generally, the system peak current may decrease, if the VREF1 setting point is not triggered after decreasing, this PL2 is maintained to operate, if the system peak current is still higher than the VREF1 setting point, the first-order PL2 continues to decrease until the VREF1 setting point is not triggered, if the user removes the peripheral or changes the operating program during use, the system average power may decrease greatly, so that the system average power Vcm is lower than VREF2, U3 may output a signal to notify EC, and EC may control the CPU to restore PL2 to the PL2 initial setting value. Thus, automatic restoration of PL2 is achieved, eliminating the need to restore PL2 by rebooting.
Another embodiment of the present invention provides a power conditioning apparatus, as shown in fig. 5, including:
the detection module 1 is configured to obtain a first output power limit value of the power adapter;
the acquisition module 2 is configured to acquire first power of the electronic equipment in a turbo mode when the electronic equipment is in a full-load working state;
a comparison module 3 configured to compare the first power with the first output power limit value;
the adjusting module 4 is used for adjusting the first power to a second power and adjusting the initial short-time Rui frequency power limit value to a target short-time Rui frequency power limit value under the condition that the first power is determined to be greater than or equal to the first output power limit value;
a regulating module 5 configured to regulate the second power of the electronic device based on the target short-term Rui-frequency power limit value, obtaining a third power.
In this implementation, the obtaining module is specifically configured to: obtaining an input current of the electronic device based on current detection resistance detection; the first power is obtained based on the input current.
Specifically, the adjusting module is specifically configured to: and adjusting the initial short-term Rui frequency power limit value in a step-by-step adjusting mode based on a preset power value to obtain the target short-term Rui frequency limit value until the third power is smaller than the first output power limit value.
Specifically, the adjusting module is specifically configured to: determining a power difference value based on the first power and the first output power limit value; and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
In this embodiment, the power adjusting apparatus further includes a recovery module, where the recovery module is configured to detect a working state of the electronic device in real time; comparing the third power with a second output power limit value when the electronic equipment is determined to be switched from a full-load state to a non-full-load state; and when the third power is determined to be smaller than the second output power limiting value, adjusting the third power based on the initial short-term Rui frequency power limiting value to obtain fourth power. Wherein the second output power limit is determined based on the first output power limit.
In this embodiment, when the first power of the electronic device in the fully loaded state is greater than the maximum output power of the power adapter, that is, greater than the first output power limit value, the power limit value is adjusted to prevent the power from being too high and still greater than the first output power limit value when the electronic device is restored to the turbo operating mode again, and the power is protected again to repeatedly perform the power adjustment.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (8)

1. A method of power regulation, comprising the steps of:
acquiring a first output power limit value of the power adapter;
the method comprises the steps that when the electronic equipment is in a full-load working state, first power of the electronic equipment in a Rui-frequency acceleration mode is obtained;
comparing the first power to the first output power limit;
under the condition that the first power is determined to be larger than or equal to the first output power limit value, adjusting the first power to a second power, and adjusting the initial short-time Rui-Fi power limit value in a step-by-step adjustment mode on the basis of a preset power value to obtain a target short-time Rui-Fi limit value;
adjusting a second power of the electronic device based on the target short-term turbo power limit value until a third power is obtained that is less than the first output power limit value.
2. The method as claimed in claim 1, wherein said obtaining a first power of the electronic device in a turbo mode specifically comprises:
obtaining an input current of the electronic device based on current detection resistance detection;
the first power is obtained based on the input current.
3. The method as claimed in claim 1, wherein said adjusting the initial short-term Rui-frequency power limit to the target short-term Rui-frequency power limit comprises:
determining a power difference value based on the first power and the first output power limit value;
and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
4. The method of claim 1, wherein the method further comprises:
detecting the working state of the electronic equipment in real time;
comparing the third power with a second output power limit value when the electronic equipment is determined to be switched from a full-load state to a non-full-load state;
and when the third power is determined to be smaller than the second output power limiting value, adjusting the third power based on the initial short-term Rui frequency power limiting value to obtain fourth power.
5. The method of claim 4, wherein the method further comprises:
determining the second output power limit based on the first output power limit.
6. A power regulating device, comprising
The detection module is configured to acquire a first output power limit value of the power adapter;
the acquisition module is configured to acquire first power of the electronic equipment in a turbo mode when the electronic equipment is in a full-load working state;
a comparison module configured to compare the first power to the first output power limit;
the adjusting module is used for adjusting the first power to the second power under the condition that the first power is determined to be greater than or equal to the first output power limit value, and adjusting the initial short-time Rui-frequency power limit value in a step-by-step adjusting mode on the basis of a preset power value to obtain a target short-time Rui-frequency limit value;
a regulating module configured to regulate a second power of the electronic device based on the target short-term Rui-frequency power limit until a third power less than the first output power limit is obtained.
7. The apparatus of claim 6, wherein the acquisition module is specifically configured to:
obtaining an input current of the electronic device based on current detection resistance detection;
the first power is obtained based on the input current.
8. The apparatus of claim 6, wherein the adjustment module is specifically configured to:
determining a power difference value based on the first power and the first output power limit value;
and adjusting the initial short-term Rui frequency power limit value based on the power difference value to obtain a target short-term Rui frequency power limit value.
CN202011437661.2A 2020-12-07 2020-12-07 Power adjusting method and device Active CN112631413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011437661.2A CN112631413B (en) 2020-12-07 2020-12-07 Power adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011437661.2A CN112631413B (en) 2020-12-07 2020-12-07 Power adjusting method and device

Publications (2)

Publication Number Publication Date
CN112631413A CN112631413A (en) 2021-04-09
CN112631413B true CN112631413B (en) 2022-02-08

Family

ID=75309197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011437661.2A Active CN112631413B (en) 2020-12-07 2020-12-07 Power adjusting method and device

Country Status (1)

Country Link
CN (1) CN112631413B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113803121B (en) * 2021-10-29 2023-12-22 国能龙源蓝天节能技术有限公司 Automatic control method and system for low-pressure steam turbine and power generation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1146667A1 (en) * 1999-11-25 2001-10-17 Matsushita Electric Industrial Co., Ltd. Radio communication apparatus and method for controlling transmission power
CN105159428A (en) * 2015-08-27 2015-12-16 浪潮电子信息产业股份有限公司 Capacitor based design method for balancing AC power supply cost and CPU performance
CN107346165A (en) * 2017-07-07 2017-11-14 联想(北京)有限公司 Power management method and device for electronic equipment
CN109995112A (en) * 2019-04-04 2019-07-09 合肥联宝信息技术有限公司 A kind of power supply management method and device
CN110109510A (en) * 2019-04-19 2019-08-09 深圳市国鑫恒宇科技有限公司 A method of the locking farsighted frequency of CPU to highest frequency
CN111190471A (en) * 2020-01-02 2020-05-22 联想(北京)有限公司 Control method, control device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7126241B2 (en) * 2001-08-01 2006-10-24 O2Micro International Limited Intelligent adapter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1146667A1 (en) * 1999-11-25 2001-10-17 Matsushita Electric Industrial Co., Ltd. Radio communication apparatus and method for controlling transmission power
CN105159428A (en) * 2015-08-27 2015-12-16 浪潮电子信息产业股份有限公司 Capacitor based design method for balancing AC power supply cost and CPU performance
CN107346165A (en) * 2017-07-07 2017-11-14 联想(北京)有限公司 Power management method and device for electronic equipment
CN109995112A (en) * 2019-04-04 2019-07-09 合肥联宝信息技术有限公司 A kind of power supply management method and device
CN110109510A (en) * 2019-04-19 2019-08-09 深圳市国鑫恒宇科技有限公司 A method of the locking farsighted frequency of CPU to highest frequency
CN111190471A (en) * 2020-01-02 2020-05-22 联想(北京)有限公司 Control method, control device and electronic equipment

Also Published As

Publication number Publication date
CN112631413A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN108662725B (en) Compressor frequency control method and device and air conditioner
US20060288243A1 (en) Automatically controlling processor mode of multi-core processor
KR102666476B1 (en) Adapter test devices, methods and computer storage media
EP2911232A1 (en) Charging method and charger
CN112631413B (en) Power adjusting method and device
CN110953778B (en) Control method and system of refrigeration equipment, refrigeration equipment and readable storage medium
WO2020224269A1 (en) Method and apparatus for adjusting operating frequency
KR20060119569A (en) Booting control apparatus and method for mobile communication device
CN106502368B (en) OTG peripheral control method and system of mobile terminal
CN110762736A (en) Control method and system, variable frequency air conditioner and computer readable storage medium
CN112003346B (en) Charging method and electronic device
CN108836265B (en) Sleep state detection method, household appliance and computer readable storage medium
US8504851B2 (en) Electronic device having power consumption adjusting feature
CN107153592B (en) Electronic device and power management method thereof
CN115200163B (en) Air conditioner control method and device and air conditioner
CN111082487A (en) Charging control method and device and electronic equipment
CN106877452B (en) Charging method and charging device
CN111045506B (en) Control method and electronic equipment
CN112295235B (en) Processing method and processing device
CN113865043A (en) Program upgrading method and device for air conditioner, air conditioner and storage medium
WO2017020592A1 (en) Discharging method, terminal equipment, and computer storage medium
CN110970946A (en) Power supply circuit and system
CN112685258A (en) Control method and device and electronic equipment
CN108662723B (en) Air conditioner control method and device, air conditioner and computer readable storage medium
US20220382353A1 (en) Power limits based on processor throttling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant