[go: up one dir, main page]

CN116679816B - System power consumption adjusting method, system, terminal and storage medium - Google Patents

System power consumption adjusting method, system, terminal and storage medium Download PDF

Info

Publication number
CN116679816B
CN116679816B CN202310970752.XA CN202310970752A CN116679816B CN 116679816 B CN116679816 B CN 116679816B CN 202310970752 A CN202310970752 A CN 202310970752A CN 116679816 B CN116679816 B CN 116679816B
Authority
CN
China
Prior art keywords
power
program
acquiring
running
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.)
Active
Application number
CN202310970752.XA
Other languages
Chinese (zh)
Other versions
CN116679816A (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.)
Shenzhen Bmorn Technology Co ltd
Original Assignee
Shenzhen Bmorn 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 Shenzhen Bmorn Technology Co ltd filed Critical Shenzhen Bmorn Technology Co ltd
Priority to CN202310970752.XA priority Critical patent/CN116679816B/en
Publication of CN116679816A publication Critical patent/CN116679816A/en
Application granted granted Critical
Publication of CN116679816B publication Critical patent/CN116679816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application relates to a method, a system, a terminal and a storage medium for adjusting system power consumption, which belong to the technical field of system management, and the method comprises the following steps: acquiring rated power of a power adapter of a target computer; acquiring the program occupation power of each current running program of the target computer; when the rated power is larger than the program occupied power, acquiring differential power based on the rated power and the program occupied power; acquiring the current power of the latest running program of the target computer; judging whether the current power exceeds the differential power or not; if yes, acquiring a current running program which is not related to the latest running program as an irrelevant program; a stop instruction is obtained to stop running the corresponding unrelated program so that the differential power is greater than or equal to the current power. The power adapter triggering protection mechanism is prevented as much as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.

Description

System power consumption adjusting method, system, terminal and storage medium
Technical Field
The present invention relates to the field of system management technologies, and in particular, to a method, a system, a terminal, and a storage medium for adjusting system power consumption.
Background
A power adapter is a device for adapting the voltage and plug type of a power input to a desired voltage and plug type. It can convert the power supply from one form to another to adapt to the power supply requirements of different devices
The power adapter has rated power, and when the power input in the using process of equipment (such as a computer) is larger than the rated power of the power adapter, a protection mechanism of the power adapter can be triggered, the adapter can be disconnected, the equipment is suddenly powered off and disconnected, and the data of the equipment can be lost.
Therefore, how to prevent the power adapter from triggering the protection mechanism as much as possible, so as to reduce the probability of the occurrence of the device data loss condition caused by the sudden power failure and disconnection of the device is a problem to be solved.
Disclosure of Invention
In order to prevent a power adapter from triggering a protection mechanism as much as possible and further reduce the probability of equipment data loss caused by sudden power failure and disconnection of equipment, the application provides a system power consumption adjusting method, a system, a terminal and a storage medium.
In a first aspect, the present application provides a method for adjusting power consumption of a system, which adopts the following technical scheme:
a method for adjusting system power consumption, comprising:
acquiring rated power of a power adapter of a target computer;
acquiring the program occupation power of each current running program of the target computer;
when the rated power is larger than the program occupied power, acquiring differential power based on the rated power and the program occupied power;
acquiring the current power of the latest running program of the target computer;
judging whether the current power exceeds the differential power or not;
if yes, acquiring the current running program which is not related to the latest running program as an irrelevant program;
and acquiring a stop instruction to stop running the corresponding irrelevant program so that the difference power is greater than or equal to the current power.
By adopting the technical scheme, when the rated power is larger than the program occupied power, whether the current power exceeds the difference power is determined, whether the latest running program of the target computer running exceeds the rated power of the power adapter is further determined, and whether a protection mechanism of the power adapter is started is further determined. If the power of the target computer exceeds the current power, the stopping instruction is acquired to stop the irrelevant program, so that the power of the target computer can be reduced, the difference power is further larger than the current power, the normal operation of the target computer can be ensured as far as possible, the power adapter is prevented from triggering a protection mechanism as far as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
Preferably, the acquiring a stop instruction to stop running the corresponding irrelevant program so that the difference power is greater than or equal to the current power includes:
acquiring the starting time of the irrelevant program;
sequencing the starting time length and the corresponding irrelevant programs based on the priority from big to small of the preset time length;
and acquiring a stop instruction to stop running the ordered irrelevant programs in sequence so that the difference power is greater than or equal to the current power.
By adopting the technical scheme, the starting time length and the corresponding irrelevant programs are sequenced according to the priority from the small time length to the large time length, and the stopping instructions are acquired to sequentially stop running the irrelevant programs according to the sequence, so that the method can be used for starting the programs.
Preferably, after obtaining a stop instruction to stop running the corresponding unrelated program, the method further comprises:
acquiring the total occupied power of the irrelevant program;
acquiring a differential total power based on the occupied total power and the differential power;
and when the current power exceeds the difference total power, acquiring a termination instruction to terminate the running of the latest running program.
By adopting the technical scheme, when the current power exceeds the differential total power, the termination instruction is acquired to terminate running the latest running program, so that the occurrence of the power failure condition caused by the starting of the protection mechanism of the power adapter can be prevented as far as possible, and the safety of data is ensured as far as possible.
Preferably, the method further comprises:
acquiring an adaptive environment temperature when the power adapter works in the rated power state;
acquiring the current environment temperature of the power adapter;
judging whether the current environment temperature is matched with the adaptive environment temperature or not;
if the power screens are not matched, acquiring the uppermost program of the power screen of the target computer as the latest program;
acquiring the current running program which is not associated with the latest program as a dormant program;
a sleep instruction is acquired to control the sleep program to sleep.
By adopting the technical scheme, when the current environment temperature is not matched with the adaptive environment temperature, the sleep program which is not associated with the latest program is acquired, and the sleep instruction is acquired to control the sleep program to sleep, so that the power of the power adapter can be reduced, the heating value can be reduced, and the normal use of the power adapter can be ensured as much as possible.
Preferably, after the acquiring the sleep instruction to control the sleep program to sleep, the method further comprises:
acquiring the current adapter temperature of the power adapter;
judging whether the current adapter temperature reaches an alarm temperature threshold value or not;
if yes, acquiring backup prompt information;
the alarm temperature threshold value is smaller than a protection temperature value when the power adapter is started to perform high-temperature protection.
By adopting the technical scheme, when the current adapter temperature exceeds the alarm temperature threshold value, the backup prompt information is acquired, so that a user of the target computer can be prompted, computer data can be stored and backed up in time, and data loss can be prevented as far as possible.
Preferably, after the acquiring the stop instruction to stop running the corresponding irrelevant program so that the differential power is greater than or equal to the current power, the method further includes:
when the latest running program is started, acquiring the starting running time of the program;
acquiring a temperature change value of the power adapter based on the program starting running time and a preset time length;
judging whether the temperature change value exceeds a preset change value or not;
and if the power consumption adjustment prompt information exceeds the power consumption adjustment prompt information, acquiring the power consumption adjustment prompt information.
By adopting the technical scheme, whether the temperature change value exceeds the preset change value is judged, whether an irrelevant program is normally stopped or not can be determined, whether power consumption adjustment prompt information is acquired or not is further determined, a user of a target computer can check in time, the power of the power adapter is further reduced in time, and the normal use of the power adapter is guaranteed as much as possible.
Preferably, after the power consumption adjustment prompt information is obtained, the method further includes:
acquiring a calling instruction based on the power consumption adjustment prompt information;
and calling the irrelevant program based on the calling instruction to close the irrelevant program with failed stopping operation.
By adopting the technical scheme, the irrelevant program is called according to the calling instruction so as to be convenient for a target computer user to close the irrelevant program which fails to stop running, and the convenience of operation can be improved.
In a second aspect, the present application provides a system for adjusting power consumption of a system, which adopts the following technical scheme:
a system for regulating power consumption of a system, comprising:
the first power acquisition module is used for acquiring rated power of a power adapter of the target computer;
the second power acquisition module is used for acquiring the program occupation power of each current running program of the target computer;
a third power acquisition module, configured to acquire a differential power based on the rated power and the program occupied power when the rated power is greater than the program occupied power;
the fourth power acquisition module is used for acquiring the current power of the latest running program of the target computer;
the power judging module is used for judging whether the current power exceeds the differential power or not;
a program acquisition module, configured to acquire, as an irrelevant program, the current running program that is not associated with the latest running program if the difference power is exceeded;
and the program control module is used for acquiring a stop instruction to stop running the corresponding irrelevant program so that the differential power is greater than or equal to the current power.
By adopting the technical scheme, according to the data transmission among the modules, when the rated power is larger than the program occupied power, whether the current power exceeds the differential power is determined, whether the latest running program of the target computer running exceeds the rated power of the power adapter is further determined, and whether a protection mechanism of the power adapter is started is further determined. If the power of the target computer exceeds the current power, the stopping instruction is acquired to stop the irrelevant program, so that the power of the target computer can be reduced, the difference power is further larger than the current power, the normal operation of the target computer can be ensured as far as possible, the power adapter is prevented from triggering a protection mechanism as far as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal, comprising:
a memory for storing a computer program capable of running on the processor;
the processor, when running the computer program, is capable of performing the steps of any of the methods described above.
By adopting the technical scheme, the memory can store information, the processor can call the information and send out control instructions, the ordered execution of the program is ensured, and the effect of the scheme is realized.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium storing a computer program capable of being loaded by a processor and executing any one of the methods described above.
By adopting the technical scheme, after the computer readable storage medium is loaded into any computer, any computer can execute the method for adjusting the system power consumption.
In summary, the present application includes the following beneficial technical effects:
when the rated power is larger than the program occupied power, determining whether the current power exceeds the difference power, further determining whether the latest running program running on the target computer exceeds the rated power of the power adapter, and further determining whether a protection mechanism of the power adapter is started. If the power of the target computer exceeds the current power, the stopping instruction is acquired to stop the irrelevant program, so that the power of the target computer can be reduced, the difference power is further larger than the current power, the normal operation of the target computer can be ensured as far as possible, the power adapter is prevented from triggering a protection mechanism as far as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
Drawings
Fig. 1 is a flow chart of a method for adjusting system power consumption according to an embodiment of the present application;
FIG. 2 is a flow chart of steps S11 to S13 in one embodiment of the present application;
FIG. 3 is a schematic flow chart of steps S21 to S23 in one embodiment of the present application;
FIG. 4 is a flow chart of steps S31 to S36 in one embodiment of the present application;
FIG. 5 is a flow chart of steps S41 to S43 in one embodiment of the present application;
FIG. 6 is a flow chart of steps S51 to S54 in one embodiment of the present application;
FIG. 7 is a flow chart of steps S61 to S62 in one embodiment of the present application;
fig. 8 is a block diagram of a system power consumption adjustment system according to an embodiment of the present application.
Reference numerals illustrate:
1. a first power acquisition module; 2. a second power acquisition module; 3. a third power acquisition module; 4. a fourth power acquisition module; 5. a power judging module; 6. a program acquisition module; 7. and a program control module.
Detailed Description
The present application is described in further detail below in conjunction with figures 1 to 8.
The embodiment of the application discloses a method for adjusting system power consumption.
Referring to fig. 1, the method for adjusting system power consumption includes:
s1, acquiring rated power of a power adapter of a target computer;
the power rating may be set based on the actual power rating of the power adapter currently configured by the target computer.
S2, acquiring program occupation power of each current running program of the target computer;
the power consumption of the program operated by the target computer, namely the program occupation power of each currently operated program, can be obtained by monitoring and obtaining a monitoring program arranged on the target computer, such as an OpenHardwaremonitor or PowerTOP program.
S3, when the rated power is larger than the program occupied power, acquiring differential power based on the rated power and the program occupied power;
and comparing the rated power with the program occupied power, judging the sizes of the rated power and the program occupied power, acquiring program closing prompt information at the moment if the rated power is smaller than or equal to the program occupied power, sending the program closing prompt information to a display of the target computer for displaying, prompting a user of the target computer to close the related program in time, and reducing the power consumption.
If the rated power is larger than the program occupied power, the power of the target computer is proved not to cause the power adapter to exceed the preset rated power to trigger the protection mechanism, so that the differential power is obtained based on the rated power and the program occupied power, namely the rated power is subtracted from the program occupied power.
S4, obtaining the current power of the latest running program of the target computer;
the maximum power consumption of each program can be prestored in the system, and the corresponding maximum power consumption can be obtained when the name of the program currently being started is determined, namely the current power of the latest running program of the target computer.
S5, judging whether the current power exceeds the differential power or not;
that is, judging whether the current power of the latest running program plus the occupied power of the program exceeds the rated power to cause the protection mechanism of the power adapter to be started, if the current power exceeds the differential power, the latest running program is proved to be started at the moment to possibly cause the protection mechanism to be started, otherwise, the protection mechanism is not proved to be started.
S6, if the current running program is exceeded, acquiring a current running program which is not related to the latest running program, and taking the current running program as an irrelevant program;
if the current power does not exceed the differential power, no further operations are required at this time. If the current power exceeds the difference power, the current running program which is not associated with the latest running program is acquired at the moment and can be used as an irrelevant program, the name of the current running program can be acquired, if the same characters exist in the name, the association is proved, and otherwise, the association does not exist. For example, after an input method is started, the word stock of the input method, other framework programs, and the like running in the background are all programs related to the input, and the other are irrelevant programs. Of course, in this embodiment, the input method and all programs requiring text input are related programs.
S7, acquiring a stop instruction to stop running the corresponding irrelevant program so that the difference power is greater than or equal to the current power;
when the irrelevant programs are acquired, the irrelevant programs are proved to be programs which are not related to the current latest running program, and the shutdown of the irrelevant programs does not affect the use of the latest running program, so that in order to reduce the power consumption, a stop instruction is acquired to stop running the corresponding irrelevant programs so that the difference power is greater than or equal to the current power.
The stopping instruction comprises identifications of irrelevant programs, corresponding irrelevant programs can be found through the identifications, and the irrelevant programs are closed through system control, so that the power occupied by the programs of the target computer can be reduced, the use power of the power adapter is reduced, the power output by the power adapter is smaller than rated power, the power adapter is prevented from triggering a protection mechanism, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
Referring to fig. 2, in order to keep the slower-to-start program as possible while ensuring as much power consumption reduction as possible, in another embodiment, acquiring a stop instruction to stop running the corresponding unrelated program so that the difference power is greater than or equal to the current power includes:
s11, acquiring the starting time of an irrelevant program;
the system can record the starting time of all programs, and the starting time of the programs can be obtained by storing test records.
S12, sequencing the starting time length and the corresponding irrelevant programs based on the priority from large to small of the preset time length;
s13, acquiring a stop instruction to stop running the ordered irrelevant programs in sequence so that the difference power is greater than or equal to the current power.
That is, all irrelevant programs are ordered according to the order of the starting time length from small to large, so that an ordered irrelevant program can be obtained. And then controlling and stopping running of the ordered irrelevant programs in sequence according to the stopping instruction until the difference power is greater than or equal to the current power, and stopping the irrelevant programs, so that the programs with faster starting time can be closed preferentially, the programs with longer starting time can be reserved as far as possible, and the waiting time of starting the programs again is reduced.
Referring to fig. 3, in order to further ensure that the power output by the power adapter does not exceed the rated power, so as to prevent the protection mechanism from being triggered as much as possible, in another embodiment, after obtaining the stop instruction to stop running the corresponding unrelated program, the method further includes:
s21, acquiring the total occupied power of an irrelevant program;
the sum of the program occupation power of all the irrelevant programs stopping running is obtained, namely the total occupation power.
S22, acquiring differential total power based on the occupied total power and the differential power;
i.e. the sum of the total occupied power plus the differential power is the differential total power.
S23, when the current power exceeds the total power of the difference, acquiring a termination instruction to terminate running the latest running program;
and then comparing the difference total power with the current power so as to judge whether the difference total power can meet the requirement of the power required by the latest running program. If the current power does not exceed the differential total power, the power saved after stopping running the unrelated program plus the differential power is proved to be capable of meeting the power requirement of the latest running program, and the power adapter does not trigger a protection mechanism due to exceeding the rated power.
If the current power exceeds the difference power, it proves that even if the operation of the irrelevant programs is stopped, the saved power difference plus the difference power is still insufficient to meet the power requirement of the latest operation program, and the forced operation of the latest operation program can cause the protection mechanism of the power adapter to be triggered with high probability, so that the power failure condition can be caused.
Therefore, the termination instruction is acquired at this time, the termination instruction includes the mark of the latest running program, and the system can find the latest running program according to the mark, so that the latest running program is terminated, and the normal use of the power adapter can be ensured as much as possible. Of course, the power shortage prompt information of the power adapter can be obtained, and the user of the target computer can be reminded, so that the user can replace the power adapter in time.
Referring to fig. 4, in order to be able to guarantee as much as possible the operating temperature requirements of the power adapter, in another embodiment it further comprises:
s31, acquiring an adaptive environment temperature when the power adapter works in a rated power state;
the adapted ambient temperature may be pre-stored data, i.e. an ambient temperature that does not affect the normal operation of the power adapter.
S32, acquiring the current environment temperature of the power adapter;
the acquisition may be monitored by a temperature sensor.
S33, judging whether the current environment temperature is matched with the adaptive environment temperature;
that is, whether the current environmental temperature is greater than the temperature range of the adaptive environmental temperature is judged, namely, the adaptive environmental temperature is a range value, if the current environmental temperature is within the range of the adaptive environmental temperature, the matching is proved, otherwise, the matching is not carried out.
S34, if the power screens are not matched, acquiring the uppermost program of the power screen of the target computer as the latest program;
if the current environment temperature is matched with the adaptive environment temperature, the fact that adjustment is not needed at the moment is proved; if the current environment temperature is not matched with the adaptive environment temperature, the uppermost program of the power screen of the target computer is acquired at the moment and is used as the latest program. The acquisition mode can be identified by a screen, and also can be identified by a program, such as the third eye.
S35, acquiring a current running program which is not associated with the latest program as a dormant program;
the acquisition mode of the dormant program is the same as that of the irrelevant program.
S36, acquiring a dormancy instruction to control dormancy of a dormancy program;
the sleep instruction comprises a mark of the sleep program, and the system can find the corresponding sleep program according to the mark, control the sleep program to enter a sleep state, and further reduce the power consumption in the running process of the sleep program, thereby reducing the heat dissipation capacity of the power adapter, and reducing the influence of the temperature on the power adapter as much as possible.
Referring to fig. 5, in order to prevent the probability of occurrence of a computer data loss caused by sudden power failure as much as possible, in another embodiment, after obtaining a sleep instruction to control sleep of a sleep program, the method further includes:
s41, acquiring the current adapter temperature of the power adapter;
s42, judging whether the current adapter temperature reaches an alarm temperature threshold value or not;
s43, if yes, acquiring backup prompt information;
specifically, the temperature of the power adapter can be monitored by a temperature sensor, namely the current adapter temperature. And then judging whether the current adapter temperature reaches an alarm temperature threshold value, wherein the alarm temperature threshold value is smaller than a protection temperature value when the power adapter starts high-temperature protection.
If the current adapter temperature does not reach the alarm temperature threshold, no further action is required at this time. If the current adapter temperature reaches the alarm temperature threshold, the temperature of the power adapter is proved to be close to the temperature of the triggering protection mechanism, so that the situation that the protection mechanism is suddenly triggered to cause data loss is prevented as much as possible, and backup prompt information is acquired.
And then sending the backup prompt information to a display of the target computer, so that a user of the target computer can timely save and/or backup the data in the running program, and the situation of sudden data loss can be prevented as much as possible.
Referring to fig. 6, in order to ensure accuracy of adjustment of power consumption data as much as possible, in another embodiment, after acquiring a stop instruction to stop running a corresponding unrelated program so that the difference power is greater than or equal to the current power, the method further includes:
s51, when the latest running program is started, acquiring the starting running time of the program;
when the latest running program is started, the system records the starting time of the latest running program, namely the starting running time of the program.
S52, acquiring a temperature change value of the power adapter based on the initial running time of the program and the preset duration;
the preset time length can be set according to actual conditions, namely, the time is counted from the initial running time of the program, the temperature of the power adapter at the moment is recorded after the preset time length is passed, and then the absolute value of the difference value of the two temperatures is obtained, namely, the temperature change value.
S53, judging whether the temperature change value exceeds a preset change value;
the preset change value is a temperature change value of the latest operation program in the operation process of a preset time length, and the temperature change value can be obtained through experiments and then stored in a system, and of course, the relevant operation program exists in the experiment process. Judging whether the temperature change value exceeds a preset change value or not, namely judging whether other irrelevant program influences exist or not.
S54, if the power consumption adjustment prompt information is exceeded, acquiring the power consumption adjustment prompt information;
if the temperature change value does not exceed the preset change value, no influence of other irrelevant programs is proved. If the temperature change value exceeds the preset change value, it is proved that an irrelevant program may be running at the moment, so that the temperature change value exceeds the preset change value.
Therefore, the power consumption adjustment prompt information is acquired at the moment, so that a user is reminded that an irrelevant program which is not successfully stopped possibly exists, and the relevant user can check in time, so that the power adapter can be normally used.
Referring to fig. 7, in order to improve convenience in the checking process, in another embodiment, after acquiring the power consumption adjustment prompt information, the method further includes:
s61, acquiring a calling instruction based on the power consumption adjustment prompt information;
s62, calling the irrelevant program based on the calling instruction to close the irrelevant program failing to stop running.
That is, the power consumption adjustment prompt message includes a call instruction, where the call instruction includes corresponding marks of all irrelevant programs. The system can find out the corresponding irrelevant program according to the mark in the calling instruction and display the program. Of course, the control panel of all irrelevant programs can be directly called by the monitoring program in the system, where the control panel refers to a panel where all irrelevant programs are concentrated in one control program.
After the calling instruction is obtained, the control panel can be called out, so that a user can check whether an irrelevant program which does not stop running exists according to the control panel, if so, the user can conveniently close the corresponding irrelevant program manually, and the operation is more convenient.
The implementation principle of the adjustment of the system power consumption in the embodiment of the application is as follows: when the rated power is larger than the program occupied power, determining whether the current power exceeds the difference power, further determining whether the latest running program running on the target computer exceeds the rated power of the power adapter, and further determining whether a protection mechanism of the power adapter is started. If the power of the target computer exceeds the current power, the stopping instruction is acquired to stop the irrelevant program, so that the power of the target computer can be reduced, the difference power is further larger than the current power, the normal operation of the target computer can be ensured as far as possible, the power adapter is prevented from triggering a protection mechanism as far as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
The embodiment of the application also discloses a system power consumption adjusting system, which can achieve the same technical effects as the system power consumption adjusting method.
Referring to fig. 8, the system power consumption adjustment system includes:
the first power acquisition module 1 is used for acquiring rated power of a power adapter of a target computer;
the second power acquisition module 2 is used for acquiring the program occupation power of each current running program of the target computer;
a third power acquisition module 3, configured to acquire a differential power based on the rated power and the program occupied power when the rated power is greater than the program occupied power;
the fourth power acquisition module 4 is used for acquiring the current power of the latest running program of the target computer;
the power judging module 5 is used for judging whether the current power exceeds the differential power or not;
a program obtaining module 6, configured to obtain a current running program that is not associated with the latest running program as an irrelevant program if the difference power is exceeded;
and the program control module 7 is used for acquiring a stop instruction to stop running the corresponding irrelevant program so as to enable the difference power to be greater than or equal to the current power.
Specifically, the first power acquisition module 1 acquires the rated power of the power adapter of the target computer, and transmits the rated power to the third power acquisition module 3 connected thereto. Meanwhile, the second power acquisition module 2 acquires the program occupation power of each current running program of the target computer and sends the program occupation power to the third power acquisition module 3 connected with the program occupation power.
When the rated power is larger than the program occupied power, the third power acquisition module 3 acquires the differential power based on the rated power and the program occupied power and sends the differential power to the power judgment module 5 connected with the differential power. Meanwhile, the fourth power acquisition module 4 acquires the current power of the latest running program of the target computer and sends the current power to the power judgment module 5 connected with the current power.
Then, the power judging module 5 judges whether or not the current power exceeds the differential power, and sends the result of the judgment to the program acquiring module 6 connected thereto. If the difference power is exceeded, the program acquisition module 6 acquires the current running program which is not associated with the latest running program as an irrelevant program and sends it to the program control module 7 connected thereto.
Finally, the program control module 7 obtains a stop instruction to stop running the corresponding irrelevant program so that the difference power is greater than or equal to the current power.
Therefore, by the method, when the rated power is larger than the program occupied power, whether the current power exceeds the difference power is determined, whether the latest running program of the target computer runs beyond the rated power of the power adapter is further determined, and whether a protection mechanism of the power adapter is started is further determined. If the power of the target computer exceeds the current power, the stopping instruction is acquired to stop the irrelevant program, so that the power of the target computer can be reduced, the difference power is further larger than the current power, the normal operation of the target computer can be ensured as far as possible, the power adapter is prevented from triggering a protection mechanism as far as possible, and the probability of equipment data loss caused by sudden power failure and disconnection of equipment is reduced.
The embodiment of the application also discloses an intelligent terminal, which comprises a memory and a processor. And a memory storing an intelligent computer program. The processor, when running the intelligent computer program, is capable of executing the steps of the method for adjusting the power consumption of the system. The intelligent computer program can adopt a series of steps of inquiring, comparing, judging and the like for data by adopting a well-known processing program, thereby realizing the adjustment of the power consumption of the system.
The embodiments also disclose a computer readable storage medium storing a computer program capable of being loaded by a processor and executing the method for adjusting system power consumption as described above, the computer readable storage medium including, for example: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in any way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.

Claims (7)

1. A method for adjusting power consumption of a system, comprising:
acquiring rated power of a power adapter of a target computer;
acquiring the program occupation power of each current running program of the target computer;
when the rated power is larger than the program occupied power, acquiring differential power based on the rated power and the program occupied power;
acquiring the current power of the latest running program of the target computer;
judging whether the current power exceeds the differential power or not;
if yes, acquiring the current running program which is not related to the latest running program as an irrelevant program;
acquiring a stop instruction to stop running the corresponding irrelevant program so that the difference power is greater than or equal to the current power;
acquiring an adaptive environment temperature when the power adapter works in the rated power state;
acquiring the current environment temperature of the power adapter;
judging whether the current environment temperature is matched with the adaptive environment temperature or not;
if the power screens are not matched, acquiring the uppermost program of the power screen of the target computer as the latest program;
acquiring the current running program which is not associated with the latest program as a dormant program;
acquiring a dormancy instruction to control dormancy of the dormancy program;
after the acquiring the sleep instruction to control the sleep program to sleep, the method further comprises:
acquiring the current adapter temperature of the power adapter;
judging whether the current adapter temperature reaches an alarm temperature threshold value or not;
if yes, acquiring backup prompt information;
the alarm temperature threshold value is smaller than a protection temperature value when the power adapter is started to perform high-temperature protection.
2. The adjustment method according to claim 1, wherein the obtaining a stop instruction to stop running the corresponding irrelevant program so that the differential power is greater than or equal to the current power includes:
acquiring the starting time of the irrelevant program;
sequencing the starting time length and the corresponding irrelevant programs based on the priority from big to small of the preset time length;
and acquiring a stop instruction to stop running the ordered irrelevant programs in sequence so that the difference power is greater than or equal to the current power.
3. The adjustment method according to claim 1, further comprising, after acquiring a stop instruction to stop running the corresponding irrelevant program:
acquiring the total occupied power of the irrelevant program;
acquiring a differential total power based on the occupied total power and the differential power;
and when the current power exceeds the difference total power, acquiring a termination instruction to terminate the running of the latest running program.
4. The adjustment method according to claim 1, characterized by further comprising, after the acquisition of a stop instruction to stop running the corresponding irrelevant program so that the differential power is greater than or equal to the current power:
when the latest running program is started, acquiring the starting running time of the program;
acquiring a temperature change value of the power adapter based on the program starting running time and a preset time length;
judging whether the temperature change value exceeds a preset change value or not;
and if the power consumption adjustment prompt information exceeds the power consumption adjustment prompt information, acquiring the power consumption adjustment prompt information.
5. The adjustment method according to claim 4, further comprising, after the acquisition of the power consumption adjustment prompt information:
acquiring a calling instruction based on the power consumption adjustment prompt information;
and calling the irrelevant program based on the calling instruction to close the irrelevant program with failed stopping operation.
6. An intelligent terminal, characterized by comprising:
a memory for storing a computer program capable of running on the processor;
the processor, when running the computer program, is capable of performing the steps of the method according to any one of claims 1 to 5.
7. A computer-readable storage medium, characterized by: a computer program being stored which can be loaded by a processor and which performs the method according to any one of claims 1 to 5.
CN202310970752.XA 2023-08-03 2023-08-03 System power consumption adjusting method, system, terminal and storage medium Active CN116679816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310970752.XA CN116679816B (en) 2023-08-03 2023-08-03 System power consumption adjusting method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310970752.XA CN116679816B (en) 2023-08-03 2023-08-03 System power consumption adjusting method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN116679816A CN116679816A (en) 2023-09-01
CN116679816B true CN116679816B (en) 2024-02-09

Family

ID=87791310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310970752.XA Active CN116679816B (en) 2023-08-03 2023-08-03 System power consumption adjusting method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116679816B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918473A (en) * 2010-06-07 2013-02-06 松下电器产业株式会社 Mobile-type information processing terminal
CN103080870A (en) * 2010-08-20 2013-05-01 高通股份有限公司 Battery Power Management for Mobile Devices
CN103348744A (en) * 2011-02-10 2013-10-09 阿尔卡特朗讯公司 Method and apparatus of smart power management for mobile communication terminals using power thresholds
CN116501162A (en) * 2023-04-23 2023-07-28 深圳中柏科技有限公司 Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6140897B2 (en) * 2013-11-29 2017-06-07 メディアテック インコーポレイテッド Method and controller for reducing power for systems on portable devices, corresponding portable devices, and corresponding computer program products

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918473A (en) * 2010-06-07 2013-02-06 松下电器产业株式会社 Mobile-type information processing terminal
CN103080870A (en) * 2010-08-20 2013-05-01 高通股份有限公司 Battery Power Management for Mobile Devices
CN103348744A (en) * 2011-02-10 2013-10-09 阿尔卡特朗讯公司 Method and apparatus of smart power management for mobile communication terminals using power thresholds
CN116501162A (en) * 2023-04-23 2023-07-28 深圳中柏科技有限公司 Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment

Also Published As

Publication number Publication date
CN116679816A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
TW571474B (en) Portable electronic device with power failure recovery and operation method thereof
US11493967B2 (en) Thermal shutdown with hysteresis
CN110704274A (en) Temperature control method, device and equipment for solid state disk
CN116679816B (en) System power consumption adjusting method, system, terminal and storage medium
EP3136417B1 (en) Circuit breaker having breaker information module and method of use
EP4372955B1 (en) Portable electric energy storage system and power regulation method thereof
CN113375302B (en) Air conditioner voltage fluctuation control system and control method, electronic equipment and storage medium
CN110145843B (en) Air conditioner and control method thereof
CN114245664A (en) Liquid crystal display driving method, system and computer readable medium
CN119906133A (en) Battery pack parallel control method, battery management system and household energy storage system
CN102043735B (en) External storage equipment and power fail safeguard method thereof
CN112269692A (en) Remote upgrading power-off self-recovery mechanism for network camera
JPH10307635A (en) Computer system and temperature monitoring method applied to the system
CN118523501A (en) An intelligent operating system for low voltage switch cabinet
CN118258115A (en) A method and system for automatically starting and stopping the air conditioner of a hydropower station gantry crane
CN107677450A (en) Laser failure detects method, system, storage medium and the laser with response
JP7299517B2 (en) Apparatus, method and system
CN110513822A (en) Air conditioner control method, storage medium and air conditioner
CN119905971A (en) Protection method, device, computer equipment and storage medium for circuit breaker failure of backup power module
JP7414313B1 (en) Remote power control device, remote power control method, and remote power control program
CN114069747B (en) Discharge control method, device, equipment and storage medium
CN120702160A (en) A method for handling refrigerator and frequency conversion failure
CN120469559A (en) Power failure protection method, device and electronic equipment
CN118338340A (en) Fault detection processing method, system, equipment and medium of intelligent video terminal
CN119611143A (en) Protection control method for relay of alternating-current charging pile, charging pile and storage medium

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