[go: up one dir, main page]

CN114895768B - Information processing method, device and electronic equipment - Google Patents

Information processing method, device and electronic equipment Download PDF

Info

Publication number
CN114895768B
CN114895768B CN202210561362.2A CN202210561362A CN114895768B CN 114895768 B CN114895768 B CN 114895768B CN 202210561362 A CN202210561362 A CN 202210561362A CN 114895768 B CN114895768 B CN 114895768B
Authority
CN
China
Prior art keywords
power consumption
processor
battery
target processor
power
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
CN202210561362.2A
Other languages
Chinese (zh)
Other versions
CN114895768A (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.)
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/CN114895768B/en
Publication of CN114895768A publication Critical patent/CN114895768A/en
Application granted granted Critical
Publication of CN114895768B publication Critical patent/CN114895768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

本申请提供了一种信息处理方法、装置和电子设备,若电源适配器接入电子设备,控制由所述电源适配器所提供的供电参数作为电子设备的工作电源;检测所述电子设备的电池;如果所述电池处于放电状态,基于目标策略调整所述电子设备的运行,直至所述电池放电停止。本方案中,设置有目标策略,在电子设备接收电源适配器提供的供电参数作为工作电源时,电子设备中的电池处于放电状态,基于该目标策略调整电子设备的运行,以达到停止电池放电的目的,保证了在电子设备与电源适配器相连时,只用电源适配器提供的电能,不消耗电池中的电能,延长了电子设备的使用时间。

The present application provides an information processing method, device and electronic device. If a power adapter is connected to an electronic device, the power supply parameters provided by the power adapter are controlled as the working power supply of the electronic device; the battery of the electronic device is detected; if the battery is in a discharge state, the operation of the electronic device is adjusted based on a target strategy until the battery stops discharging. In this solution, a target strategy is set. When the electronic device receives the power supply parameters provided by the power adapter as the working power supply, the battery in the electronic device is in a discharge state. The operation of the electronic device is adjusted based on the target strategy to achieve the purpose of stopping the battery discharge, ensuring that when the electronic device is connected to the power adapter, only the power provided by the power adapter is used, and the power in the battery is not consumed, thereby extending the use time of the electronic device.

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, an information processing device, 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 hopes of extending the 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 deficiency of the adapter, so that the battery of the electronic device is continuously discharged until the battery power is discharged, and the service time of the electronic device does not meet the expectations of users.
Disclosure of Invention
In view of this, the present application provides an information processing method as follows:
An information processing method, the method comprising:
if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the 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 is stopped from discharging.
Optionally, the above method, if the battery is in a discharging state, adjusts operation of the electronic device based on a target policy until the battery stops discharging, including:
obtaining power consumption in at least two processors in the electronic device;
Determining a first processor as a target processor, the target processor having a power consumption less than a second processor of the at least two processors;
And reducing the power consumption of the target processor.
Optionally, in the above method, after the reducing power consumption of the target processor, the method further includes:
if the battery is in a discharged state, it is determined 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.
Optionally, the method, based on 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, determines whether to reduce the power consumption of the target processor again, including:
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 comprises:
And restoring 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 above method, selecting a second processor of the at least two processors as a target processor, after reducing power consumption of the target processor, the method further includes:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions 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 do not meet the adjustment conditions.
Optionally, after the method reduces the power consumption of the target processor, the method further includes:
And if the battery is in a discharging state, adjusting parameters of the adjustment 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 serve as the working power supply of the electronic equipment if the power adapter is connected with the electronic equipment, detecting the battery of the electronic equipment, and adjusting the operation of the electronic equipment based on a target strategy until the battery is discharged if the battery is in a discharging state.
Optionally, the above device 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 of at least two processors in the electronic equipment, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors, and reducing the power consumption of the target processor.
An electronic device 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, so as to implement the steps of the information processing method according to any one of the above.
According to the technical scheme, in the information processing method, if a power adapter is connected to electronic equipment, the power supply parameters provided by the power adapter are controlled to serve as working power supplies of the electronic equipment, a battery of the electronic equipment is detected, and if the battery is in a discharging state, the operation of the electronic equipment is adjusted based on a target strategy until the battery stops discharging. In the scheme, the target strategy is set, when the electronic equipment receives the power supply parameter provided by the power adapter as a working power supply, the battery in the electronic equipment is in a discharging state, and the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the battery discharging, so that when the electronic equipment is connected with the power adapter, only the electric energy provided by the power adapter is used, the electric energy in the battery is not consumed, and the service time 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 required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment 1 of an information processing method according to the present application;
FIG. 2 is a flowchart of an embodiment 2 of an information processing method according to the present application;
FIG. 3 is a flowchart of an embodiment 3 of an information processing method according to the present application;
FIG. 4 is a flowchart of an embodiment 4 of an information processing method according to the present application;
FIG. 5 is a flowchart of an embodiment 5 of an information processing method according to the present application;
FIG. 6 is a flowchart of an embodiment 6 of an information processing method according to the present application;
FIG. 7 is a flowchart of an embodiment 7 of an information processing method according to the present application;
fig. 8 is a schematic diagram of an application scenario of an information processing method provided by the present application;
FIG. 9 is a schematic diagram of an embodiment of an information processing method and apparatus according to the present application;
Fig. 10 is a schematic diagram of another embodiment of an information processing method and apparatus according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, a flowchart of an embodiment 1 of an information processing method according to the present application is applied to an electronic device, where the electronic device is capable of receiving power provided by a power adapter and has a battery disposed therein, and a plurality of processors are disposed in the electronic device and are capable of supporting operation of a plurality of application programs, and the method includes the following steps:
step S101, if a power adapter is connected to an electronic device, controlling a power supply parameter provided by the power adapter as a working power supply of the electronic device;
The electronic equipment is provided with a battery, and can be connected with a power adapter and can receive electric energy 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 serve as the working power supply of the electronic equipment.
Step S102, detecting a battery of the electronic equipment;
Wherein, can detect the discharge condition of battery through 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 charge and discharge conditions of the battery.
When the electronic equipment is connected to the power adapter, if the power consumption of the electronic equipment is larger, the battery can be discharged when the power consumption exceeds the power which can be provided by the power supply parameter of the power adapter, and when the power consumption of the electronic equipment is smaller, the power consumption does not exceed the power which can be provided by the power supply parameter of the power adapter, and the battery is not required to be discharged.
And step S103, if the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery is stopped from discharging.
Wherein if the battery is detected to be in a discharged state, the power consumption of the electronic device is characterized as exceeding the power provided by the power adapter.
Therefore, a target policy is set in the electronic device, and the operation of the electronic device is adjusted based on the target policy, so that the electronic device only uses the power provided by the power supply adapter, and does not use the power of the battery, so that the battery discharge is stopped.
Specifically, the policy for adjusting the operation of the electronic device may be such as disabling a high-power application in the electronic device, disabling an application running in the background, or gradually reducing power consumption of multiple processors in the electronic device.
In summary, the information processing method provided in this embodiment includes controlling, if a power adapter is connected to an electronic device, a power supply parameter provided by the power adapter as a working power supply of the electronic device, detecting a battery of the electronic device, and if the battery is in a discharging state, adjusting operation of the electronic device based on a target policy until discharging of the battery is stopped. In the scheme, the target strategy is set, when the electronic equipment receives the power supply parameter provided by the power adapter as a working power supply, the battery in the electronic equipment is in a discharging state, and the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the battery discharging, so that when the electronic equipment is connected with the power adapter, only the electric energy provided by the power adapter is used, the electric energy in the battery is not consumed, and the service time of the electronic equipment is prolonged.
As shown in fig. 2, a flowchart of an embodiment 2 of an information processing method provided by the present application includes the following steps:
step S201, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
Step S202, detecting a battery of the electronic equipment;
steps S201 to 202 are identical to steps S101 to 102 in embodiment 1, and are not described in detail in this embodiment.
Step S203, obtaining power consumption in at least two processors in the electronic device;
the electronic equipment comprises a plurality of processors, and each processor has power consumption in the running process.
Among them, the processor includes, but is not limited to, a CPU (Central Processing Unit, a central processing unit), a GPU (Graphics Processing Unit, a graphics processor), an EC (Embedded Controller, an embedded controller), and the like.
In a specific implementation, the power consumption of all the processors in the electronic device can be obtained, and the all the processors are used as at least two processors for reducing the power consumption subsequently.
In specific implementation, because the power consumption of some processors is very low, even if the low-power-consumption processor is turned off, the purpose of stopping the battery discharge cannot be achieved, the low-power-consumption processor is ignored, and the remaining processors with higher power consumption are used as at least two processors with lower 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 (watts), 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% and less than the processor selection threshold, so the CPU and the GPU in the electronic device are used as at least two processors in the electronic device as the subsequent processors for reducing the power consumption.
Step S204, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
the power consumption of at least two processors in the electronic equipment is sequenced, and a first processor with the lowest power consumption is selected as a target processor.
Wherein, because the importance of the processor with lower power consumption in the running process of the electronic equipment is lower, the control reduces the power consumption of the processor with lower importance, and the overall influence on the application programs running in the electronic equipment is smaller.
In general, when a high-power-consumption application (such as a game application) is running in an electronic device, in order to support the running of the high-power-consumption application, the power consumption of a processor running the high-power-consumption application is higher, and therefore, in order to maintain the running of the high-power-consumption application, a processor with lower power consumption is preferably selected as a target processor, and the power consumption of the target processor is reduced.
And step S205, reducing the power consumption of the target processor until the battery discharge is stopped.
Wherein, adjust the ladder according to the agreement, reduce the consumption of this goal processor.
For example, the adjustment ladder is 5W, and 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, detecting the discharge condition of the battery, and if the battery is still discharged, reducing the power consumption of the target processor again until the discharge of the battery is detected to stop.
In a 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 to supply the electric energy to the power adapter, and on the premise that the battery is not required to discharge, the application program running in the electronic device is not greatly affected, and the situation of the running application program needs to be determined, in the following embodiment, the power consumption of the target processor is controlled to be reduced according to the situation of combining the application program running in the electronic device, and the detailed description is omitted in this embodiment.
In summary, the information processing method provided by the embodiment includes obtaining power consumption of at least two processors in an electronic device, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors, and reducing the power consumption of the target processor. In the scheme, a first processor with lower power consumption is selected as a target processor from at least two processors of the electronic equipment, and the power consumption of the target processor is reduced until the battery discharge is stopped. Because the importance of the processor with lower power consumption is lower in the running process of the electronic equipment, the control reduces the power consumption of the processor with lower importance, and the overall influence on the application programs running in the electronic equipment is smaller.
As shown in fig. 3, a flowchart of an embodiment 3 of an information processing method provided by the present application includes the following steps:
Step 301, if the power adapter is connected to the electronic device, controlling the power supply parameter provided by the power adapter as the working power supply of the electronic device;
step S302, detecting a battery of the electronic equipment;
step S303, obtaining power consumption in at least two processors in the electronic device;
Step S304, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S305, reducing the power consumption of the target processor;
steps S301-305 are identical to steps S201-205 in embodiment 2, and are not described in detail in this embodiment.
Step S306, if the battery is in a discharging state, 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 until the battery is stopped from discharging.
After the power consumption of the target processor is reduced, whether the battery is still in a discharging state is determined, if the battery is still in a discharging state, the overall power consumption of the electronic device is represented to be larger than the power supplied by the power adapter, and the power consumption of the electronic device needs to be further reduced.
Wherein it is necessary to determine whether the current power consumption reduction has an effect on the performance of the electronic device running the application program, so as to determine whether to continue to reduce the power consumption of the target processor.
Because the frame rate (i.e., the number of transmission Frames Per Second) of the electronic device represents a smoothness that affects the output content of the electronic device, which is a parameter that is intuitively perceived by the user as the performance of the electronic device, in this embodiment, by comparing the changes of the frame rate of the electronic device before and after the power consumption is reduced, it is determined whether the power consumption of the current reduction target processor affects the performance of the electronic device for running the application.
The electronic equipment is also provided with a display device, the display content can be output, and the power consumption of the target processor can be reduced to 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, and automatic grabbing is triggered to start, and grabbing may be performed according to a period, or grabbing may be performed again after power is reduced each time, where the frame rate of the last grabbing before the power consumption of the target processor is reduced is used as a first frame rate, and the frame rate of the first grabbing 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, determining whether the battery is in a discharge state again is performed, and when the battery is still in the discharge state, determining whether the power consumption of the target processor can be reduced continuously or not based on the frame rates before and after the power consumption of the target processor is reduced again until the discharge of the battery in the electronic device is stopped.
In a specific implementation, the first frame rate of capturing triggered by the starting of a specific application program in the electronic device can be used as a first frame rate, the frame rate of capturing after the power consumption of the target processor is reduced each time is used as a second frame rate, and the performance change condition between the power consumption of the target processor is reduced each time and the moment when the specific application program is started by the electronic device is compared, so that the power consumption of the target processor is ensured not to be seriously influenced relative to the operation performance of the initial electronic device through reducing.
If the power consumption of the target processor or the overall power consumption required in the operation process of the electronic device is reduced and is lower than the power supplied to the electronic device by the power adapter, the discharging of the battery is stopped, and the redundant power supplied by the power adapter is charged into the battery.
In summary, the method for processing information 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 discharge state. In the scheme, after the power consumption of the target processor is reduced, if the battery is still in a discharge 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 equipment.
As shown in fig. 4, a flowchart of an embodiment 4 of an information processing method provided by the present application includes the following steps:
step S401, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S402, detecting a battery of the electronic equipment;
Step S403, obtaining power consumption in at least two processors in the electronic device;
Step S404, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
step S405, reducing the power consumption of the target processor;
Steps S401 to 405 are identical to 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, the power consumption of the target processor is reduced again until the battery discharging is stopped based on 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 meeting adjustment conditions.
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 smaller value, such as 5%, 2%, etc., and the specific value of the change threshold is not limited in the present application.
Specifically, if the change rates of the first frame rate and the second frame rate are smaller than the change threshold, the influence of the current adjustment on the performance of the electronic device running the application program is indicated to be small, 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 discharge 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 conditions, the power consumption of the target processor is characterized by being reduced, and the power consumption of the target processor is not reduced to be within the power range which can be provided by the power adapter, but 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 is discharged.
In specific implementation, after the power consumption of the target processor is reduced each time, whether the battery is still in a discharge state or not is judged, and when the battery is still in the discharge state, whether the first frame rate and the second frame rate meet adjustment conditions is continuously judged, so that the power consumption of the target processor is ensured not to have great influence on the performance of the electronic equipment for running an application program each time, and user experience is maintained.
In summary, the information processing method provided in this embodiment includes reducing the power consumption of the target processor again based on 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 satisfying the 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, and when the battery is still in the discharging state, whether the first frame rate and the second frame rate meet the adjustment conditions is judged, and only when the first frame rate and the second frame rate meet the adjustment conditions, the power consumption of the target processor is reduced again, so that the power consumption of the target processor is ensured not to have great influence on the performance of running an application program of the electronic equipment each time.
As shown in fig. 5, a flowchart of an embodiment 5 of an information processing method provided by the present application includes the following steps:
step S501, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S502, detecting a battery of the electronic equipment;
step S503, obtaining power consumption in at least two processors in the electronic device;
step S504, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S505, reducing the power consumption of the target processor;
Step S506, if the battery is in a discharging state, the power consumption of the target processor is reduced again based on 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 meeting an adjustment condition;
Steps S501-505 are identical to steps S401-405 in embodiment 4, and are not described in detail in this embodiment.
And S507, recovering the power consumption of the target processor to the power consumption before the current reduction based on that the first frame rate and the second frame rate do not meet the adjustment condition, and 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 is stopped.
If the first frame rate and the second frame rate do not meet the adjustment conditions, the performance of the electronic device running the application program is greatly affected by the current adjustment, 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 method is characterized in that even if the power consumption of the target processor is reduced, the whole power consumption of the electronic device is not reduced to be within the power range 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.
In order 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 that has only higher power consumption than the first processor among the at least two processors.
Wherein after the second processor is selected as the target processor, the power consumption reduction adjustment is continued for the target processor, and steps S506-507 are circularly performed.
When at least two processors in the electronic device are three, if the second processor reduces the power consumption, the battery is still in a discharge state, but if the first frame rate and the second frame rate do not meet the adjustment, the adjustment of the power consumption reduced by the second processor is abandoned, and a third processor is selected as a target processor, wherein the third processor is the processor with the highest power consumption. And by analogy, according to the power consumption of at least two processors in the electronic equipment, the processors are sequentially selected as target processors from low to high, and under the condition that the performance of the electronic equipment is not affected, the situation that the discharge of the battery is stopped is realized.
In summary, the information processing method provided in this embodiment further includes recovering power consumption of the target processor to power consumption before the current reduction based on that the first frame rate and the second frame rate do not meet an adjustment condition, and selecting a second processor of the at least two processors as the target processor to reduce power consumption of the target processor. In this scheme, through gradually reducing the power consumption of the first processor, the situation that the battery discharges can not be solved, and the performance of the electronic device is also influenced, so the power consumption reduction control of the first processor 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 that the battery discharges is stopped is realized under the condition that the performance of the electronic device is not influenced.
As shown in fig. 6, a flowchart of an embodiment 6 of an information processing method provided by the present application, the method includes the following steps:
Step S601, if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
step S602, detecting a battery of the electronic equipment;
step S603, obtaining power consumption in at least two processors in the electronic device;
step S604, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
Step S605, reducing the power consumption of the target processor;
step S606, if the battery is in a discharging state, the power consumption of the target processor is reduced again based on 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 meeting an adjustment condition.
Step S607, recovering the power consumption of the target processor until the current reduction based on the first frame rate and the second frame rate not satisfying the adjustment condition, and selecting a second processor of the at least two processors as the target processor, reducing the power consumption of the target processor;
steps S601 to 607 are identical to steps S501 to 507 in embodiment 5, and are not described in detail in this embodiment.
Step S608 of adjusting parameters of the adjustment condition based on 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 not satisfying the adjustment condition if the battery is in a discharge state.
Wherein, when the power consumption is reduced by taking at least two processors of the electronic device as the target processors, but the battery is still in a discharge state, and 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 condition, it means that by reducing the power consumption of each of the at least two processors of the electronic device, the battery discharge can not be stopped on the premise of ensuring the performance of the electronic device.
In order to stop the battery discharge, an adjustment parameter of the adjustment condition is required to be adjusted, wherein the adjustment parameter corresponds to tolerance for the change of the performance of the electronic device.
In the application, whether the power consumption of the current reduction target processor has an influence on the performance of the running application program of the electronic equipment is determined by comparing the change condition of the frame rate of the electronic equipment before and after the power consumption is reduced.
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, and the parameter of the adjustment condition is the change threshold.
Specifically, by adjusting the parameters of the adjustment conditions to be larger, the tolerance of the performance change of the electronic equipment is increased.
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 the present application.
After the parameters of the adjustment conditions are adjusted, the method returns to step S604 and the following steps, and further reduces 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 parameters of the adjustment condition based on 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 not meeting the adjustment condition if the battery is in a discharge state. In the scheme, at least two processors in the electronic equipment are sequentially used as target processors to carry out power consumption reduction control, the battery is still in a discharge state, and when 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 adjustment conditions, parameters of the adjustment conditions are adjusted to achieve the purpose of increasing tolerance of 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 battery discharge is achieved through losing the performance of the electronic equipment with less loss.
As shown in fig. 7, a flowchart of an embodiment 7 of an information processing method provided by the present application, the method includes the following steps:
Step 701, if the power adapter is connected to the electronic device, controlling the power supply parameter provided by the power adapter as the working power supply of the electronic device;
step S702, detecting a battery of the electronic equipment;
step S703 of obtaining power consumption in at least two processors in the electronic device;
Step S704, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors;
step S705, reducing the power consumption of the target processor.
Steps S701-705 are identical to steps S201-205 in embodiment 2, and are not described in detail in this embodiment.
Step S706, if the battery is in a discharging state, adjusting parameters of the adjustment 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 a plurality of times, the battery is still in a discharge state, wherein the target processor can be each of at least two processors in the electronic device is selected in sequence, and the battery discharge can not be stopped on the premise that the performance of the electronic device is ensured by the characterization.
Specifically, different parameters are selected for the adjustment conditions for different charge 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 for different stages.
For example, the battery power is 90% -100%, the variation of the first frame rate and the second frame rate of the parameters of the adjustment condition is 2%, the battery power is 80% -89%, the variation of the first frame rate and the second frame rate of the parameters of the adjustment condition is 3%, and so on.
In order to stop the battery discharge, an adjustment parameter of the adjustment condition is required to be adjusted, wherein the adjustment parameter corresponds to tolerance for the change of 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 discharging of the battery 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 adjusting parameters of the adjustment condition based on the electric quantity information of the battery if the battery is in a discharge state. In the scheme, parameters of adjustment 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 adjustment of the target processor is more flexible.
As shown in fig. 8, in an application scenario of an information processing method provided by the present application, a chip a is used to perform the information processing method, where the chip a can obtain a frame rate of an electronic device from a system side, the chip a can obtain power consumption of each processor in the electronic device, the processor is represented by a GPU and a CPU, and power consumed by the processor has two sources, one source is obtained from a battery through a charging circuit, power of the battery is obtained from a power adapter, and the other source 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 diagram showing an embodiment of an information processing method according to the present application, where the apparatus includes a battery 901, a power adapter interface 902, and a processing module 903;
The power adapter interface 902 is configured to connect to a power adapter, and receive a power supply parameter provided by the power adapter;
Wherein the processing module is connected 903 to the battery and the power adapter interface, respectively.
The processing module is used for controlling a power supply parameter provided by the power adapter to serve 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 equipment, and adjusting the operation of the electronic equipment based on a target strategy until the battery is discharged if the battery is in a discharging state.
In a specific implementation, the processing module may be implemented by using a functional chip, which can obtain the charge and discharge conditions of the battery and the 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 a schematic diagram showing another embodiment of an information processing apparatus according to the present application, which includes a battery 1001, a power adapter interface 1002, a processing module 1003, and two processors 1004 to 1005;
Wherein at least two processors are represented in this fig. 10 by two processors.
Wherein at least two processors 1004-1005 are respectively connected with the processing modules, and the power consumption of the at least two processors is different;
The processing module 1003 is configured to obtain power consumption of at least two processors in the electronic device, determine a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor of the at least two processors, and reduce the power consumption of the target processor.
Optionally, the processing module is specifically configured to:
if the battery is in a discharged state, it is determined 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.
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 restoring 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 is further configured to, after reducing power consumption of the target processor:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions 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 do not meet the adjustment conditions.
Optionally, after the processing module reduces 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 adjustment 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 are not described in detail in this embodiment.
In summary, in the information processing apparatus provided in this embodiment, if a power adapter is connected to an electronic device, a power supply parameter provided by the power adapter is controlled to be used as a working power supply of the electronic device, a battery of the electronic device is detected, and if the battery is in a discharging state, operation of the electronic device is adjusted based on a target policy until discharging of the battery is stopped. In the scheme, the target strategy is set, when the electronic equipment receives the power supply parameter provided by the power adapter as a working power supply, the battery in the electronic equipment is in a discharging state, and the operation of the electronic equipment is adjusted based on the target strategy so as to achieve the purpose of stopping the battery discharging, so that when the electronic equipment is connected with the power adapter, only the electric energy provided by the power adapter is used, the electric energy in the battery is not consumed, and the service time of the electronic equipment is prolonged. That is, in the above-described embodiment, the battery is still discharged when the power adapter is inserted, and the battery discharge is stopped as much as possible while maintaining the performance by the power consumption adjustment strategy of the plurality of processors.
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.
The electronic equipment comprises a memory and a processor;
wherein the memory stores a processing program;
The processor is configured to load and execute the processing program stored in the memory, so as to implement the steps of the information processing method according to any one of the above.
The method for realizing the information processing of the electronic equipment is realized by referring to the embodiment of the information processing method.
Wherein the readable storage medium has stored thereon a computer program which is invoked and executed by a processor to implement the steps of the information processing method according to any of the above.
The computer program stored in the readable storage medium is executed to implement the information processing method, and the embodiment of the information processing method is referred to.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The device provided in the embodiment corresponds to the method provided in the embodiment, so that the description is simpler, and the relevant points refer to the description of the method.
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 (8)

1. An information processing method, the method comprising:
if the power adapter is connected to the electronic equipment, controlling the power supply parameters provided by the power adapter as the working power supply of the electronic equipment;
detecting a battery of the electronic device;
If the battery is in a discharging state, adjusting the operation of the electronic equipment based on a target strategy until the battery stops discharging;
If the battery is in a discharge state, adjusting the operation of the electronic device based on a target strategy until the battery discharge stops, including:
the method comprises the steps of obtaining power consumption in at least two processors in the electronic equipment, wherein the ratio of the power consumption of the processors to the overall power consumption of the electronic equipment is not smaller than a processor selection threshold;
Determining a first processor as a target processor, the target processor having a power consumption less than a second processor of the at least two processors;
And reducing the power consumption of the target processor until the battery stops discharging.
2. The method of claim 1, after the reducing the power consumption of the target processor, further comprising:
if the battery is in a discharged state, it is determined 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.
3. The method of claim 2, determining whether to reduce the power consumption of the target processor again based on 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, 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.
4. A method according to claim 3, further comprising:
And restoring 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.
5. The method of claim 4, selecting a second processor of the at least two processors as a target processor, after reducing power consumption of the target processor, further comprising:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions 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 do not meet the adjustment conditions.
6. The method of claim 1, further comprising, after reducing power consumption of the target processor:
And if the battery is in a discharging state, adjusting parameters of the adjustment conditions based on the electric quantity information of the battery.
7. 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 serve as the working power supply of the electronic equipment if the power adapter is connected with the electronic equipment;
the system comprises at least two processors respectively connected with the processing module, wherein the power consumption of the at least two processors is different, and the ratio of the power consumption of the processor to the overall power consumption of the electronic equipment is not less than a processor selection threshold value;
the processing module is used for obtaining power consumption of at least two processors in the electronic equipment, determining a first processor as a target processor, wherein the power consumption of the target processor is smaller than that of a second processor in the at least two processors, and reducing the power consumption of the target processor until the battery stops discharging.
8. An electronic device 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 preceding claims 1 to 6.
CN202210561362.2A 2022-05-23 2022-05-23 Information processing method, device and electronic equipment Active CN114895768B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN114895768A CN114895768A (en) 2022-08-12
CN114895768B true CN114895768B (en) 2025-02-25

Family

ID=82724369

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114895768B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118819267A (en) * 2023-03-31 2024-10-22 荣耀终端有限公司 Power consumption adjustment method and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790861A (en) * 2004-11-12 2006-06-21 惠普开发有限公司 Power management system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6472848B2 (en) * 2001-01-18 2002-10-29 Hewlett-Packard Company Reducing battery discharge current by throttling CPU power
TWI505077B (en) * 2011-11-14 2015-10-21 Compal Electronics Inc Electronic device and power management method thereof
JP6365574B2 (en) * 2016-03-23 2018-08-01 カシオ計算機株式会社 Electronic device and power supply control method for electronic device
CN109491486B (en) * 2018-10-24 2022-05-17 合肥联宝信息技术有限公司 Power supply method and power supply circuit for switching output power and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790861A (en) * 2004-11-12 2006-06-21 惠普开发有限公司 Power management system and method

Also Published As

Publication number Publication date
CN114895768A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
US20210296910A1 (en) Terminal and Device
KR101540909B1 (en) Power control manager and method
US9197075B2 (en) Charging port based on power state signal
US9372521B2 (en) Systems and methods for providing auxiliary reserve current for powering information handling systems
US9618990B2 (en) Electronic device and power management method thereof
US8030902B2 (en) Method for charging battery module in multiple stages
US9293940B2 (en) Apparatus and method for controlling charging current in device using rechargeable battery
EP1555595A2 (en) Apparatus for controlling power of processor having a plurality of cores and control method of the same
CN110176643B (en) Charging method, power supply management equipment and terminal equipment
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
CN105262155A (en) Charging method and device
WO2020038083A1 (en) Dual-battery charging method, electronic device, and storage medium
JP6377560B2 (en) Information processing apparatus, CPU applied voltage control apparatus, and information processing apparatus control method
US8022670B2 (en) Method for charging battery module
CN114895768B (en) Information processing method, device and electronic equipment
US20080015807A1 (en) Transferring data in a portable electronic device
JP2020519077A (en) Power management device for immediate start-up during power negotiation
CN113273134B (en) Hasp type Power Over Ethernet (POE) monitoring system
US8046602B2 (en) Controlling connection status of network adapters
CN114156968A (en) Charging and discharging control method and device of energy storage system, controller and energy storage system
US20100041446A1 (en) Electronic apparatus with power saving function and method thereof
JP5350734B2 (en) Secondary battery discharge circuit, secondary battery discharge method and information processing apparatus
WO2019067147A1 (en) Dynamic battery power management based on battery internal impedance
CN117411148B (en) Charging method, electronic equipment and storage medium
US12242321B2 (en) Power management method and electronic device using same

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