CN113515186A - Computer power supply management method and system - Google Patents
Computer power supply management method and system Download PDFInfo
- Publication number
- CN113515186A CN113515186A CN202110800523.4A CN202110800523A CN113515186A CN 113515186 A CN113515186 A CN 113515186A CN 202110800523 A CN202110800523 A CN 202110800523A CN 113515186 A CN113515186 A CN 113515186A
- Authority
- CN
- China
- Prior art keywords
- computer
- type
- power consumption
- program
- current
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention discloses a computer power supply management method and a system, wherein the computer power supply management method comprises the following steps: acquiring the type of each current running program of the computer and the current running number of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program; obtaining a preset current comparison result of the respective limit operation quantity of each type and the respective current operation quantity of each type of operation program, wherein the limit operation quantity is configured to be related to the total power consumption and the average power consumption of the programs in each type set by a user; determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and performing power management of the computer based on the current power control policy. The computer power management method and the computer power management system can change the management strategy according to the program condition used by a user, and realize the power management of the computer.
Description
Technical Field
The invention relates to the technical field of computer power management, in particular to a computer power management method and system.
Background
At present, computers become indispensable powerful tools in work and life of people. In the use process of the computer, a large amount of electricity is consumed due to the special functions of the computer. For example, the current video card has an automatic power saving mode, and can not start a heat dissipation function when some functions are not used, so that the power saving function is effectively realized. The current computer cannot adjust the output policy of the power supply by the user in the locked state or the screen protection state, and even if the output policy can be adjusted, the output policy is only adjusted to the management policy set in advance, for example, the power supply management method of the computer with the publication number CN101673138, which cannot meet the self-needs of the user.
Disclosure of Invention
The invention aims to provide a computer power management method and system, which can change a management strategy according to the program condition used by a user and realize the power management of a computer.
In order to achieve the above object, the present invention provides a computer power management method, including:
acquiring the type of each current running program of the computer and the current running number of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program;
obtaining a preset current comparison result of the respective limit operation quantity of each type and the respective current operation quantity of each type of operation program, wherein the limit operation quantity is configured to be related to the total power consumption and the average power consumption of the programs in each type set by a user;
determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and
performing power management of the computer based on the current power control policy.
Preferably, the obtaining the type of each currently running program of the computer and the current running number of each type of running program includes:
calling a current running program from a background program of the computer; and
classifying the current running programs based on a preset division criterion, and determining the number of programs of each type; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
Preferably, the obtaining of the preset current comparison result between the respective limit operating quantity of each type and the respective current operating quantity of each type of operating program includes:
calculating the ratio of the current operation quantity of each type exceeding the limit operation quantity to each limit operation quantity;
determining the severity of each type of power consumption based on the respective comparison of each ratio value to a plurality of preset ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode and a performance limited mode;
determining a total power consumption level based on the power consumption severity levels of the respective types.
Preferably, the determining the total power consumption degree based on the severity of each type of power consumption includes:
when the number of the ratios exceeding the preset ratio thresholds is in a preset first number threshold interval, driving the total power consumption degree to be slight power consumption;
when the number of the ratio numbers exceeding the preset ratio threshold values is in a preset second number threshold interval, driving the total power consumption degree to be medium power consumption; and
when the number of the ratio numbers exceeding the plurality of preset ratio threshold values is in a preset third number threshold value interval, driving the total power consumption degree to be heavy power consumption;
wherein a maximum value of the first number of threshold intervals is less than a minimum value of the second number of threshold intervals, and a maximum value of the second number of threshold intervals is less than a minimum value of the third number of threshold intervals.
In addition, the present invention also provides a computer power management system, including:
the quantity acquisition unit is used for acquiring the type of each current running program of the computer and the current running quantity of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program;
a result obtaining unit, configured to obtain a current comparison result of a preset respective limit operation number of each type and a respective current operation number of each type of operation program, where the limit operation number is configured to be related to a total power consumption amount and an average power consumption amount of the programs in each type set by a user;
the mode determining unit is used for determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and
and the power management unit is used for executing the power management of the computer based on the current power control strategy.
Preferably, the number acquiring unit includes:
the program calling module is used for calling a current running program from a background program of the computer; and
the quantity determining module is used for classifying the current running programs based on a preset dividing rule and determining the quantity of each type of programs; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
Preferably, the result acquiring unit includes:
a ratio calculation module for calculating the ratio of the current operation number of each type exceeding the limit operation number to each limit operation number;
a power consumption severity determination module for determining a severity of each type of power consumption based on a comparison of each ratio value with each of a plurality of predetermined ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode and a performance limited mode; and
and a total power consumption degree determination unit for determining a total power consumption degree based on the severity of the power consumption of each type.
In addition, the invention also provides a computer, and the computer comprises the computer power management system.
In addition, the present invention also provides a storage medium having a program stored thereon, the program implementing the above-described computer power management method when executed by a processor.
In addition, the invention also provides a processor, which is used for running the program, wherein the program executes the computer power supply management method when running.
According to the technical scheme, the invention utilizes the designed computer power management method to realize the belonged type of the running program and the running number of the program corresponding to each type when the computer is in a locked or screen protection state, the division of the type is set by a user in advance, in addition, the limit running number is set according to the priority condition, the limit running number of each type is set according to the actual priority, and is compared with the obtained current running number to obtain the current comparison result, one comparison result corresponds to one power limited control mode, different modes correspond to different power management strategies, and then the management of the power of the computer is realized, so that the power of the computer can meet the self-requirement of the user, and a specific power supply strategy is set under the general condition.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart illustrating a method of computer power management of the present invention;
FIG. 2 is a flowchart of a specific embodiment of S101 of FIG. 1; and
fig. 3 is a block diagram of a new system for managing computer power.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart of a computer power management method provided by the present invention, and as shown in fig. 1, the computer power management method includes:
s101, acquiring the type of each current running program of the computer and the current running number of each running program of each type when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required amount of power of the program. The computer is in a locked state and can reflect the current working state of the computer, and the computer is required to exert the maximum performance when not in the locked state, which is not considered in the invention. In addition, in the present invention, the types may include software with low power consumption, software with medium power consumption, software with high power consumption, and the like. Among them, office software is generally low power consumption software, and software for drawing, video production, games, and the like is high power consumption software. This is described later with reference to specific examples.
And S102, obtaining a preset current comparison result of the limit operation quantity of each type and the current operation quantity of each type of operation program, wherein the limit operation quantity is configured to be related to the total power consumption quantity and the average power consumption quantity of the programs in each type set by a user. For example, taking software with high power consumption as an example, taking the power consumption amount twice as high as the highest power consumption amount in the software with high power consumption as the total power consumption amount, determining the average value of the power consumption of each piece of software in the software with high power consumption, and taking the ratio of the total power consumption amount to the average value as the limit operation amount of the software. The limit operation number and the current operation number are compared to determine whether the power limited control mode in each type is one of a power saving mode, a data saving mode and a performance limited mode, as described below.
S103, determining a current power supply control strategy corresponding to the current comparison result based on the comparison result.
And S104, executing power supply management of the computer based on the current power supply priority control mode.
Preferably, as shown in fig. 2, the acquiring a type of each currently running program of the computer and a current running number of each type of running program in S101 includes:
s201, calling a current running program from a background program of the computer; and
s202, classifying the current running programs based on a preset partition criterion, and determining the number of programs of each type; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
The current running program can be called from a background program of the computer to obtain, and the program reflects the current use condition of the user. The preset partition criteria are used for reflecting the classification of the currently running program, for example, if the power consumption of the chat software is low (lower than a certain threshold), the chat software is used as a class, or chat software and the like (with low power consumption) can be used as a class.
Preferably, the current comparison result includes a power consumption severity and a total power consumption;
s102, obtaining a current comparison result between the preset limit operation quantity of each type and the current operation quantity of each type of the operation program includes:
and calculating the ratio of the current operation quantity of each type exceeding the limit operation quantity to each limit operation quantity.
Determining the severity of each type of power consumption based on the respective comparison of each ratio value to a plurality of preset ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode, and a performance limited mode. Wherein the power consumption severity reflects each type of power consumption. The present invention considers only the overall power consumption level, and does not consider the individual power consumption level. On this basis, in a preferred embodiment of the invention, also a single type of power consumption level situation is considered. For example, the more the ratio exceeds the ratio threshold value in the power saving mode, the larger the power consumption situation, when the exceeding amount reaches 0.5, the proposal is to modify the power control mode into the data storage mode, otherwise, the partial program with the later priority needs to be closed to realize the management of power saving, and the situation that the power consumption exceeds the limit value of the power saving mode is prevented.
Determining a total power consumption level based on the power consumption severity levels of the respective types. The invention considers only the severity of the overall power consumption for a while without considering the degree of individual power consumption.
Preferably, for example, the total number is 10, and the determining of the total power consumption degree based on the severity of each type of power consumption includes:
when the number 2 of the ratios exceeding the preset ratio thresholds is in a preset first number threshold interval 0-4, driving the total power consumption degree to be slight power consumption;
when the number 3 of the ratios exceeding the preset ratio thresholds is in a preset second number threshold interval 4-7, driving the total power consumption degree to be medium power consumption; and
and when the number 4 of the ratios exceeding the plurality of preset ratio thresholds is in a preset third number threshold interval 7-10, driving the total power consumption degree to be heavy power consumption.
In addition, the present invention also provides a storage medium having a program stored thereon, the program implementing the above-described computer power management method when executed by a processor.
In addition, the invention also provides a processor, which is used for running the program, wherein the program executes the computer power supply management method when running.
In addition, the present invention also provides a computer power management system, including:
the quantity acquisition unit is used for acquiring the type of each current running program of the computer and the current running quantity of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program;
a result obtaining unit, configured to obtain a current comparison result of a preset respective limit operation number of each type and a respective current operation number of each type of operation program, where the limit operation number is configured to be related to a total power consumption amount and an average power consumption amount of the programs in each type set by a user;
the mode determining unit is used for determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and
and the power management unit is used for executing the power management of the computer based on the current power control strategy.
Preferably, the number acquiring unit includes:
the program calling module is used for calling a current running program from a background program of the computer; and
the quantity determining module is used for classifying the current running programs based on a preset dividing rule and determining the quantity of each type of programs; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
Preferably, the result acquiring unit includes:
a ratio calculation module for calculating the ratio of the current operation number of each type exceeding the limit operation number to each limit operation number;
a power consumption severity determination module for determining a severity of each type of power consumption based on a comparison of each ratio value with each of a plurality of predetermined ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode and a performance limited mode; and
and a total power consumption degree determination unit for determining a total power consumption degree based on the severity of the power consumption of each type.
In addition, the invention also provides a computer, which comprises the computer power management system.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A computer power management method, comprising:
acquiring the type of each current running program of the computer and the current running number of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program;
obtaining a preset current comparison result of the respective limit operation quantity of each type and the respective current operation quantity of each type of operation program, wherein the limit operation quantity is configured to be related to the total power consumption and the average power consumption of the programs in each type set by a user;
determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and
performing power management of the computer based on the current power control policy.
2. The computer power management method according to claim 1, wherein the obtaining of the type of each currently running program of the computer and the current running number of each type of running program comprises:
calling a current running program from a background program of the computer; and
classifying the current running programs based on a preset division criterion, and determining the number of programs of each type; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
3. The computer power management method according to claim 2, wherein the obtaining of the preset current comparison result between the respective limit operating quantity of each type and the respective current operating quantity of each type of operating program comprises:
calculating the ratio of the current operation quantity of each type exceeding the limit operation quantity to each limit operation quantity;
determining the severity of each type of power consumption based on the respective comparison of each ratio value to a plurality of preset ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode and a performance limited mode;
determining a total power consumption level based on the power consumption severity levels of the respective types.
4. The computer power management method according to claim 3, wherein the determining a total power consumption level based on the severity of each type of power consumption amount comprises:
when the number of the ratios exceeding the preset ratio thresholds is in a preset first number threshold interval, driving the total power consumption degree to be slight power consumption;
when the number of the ratio numbers exceeding the preset ratio threshold values is in a preset second number threshold interval, driving the total power consumption degree to be medium power consumption; and
when the number of the ratio numbers exceeding the plurality of preset ratio threshold values is in a preset third number threshold value interval, driving the total power consumption degree to be heavy power consumption;
wherein a maximum value of the first number of threshold intervals is less than a minimum value of the second number of threshold intervals, and a maximum value of the second number of threshold intervals is less than a minimum value of the third number of threshold intervals.
5. A computer power management system, comprising:
the quantity acquisition unit is used for acquiring the type of each current running program of the computer and the current running quantity of each type of running program when the computer is in a locked state or a screen protection state; wherein the type is configured to be previously divided by a user according to the required electric quantity of the program;
a result obtaining unit, configured to obtain a current comparison result of a preset respective limit operation number of each type and a respective current operation number of each type of operation program, where the limit operation number is configured to be related to a total power consumption amount and an average power consumption amount of the programs in each type set by a user;
the mode determining unit is used for determining a current power supply control strategy corresponding to the current comparison result based on the comparison result; and
and the power management unit is used for executing the power management of the computer based on the current power control strategy.
6. The computer power management system according to claim 5, wherein the number acquisition unit includes:
the program calling module is used for calling a current running program from a background program of the computer; and
the quantity determining module is used for classifying the current running programs based on a preset dividing rule and determining the quantity of each type of programs; wherein the partition criterion is configured to be determined by a power consumption situation of the program.
7. The computer power management system according to claim 6, wherein the result acquisition unit includes:
a ratio calculation module for calculating the ratio of the current operation number of each type exceeding the limit operation number to each limit operation number;
a power consumption severity determination module for determining a severity of each type of power consumption based on a comparison of each ratio value with each of a plurality of predetermined ratio threshold values; wherein the ratio threshold is configured to be associated with a user-set power control mode, wherein the power control mode comprises: a power saving mode, a data saving mode and a performance limited mode; and
and a total power consumption degree determination unit for determining a total power consumption degree based on the severity of the power consumption of each type.
8. A computer, characterized in that the computer comprises a computer power management system according to any one of claims 5-7.
9. A storage medium having stored thereon a program which, when executed by a processor, implements the computer power management method of any one of claims 1 to 5.
10. A processor, for running a program, wherein the program is run to perform the computer power management method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110800523.4A CN113515186A (en) | 2021-07-15 | 2021-07-15 | Computer power supply management method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110800523.4A CN113515186A (en) | 2021-07-15 | 2021-07-15 | Computer power supply management method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113515186A true CN113515186A (en) | 2021-10-19 |
Family
ID=78068121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110800523.4A Withdrawn CN113515186A (en) | 2021-07-15 | 2021-07-15 | Computer power supply management method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113515186A (en) |
-
2021
- 2021-07-15 CN CN202110800523.4A patent/CN113515186A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108427886B (en) | Method, system, device and readable medium for setting access authority of application program | |
AU2011323985B2 (en) | Application lifetime management | |
CN107770088B (en) | Flow control method and device | |
US20150106582A1 (en) | Apparatus and method for managing data in hybrid memory | |
US20090178042A1 (en) | Managing A Workload In A Database | |
CN112346829A (en) | Method and equipment for task scheduling | |
CN113826082B (en) | Method and equipment for controlling heat dissipation device | |
CN110716813A (en) | Data stream processing method and device, readable storage medium and processor | |
CN100419692C (en) | Implementation management of the management program in the information processing device | |
CN111506425B (en) | Method and device for processing quality of service data | |
CN109981732A (en) | Mass file transfer control method and device | |
CN110018797B (en) | Data migration method, device and equipment and readable storage medium | |
CN113515186A (en) | Computer power supply management method and system | |
US10901972B2 (en) | Table partition configuration method, apparatus and system for database system | |
CN111338803A (en) | Thread processing method and device | |
CN104239230A (en) | Data block migration method and device | |
CN111399622B (en) | Server power consumption control method and system, electronic equipment and storage medium | |
CN111274576B (en) | Control method, system, equipment and medium for intelligent contract operating environment | |
CN110389882A (en) | A kind of log recording method of system event, system and relevant apparatus | |
CN110618863A (en) | Operation scheduling method based on Raft algorithm | |
CN116107518B (en) | Storage cluster power consumption processing method and device, storage medium and electronic equipment | |
EP4060473A1 (en) | Memory setting method and apparatus | |
CN118158224A (en) | Network load balancing method, product, equipment and medium | |
CN116467045A (en) | Container resource processing method and device and electronic equipment | |
CN113065884A (en) | Call bill file processing method and device and electronic equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211019 |
|
WW01 | Invention patent application withdrawn after publication |