CN114895768A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN114895768A
CN114895768A CN202210561362.2A CN202210561362A CN114895768A CN 114895768 A CN114895768 A CN 114895768A CN 202210561362 A CN202210561362 A CN 202210561362A CN 114895768 A CN114895768 A CN 114895768A
Authority
CN
China
Prior art keywords
power consumption
battery
processor
target processor
frame rate
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.)
Pending
Application number
CN202210561362.2A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210561362.2A priority Critical patent/CN114895768A/en
Publication of CN114895768A publication Critical patent/CN114895768A/en
Pending legal-status Critical Current

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/263Arrangements for using multiple switchable power supplies, e.g. battery and AC
    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides an information processing method, an information processing device and electronic equipment, wherein if a power adapter is connected to the electronic equipment, power supply parameters provided by the power adapter are controlled to serve as a working power supply of the electronic equipment; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped. According to the scheme, the target strategy is set, when the electronic equipment receives the power supply parameters provided by the power adapter as the working power supply, the battery in the electronic equipment is in a discharging state, the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the discharging of the battery, the electric energy provided by the power adapter is only used when the electronic equipment is connected with the power adapter, the electric energy in the battery is not consumed, and the service life of the electronic equipment is prolonged.

Description

Information processing method and device and electronic equipment
Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method and apparatus, and an electronic device.
Background
During use of the electronic device provided with the battery, the user connects the adapter with the electronic device in order to expect an extended use time of the device.
However, when the system power consumption of the electronic device is large, the power of the adapter is insufficient, and the battery of the electronic device discharges to supplement the power shortage of the adapter, so that the battery of the electronic device continuously discharges until the battery is discharged, and the service life of the electronic device does not meet the expectation of the user.
Disclosure of Invention
In view of the above, the present application provides an information processing method, comprising:
an information processing method, the method comprising:
if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
detecting a battery of the electronic device;
and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
Optionally, the method, if the battery is in a discharge state, adjusting the operation of the electronic device based on a target policy until the battery discharge stops, includes:
obtaining power consumption in at least two processors in an electronic device;
determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
reducing power consumption of the target processor.
Optionally, after reducing the power consumption of the target processor, the method further includes:
determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor if the battery is in a discharged state.
Optionally, the determining, based on the first frame rate before the reducing of the power consumption of the target processor and the second frame rate after the reducing of the power consumption of the target processor, whether to reduce the power consumption of the target processor again includes:
and reducing the power consumption of the target processor again based on the first frame rate and the second frame rate meeting an adjustment condition.
Optionally, the method further includes:
and recovering the power consumption of the target processor to the power consumption before the current reduction based on the first frame rate and the second frame rate not meeting the adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce the power consumption of the target processor.
Optionally, in the method, a second processor of the at least two processors is selected as a target processor, and after the power consumption of the target processor is reduced, the method further includes:
adjusting a parameter of an adjustment condition based on a first frame rate before reducing power consumption of the target processor and a second frame rate after reducing power consumption of the target processor not satisfying the adjustment condition if the battery is in a discharged state.
Optionally, after reducing the power consumption of the target processor, the method further includes:
and if the battery is in a discharging state, adjusting parameters of the adjusting conditions based on the electric quantity information of the battery.
An information processing apparatus comprising:
a battery;
the power adapter interface is used for being connected with the power adapter and receiving power supply parameters provided by the power adapter;
the processing module is respectively connected with the battery and the power adapter interface and is used for controlling the power supply parameter provided by the power adapter to be used as a working power supply of the electronic equipment if the power adapter is connected to the electronic equipment; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
Optionally, the above apparatus further includes:
at least two processors respectively connected with the processing module, wherein the power consumption of the at least two processors is different;
the processing module is used for: obtaining power consumption in at least two processors in an electronic device; determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors; reducing power consumption of the target processor.
An electronic device, comprising: a memory, a processor;
wherein, the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory to implement the steps of the information processing method according to any one of the above.
According to the above technical solution, in the information processing method, if the power adapter is connected to the electronic device, the power supply parameter provided by the power adapter is controlled to be used as the working power supply of the electronic device; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped. According to the scheme, the target strategy is set, when the electronic equipment receives the power supply parameters provided by the power adapter as the working power supply, the battery in the electronic equipment is in a discharging state, the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the discharging of the battery, the electric energy provided by the power adapter is only used when the electronic equipment is connected with the power adapter, the electric energy in the battery is not consumed, and the service life of the electronic equipment is prolonged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method according to embodiment 1 of the present application;
fig. 2 is a flowchart of an information processing method according to embodiment 2 of the present application;
fig. 3 is a flowchart of an information processing method according to embodiment 3 of the present application;
fig. 4 is a flowchart of an information processing method according to embodiment 4 of the present application;
fig. 5 is a flowchart of an embodiment 5 of an information processing method provided in the present application;
fig. 6 is a flowchart of an embodiment 6 of an information processing method provided in the present application;
fig. 7 is a flowchart of an embodiment 7 of an information processing method provided in the present application;
fig. 8 is a schematic view of an application scenario of an information processing method provided in the present application;
FIG. 9 is a schematic structural diagram of an embodiment of an information processing method apparatus provided in the present application;
fig. 10 is another schematic structural diagram of an embodiment of an information processing method and apparatus provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, a flowchart of embodiment 1 of an information processing method provided by the present application is applied to an electronic device, the electronic device is capable of receiving power provided by a power adapter and has a battery disposed therein, the electronic device is further provided with a plurality of processors, and is capable of supporting running of a plurality of application programs, the method includes the following steps:
step S101: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
the electronic equipment is provided with a battery and can be connected with a power adapter, and the electronic equipment can receive power provided by the power adapter.
When the power adapter is connected to the electronic equipment, the power supply parameters provided by the power adapter are controlled to be used as the working power supply of the electronic equipment.
Step S102: detecting a battery of the electronic device;
the discharge condition of the battery can be detected by detecting the charging and discharging circuit.
The electronic equipment can be further provided with a charging chip, and the charging chip is used for monitoring the charging and discharging conditions of the battery.
When the electronic device is connected to the power adapter, if the power consumption of the electronic device is large and exceeds the electric energy which can be provided by the power supply parameters of the power adapter, the battery can be discharged, and if the power consumption of the electronic device is small and does not exceed the electric energy which can be provided by the power supply parameters of the power adapter, the battery does not need to be discharged.
Step S103: and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
Wherein if the battery is detected to be in a discharged state, the power consumption of the electronic device is characterized to exceed the power supplied by the power adapter.
Therefore, a target strategy is set in the electronic device, and the operation of the electronic device is adjusted based on the target strategy, so that the electronic device only uses the electric energy provided by the power supply adaptation, and does not use the electric energy of the battery, so that the battery discharge is stopped.
Specifically, the strategy for adjusting the operation of the electronic device may be to disable a high-power application program in the electronic device, disable a background-running application program, or gradually reduce the power consumption of multiple processors in the electronic device.
In summary, in the information processing method provided in this embodiment, if the power adapter is connected to the electronic device, the power supply parameter provided by the power adapter is controlled to be used as the working power supply of the electronic device; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped. According to the scheme, the target strategy is set, when the electronic equipment receives the power supply parameters provided by the power adapter as the working power supply, the battery in the electronic equipment is in a discharging state, the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the discharging of the battery, the electric energy provided by the power adapter is only used when the electronic equipment is connected with the power adapter, the electric energy in the battery is not consumed, and the service life of the electronic equipment is prolonged.
As shown in fig. 2, a flowchart of embodiment 2 of an information processing method provided by the present application includes the following steps:
step S201: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S202: detecting a battery of the electronic device;
steps S201 to S202 are the same as steps S101 to S102 in embodiment 1, and are not described in detail in this embodiment.
Step S203: obtaining power consumption in at least two processors in an electronic device;
the electronic device is provided with a plurality of processors, and each processor has power consumption in the operation process.
The processor includes a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), an Embedded Controller (EC), and the like, but is not limited thereto.
In a specific implementation, the power consumption of all processors in the electronic device may be obtained and used as at least two processors for subsequent power consumption reduction.
In a specific implementation, since the power consumption of some processors is very low, even if the low-power-consumption processor is turned off, the purpose of stopping battery discharge cannot be achieved, and the low-power-consumption processor is ignored, and the remaining high-power-consumption processor is used as at least two processors for subsequently reducing power consumption.
Specifically, a processor selection threshold is set, and if the ratio of the power consumption of a certain processor to the overall power consumption of the electronic device is smaller than the processor selection threshold, the processor is ignored.
For example, the processor selection threshold is 5%, the power consumption of the CPU in the electronic device is 50W (watt), the power consumption of the GPU is 60W, the power consumption of the EC is 2W, the overall power consumption of the electronic device is 112W, the power consumption of the EC is 1.79% in proportion, which is less than the processor selection threshold, and therefore, the CPU and the GPU in the electronic device are regarded as at least two processors in the electronic device as processors that subsequently reduce the power consumption.
Step S204: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
the power consumption of at least two processors in the electronic equipment is ranked, and the first processor with the lowest power consumption is selected as the target processor.
The importance of the processor with lower power consumption in the running process of the electronic equipment is lower, so that the power consumption of the processor with lower importance is controlled and reduced, and the overall influence on the application program running in the electronic equipment is smaller.
Further, when a high power application (e.g., a game application) is run in an electronic device, generally, in order to support the running of the high power application, the power consumption of a processor running the high power application is higher, and therefore, in order to maintain the running of the high power application, a processor with lower power consumption is preferentially selected as a target processor, and the power consumption of the target processor is reduced.
Step S205: reducing power consumption of the target processor until the battery discharge ceases.
Wherein, the ladder is adjusted according to the convention to reduce the power consumption of the target processor.
For example, if the adjustment ladder is 5W, the power consumption of the target processor is reduced by 5W each time.
In a specific implementation, after the power consumption of the target processor is reduced once, the discharging condition of the battery is detected, and if the battery is still discharged, the power consumption of the target processor is reduced again until the discharging stop of the battery is detected.
In specific implementation, in order to ensure that the overall power consumption of the processor of the electronic device is reduced, so that the electronic device only needs the electric energy provided by the power adapter and does not need to discharge the battery, it can also be ensured that the application program running in the electronic device is not greatly affected, and the condition of the running application program needs to be determined, in the subsequent embodiments, the power consumption of the target processor is controlled to be reduced in combination with the condition of the application program running in the electronic device, and details are not described in this embodiment.
In summary, the information processing method provided in this embodiment includes: obtaining power consumption in at least two processors in an electronic device; determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors; reducing power consumption of the target processor. In this scheme, a first processor with lower power consumption is selected as a target processor from among at least two processors of the electronic device, and the power consumption of the target processor is reduced until battery discharge stops. Since the processor with lower power consumption has lower importance in the operation process of the electronic device, controlling and reducing the power consumption of the processor with lower importance has less overall influence on the application program operated in the electronic device.
As shown in fig. 3, a flowchart of embodiment 3 of an information processing method provided by the present application includes the following steps:
step S301: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S302: detecting a battery of the electronic device;
step S303: obtaining power consumption in at least two processors in an electronic device;
step S304: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
step S305: reducing power consumption of the target processor;
steps S301 to 305 are the same as steps S201 to 205 in embodiment 2, and are not described in detail in this embodiment.
Step S306: if the battery is in a discharged state, determining whether to reduce the power consumption of the target processor again until the battery discharge stops based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor.
After the power consumption of the target processor is reduced, whether the battery is still in a discharging state is determined, and if the battery is still in the discharging state, the overall power consumption of the electronic device is represented to be larger than the electric energy provided by the power adapter, so that the power consumption of the electronic device needs to be further reduced.
Wherein, it needs to determine whether the current power consumption reduction has an influence on the performance of the electronic device for running the application program, so as to determine whether to continue to reduce the power consumption of the target processor.
Since the frame rate (i.e., the number of Frames transmitted Per Second, FPS, Frames Per Second) of the electronic device affects the fluency of the output content of the electronic device, which is a parameter that is more intuitive for the user to feel the performance of the electronic device, in this embodiment, by comparing the frame rate changes of the electronic device before and after the power consumption is reduced, it is determined whether the power consumption of the current target processor is reduced to affect the performance of the application program run by the electronic device.
The electronic equipment is also provided with a display device, the display content can be output, and the reduction of the power consumption of the target processor can influence the output frame rate of the display device.
Specifically, the frame rate of the electronic device may be that a specific application program in the electronic device is started to trigger starting of automatic fetching, where the fetching may be performed according to a period, or may be performed again after power is reduced each time, a frame rate of the last fetching before the power consumption of the target processor is reduced is used as a first frame rate, and a frame rate of the first fetching after the power consumption of the target processor is reduced is used as a second frame rate.
If it is determined that the power consumption of the target processor can be reduced again based on the first frame rate and the second frame rate, the power consumption of the target processor is further reduced, after the power consumption of the target processor is reduced, whether the battery is in a discharge state is determined again, and when the battery is still in the discharge state, whether the power consumption of the target processor can be reduced continuously is determined again based on the frame rates before and after the power consumption of the target processor is reduced this time until the discharge of the battery in the electronic device is stopped.
In specific implementation, the frame rate captured for the first time triggered by starting a specific application program in the electronic device may be used as a first frame rate, the frame rate captured after each time of reducing the power consumption of the target processor is used as a second frame rate, and performance change conditions between the time of reducing the power consumption of the target processor and the time of starting the specific application program by the electronic device are determined, so as to ensure that the operating performance of the electronic device is not seriously affected by reducing the power consumption of the target processor relative to the operating performance of the initial electronic device.
If the power consumption of the target processor or the overall power consumption required by the electronic device during operation is reduced to be lower than the power supplied by the power adapter to the electronic device and the discharge of the battery is stopped, the battery is charged with the redundant power supplied by the power adapter.
In summary, in the information processing method provided in this embodiment, after reducing the power consumption of the target processor, the method further includes: determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor if the battery is in a discharged state. In the scheme, after the power consumption of the target processor is reduced, if the battery is still in a discharging state, whether the power consumption of the target processor can be continuously reduced is determined based on the frame rate before and after the power consumption of the target processor is reduced at this time, so as to determine whether the power consumption reduction at this time has an influence on the performance of the electronic device.
As shown in fig. 4, a flowchart of embodiment 4 of an information processing method provided by the present application includes the following steps:
step S401: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S402: detecting a battery of the electronic device;
step S403: obtaining power consumption in at least two processors in an electronic device;
step S404: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
step S405: reducing power consumption of the target processor;
steps S401 to 405 are the same as steps S301 to 305 in embodiment 3, and are not described in detail in this embodiment.
Step S406: if the battery is in a discharging state, based on that the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced meet an adjusting condition, reducing the power consumption of the target processor again until the battery discharging stops.
Wherein the adjustment condition is that a rate of change between the first frame rate and the second frame rate is not greater than a change threshold.
The value of the change threshold is generally a small value, such as 5%, 2%, etc., and the specific value of the change threshold is not limited in this application.
Specifically, if the change rates of the first frame rate and the second frame rate are smaller than the change threshold, it is indicated that the performance of the application program run by the electronic device is slightly affected by the current adjustment, and the power consumption of the target processor can be continuously reduced.
After the power consumption of the target processor is reduced, if the battery is still in a discharging state, and the first frame rate of the electronic device before the power consumption of the target processor is reduced and the second frame rate of the electronic device after the power consumption of the processor is reduced meet the adjustment condition, the characteristic is that the power consumption of the target processor is reduced, although the power consumption of the target processor is not reduced to the range of the electric energy which can be provided by the power adapter, the performance of the electronic device for running the application program is not greatly influenced, and the power consumption of the target processor is continuously reduced until the battery discharging stops.
In specific implementation, after the power consumption of the target processor is reduced each time, whether the battery is still in a discharging state or not is judged, and whether the first frame rate and the second frame rate meet the adjustment condition or not is continuously judged when the battery is still in the discharging state, so that the performance of the electronic device for running the application program cannot be greatly influenced when the power consumption of the target processor is reduced each time, and the user experience is kept.
In summary, the information processing method provided in this embodiment includes: reducing the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor satisfying an adjustment condition. In the scheme, after the power consumption of the target processor is reduced, whether the battery is still in a discharging state is judged, whether the first frame rate and the second frame rate meet the adjusting condition is judged when the battery is still in the discharging state, and the power consumption of the target processor is reduced again only when the first frame rate and the second frame rate meet the adjusting condition, so that the power consumption of the target processor is not greatly influenced on the performance of the electronic equipment for running the application program every time.
As shown in fig. 5, a flowchart of embodiment 5 of an information processing method provided by the present application includes the following steps:
step S501: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S502: detecting a battery of the electronic device;
step S503: obtaining power consumption in at least two processors in an electronic device;
step S504: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
step S505: reducing power consumption of the target processor;
step S506: if the battery is in a discharging state, reducing the power consumption of the target processor again based on that a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor meet an adjustment condition;
steps S501 to 505 are the same as steps S401 to 405 in embodiment 4, and are not described in detail in this embodiment.
Step S507: based on that the first frame rate and the second frame rate do not meet an adjustment condition, recovering the power consumption of the target processor to the power consumption before the current reduction, selecting a second processor of the at least two processors as the target processor, and reducing the power consumption of the target processor until the battery discharge stops.
If the first frame rate and the second frame rate do not meet the adjustment condition, the representation of the adjustment has a great influence on the performance of the application program run by the electronic device, and the power consumption of the target processor cannot be continuously reduced.
If the battery of the electronic device is still in a discharge state after the power consumption of the target processor is reduced, but the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced do not meet the adjustment condition, the characteristic is that even though the power consumption of the target processor is reduced this time, the overall power consumption of the electronic device is not reduced to the range of the electric energy which can be provided by the power adapter, and the performance of the electronic device is influenced, so that the power consumption reduction control of the target processor is abandoned this time.
To further reduce the power consumption of the electronic device, the second processor is reselected as the target processor to reduce the power consumption of the second processor.
It should be noted that the second processor is a processor of the at least two processors, which consumes more power than the first processor.
Wherein, after selecting the second processor as the target processor, the power consumption reduction adjustment is continued for the target processor, and steps S506-507 are executed in a loop.
When the number of the at least two processors in the electronic device is specifically three, if the second processor is in a discharge state after reducing power consumption, but if the first frame rate and the second frame rate do not meet the adjustment, the adjustment of the power consumption reduced for the second processor this time is abandoned, and a third processor is selected as a target processor, where the third processor is a processor with highest power consumption. And by analogy, sequentially selecting at least two processors in the electronic equipment from low power consumption to high power consumption as target processors, and stopping battery discharge under the condition of not influencing the performance of the electronic equipment.
In summary, the information processing method provided in this embodiment further includes: and recovering the power consumption of the target processor to the power consumption before the current reduction based on the first frame rate and the second frame rate not meeting the adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce the power consumption of the target processor. In the scheme, the situation of battery discharge cannot be solved through gradually reducing the power consumption of the first processor, and the performance of the electronic equipment is also influenced, so that the power consumption reduction control on the first processor at this time is abandoned, the second processor is selected as a new target processor, the power consumption of the second processor is controlled to be reduced, and the situation of stopping the battery discharge is realized under the situation that the performance of the electronic equipment is not influenced.
As shown in fig. 6, a flowchart of embodiment 6 of an information processing method provided by the present application includes the following steps:
step S601: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S602: detecting a battery of the electronic device;
step S603: obtaining power consumption in at least two processors in an electronic device;
step S604: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
step S605: reducing power consumption of the target processor;
step S606: if the battery is in a discharge state, reducing the power consumption of the target processor again based on that the first frame rate before reducing the power consumption of the target processor and the second frame rate after reducing the power consumption of the target processor meet an adjustment condition.
Step S607: based on the first frame rate and the second frame rate not meeting an adjustment condition, recovering power consumption of the target processor before the current reduction, and selecting a second processor of the at least two processors as a target processor to reduce the power consumption of the target processor;
steps S601 to 607 are the same as steps S501 to 507 in embodiment 5, and are not described in detail in this embodiment.
Step S608: adjusting a parameter of an adjustment condition based on a first frame rate before reducing power consumption of the target processor and a second frame rate after reducing power consumption of the target processor not satisfying the adjustment condition if the battery is in a discharged state.
The method comprises the steps that when at least two processors of the electronic device are used as target processors to reduce power consumption, but batteries are still in a discharging state, and a first frame rate before the power consumption of the target processors is reduced and a second frame rate after the power consumption of the target processors is reduced do not meet adjustment conditions, which means that the battery discharging can not be stopped on the premise that the performance of the electronic device is guaranteed by reducing the power consumption of each processor of the at least two processors in the electronic device.
In order to stop the battery discharge, it is necessary to adjust an adjustment parameter of the adjustment condition, where the adjustment parameter corresponds to a tolerance for a change in the performance of the electronic device.
In the method, whether the power consumption of the current reduction target processor affects the performance of the electronic equipment for running the application program is determined by comparing the frame rate change conditions of the electronic equipment before and after the power consumption is reduced.
Wherein, the adjusting condition is that the change rate between the first frame rate and the second frame rate is not greater than the change threshold, and correspondingly, the parameter of the adjusting condition is the change threshold.
Specifically, the tolerance of the electronic equipment performance change is increased by adjusting the parameters of the adjusting conditions to be larger.
For example, the value of the change threshold is adjusted from 5% to 8%, and the specific value of the change threshold is not limited in this application.
After adjusting the parameters of the adjustment condition, the method returns to the step S604 and the subsequent steps of the loop execution, so as to further reduce the power consumption of the electronic device until the battery discharge is stopped.
In summary, the information processing method provided in this embodiment further includes: adjusting a parameter of an adjustment condition based on a first frame rate before reducing power consumption of the target processor and a second frame rate after reducing power consumption of the target processor not satisfying the adjustment condition if the battery is in a discharged state. In the scheme, at least two processors in the electronic equipment are sequentially used as target processors to perform power consumption reduction control, the battery is still in a discharging state, the first frame rate before the power consumption of the target processors is reduced and the second frame rate after the power consumption of the target processors is reduced do not meet the adjustment conditions, parameters of the adjustment conditions are adjusted to increase the tolerance of the performance change of the electronic equipment, the power consumption of the target processors is reduced based on the adjusted condition parameters, and the purpose of stopping the battery discharging is achieved through the performance of the electronic equipment with less loss.
As shown in fig. 7, a flowchart of embodiment 7 of an information processing method provided by the present application includes the following steps:
step S701: if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
step S702: detecting a battery of the electronic device;
step S703: obtaining power consumption in at least two processors in an electronic device;
step S704: determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
step S705: reducing power consumption of the target processor.
Steps S701 to 705 are the same as steps S201 to 205 in embodiment 2, and are not described in detail in this embodiment.
Step S706: and if the battery is in a discharging state, adjusting parameters of the adjusting conditions based on the electric quantity information of the battery.
Wherein the adjustment condition is an adjustment condition for determining whether the first frame rate before the power consumption of the target processor is reduced and the second frame rate after the power consumption of the target processor is reduced are satisfied.
If the power consumption of the target processor is reduced for multiple times, the battery is still in a discharging state, wherein the target processor can select each of at least two processors in the electronic device in sequence, and the representation cannot realize that the battery is stopped discharging on the premise of ensuring the performance of the electronic device.
Specifically, different parameters are selected for the adjustment conditions for different electric quantity information of the battery.
The method comprises the steps of dividing the electric quantity information of the battery into a plurality of stages, and setting different parameters aiming at different stages.
For example, the battery power is 90% -100%, and the variation of the first frame rate and the second frame rate of the parameter of the adjustment condition is 2%; the electric quantity of the battery is 80% -89%, the variation of the first frame rate and the second frame rate of the parameter of the adjusting condition is 3%, and the like.
In order to stop the battery discharge, it is necessary to adjust an adjustment parameter of the adjustment condition, where the adjustment parameter corresponds to a tolerance for a change in the performance of the electronic device.
Generally, the lower the electric quantity of the battery is, the larger the corresponding parameter value is, and the battery discharge is stopped on the premise of ensuring the performance of the electronic equipment as much as possible.
In summary, the information processing method provided in this embodiment further includes: and if the battery is in a discharging state, adjusting parameters of the adjusting conditions based on the electric quantity information of the battery. In the scheme, parameters of the adjusting conditions can be adjusted based on the electric quantity of the battery, the electric quantity condition of the battery is combined, and the power consumption of the target processor can be adjusted more flexibly.
As shown in fig. 8, an application scenario diagram of an information processing method provided for the present application is that a chip a executes the information processing method, the chip a is capable of obtaining a frame rate of an electronic device from a system side, the chip a is capable of obtaining power consumption of each processor in the electronic device, the processor is represented by a GPU and a CPU, power consumed by the processor is obtained from a battery through a charging circuit, the power of the battery is obtained from a power adapter, and the other is directly obtained from the power adapter.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides an embodiment of a device applying the information processing method.
Fig. 9 is a schematic structural diagram of an embodiment of an information processing method apparatus provided by the present application, where the apparatus includes the following structures: a battery 901, a power adapter interface 902 and a processing module 903;
the power adapter interface 902 is used for connecting with a power adapter and receiving power supply parameters provided by the power adapter;
wherein, the processing module is respectively connected 903 with the battery and the power adapter interface.
The processing module is used for controlling the power supply parameters provided by the power adapter to be used as the working power supply of the electronic equipment if the power adapter is connected to the electronic equipment; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
In specific implementation, the processing module may be implemented by using a functional chip, which is capable of obtaining a charging/discharging condition of the battery and a condition that the power adapter interface is linked with the power adapter, respectively.
Specifically, the processing module is connected with a charge-discharge circuit, and the charge-discharge condition of the battery can be obtained through the charge-discharge circuit.
Fig. 10 is another schematic structural diagram of an embodiment of an information processing apparatus provided in the present application, where the apparatus includes a battery 1001, a power adapter interface 1002, a processing module 1003, and two processors 1004 and 1005;
in fig. 10, two processors are used to indicate at least two processors.
Wherein, at least two processors 1004 and 1005 are respectively connected with the processing module, and the power consumptions of the at least two processors are different;
the processing module 1003 is configured to: obtaining power consumption in at least two processors in an electronic device; determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors; reducing power consumption of the target processor.
Optionally, the processing module is specifically configured to:
determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor if the battery is in a discharged state.
Optionally, the processing module is specifically configured to:
and reducing the power consumption of the target processor again based on the first frame rate and the second frame rate meeting an adjustment condition.
Optionally, the processing module is further configured to:
and recovering the power consumption of the target processor to the power consumption before the current reduction based on the first frame rate and the second frame rate not meeting the adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce the power consumption of the target processor.
Optionally, the processing module selects a second processor of the at least two processors as a target processor, and after reducing the power consumption of the target processor, the processing module is further configured to:
adjusting a parameter of an adjustment condition based on a first frame rate before reducing power consumption of the target processor and a second frame rate after reducing power consumption of the target processor not satisfying the adjustment condition if the battery is in a discharged state.
Optionally, after reducing the power consumption of the target processor, the processing module is further configured to:
and if the battery is in a discharging state, adjusting parameters of the adjusting conditions based on the electric quantity information of the battery.
The functions of each structure of the information processing apparatus refer to corresponding explanations in the method embodiment, and details are not described in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, if the power adapter is connected to the electronic device, the power supply parameter provided by the power adapter is controlled to be used as the operating power supply of the electronic device; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped. According to the scheme, the target strategy is set, when the electronic equipment receives the power supply parameters provided by the power adapter as the working power supply, the battery in the electronic equipment is in a discharging state, the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the discharging of the battery, the electric energy provided by the power adapter is only used when the electronic equipment is connected with the power adapter, the electric energy in the battery is not consumed, and the service life of the electronic equipment is prolonged. That is, in the above embodiment, the battery is still discharged when the power adapter is plugged in, and the battery discharge is stopped by the power consumption adjustment strategies of the plurality of processors as far as possible while maintaining the performance.
Corresponding to the embodiment of the information processing method provided by the application, the application also provides the electronic equipment and the readable storage medium corresponding to the information processing method.
Wherein, this electronic equipment includes: a memory, a processor;
wherein, the memory stores a processing program;
the processor is configured to load and execute the processing program stored in the memory to implement the steps of the information processing method according to any one of the above.
Specifically, the information processing method implemented by the electronic device may refer to the foregoing information processing method embodiment.
Wherein the readable storage medium has stored thereon a computer program, which is called and executed by a processor, implementing the steps of the information processing method according to any one of the above.
Specifically, the computer program stored in the readable storage medium executes the information processing method, and the information processing method embodiments described above may be referred to.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device provided by the embodiment, the description is relatively simple because the device corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. An information processing method, the method comprising:
if the power adapter is connected with the electronic equipment, controlling the power supply parameters provided by the power adapter to be used as a working power supply of the electronic equipment;
detecting a battery of the electronic device;
and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
2. The method of claim 1, if the battery is in a discharged state, adjusting operation of the electronic device based on a target policy until discharge of the battery ceases, comprising:
obtaining power consumption in at least two processors in an electronic device;
determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors;
reducing power consumption of the target processor.
3. The method of claim 2, after reducing the power consumption of the target processor, further comprising:
determining whether to reduce the power consumption of the target processor again based on a first frame rate before reducing the power consumption of the target processor and a second frame rate after reducing the power consumption of the target processor if the battery is in a discharged state.
4. The method of claim 3, determining whether to reduce the power consumption of the target processor again based on a first frame rate before the reducing the power consumption of the target processor and a second frame rate after the reducing the power consumption of the target processor, comprising:
and reducing the power consumption of the target processor again based on the first frame rate and the second frame rate meeting an adjustment condition.
5. The method of claim 4, further comprising:
and recovering the power consumption of the target processor to the power consumption before the current reduction based on the first frame rate and the second frame rate not meeting the adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce the power consumption of the target processor.
6. The method of claim 5, selecting a second processor of the at least two processors as a target processor, after reducing power consumption of the target processor, further comprising:
adjusting a parameter of an adjustment condition based on a first frame rate before reducing power consumption of the target processor and a second frame rate after reducing power consumption of the target processor not satisfying the adjustment condition if the battery is in a discharged state.
7. The method of claim 2, after reducing the power consumption of the target processor, further comprising:
and if the battery is in a discharging state, adjusting parameters of the adjusting conditions based on the electric quantity information of the battery.
8. An information processing apparatus comprising:
a battery;
the power adapter interface is used for being connected with the power adapter and receiving power supply parameters provided by the power adapter;
the processing module is respectively connected with the battery and the power adapter interface and is used for controlling the power supply parameter provided by the power adapter to be used as a working power supply of the electronic equipment if the power adapter is connected to the electronic equipment; detecting a battery of the electronic device; and if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery discharging is stopped.
9. The apparatus of claim 8, further comprising:
at least two processors respectively connected with the processing module, wherein the power consumption of the at least two processors is different;
the processing module is used for: obtaining power consumption in at least two processors in an electronic device; determining a first processor as a target processor, the target processor having less power consumption than a second processor of the at least two processors; reducing power consumption of the target processor.
10. An electronic device, comprising: a memory, a processor;
wherein, the memory stores a processing program;
the processor is used for loading and executing the processing program stored in the memory so as to realize the steps of the information processing method according to any one of the claims 1 to 7.
CN202210561362.2A 2022-05-23 2022-05-23 Information processing method and device and electronic equipment Pending CN114895768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210561362.2A CN114895768A (en) 2022-05-23 2022-05-23 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210561362.2A CN114895768A (en) 2022-05-23 2022-05-23 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114895768A true CN114895768A (en) 2022-08-12

Family

ID=82724369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210561362.2A Pending CN114895768A (en) 2022-05-23 2022-05-23 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114895768A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130454A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Power consumption adjustment method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093311A1 (en) * 2001-01-18 2002-07-18 Stryker Chadwick W. Reducing battery discharge current by throttling cpu power
CN1790861A (en) * 2004-11-12 2006-06-21 惠普开发有限公司 Power management system and method
CN103105918A (en) * 2011-11-14 2013-05-15 仁宝电脑工业股份有限公司 Electronic device and power management method thereof
CN107231038A (en) * 2016-03-23 2017-10-03 卡西欧计算机株式会社 The power supply control method of electronic equipment and electronic equipment
CN109491486A (en) * 2018-10-24 2019-03-19 合肥联宝信息技术有限公司 A kind of method of supplying power to and power supply circuit and electronic equipment switching output power

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093311A1 (en) * 2001-01-18 2002-07-18 Stryker Chadwick W. Reducing battery discharge current by throttling cpu power
CN1790861A (en) * 2004-11-12 2006-06-21 惠普开发有限公司 Power management system and method
CN103105918A (en) * 2011-11-14 2013-05-15 仁宝电脑工业股份有限公司 Electronic device and power management method thereof
CN107231038A (en) * 2016-03-23 2017-10-03 卡西欧计算机株式会社 The power supply control method of electronic equipment and electronic equipment
CN109491486A (en) * 2018-10-24 2019-03-19 合肥联宝信息技术有限公司 A kind of method of supplying power to and power supply circuit and electronic equipment switching output power

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130454A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Power consumption adjustment method and electronic equipment

Similar Documents

Publication Publication Date Title
US10261572B2 (en) Technologies for managing power during an activation cycle
US9618990B2 (en) Electronic device and power management method thereof
US20120280663A1 (en) Apparatus and method for controlling charging current in device using rechargeable battery
US20090172425A1 (en) Digitally controlled dynamic power management unit for uninterruptible power supply
CN106338690A (en) Standby battery detection method, device and system and power supply method
US20240275169A1 (en) Control Method for Energy Storage System and Apparatus, Energy Storage System, and Energy Storage Device
CN103034547A (en) Electronic equipment operation method based on battery and electronic equipment
US7166989B2 (en) Power supply system for supplying power to an electronic apparatus
CN114895768A (en) Information processing method and device and electronic equipment
CN113852147B (en) Power supply device of display screen and electronic equipment
CN113961060B (en) Electronic device and electric quantity management method thereof
CN114156968A (en) Charging and discharging control method and device of energy storage system, controller and energy storage system
CN111009695B (en) Dual-battery serial power supply method, battery module, earphone device and storage medium
US9013153B2 (en) Method for controlling battery recharging process and electronic device
CN107202958B (en) Method and apparatus for testing condition of battery
CN115098305B (en) Main board standby power switching method and device, electronic equipment and storage medium
CN106059013B (en) Method for improving battery endurance and electronic equipment
CN112448429B (en) Control method, terminal and computer storage medium
JP2004334476A (en) Information processing device and battery device
CN103092317A (en) Electronic device and operation method thereof
CN112003362B (en) Control method of power supply system and related device
CN110620426A (en) Power supply switching device and method
CN111106633A (en) Mobile power supply and charging method thereof
CN117411148B (en) Charging method, electronic equipment and storage medium
JP3248435U (en) Power supply that can stabilize system power during shutdown

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